Home
last modified time | relevance | path

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

/drivers/gpu/drm/i915/gem/selftests/
Dmock_dmabuf.c112 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in mock_dmabuf()
128 exp_info.ops = &mock_dmabuf_ops; in mock_dmabuf()
129 exp_info.size = npages * PAGE_SIZE; in mock_dmabuf()
130 exp_info.flags = O_CLOEXEC; in mock_dmabuf()
131 exp_info.priv = mock; in mock_dmabuf()
133 dmabuf = dma_buf_export(&exp_info); in mock_dmabuf()
/drivers/tee/
Dtee_shm.c163 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in __tee_shm_alloc()
165 exp_info.ops = &tee_shm_dma_buf_ops; in __tee_shm_alloc()
166 exp_info.size = shm->size; in __tee_shm_alloc()
167 exp_info.flags = O_RDWR; in __tee_shm_alloc()
168 exp_info.priv = shm; in __tee_shm_alloc()
170 shm->dmabuf = dma_buf_export(&exp_info); in __tee_shm_alloc()
295 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in tee_shm_register()
297 exp_info.ops = &tee_shm_dma_buf_ops; in tee_shm_register()
298 exp_info.size = shm->size; in tee_shm_register()
299 exp_info.flags = O_RDWR; in tee_shm_register()
[all …]
/drivers/gpu/drm/omapdrm/
Domap_gem_dmabuf.c133 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in omap_gem_prime_export()
135 exp_info.ops = &omap_dmabuf_ops; in omap_gem_prime_export()
136 exp_info.size = obj->size; in omap_gem_prime_export()
137 exp_info.flags = flags; in omap_gem_prime_export()
138 exp_info.priv = obj; in omap_gem_prime_export()
140 return drm_gem_dmabuf_export(obj->dev, &exp_info); in omap_gem_prime_export()
/drivers/dma-buf/
Ddma-buf.c506 struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info) in dma_buf_export() argument
509 struct dma_resv *resv = exp_info->resv; in dma_buf_export()
514 if (!exp_info->resv) in dma_buf_export()
520 if (WARN_ON(!exp_info->priv in dma_buf_export()
521 || !exp_info->ops in dma_buf_export()
522 || !exp_info->ops->map_dma_buf in dma_buf_export()
523 || !exp_info->ops->unmap_dma_buf in dma_buf_export()
524 || !exp_info->ops->release)) { in dma_buf_export()
528 if (!try_module_get(exp_info->owner)) in dma_buf_export()
537 dmabuf->priv = exp_info->priv; in dma_buf_export()
[all …]
Dudmabuf.c125 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in udmabuf_create()
185 exp_info.ops = &udmabuf_ops; in udmabuf_create()
186 exp_info.size = ubuf->pagecount << PAGE_SHIFT; in udmabuf_create()
187 exp_info.priv = ubuf; in udmabuf_create()
188 exp_info.flags = O_RDWR; in udmabuf_create()
190 buf = dma_buf_export(&exp_info); in udmabuf_create()
/drivers/gpu/drm/i915/gem/
Di915_gem_dmabuf.c210 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in i915_gem_prime_export()
212 exp_info.ops = &i915_dmabuf_ops; in i915_gem_prime_export()
213 exp_info.size = gem_obj->size; in i915_gem_prime_export()
214 exp_info.flags = flags; in i915_gem_prime_export()
215 exp_info.priv = gem_obj; in i915_gem_prime_export()
216 exp_info.resv = obj->base.resv; in i915_gem_prime_export()
224 return drm_gem_dmabuf_export(gem_obj->dev, &exp_info); in i915_gem_prime_export()
/drivers/gpu/drm/udl/
Dudl_dmabuf.c177 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in udl_gem_prime_export()
179 exp_info.ops = &udl_dmabuf_ops; in udl_gem_prime_export()
180 exp_info.size = obj->size; in udl_gem_prime_export()
181 exp_info.flags = flags; in udl_gem_prime_export()
182 exp_info.priv = obj; in udl_gem_prime_export()
184 return drm_gem_dmabuf_export(obj->dev, &exp_info); in udl_gem_prime_export()
/drivers/media/common/videobuf2/
Dvideobuf2-vmalloc.c357 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in vb2_vmalloc_get_dmabuf()
359 exp_info.ops = &vb2_vmalloc_dmabuf_ops; in vb2_vmalloc_get_dmabuf()
360 exp_info.size = buf->size; in vb2_vmalloc_get_dmabuf()
361 exp_info.flags = flags; in vb2_vmalloc_get_dmabuf()
362 exp_info.priv = buf; in vb2_vmalloc_get_dmabuf()
367 dbuf = dma_buf_export(&exp_info); in vb2_vmalloc_get_dmabuf()
Dvideobuf2-dma-sg.c508 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in vb2_dma_sg_get_dmabuf()
510 exp_info.ops = &vb2_dma_sg_dmabuf_ops; in vb2_dma_sg_get_dmabuf()
511 exp_info.size = buf->size; in vb2_dma_sg_get_dmabuf()
512 exp_info.flags = flags; in vb2_dma_sg_get_dmabuf()
513 exp_info.priv = buf; in vb2_dma_sg_get_dmabuf()
518 dbuf = dma_buf_export(&exp_info); in vb2_dma_sg_get_dmabuf()
Dvideobuf2-dma-contig.c395 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in vb2_dc_get_dmabuf()
397 exp_info.ops = &vb2_dc_dmabuf_ops; in vb2_dc_get_dmabuf()
398 exp_info.size = buf->size; in vb2_dc_get_dmabuf()
399 exp_info.flags = flags; in vb2_dc_get_dmabuf()
400 exp_info.priv = buf; in vb2_dc_get_dmabuf()
408 dbuf = dma_buf_export(&exp_info); in vb2_dc_get_dmabuf()
/drivers/staging/android/ion/
Dion_dma_buf.c340 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in ion_dmabuf_alloc()
350 exp_info.ops = &dma_buf_ops; in ion_dmabuf_alloc()
351 exp_info.size = buffer->size; in ion_dmabuf_alloc()
352 exp_info.flags = O_RDWR; in ion_dmabuf_alloc()
353 exp_info.priv = buffer; in ion_dmabuf_alloc()
355 dmabuf = dma_buf_export(&exp_info); in ion_dmabuf_alloc()
/drivers/gpu/drm/tegra/
Dgem.c635 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in tegra_gem_prime_export()
637 exp_info.exp_name = KBUILD_MODNAME; in tegra_gem_prime_export()
638 exp_info.owner = gem->dev->driver->fops->owner; in tegra_gem_prime_export()
639 exp_info.ops = &tegra_gem_prime_dmabuf_ops; in tegra_gem_prime_export()
640 exp_info.size = gem->size; in tegra_gem_prime_export()
641 exp_info.flags = flags; in tegra_gem_prime_export()
642 exp_info.priv = gem; in tegra_gem_prime_export()
644 return drm_gem_dmabuf_export(gem->dev, &exp_info); in tegra_gem_prime_export()
/drivers/xen/
Dgntdev-dmabuf.c388 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in dmabuf_exp_from_pages()
404 exp_info.exp_name = KBUILD_MODNAME; in dmabuf_exp_from_pages()
406 exp_info.owner = args->dev->driver->owner; in dmabuf_exp_from_pages()
408 exp_info.owner = THIS_MODULE; in dmabuf_exp_from_pages()
409 exp_info.ops = &dmabuf_exp_ops; in dmabuf_exp_from_pages()
410 exp_info.size = args->count << PAGE_SHIFT; in dmabuf_exp_from_pages()
411 exp_info.flags = O_RDWR; in dmabuf_exp_from_pages()
412 exp_info.priv = gntdev_dmabuf; in dmabuf_exp_from_pages()
414 gntdev_dmabuf->dmabuf = dma_buf_export(&exp_info); in dmabuf_exp_from_pages()
/drivers/gpu/drm/armada/
Darmada_gem.c492 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in armada_gem_prime_export()
494 exp_info.ops = &armada_gem_prime_dmabuf_ops; in armada_gem_prime_export()
495 exp_info.size = obj->size; in armada_gem_prime_export()
496 exp_info.flags = O_RDWR; in armada_gem_prime_export()
497 exp_info.priv = obj; in armada_gem_prime_export()
499 return drm_gem_dmabuf_export(obj->dev, &exp_info); in armada_gem_prime_export()
/drivers/gpu/drm/vmwgfx/
Dttm_object.c714 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()
/drivers/gpu/drm/
Ddrm_prime.c241 struct dma_buf_export_info *exp_info) in drm_gem_dmabuf_export() argument
245 dma_buf = dma_buf_export(exp_info); in drm_gem_dmabuf_export()
250 drm_gem_object_get(exp_info->priv); in drm_gem_dmabuf_export()
829 struct dma_buf_export_info exp_info = { in drm_gem_prime_export() local
839 return drm_gem_dmabuf_export(dev, &exp_info); in drm_gem_prime_export()
/drivers/misc/
Dfastrpc.c1206 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in fastrpc_dmabuf_alloc()
1216 exp_info.ops = &fastrpc_dma_buf_ops; in fastrpc_dmabuf_alloc()
1217 exp_info.size = bp.size; in fastrpc_dmabuf_alloc()
1218 exp_info.flags = O_RDWR; in fastrpc_dmabuf_alloc()
1219 exp_info.priv = buf; in fastrpc_dmabuf_alloc()
1220 buf->dmabuf = dma_buf_export(&exp_info); in fastrpc_dmabuf_alloc()