Lines Matching refs:dma_buf
25 static int xe_dma_buf_attach(struct dma_buf *dmabuf, in xe_dma_buf_attach()
41 static void xe_dma_buf_detach(struct dma_buf *dmabuf, in xe_dma_buf_detach()
92 struct dma_buf *dma_buf = attach->dmabuf; in xe_dma_buf_map() local
93 struct drm_gem_object *obj = dma_buf->priv; in xe_dma_buf_map()
148 struct dma_buf *dma_buf = attach->dmabuf; in xe_dma_buf_unmap() local
149 struct xe_bo *bo = gem_to_xe_bo(dma_buf->priv); in xe_dma_buf_unmap()
160 static int xe_dma_buf_begin_cpu_access(struct dma_buf *dma_buf, in xe_dma_buf_begin_cpu_access() argument
163 struct drm_gem_object *obj = dma_buf->priv; in xe_dma_buf_begin_cpu_access()
193 struct dma_buf *xe_gem_prime_export(struct drm_gem_object *obj, int flags) in xe_gem_prime_export()
196 struct dma_buf *buf; in xe_gem_prime_export()
210 struct dma_buf *dma_buf) in xe_dma_buf_init_obj() argument
212 struct dma_resv *resv = dma_buf->resv; in xe_dma_buf_init_obj()
218 bo = ___xe_bo_create_locked(xe, storage, NULL, resv, NULL, dma_buf->size, in xe_dma_buf_init_obj()
261 struct dma_buf *dma_buf) in xe_gem_prime_import() argument
271 if (dma_buf->ops == &xe_dmabuf_ops) { in xe_gem_prime_import()
272 obj = dma_buf->priv; in xe_gem_prime_import()
299 attach = dma_buf_dynamic_attach(dma_buf, dev->dev, attach_ops, &bo->ttm.base); in xe_gem_prime_import()
306 obj = xe_dma_buf_init_obj(dev, bo, dma_buf); in xe_gem_prime_import()
311 get_dma_buf(dma_buf); in xe_gem_prime_import()