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()
157 static int xe_dma_buf_begin_cpu_access(struct dma_buf *dma_buf, in xe_dma_buf_begin_cpu_access() argument
160 struct drm_gem_object *obj = dma_buf->priv; in xe_dma_buf_begin_cpu_access()
190 struct dma_buf *xe_gem_prime_export(struct drm_gem_object *obj, int flags) in xe_gem_prime_export()
193 struct dma_buf *buf; in xe_gem_prime_export()
207 struct dma_buf *dma_buf) in xe_dma_buf_init_obj() argument
209 struct dma_resv *resv = dma_buf->resv; in xe_dma_buf_init_obj()
215 bo = ___xe_bo_create_locked(xe, storage, NULL, resv, NULL, dma_buf->size, in xe_dma_buf_init_obj()
258 struct dma_buf *dma_buf) in xe_gem_prime_import() argument
268 if (dma_buf->ops == &xe_dmabuf_ops) { in xe_gem_prime_import()
269 obj = dma_buf->priv; in xe_gem_prime_import()
296 attach = dma_buf_dynamic_attach(dma_buf, dev->dev, attach_ops, &bo->ttm.base); in xe_gem_prime_import()
303 obj = xe_dma_buf_init_obj(dev, bo, dma_buf); in xe_gem_prime_import()
308 get_dma_buf(dma_buf); in xe_gem_prime_import()