Lines Matching defs:obj
28 struct drm_gem_object *obj = attach->dmabuf->priv;
31 pci_p2pdma_distance(to_pci_dev(obj->dev->dev), attach->dev, false) < 0)
34 if (!attach->peer2peer && !xe_bo_can_migrate(gem_to_xe_bo(obj), XE_PL_TT))
37 xe_pm_runtime_get(to_xe_device(obj->dev));
44 struct drm_gem_object *obj = attach->dmabuf->priv;
46 xe_pm_runtime_put(to_xe_device(obj->dev));
51 struct drm_gem_object *obj = attach->dmabuf->priv;
52 struct xe_bo *bo = gem_to_xe_bo(obj);
83 struct drm_gem_object *obj = attach->dmabuf->priv;
84 struct xe_bo *bo = gem_to_xe_bo(obj);
93 struct drm_gem_object *obj = dma_buf->priv;
94 struct xe_bo *bo = gem_to_xe_bo(obj);
112 sgt = drm_prime_pages_to_sg(obj->dev,
163 struct drm_gem_object *obj = dma_buf->priv;
164 struct xe_bo *bo = gem_to_xe_bo(obj);
193 struct dma_buf *xe_gem_prime_export(struct drm_gem_object *obj, int flags)
195 struct xe_bo *bo = gem_to_xe_bo(obj);
201 buf = drm_gem_prime_export(obj, flags);
236 struct drm_gem_object *obj = attach->importer_priv;
237 struct xe_bo *bo = gem_to_xe_bo(obj);
268 struct drm_gem_object *obj;
272 obj = dma_buf->priv;
273 if (obj->dev == dev &&
279 drm_gem_object_get(obj);
280 return obj;
301 obj = ERR_CAST(attach);
306 obj = xe_dma_buf_init_obj(dev, bo, dma_buf);
307 if (IS_ERR(obj))
308 return obj;
312 obj->import_attach = attach;
313 return obj;
318 return obj;