Home
last modified time | relevance | path

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

/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/heaps/
Dcma_heap.c277 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in cma_heap_allocate()
343 exp_info.exp_name = dma_heap_get_name(heap); in cma_heap_allocate()
344 exp_info.ops = &cma_heap_buf_ops; in cma_heap_allocate()
345 exp_info.size = buffer->len; in cma_heap_allocate()
346 exp_info.flags = fd_flags; in cma_heap_allocate()
347 exp_info.priv = buffer; in cma_heap_allocate()
348 dmabuf = dma_buf_export(&exp_info); in cma_heap_allocate()
373 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 …]
Dsystem_heap.c420 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in system_heap_do_allocate()
477 exp_info.exp_name = dma_heap_get_name(heap); in system_heap_do_allocate()
478 exp_info.ops = &system_heap_buf_ops; in system_heap_do_allocate()
479 exp_info.size = buffer->len; in system_heap_do_allocate()
480 exp_info.flags = fd_flags; in system_heap_do_allocate()
481 exp_info.priv = buffer; in system_heap_do_allocate()
482 dmabuf = dma_buf_export(&exp_info); in system_heap_do_allocate()
561 struct dma_heap_export_info exp_info; in system_heap_create() local
578 exp_info.name = "system"; in system_heap_create()
579 exp_info.ops = &system_heap_ops; in system_heap_create()
[all …]
/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/
Ddma-heap.c300 struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info) in dma_heap_add() argument
306 if (!exp_info->name || !strcmp(exp_info->name, "")) { in dma_heap_add()
311 if (!exp_info->ops || !exp_info->ops->allocate) { in dma_heap_add()
317 heap = dma_heap_find(exp_info->name); in dma_heap_add()
319 pr_err("dma_heap: Already registered heap named %s\n", exp_info->name); in dma_heap_add()
330 heap->name = exp_info->name; in dma_heap_add()
331 heap->ops = exp_info->ops; in dma_heap_add()
332 heap->priv = exp_info->priv; in dma_heap_add()
Ddma-buf.c620 struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info) in dma_buf_export() argument
623 struct dma_resv *resv = exp_info->resv; in dma_buf_export()
628 if (!exp_info->resv) { in dma_buf_export()
635 …if (WARN_ON(!exp_info->priv || !exp_info->ops || !exp_info->ops->map_dma_buf || !exp_info->ops->un… in dma_buf_export()
636 !exp_info->ops->release)) { in dma_buf_export()
640 if (WARN_ON(exp_info->ops->cache_sgt_mapping && (exp_info->ops->pin || exp_info->ops->unpin))) { in dma_buf_export()
644 if (WARN_ON(!exp_info->ops->pin != !exp_info->ops->unpin)) { in dma_buf_export()
648 if (!try_module_get(exp_info->owner)) { in dma_buf_export()
658 dmabuf->priv = exp_info->priv; in dma_buf_export()
659 dmabuf->ops = exp_info->ops; in dma_buf_export()
[all …]
/device/board/isoftstone/yangfan/kernel/src/driv/media/isp/
Drkisp_tb_helper.c136 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in shm_alloc()
150 exp_info.ops = &shm_dmabuf_ops; in shm_alloc()
151 exp_info.size = npages * PAGE_SIZE; in shm_alloc()
152 exp_info.flags = O_RDWR; in shm_alloc()
153 exp_info.priv = data; in shm_alloc()
155 dmabuf = dma_buf_export(&exp_info); in shm_alloc()
Dvideobuf2-rdma-sg.c463 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in vb2_dma_sg_get_dmabuf()
465 exp_info.ops = &vb2_dma_sg_dmabuf_ops; in vb2_dma_sg_get_dmabuf()
466 exp_info.size = buf->size; in vb2_dma_sg_get_dmabuf()
467 exp_info.flags = flags; in vb2_dma_sg_get_dmabuf()
468 exp_info.priv = buf; in vb2_dma_sg_get_dmabuf()
473 dbuf = dma_buf_export(&exp_info); in vb2_dma_sg_get_dmabuf()
/device/board/unionman/unionpi_tiger/kernel/drivers/isp/drivers/v4l2_dev/app/v4l2_interface/
Disp-vb2-cmalloc.c387 DEFINE_DMA_BUF_EXPORT_INFO(exp_info);
389 exp_info.ops = &vb2_cmalloc_dmabuf_ops;
390 exp_info.size = buf->size;
391 exp_info.flags = flags;
392 exp_info.priv = buf;
397 dbuf = dma_buf_export(&exp_info);
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/common/codec_mm/
Dsecmem.c193 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in get_dmabuf()
197 exp_info.ops = &secmem_dmabuf_ops; in get_dmabuf()
198 exp_info.size = info->size; in get_dmabuf()
199 exp_info.flags = flags; in get_dmabuf()
200 exp_info.priv = (void *)info; in get_dmabuf()
201 dbuf = dma_buf_export(&exp_info); in get_dmabuf()
/device/soc/amlogic/a311d/soc/amlogic/media/common/codec_mm/
Dsecmem.c178 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in get_dmabuf()
181 exp_info.ops = &secmem_dmabuf_ops; in get_dmabuf()
182 exp_info.size = info->size; in get_dmabuf()
183 exp_info.flags = flags; in get_dmabuf()
184 exp_info.priv = (void *)info; in get_dmabuf()
185 dbuf = dma_buf_export(&exp_info); in get_dmabuf()
/device/soc/allwinner/t507/patches/kernel/linux-5.10/
Dkernel.patch234 struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info)
242 @@ -221,21 +312,19 @@ struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info)
248 - if (!strcmp(h->name, exp_info->name)) {
251 - exp_info->name);
254 + heap = dma_heap_find(exp_info->name);
257 + exp_info->name);
268 heap->name = exp_info->name;
269 heap->ops = exp_info->ops;
270 heap->priv = exp_info->priv;
271 @@ -260,16 +349,20 @@ struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info)
[all …]
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/
Dvideobuf2-rdma-sg.c463 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in vb2_dma_sg_get_dmabuf()
465 exp_info.ops = &vb2_dma_sg_dmabuf_ops; in vb2_dma_sg_get_dmabuf()
466 exp_info.size = buf->size; in vb2_dma_sg_get_dmabuf()
467 exp_info.flags = flags; in vb2_dma_sg_get_dmabuf()
468 exp_info.priv = buf; in vb2_dma_sg_get_dmabuf()
473 dbuf = dma_buf_export(&exp_info); in vb2_dma_sg_get_dmabuf()
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/
Dvideobuf2-rdma-sg.c468 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in vb2_dma_sg_get_dmabuf()
470 exp_info.ops = &vb2_dma_sg_dmabuf_ops; in vb2_dma_sg_get_dmabuf()
471 exp_info.size = buf->size; in vb2_dma_sg_get_dmabuf()
472 exp_info.flags = flags; in vb2_dma_sg_get_dmabuf()
473 exp_info.priv = buf; in vb2_dma_sg_get_dmabuf()
479 dbuf = dma_buf_export(&exp_info); in vb2_dma_sg_get_dmabuf()
/device/soc/amlogic/a311d/soc/amlogic/ge2d/
Dge2d_dmabuf.c340 DEFINE_DMA_BUF_EXPORT_INFO(exp_info);
342 exp_info.ops = &ge2d_dmabuf_ops;
343 exp_info.size = buf->size;
344 exp_info.flags = flags;
345 exp_info.priv = buf;
350 dbuf = dma_buf_export(&exp_info);
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/
Ddrm_prime.c242 struct dma_buf *drm_gem_dmabuf_export(struct drm_device *dev, struct dma_buf_export_info *exp_info) in drm_gem_dmabuf_export() argument
244 struct drm_gem_object *obj = exp_info->priv; in drm_gem_dmabuf_export()
247 dma_buf = dma_buf_export(exp_info); in drm_gem_dmabuf_export()
902 struct dma_buf_export_info exp_info = { in drm_gem_prime_export() local
912 return drm_gem_dmabuf_export(dev, &exp_info); in drm_gem_prime_export()
/device/soc/rockchip/common/sdk_linux/include/linux/
Ddma-heap.h75 struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info);
Ddma-buf.h595 struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info);
/device/soc/rockchip/common/sdk_linux/include/drm/
Ddrm_prime.h65 struct dma_buf *drm_gem_dmabuf_export(struct drm_device *dev, struct dma_buf_export_info *exp_info);
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/
Ddev_fb.c1071 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in sunxi_share_dma_buf()
1108 exp_info.ops = &sunxi_dma_buf_ops; in sunxi_share_dma_buf()
1109 exp_info.size = info->fix.smem_len; in sunxi_share_dma_buf()
1110 exp_info.flags = O_RDWR; in sunxi_share_dma_buf()
1111 exp_info.priv = s_info; in sunxi_share_dma_buf()
1113 dmabuf = dma_buf_export(&exp_info); in sunxi_share_dma_buf()
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/
Drockchip_drm_drv.c1583 struct dma_buf_export_info exp_info = { in rockchip_drm_gem_prime_export() local
1593 return drm_gem_dmabuf_export(dev, &exp_info); in rockchip_drm_gem_prime_export()
/device/board/hihope/dayu210/kernel/kernel_patch/linux-5.10/dayu210_patch/
Dkernel.patch4794 @@ -595,7 +691,6 @@ struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info)
5265 struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info)
5273 @@ -221,10 +309,20 @@ struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info)
5278 + heap = dma_heap_find(exp_info->name);
5281 + exp_info->name);
5291 heap->name = exp_info->name;
5292 heap->ops = exp_info->ops;
5293 heap->priv = exp_info->priv;
5294 @@ -249,37 +347,27 @@ struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info)
5319 - if (!strcmp(h->name, exp_info->name)) {
[all …]