/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/ |
D | virtgpu_prime.c | 71 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in virtgpu_gem_prime_export() 87 exp_info.ops = &virtgpu_dmabuf_ops.ops; in virtgpu_gem_prime_export() 88 exp_info.size = obj->size; in virtgpu_gem_prime_export() 89 exp_info.flags = flags; in virtgpu_gem_prime_export() 90 exp_info.priv = obj; in virtgpu_gem_prime_export() 91 exp_info.resv = obj->resv; in virtgpu_gem_prime_export() 93 buf = virtio_dma_buf_export(&exp_info); in virtgpu_gem_prime_export()
|
/kernel/linux/linux-5.10/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() 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()
|
/kernel/linux/linux-5.10/drivers/dma-buf/ |
D | dma-heap.c | 207 struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info) in dma_heap_add() argument 214 if (!exp_info->name || !strcmp(exp_info->name, "")) { in dma_heap_add() 219 if (!exp_info->ops || !exp_info->ops->allocate) { in dma_heap_add() 228 heap->name = exp_info->name; in dma_heap_add() 229 heap->ops = exp_info->ops; in dma_heap_add() 230 heap->priv = exp_info->priv; in dma_heap_add() 266 if (!strcmp(h->name, exp_info->name)) { in dma_heap_add() 269 exp_info->name); in dma_heap_add()
|
D | dma-buf.c | 524 struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info) in dma_buf_export() argument 527 struct dma_resv *resv = exp_info->resv; in dma_buf_export() 532 if (!exp_info->resv) in dma_buf_export() 538 if (WARN_ON(!exp_info->priv in dma_buf_export() 539 || !exp_info->ops in dma_buf_export() 540 || !exp_info->ops->map_dma_buf in dma_buf_export() 541 || !exp_info->ops->unmap_dma_buf in dma_buf_export() 542 || !exp_info->ops->release)) { in dma_buf_export() 546 if (WARN_ON(exp_info->ops->cache_sgt_mapping && in dma_buf_export() 547 (exp_info->ops->pin || exp_info->ops->unpin))) in dma_buf_export() [all …]
|
D | udmabuf.c | 167 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in udmabuf_create() 231 exp_info.ops = &udmabuf_ops; in udmabuf_create() 232 exp_info.size = ubuf->pagecount << PAGE_SHIFT; in udmabuf_create() 233 exp_info.priv = ubuf; in udmabuf_create() 234 exp_info.flags = O_RDWR; in udmabuf_create() 237 buf = dma_buf_export(&exp_info); in udmabuf_create()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/ |
D | mock_dmabuf.c | 95 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in mock_dmabuf() 111 exp_info.ops = &mock_dmabuf_ops; in mock_dmabuf() 112 exp_info.size = npages * PAGE_SIZE; in mock_dmabuf() 113 exp_info.flags = O_CLOEXEC; in mock_dmabuf() 114 exp_info.priv = mock; in mock_dmabuf() 116 dmabuf = dma_buf_export(&exp_info); in mock_dmabuf()
|
/kernel/linux/linux-5.10/drivers/dma-buf/heaps/ |
D | system_heap.c | 109 struct dma_heap_export_info exp_info; in system_heap_create() local 112 exp_info.name = "system"; in system_heap_create() 113 exp_info.ops = &system_heap_ops; in system_heap_create() 114 exp_info.priv = NULL; in system_heap_create() 116 sys_heap = dma_heap_add(&exp_info); in system_heap_create()
|
D | heap-helpers.c | 31 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in heap_helper_export_dmabuf() 33 exp_info.exp_name = dma_heap_get_name(buffer->heap); in heap_helper_export_dmabuf() 34 exp_info.ops = &heap_helper_ops; in heap_helper_export_dmabuf() 35 exp_info.size = buffer->size; in heap_helper_export_dmabuf() 36 exp_info.flags = fd_flags; in heap_helper_export_dmabuf() 37 exp_info.priv = buffer; in heap_helper_export_dmabuf() 39 return dma_buf_export(&exp_info); in heap_helper_export_dmabuf()
|
D | cma_heap.c | 143 struct dma_heap_export_info exp_info; in __add_cma_heap() local 150 exp_info.name = cma_get_name(cma); in __add_cma_heap() 151 exp_info.ops = &cma_heap_ops; in __add_cma_heap() 152 exp_info.priv = cma_heap; in __add_cma_heap() 154 cma_heap->heap = dma_heap_add(&exp_info); in __add_cma_heap()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/ |
D | omap_gem_dmabuf.c | 112 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in omap_gem_prime_export() 114 exp_info.ops = &omap_dmabuf_ops; in omap_gem_prime_export() 115 exp_info.size = obj->size; in omap_gem_prime_export() 116 exp_info.flags = flags; in omap_gem_prime_export() 117 exp_info.priv = obj; in omap_gem_prime_export() 119 return drm_gem_dmabuf_export(obj->dev, &exp_info); in omap_gem_prime_export()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
D | i915_gem_dmabuf.c | 173 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in i915_gem_prime_export() 175 exp_info.ops = &i915_dmabuf_ops; in i915_gem_prime_export() 176 exp_info.size = gem_obj->size; in i915_gem_prime_export() 177 exp_info.flags = flags; in i915_gem_prime_export() 178 exp_info.priv = gem_obj; in i915_gem_prime_export() 179 exp_info.resv = obj->base.resv; in i915_gem_prime_export() 187 return drm_gem_dmabuf_export(gem_obj->dev, &exp_info); in i915_gem_prime_export()
|
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/ |
D | videobuf2-vmalloc.c | 344 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in vb2_vmalloc_get_dmabuf() 346 exp_info.ops = &vb2_vmalloc_dmabuf_ops; in vb2_vmalloc_get_dmabuf() 347 exp_info.size = buf->size; in vb2_vmalloc_get_dmabuf() 348 exp_info.flags = flags; in vb2_vmalloc_get_dmabuf() 349 exp_info.priv = buf; in vb2_vmalloc_get_dmabuf() 354 dbuf = dma_buf_export(&exp_info); in vb2_vmalloc_get_dmabuf()
|
D | videobuf2-dma-contig.c | 398 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in vb2_dc_get_dmabuf() 400 exp_info.ops = &vb2_dc_dmabuf_ops; in vb2_dc_get_dmabuf() 401 exp_info.size = buf->size; in vb2_dc_get_dmabuf() 402 exp_info.flags = flags; in vb2_dc_get_dmabuf() 403 exp_info.priv = buf; in vb2_dc_get_dmabuf() 411 dbuf = dma_buf_export(&exp_info); in vb2_dc_get_dmabuf()
|
D | videobuf2-dma-sg.c | 512 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in vb2_dma_sg_get_dmabuf() 514 exp_info.ops = &vb2_dma_sg_dmabuf_ops; in vb2_dma_sg_get_dmabuf() 515 exp_info.size = buf->size; in vb2_dma_sg_get_dmabuf() 516 exp_info.flags = flags; in vb2_dma_sg_get_dmabuf() 517 exp_info.priv = buf; in vb2_dma_sg_get_dmabuf() 522 dbuf = dma_buf_export(&exp_info); in vb2_dma_sg_get_dmabuf()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/ |
D | gem.c | 663 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in tegra_gem_prime_export() 665 exp_info.exp_name = KBUILD_MODNAME; in tegra_gem_prime_export() 666 exp_info.owner = gem->dev->driver->fops->owner; in tegra_gem_prime_export() 667 exp_info.ops = &tegra_gem_prime_dmabuf_ops; in tegra_gem_prime_export() 668 exp_info.size = gem->size; in tegra_gem_prime_export() 669 exp_info.flags = flags; in tegra_gem_prime_export() 670 exp_info.priv = gem; in tegra_gem_prime_export() 672 return drm_gem_dmabuf_export(gem->dev, &exp_info); in tegra_gem_prime_export()
|
/kernel/linux/patches/linux-5.10/zhiyuan_patch/ |
D | kernel.patch | 149 @@ -583,10 +579,6 @@ struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info) 160 @@ -594,17 +586,8 @@ struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info) 449 struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info) 457 @@ -220,21 +312,19 @@ struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info) 463 - if (!strcmp(h->name, exp_info->name)) { 466 - exp_info->name); 469 + heap = dma_heap_find(exp_info->name); 472 + exp_info->name); 483 heap->name = exp_info->name; 484 heap->ops = exp_info->ops; [all …]
|
/kernel/linux/linux-5.10/drivers/xen/ |
D | gntdev-dmabuf.c | 364 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in dmabuf_exp_from_pages() 380 exp_info.exp_name = KBUILD_MODNAME; in dmabuf_exp_from_pages() 382 exp_info.owner = args->dev->driver->owner; in dmabuf_exp_from_pages() 384 exp_info.owner = THIS_MODULE; in dmabuf_exp_from_pages() 385 exp_info.ops = &dmabuf_exp_ops; in dmabuf_exp_from_pages() 386 exp_info.size = args->count << PAGE_SHIFT; in dmabuf_exp_from_pages() 387 exp_info.flags = O_RDWR; in dmabuf_exp_from_pages() 388 exp_info.priv = gntdev_dmabuf; in dmabuf_exp_from_pages() 390 gntdev_dmabuf->dmabuf = dma_buf_export(&exp_info); in dmabuf_exp_from_pages()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/armada/ |
D | armada_gem.c | 478 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in armada_gem_prime_export() 480 exp_info.ops = &armada_gem_prime_dmabuf_ops; in armada_gem_prime_export() 481 exp_info.size = obj->size; in armada_gem_prime_export() 482 exp_info.flags = O_RDWR; in armada_gem_prime_export() 483 exp_info.priv = obj; in armada_gem_prime_export() 485 return drm_gem_dmabuf_export(obj->dev, &exp_info); in armada_gem_prime_export()
|
/kernel/linux/linux-5.10/drivers/staging/android/ion/ |
D | ion.c | 347 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in ion_alloc() 381 exp_info.ops = &dma_buf_ops; in ion_alloc() 382 exp_info.size = buffer->size; in ion_alloc() 383 exp_info.flags = O_RDWR; in ion_alloc() 384 exp_info.priv = buffer; in ion_alloc() 386 dmabuf = dma_buf_export(&exp_info); in ion_alloc()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
D | ttm_object.c | 714 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in ttm_prime_handle_to_fd() 719 exp_info.ops = &tdev->ops; in ttm_prime_handle_to_fd() 720 exp_info.size = prime->size; in ttm_prime_handle_to_fd() 721 exp_info.flags = flags; in ttm_prime_handle_to_fd() 722 exp_info.priv = prime; in ttm_prime_handle_to_fd() 734 dma_buf = dma_buf_export(&exp_info); in ttm_prime_handle_to_fd()
|
/kernel/linux/linux-5.10/include/linux/ |
D | dma-heap.h | 66 struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info);
|
D | virtio_dma_buf.h | 33 (const struct dma_buf_export_info *exp_info);
|
D | dma-buf.h | 503 struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_prime.c | 245 struct dma_buf_export_info *exp_info) in drm_gem_dmabuf_export() argument 247 struct drm_gem_object *obj = exp_info->priv; in drm_gem_dmabuf_export() 250 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()
|
/kernel/linux/linux-5.10/include/drm/ |
D | drm_prime.h | 66 struct dma_buf_export_info *exp_info);
|