/drivers/dma-buf/heaps/ |
D | system_heap.c | 364 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in system_heap_do_allocate() 418 exp_info.exp_name = dma_heap_get_name(heap); in system_heap_do_allocate() 419 exp_info.ops = &system_heap_buf_ops; in system_heap_do_allocate() 420 exp_info.size = buffer->len; in system_heap_do_allocate() 421 exp_info.flags = fd_flags; in system_heap_do_allocate() 422 exp_info.priv = buffer; in system_heap_do_allocate() 423 dmabuf = dma_buf_export(&exp_info); in system_heap_do_allocate() 493 struct dma_heap_export_info exp_info; in system_heap_create() local 495 exp_info.name = "system"; in system_heap_create() 496 exp_info.ops = &system_heap_ops; in system_heap_create() [all …]
|
D | cma_heap.c | 284 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in cma_heap_allocate() 345 exp_info.exp_name = dma_heap_get_name(heap); in cma_heap_allocate() 346 exp_info.ops = &cma_heap_buf_ops; in cma_heap_allocate() 347 exp_info.size = buffer->len; in cma_heap_allocate() 348 exp_info.flags = fd_flags; in cma_heap_allocate() 349 exp_info.priv = buffer; in cma_heap_allocate() 350 dmabuf = dma_buf_export(&exp_info); in cma_heap_allocate() 374 struct dma_heap_export_info exp_info; in __add_cma_heap() local 381 exp_info.name = cma_get_name(cma); in __add_cma_heap() 382 exp_info.ops = &cma_heap_ops; in __add_cma_heap() [all …]
|
/drivers/gpu/drm/omapdrm/ |
D | omap_gem_dmabuf.c | 82 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()
|
/drivers/gpu/drm/virtio/ |
D | virtgpu_prime.c | 113 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()
|
/drivers/virtio/ |
D | virtio_dma_buf.c | 21 (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() 33 exp_info->ops->attach != &virtio_dma_buf_attach) in virtio_dma_buf_export() 36 return dma_buf_export(exp_info); in virtio_dma_buf_export()
|
/drivers/gpu/drm/i915/gem/selftests/ |
D | mock_dmabuf.c | 101 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()
|
/drivers/dma-buf/ |
D | dma-heap.c | 307 struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info) in dma_heap_add() argument 313 if (!exp_info->name || !strcmp(exp_info->name, "")) { in dma_heap_add() 318 if (!exp_info->ops || !exp_info->ops->allocate) { in dma_heap_add() 328 heap->name = exp_info->name; in dma_heap_add() 329 heap->ops = exp_info->ops; in dma_heap_add() 330 heap->priv = exp_info->priv; in dma_heap_add() 369 if (!strcmp(h->name, exp_info->name)) { in dma_heap_add() 372 exp_info->name); in dma_heap_add()
|
D | dma-buf.c | 657 struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info) in dma_buf_export() argument 660 struct dma_resv *resv = exp_info->resv; in dma_buf_export() 665 if (WARN_ON(!exp_info->priv || !exp_info->ops in dma_buf_export() 666 || !exp_info->ops->map_dma_buf in dma_buf_export() 667 || !exp_info->ops->unmap_dma_buf in dma_buf_export() 668 || !exp_info->ops->release)) in dma_buf_export() 671 if (WARN_ON(exp_info->ops->cache_sgt_mapping && in dma_buf_export() 672 (exp_info->ops->pin || exp_info->ops->unpin))) in dma_buf_export() 675 if (WARN_ON(!exp_info->ops->pin != !exp_info->ops->unpin)) in dma_buf_export() 678 if (!try_module_get(exp_info->owner)) in dma_buf_export() [all …]
|
D | udmabuf.c | 201 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()
|
/drivers/gpu/drm/i915/gem/ |
D | i915_gem_dmabuf.c | 220 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()
|
/drivers/media/common/videobuf2/ |
D | videobuf2-vmalloc.c | 340 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()
|
D | videobuf2-dma-sg.c | 527 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()
|
D | videobuf2-dma-contig.c | 504 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()
|
/drivers/xen/ |
D | gntdev-dmabuf.c | 359 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()
|
/drivers/gpu/drm/vmwgfx/ |
D | ttm_object.c | 607 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()
|
/drivers/gpu/drm/armada/ |
D | armada_gem.c | 489 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()
|
/drivers/gpu/drm/tegra/ |
D | gem.c | 741 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()
|
/drivers/gpu/drm/ |
D | drm_prime.c | 243 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() 882 struct dma_buf_export_info exp_info = { in drm_gem_prime_export() local 892 return drm_gem_dmabuf_export(dev, &exp_info); in drm_gem_prime_export()
|
/drivers/accel/habanalabs/common/ |
D | memory.c | 1837 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()
|
/drivers/misc/ |
D | fastrpc.c | 1606 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in fastrpc_dmabuf_alloc() 1616 exp_info.ops = &fastrpc_dma_buf_ops; in fastrpc_dmabuf_alloc() 1617 exp_info.size = bp.size; in fastrpc_dmabuf_alloc() 1618 exp_info.flags = O_RDWR; in fastrpc_dmabuf_alloc() 1619 exp_info.priv = buf; in fastrpc_dmabuf_alloc() 1620 buf->dmabuf = dma_buf_export(&exp_info); in fastrpc_dmabuf_alloc()
|