Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/drivers/dma-buf/heaps/
H A Dsram_heap.c187 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in sram_dma_heap_allocate()
212 exp_info.ops = &sram_dma_heap_buf_ops; in sram_dma_heap_allocate()
213 exp_info.size = buffer->len; in sram_dma_heap_allocate()
214 exp_info.flags = fd_flags; in sram_dma_heap_allocate()
215 exp_info.priv = buffer; in sram_dma_heap_allocate()
216 dmabuf = dma_buf_export(&exp_info); in sram_dma_heap_allocate()
242 struct dma_heap_export_info exp_info; in sram_dma_heap_export() local
251 exp_info.name = "sram_dma_heap"; in sram_dma_heap_export()
252 exp_info.ops = &sram_dma_heap_ops; in sram_dma_heap_export()
253 exp_info.priv = sram_dma_heap; in sram_dma_heap_export()
[all …]
H A Drk_system_heap.c519 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in system_heap_do_allocate()
607 exp_info.exp_name = dma_heap_get_name(heap); in system_heap_do_allocate()
608 exp_info.ops = &system_heap_buf_ops; in system_heap_do_allocate()
609 exp_info.size = buffer->len; in system_heap_do_allocate()
610 exp_info.flags = fd_flags; in system_heap_do_allocate()
611 exp_info.priv = buffer; in system_heap_do_allocate()
612 dmabuf = dma_buf_export(&exp_info); in system_heap_do_allocate()
729 struct dma_heap_export_info exp_info; in system_heap_create() local
783 exp_info.name = "system"; in system_heap_create()
784 exp_info.ops = &system_heap_ops; in system_heap_create()
[all …]
H A Dcma_heap.c280 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in cma_heap_allocate()
341 exp_info.exp_name = dma_heap_get_name(heap); in cma_heap_allocate()
342 exp_info.ops = &cma_heap_buf_ops; in cma_heap_allocate()
343 exp_info.size = buffer->len; in cma_heap_allocate()
344 exp_info.flags = fd_flags; in cma_heap_allocate()
345 exp_info.priv = buffer; in cma_heap_allocate()
346 dmabuf = dma_buf_export(&exp_info); in cma_heap_allocate()
371 struct dma_heap_export_info exp_info; in __add_cma_heap() local
378 exp_info.name = cma_get_name(cma); in __add_cma_heap()
379 exp_info.ops = &cma_heap_ops; in __add_cma_heap()
[all …]
H A Drk_cma_heap.c354 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in cma_heap_do_allocate()
418 exp_info.exp_name = dma_heap_get_name(heap); in cma_heap_do_allocate()
419 exp_info.ops = &cma_heap_buf_ops; in cma_heap_do_allocate()
420 exp_info.size = buffer->len; in cma_heap_do_allocate()
421 exp_info.flags = fd_flags; in cma_heap_do_allocate()
422 exp_info.priv = buffer; in cma_heap_do_allocate()
423 dmabuf = dma_buf_export(&exp_info); in cma_heap_do_allocate()
547 struct dma_heap_export_info exp_info; in __add_cma_heap() local
555 exp_info.name = "cma"; in __add_cma_heap()
556 exp_info.ops = &cma_heap_ops; in __add_cma_heap()
[all …]
H A Dsystem_heap.c404 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in system_heap_do_allocate()
456 exp_info.exp_name = dma_heap_get_name(heap); in system_heap_do_allocate()
457 exp_info.ops = &system_heap_buf_ops; in system_heap_do_allocate()
458 exp_info.size = buffer->len; in system_heap_do_allocate()
459 exp_info.flags = fd_flags; in system_heap_do_allocate()
460 exp_info.priv = buffer; in system_heap_do_allocate()
461 dmabuf = dma_buf_export(&exp_info); in system_heap_do_allocate()
574 struct dma_heap_export_info exp_info; in system_heap_create() local
590 exp_info.name = "system"; in system_heap_create()
591 exp_info.ops = &system_heap_ops; in system_heap_create()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/virtio/
H A Dvirtgpu_prime.c71 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()
/OK3568_Linux_fs/kernel/drivers/virtio/
H A 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()
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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/selftests/
H A Dmock_dmabuf.c95 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/omapdrm/
H A Domap_gem_dmabuf.c112 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()
/OK3568_Linux_fs/kernel/drivers/dma-buf/
H A Ddma-heap.c315 struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info) in dma_heap_add() argument
321 if (!exp_info->name || !strcmp(exp_info->name, "")) { in dma_heap_add()
326 if (!exp_info->ops || !exp_info->ops->allocate) { in dma_heap_add()
336 heap->name = exp_info->name; in dma_heap_add()
337 heap->ops = exp_info->ops; in dma_heap_add()
338 heap->priv = exp_info->priv; in dma_heap_add()
377 if (!strcmp(h->name, exp_info->name)) { in dma_heap_add()
380 exp_info->name); in dma_heap_add()
H A Ddma-buf.c669 struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info) in dma_buf_export() argument
672 struct dma_resv *resv = exp_info->resv; in dma_buf_export()
677 if (!exp_info->resv) in dma_buf_export()
683 if (WARN_ON(!exp_info->priv in dma_buf_export()
684 || !exp_info->ops in dma_buf_export()
685 || !exp_info->ops->map_dma_buf in dma_buf_export()
686 || !exp_info->ops->unmap_dma_buf in dma_buf_export()
687 || !exp_info->ops->release)) { in dma_buf_export()
691 if (WARN_ON(exp_info->ops->cache_sgt_mapping && in dma_buf_export()
692 (exp_info->ops->pin || exp_info->ops->unpin))) in dma_buf_export()
[all …]
H A Dudmabuf.c167 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/
H A Di915_gem_dmabuf.c173 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()
/OK3568_Linux_fs/kernel/drivers/dma-buf/rk_heaps/
H A Drk-cma-heap.c430 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in rk_cma_heap_allocate()
492 exp_info.exp_name = rk_dma_heap_get_name(heap); in rk_cma_heap_allocate()
493 exp_info.ops = &rk_cma_heap_buf_ops; in rk_cma_heap_allocate()
494 exp_info.size = buffer->len; in rk_cma_heap_allocate()
495 exp_info.flags = fd_flags; in rk_cma_heap_allocate()
496 exp_info.priv = buffer; in rk_cma_heap_allocate()
497 dmabuf = dma_buf_export(&exp_info); in rk_cma_heap_allocate()
581 struct rk_dma_heap_export_info exp_info; in __rk_add_cma_heap() local
588 exp_info.name = cma_get_name(cma); in __rk_add_cma_heap()
589 exp_info.ops = &rk_cma_heap_ops; in __rk_add_cma_heap()
[all …]
H A Drk-dma-heap.c389 struct rk_dma_heap *rk_dma_heap_add(const struct rk_dma_heap_export_info *exp_info) in rk_dma_heap_add() argument
395 if (!exp_info->name || !strcmp(exp_info->name, "")) { in rk_dma_heap_add()
400 if (!exp_info->ops || !exp_info->ops->allocate) { in rk_dma_heap_add()
406 heap = rk_dma_heap_find(exp_info->name); in rk_dma_heap_add()
409 exp_info->name); in rk_dma_heap_add()
419 heap->name = exp_info->name; in rk_dma_heap_add()
420 heap->ops = exp_info->ops; in rk_dma_heap_add()
421 heap->priv = exp_info->priv; in rk_dma_heap_add()
422 heap->support_cma = exp_info->support_cma; in rk_dma_heap_add()
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp/
H A Drkisp_tb_helper.c140 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in shm_alloc()
154 exp_info.ops = &shm_dmabuf_ops; in shm_alloc()
155 exp_info.size = npages * PAGE_SIZE; in shm_alloc()
156 exp_info.flags = O_RDWR; in shm_alloc()
157 exp_info.priv = data; in shm_alloc()
159 dmabuf = dma_buf_export(&exp_info); in shm_alloc()
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/hwi/
H A DSensorHw.cpp905 RKAiqAecExpInfo_t* exp_info = &exp_param->data()->aecExpInfo; in split_locked() local
940 exp_info->line_length_pixels; in split_locked()
942 exp_info->frame_length_lines; in split_locked()
944 exp_info->pixel_clock_freq_mhz; in split_locked()
949 exp_info->LinearExp.exp_sensor_params.coarse_integration_time; in split_locked()
951 exp_info->LinearExp.exp_sensor_params.fine_integration_time; in split_locked()
954 exp_info->LinearExp.exp_sensor_params.analog_gain_code_global; in split_locked()
956 exp_info->LinearExp.exp_sensor_params.digital_gain_global; in split_locked()
959 exp_info->LinearExp.exp_real_params.dcg_mode; in split_locked()
967 exp_info->HdrExp[0].exp_sensor_params.coarse_integration_time; in split_locked()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/android/ion/
H A Dion_dma_buf.c339 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in ion_dmabuf_alloc()
349 exp_info.ops = &dma_buf_ops; in ion_dmabuf_alloc()
350 exp_info.size = buffer->size; in ion_dmabuf_alloc()
351 exp_info.flags = O_RDWR; in ion_dmabuf_alloc()
352 exp_info.priv = buffer; in ion_dmabuf_alloc()
354 dmabuf = dma_buf_export(&exp_info); in ion_dmabuf_alloc()
/OK3568_Linux_fs/kernel/drivers/media/common/videobuf2/
H A Dvideobuf2-vmalloc.c344 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()
H A Dvideobuf2-dma-sg.c512 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()
H A Dvideobuf2-dma-contig.c398 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/tegra/
H A Dgem.c663 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()
/OK3568_Linux_fs/kernel/drivers/xen/
H A Dgntdev-dmabuf.c364 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()
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/cif/
H A Dcommon.c304 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); in rkcif_shm_alloc()
318 exp_info.ops = &rkcif_shm_dmabuf_ops; in rkcif_shm_alloc()
319 exp_info.size = npages * PAGE_SIZE; in rkcif_shm_alloc()
320 exp_info.flags = O_RDWR; in rkcif_shm_alloc()
321 exp_info.priv = data; in rkcif_shm_alloc()
323 dmabuf = dma_buf_export(&exp_info); in rkcif_shm_alloc()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/armada/
H A Darmada_gem.c478 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()

12