Home
last modified time | relevance | path

Searched refs:exp_info (Results 1 – 25 of 25) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/omapdrm/
Domap_gem_dmabuf.c82 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in omap_gem_prime_export()
84 exp_info.ops = &omap_dmabuf_ops; in omap_gem_prime_export()
85 exp_info.size = omap_gem_mmap_size(obj); in omap_gem_prime_export()
86 exp_info.flags = flags; in omap_gem_prime_export()
87 exp_info.priv = obj; in omap_gem_prime_export()
88 exp_info.resv = obj->resv; in omap_gem_prime_export()
90 return drm_gem_dmabuf_export(obj->dev, &exp_info); in omap_gem_prime_export()
/linux-6.6.21/drivers/virtio/
Dvirtio_dma_buf.c21 (const struct dma_buf_export_info *exp_info) in virtio_dma_buf_export() argument
24 container_of(exp_info->ops, in virtio_dma_buf_export()
27 if (!exp_info->ops || in virtio_dma_buf_export()
28 exp_info->ops->attach != &virtio_dma_buf_attach || in virtio_dma_buf_export()
33 return dma_buf_export(exp_info); in virtio_dma_buf_export()
/linux-6.6.21/drivers/dma-buf/
Ddma-heap.c219 struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info) in dma_heap_add() argument
226 if (!exp_info->name || !strcmp(exp_info->name, "")) { in dma_heap_add()
231 if (!exp_info->ops || !exp_info->ops->allocate) { in dma_heap_add()
240 heap->name = exp_info->name; in dma_heap_add()
241 heap->ops = exp_info->ops; in dma_heap_add()
242 heap->priv = exp_info->priv; in dma_heap_add()
278 if (!strcmp(h->name, exp_info->name)) { in dma_heap_add()
281 exp_info->name); in dma_heap_add()
Ddma-buf.c608 struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info) in dma_buf_export() argument
611 struct dma_resv *resv = exp_info->resv; in dma_buf_export()
616 if (WARN_ON(!exp_info->priv || !exp_info->ops in dma_buf_export()
617 || !exp_info->ops->map_dma_buf in dma_buf_export()
618 || !exp_info->ops->unmap_dma_buf in dma_buf_export()
619 || !exp_info->ops->release)) in dma_buf_export()
622 if (WARN_ON(exp_info->ops->cache_sgt_mapping && in dma_buf_export()
623 (exp_info->ops->pin || exp_info->ops->unpin))) in dma_buf_export()
626 if (WARN_ON(!exp_info->ops->pin != !exp_info->ops->unpin)) in dma_buf_export()
629 if (!try_module_get(exp_info->owner)) in dma_buf_export()
[all …]
Dudmabuf.c201 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in udmabuf_create()
266 exp_info.ops = &udmabuf_ops; in udmabuf_create()
267 exp_info.size = ubuf->pagecount << PAGE_SHIFT; in udmabuf_create()
268 exp_info.priv = ubuf; in udmabuf_create()
269 exp_info.flags = O_RDWR; in udmabuf_create()
272 buf = dma_buf_export(&exp_info); in udmabuf_create()
/linux-6.6.21/drivers/gpu/drm/virtio/
Dvirtgpu_prime.c113 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in virtgpu_gem_prime_export()
129 exp_info.ops = &virtgpu_dmabuf_ops.ops; in virtgpu_gem_prime_export()
130 exp_info.size = obj->size; in virtgpu_gem_prime_export()
131 exp_info.flags = flags; in virtgpu_gem_prime_export()
132 exp_info.priv = obj; in virtgpu_gem_prime_export()
133 exp_info.resv = obj->resv; in virtgpu_gem_prime_export()
135 buf = virtio_dma_buf_export(&exp_info); in virtgpu_gem_prime_export()
/linux-6.6.21/drivers/dma-buf/heaps/
Dcma_heap.c283 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in cma_heap_allocate()
344 exp_info.exp_name = dma_heap_get_name(heap); in cma_heap_allocate()
345 exp_info.ops = &cma_heap_buf_ops; in cma_heap_allocate()
346 exp_info.size = buffer->len; in cma_heap_allocate()
347 exp_info.flags = fd_flags; in cma_heap_allocate()
348 exp_info.priv = buffer; in cma_heap_allocate()
349 dmabuf = dma_buf_export(&exp_info); in cma_heap_allocate()
373 struct dma_heap_export_info exp_info; in __add_cma_heap() local
380 exp_info.name = cma_get_name(cma); in __add_cma_heap()
381 exp_info.ops = &cma_heap_ops; in __add_cma_heap()
[all …]
Dsystem_heap.c340 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in system_heap_allocate()
393 exp_info.exp_name = dma_heap_get_name(heap); in system_heap_allocate()
394 exp_info.ops = &system_heap_buf_ops; in system_heap_allocate()
395 exp_info.size = buffer->len; in system_heap_allocate()
396 exp_info.flags = fd_flags; in system_heap_allocate()
397 exp_info.priv = buffer; in system_heap_allocate()
398 dmabuf = dma_buf_export(&exp_info); in system_heap_allocate()
426 struct dma_heap_export_info exp_info; in system_heap_create() local
428 exp_info.name = "system"; in system_heap_create()
429 exp_info.ops = &system_heap_ops; in system_heap_create()
[all …]
/linux-6.6.21/drivers/gpu/drm/i915/gem/selftests/
Dmock_dmabuf.c101 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in mock_dmabuf()
117 exp_info.ops = &mock_dmabuf_ops; in mock_dmabuf()
118 exp_info.size = npages * PAGE_SIZE; in mock_dmabuf()
119 exp_info.flags = O_CLOEXEC; in mock_dmabuf()
120 exp_info.priv = mock; in mock_dmabuf()
122 dmabuf = dma_buf_export(&exp_info); in mock_dmabuf()
/linux-6.6.21/drivers/gpu/drm/i915/gem/
Di915_gem_dmabuf.c220 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in i915_gem_prime_export()
222 exp_info.ops = &i915_dmabuf_ops; in i915_gem_prime_export()
223 exp_info.size = gem_obj->size; in i915_gem_prime_export()
224 exp_info.flags = flags; in i915_gem_prime_export()
225 exp_info.priv = gem_obj; in i915_gem_prime_export()
226 exp_info.resv = obj->base.resv; in i915_gem_prime_export()
234 return drm_gem_dmabuf_export(gem_obj->dev, &exp_info); in i915_gem_prime_export()
/linux-6.6.21/drivers/media/common/videobuf2/
Dvideobuf2-vmalloc.c340 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in vb2_vmalloc_get_dmabuf()
342 exp_info.ops = &vb2_vmalloc_dmabuf_ops; in vb2_vmalloc_get_dmabuf()
343 exp_info.size = buf->size; in vb2_vmalloc_get_dmabuf()
344 exp_info.flags = flags; in vb2_vmalloc_get_dmabuf()
345 exp_info.priv = buf; in vb2_vmalloc_get_dmabuf()
350 dbuf = dma_buf_export(&exp_info); in vb2_vmalloc_get_dmabuf()
Dvideobuf2-dma-sg.c527 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in vb2_dma_sg_get_dmabuf()
529 exp_info.ops = &vb2_dma_sg_dmabuf_ops; in vb2_dma_sg_get_dmabuf()
530 exp_info.size = buf->size; in vb2_dma_sg_get_dmabuf()
531 exp_info.flags = flags; in vb2_dma_sg_get_dmabuf()
532 exp_info.priv = buf; in vb2_dma_sg_get_dmabuf()
537 dbuf = dma_buf_export(&exp_info); in vb2_dma_sg_get_dmabuf()
Dvideobuf2-dma-contig.c504 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in vb2_dc_get_dmabuf()
506 exp_info.ops = &vb2_dc_dmabuf_ops; in vb2_dc_get_dmabuf()
507 exp_info.size = buf->size; in vb2_dc_get_dmabuf()
508 exp_info.flags = flags; in vb2_dc_get_dmabuf()
509 exp_info.priv = buf; in vb2_dc_get_dmabuf()
517 dbuf = dma_buf_export(&exp_info); in vb2_dc_get_dmabuf()
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dttm_object.c607 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in ttm_prime_handle_to_fd()
608 exp_info.ops = &tdev->ops; in ttm_prime_handle_to_fd()
609 exp_info.size = prime->size; in ttm_prime_handle_to_fd()
610 exp_info.flags = flags; in ttm_prime_handle_to_fd()
611 exp_info.priv = prime; in ttm_prime_handle_to_fd()
617 dma_buf = dma_buf_export(&exp_info); in ttm_prime_handle_to_fd()
/linux-6.6.21/drivers/xen/
Dgntdev-dmabuf.c359 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in dmabuf_exp_from_pages()
375 exp_info.exp_name = KBUILD_MODNAME; in dmabuf_exp_from_pages()
377 exp_info.owner = args->dev->driver->owner; in dmabuf_exp_from_pages()
379 exp_info.owner = THIS_MODULE; in dmabuf_exp_from_pages()
380 exp_info.ops = &dmabuf_exp_ops; in dmabuf_exp_from_pages()
381 exp_info.size = args->count << PAGE_SHIFT; in dmabuf_exp_from_pages()
382 exp_info.flags = O_RDWR; in dmabuf_exp_from_pages()
383 exp_info.priv = gntdev_dmabuf; in dmabuf_exp_from_pages()
385 gntdev_dmabuf->dmabuf = dma_buf_export(&exp_info); in dmabuf_exp_from_pages()
/linux-6.6.21/drivers/gpu/drm/armada/
Darmada_gem.c489 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in armada_gem_prime_export()
491 exp_info.ops = &armada_gem_prime_dmabuf_ops; in armada_gem_prime_export()
492 exp_info.size = obj->size; in armada_gem_prime_export()
493 exp_info.flags = O_RDWR; in armada_gem_prime_export()
494 exp_info.priv = obj; in armada_gem_prime_export()
496 return drm_gem_dmabuf_export(obj->dev, &exp_info); in armada_gem_prime_export()
/linux-6.6.21/drivers/gpu/drm/tegra/
Dgem.c741 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in tegra_gem_prime_export()
743 exp_info.exp_name = KBUILD_MODNAME; in tegra_gem_prime_export()
744 exp_info.owner = gem->dev->driver->fops->owner; in tegra_gem_prime_export()
745 exp_info.ops = &tegra_gem_prime_dmabuf_ops; in tegra_gem_prime_export()
746 exp_info.size = gem->size; in tegra_gem_prime_export()
747 exp_info.flags = flags; in tegra_gem_prime_export()
748 exp_info.priv = gem; in tegra_gem_prime_export()
750 return drm_gem_dmabuf_export(gem->dev, &exp_info); in tegra_gem_prime_export()
/linux-6.6.21/include/linux/
Ddma-heap.h66 struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info);
Dvirtio_dma_buf.h33 (const struct dma_buf_export_info *exp_info);
Ddma-buf.h606 struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info);
/linux-6.6.21/drivers/gpu/drm/
Ddrm_prime.c243 struct dma_buf_export_info *exp_info) in drm_gem_dmabuf_export() argument
245 struct drm_gem_object *obj = exp_info->priv; in drm_gem_dmabuf_export()
248 dma_buf = dma_buf_export(exp_info); in drm_gem_dmabuf_export()
877 struct dma_buf_export_info exp_info = { in drm_gem_prime_export() local
887 return drm_gem_dmabuf_export(dev, &exp_info); in drm_gem_prime_export()
/linux-6.6.21/include/drm/
Ddrm_prime.h67 struct dma_buf_export_info *exp_info);
/linux-6.6.21/samples/vfio-mdev/
Dmbochs.c1006 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in mbochs_dmabuf_export()
1017 exp_info.ops = &mbochs_dmabuf_ops; in mbochs_dmabuf_export()
1018 exp_info.size = dmabuf->mode.size; in mbochs_dmabuf_export()
1019 exp_info.priv = dmabuf; in mbochs_dmabuf_export()
1021 buf = dma_buf_export(&exp_info); in mbochs_dmabuf_export()
/linux-6.6.21/drivers/accel/habanalabs/common/
Dmemory.c1837 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in export_dmabuf()
1841 exp_info.ops = &habanalabs_dmabuf_ops; in export_dmabuf()
1842 exp_info.size = total_size; in export_dmabuf()
1843 exp_info.flags = flags; in export_dmabuf()
1844 exp_info.priv = hl_dmabuf; in export_dmabuf()
1846 hl_dmabuf->dmabuf = dma_buf_export(&exp_info); in export_dmabuf()
/linux-6.6.21/drivers/misc/
Dfastrpc.c1602 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in fastrpc_dmabuf_alloc()
1612 exp_info.ops = &fastrpc_dma_buf_ops; in fastrpc_dmabuf_alloc()
1613 exp_info.size = bp.size; in fastrpc_dmabuf_alloc()
1614 exp_info.flags = O_RDWR; in fastrpc_dmabuf_alloc()
1615 exp_info.priv = buf; in fastrpc_dmabuf_alloc()
1616 buf->dmabuf = dma_buf_export(&exp_info); in fastrpc_dmabuf_alloc()