*/
int xe_oa_stream_open_ioctl(struct drm_device *dev, u64 data, struct drm_file *file)
{
- struct xe_oa *oa = &to_xe_device(dev)->oa;
+ struct xe_device *xe = to_xe_device(dev);
+ struct xe_oa *oa = &xe->oa;
struct xe_file *xef = to_xe_file(file);
struct xe_oa_open_param param = {};
const struct xe_oa_format *f;
int ret;
if (!oa->xe) {
- drm_dbg(&oa->xe->drm, "xe oa interface not available for this system\n");
+ drm_dbg(&xe->drm, "xe oa interface not available for this system\n");
return -ENODEV;
}
*/
int xe_oa_add_config_ioctl(struct drm_device *dev, u64 data, struct drm_file *file)
{
- struct xe_oa *oa = &to_xe_device(dev)->oa;
+ struct xe_device *xe = to_xe_device(dev);
+ struct xe_oa *oa = &xe->oa;
struct drm_xe_oa_config param;
struct drm_xe_oa_config *arg = ¶m;
struct xe_oa_config *oa_config, *tmp;
int err, id;
if (!oa->xe) {
- drm_dbg(&oa->xe->drm, "xe oa interface not available for this system\n");
+ drm_dbg(&xe->drm, "xe oa interface not available for this system\n");
return -ENODEV;
}
*/
int xe_oa_remove_config_ioctl(struct drm_device *dev, u64 data, struct drm_file *file)
{
- struct xe_oa *oa = &to_xe_device(dev)->oa;
+ struct xe_device *xe = to_xe_device(dev);
+ struct xe_oa *oa = &xe->oa;
struct xe_oa_config *oa_config;
u64 arg, *ptr = u64_to_user_ptr(data);
int ret;
if (!oa->xe) {
- drm_dbg(&oa->xe->drm, "xe oa interface not available for this system\n");
+ drm_dbg(&xe->drm, "xe oa interface not available for this system\n");
return -ENODEV;
}