/device/soc/rockchip/common/sdk_linux/include/linux/ |
H A D | dma-buf.h | 26 struct dma_buf; 30 * struct dma_buf_ops - operations possible on struct dma_buf 49 * &dma_buf_attachment.dev can access the provided &dma_buf. Exporters 71 int (*attach)(struct dma_buf *, struct dma_buf_attachment *); 82 void (*detach)(struct dma_buf *, struct dma_buf_attachment *); 119 * shared &dma_buf into device address space, and it is mandatory. It 160 * For static dma_buf handling this might also unpins the backing 172 * Called after the last dma_buf_put to release the &dma_buf, and 175 void (*release)(struct dma_buf *); 207 int (*begin_cpu_access)(struct dma_buf *, enu 392 struct dma_buf { global() struct [all...] |
H A D | dma-heap.h | 19 * @allocate: allocate dmabuf and return struct dma_buf ptr 25 struct dma_buf *(*allocate)(struct dma_heap *heap, unsigned long len, unsigned long fd_flags, 101 struct dma_buf *dma_heap_buffer_alloc(struct dma_heap *heap, size_t len, unsigned int fd_flags, 104 /** dma_heap_buffer_free - Free dma_buf allocated by dma_heap_buffer_alloc 105 * @dma_buf: dma_buf to free 109 void dma_heap_buffer_free(struct dma_buf *);
|
H A D | dma-buf-cache.h | 10 extern void dma_buf_cache_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attach); 15 extern struct dma_buf_attachment *dma_buf_cache_attach(struct dma_buf *dmabuf, struct device *dev);
|
H A D | memory_group_manager.h | 185 struct dma_buf *dma_buf; member
|
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/ |
H A D | drm_prime.c | 64 * On the export the &dma_buf holds a reference to the exported buffer object, 67 * and stores the exporting GEM object in the &dma_buf.priv field. This 68 * reference needs to be released when the final reference to the &dma_buf 70 * GEM-based drivers, the &dma_buf should be exported using 91 struct dma_buf *dma_buf; member 98 static int drm_prime_add_buf_handle(struct drm_prime_file_private *prime_fpriv, struct dma_buf *dma_buf, in drm_prime_add_buf_handle() argument 109 get_dma_buf(dma_buf); in drm_prime_add_buf_handle() 110 member->dma_buf in drm_prime_add_buf_handle() 169 drm_prime_lookup_buf_handle(struct drm_prime_file_private *prime_fpriv, struct dma_buf *dma_buf, uint32_t *handle) drm_prime_lookup_buf_handle() argument 192 drm_prime_remove_buf_handle_locked(struct drm_prime_file_private *prime_fpriv, struct dma_buf *dma_buf) drm_prime_remove_buf_handle_locked() argument 245 struct dma_buf *dma_buf; drm_gem_dmabuf_export() local 269 drm_gem_dmabuf_release(struct dma_buf *dma_buf) drm_gem_dmabuf_release() argument 297 struct dma_buf *dma_buf; drm_gem_prime_fd_to_handle() local 575 drm_gem_map_attach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach) drm_gem_map_attach() argument 592 drm_gem_map_detach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach) drm_gem_map_detach() argument 668 drm_gem_dmabuf_vmap(struct dma_buf *dma_buf) drm_gem_dmabuf_vmap() argument 690 drm_gem_dmabuf_vunmap(struct dma_buf *dma_buf, void *vaddr) drm_gem_dmabuf_vunmap() argument 770 drm_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma) drm_gem_dmabuf_mmap() argument 793 drm_gem_dmabuf_get_uuid(struct dma_buf *dma_buf, uuid_t *uuid) drm_gem_dmabuf_get_uuid() argument 930 drm_gem_prime_import_dev(struct drm_device *dev, struct dma_buf *dma_buf, struct device *attach_dev) drm_gem_prime_import_dev() argument 1001 drm_gem_prime_import(struct drm_device *dev, struct dma_buf *dma_buf) drm_gem_prime_import() argument 1061 struct dma_buf *dma_buf; drm_prime_gem_destroy() local [all...] |
/device/soc/rockchip/common/sdk_linux/include/drm/ |
H A D | drm_prime.h | 42 * This just contains the internal &struct dma_buf and handle caches for each 55 struct dma_buf; 65 struct dma_buf *drm_gem_dmabuf_export(struct drm_device *dev, struct dma_buf_export_info *exp_info); 66 void drm_gem_dmabuf_release(struct dma_buf *dma_buf); 73 int drm_gem_map_attach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach); 74 void drm_gem_map_detach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach); 77 void *drm_gem_dmabuf_vmap(struct dma_buf *dma_bu [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_trace_gpu_mem.c | 33 * @dma_buf: Reference to dma_buf been imported. 35 * @import_count: The number of times the dma_buf was imported. 38 struct dma_buf *dma_buf; member 47 * @dma_buf: Pointer to a dma buffer mapping. 48 * @tree: Pointer to root of rb_tree containing the dma_buf's mapped. 56 struct dma_buf *dma_buf, in kbase_delete_dma_buf_mapping() 68 if (dma_buf in kbase_delete_dma_buf_mapping() 55 kbase_delete_dma_buf_mapping(struct kbase_context *kctx, struct dma_buf *dma_buf, struct rb_root *tree) kbase_delete_dma_buf_mapping() argument 104 kbase_capture_dma_buf_mapping(struct kbase_context *kctx, struct dma_buf *dma_buf, struct rb_root *root) kbase_capture_dma_buf_mapping() argument [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_trace_gpu_mem.c | 34 * @dma_buf: Reference to dma_buf been imported. 36 * @import_count: The number of times the dma_buf was imported. 39 struct dma_buf *dma_buf; member 48 * @dma_buf: Pointer to a dma buffer mapping. 49 * @tree: Pointer to root of rb_tree containing the dma_buf's mapped. 56 static bool kbase_delete_dma_buf_mapping(struct kbase_context *kctx, struct dma_buf *dma_buf, struct rb_root *tree) in kbase_delete_dma_buf_mapping() argument 67 if (dma_buf in kbase_delete_dma_buf_mapping() 104 kbase_capture_dma_buf_mapping(struct kbase_context *kctx, struct dma_buf *dma_buf, struct rb_root *root) kbase_capture_dma_buf_mapping() argument [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/linux/ |
H A D | ump_ukk_ref_wrappers.c | 80 struct dma_buf *dmabuf) in get_ump_handle_from_dmabuf() 117 struct dma_buf *dma_buf; in ump_dmabuf_import_wrapper() local 135 dma_buf = dma_buf_get(ump_dmabuf.fd); in ump_dmabuf_import_wrapper() 136 if (IS_ERR(dma_buf)) in ump_dmabuf_import_wrapper() 137 return PTR_ERR(dma_buf); in ump_dmabuf_import_wrapper() 144 ump_handle = get_ump_handle_from_dmabuf(session_data, dma_buf); in ump_dmabuf_import_wrapper() 146 dma_buf_put(dma_buf); in ump_dmabuf_import_wrapper() 150 attach = dma_buf_attach(dma_buf, ump_global_mdev); in ump_dmabuf_import_wrapper() 225 dma_buf_detach(dma_buf, attac in ump_dmabuf_import_wrapper() [all...] |
H A D | ump_kernel_random_mapping.c | 192 struct dma_buf *dma_buf; in ump_random_mapping_put() local 198 dma_buf = attach->dmabuf; in ump_random_mapping_put() 200 dma_buf_put(dma_buf); in ump_random_mapping_put()
|
/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/ |
H A D | dma-buf.c | 47 int get_each_dmabuf(int (*callback)(const struct dma_buf *dmabuf, void *private), void *private) in get_each_dmabuf() 49 struct dma_buf *buf; in get_each_dmabuf() 69 struct dma_buf *dmabuf; in dmabuffs_dname() 85 struct dma_buf *dmabuf; in dma_buf_release() 119 struct dma_buf *dmabuf; in dma_buf_file_release() 162 struct dma_buf *dmabuf = vma->vm_file->private_data; in dma_buf_vma_open() 173 struct dma_buf *dmabuf = vma->vm_file->private_data; in dma_buf_vma_close() 184 static int dma_buf_do_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma) in dma_buf_do_mmap() 204 static int dma_buf_do_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma) in dma_buf_do_mmap() 212 struct dma_buf *dmabu in dma_buf_mmap_internal() [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/rga3/ |
H A D | rga_dma_buf.c | 775 struct dma_buf *dma_buf; in rga_dma_memory_check() local 777 dma_buf = rga_dma_buffer->dma_buf; in rga_dma_memory_check() 779 if (!IS_ERR_OR_NULL(dma_buf)) { in rga_dma_memory_check() 780 vaddr = dma_buf_vmap(dma_buf); in rga_dma_memory_check() 789 dma_buf_vunmap(dma_buf, vaddr); in rga_dma_memory_check() 798 struct dma_buf *dma_buf = NULL; in rga_dma_map_fd() local 803 dma_buf in rga_dma_map_fd() 856 rga_dma_map_buffer(struct dma_buf *dma_buf, struct rga_dma_buffer_t *rga_dma_buffer, enum dma_data_direction dir, struct device *rga_dev) rga_dma_map_buffer() argument 913 rga_dma_buf_get_channel_info(struct rga_img_info_t *channel_info, struct rga_dma_buffer_t **rga_dma_buffer, int mmu_flag, struct dma_buf **dma_buf, int core) rga_dma_buf_get_channel_info() argument 981 rga_dma_put_channel_info(struct rga_dma_buffer_t **rga_dma_buffer, struct dma_buf **dma_buf) rga_dma_put_channel_info() argument [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/heaps/ |
H A D | system_heap.c | 92 static int system_heap_attach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) in system_heap_attach() 123 static void system_heap_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) in system_heap_detach() 171 static int system_heap_dma_buf_begin_cpu_access(struct dma_buf *dmabuf, enum dma_data_direction direction) in system_heap_dma_buf_begin_cpu_access() 196 static int system_heap_dma_buf_end_cpu_access(struct dma_buf *dmabuf, enum dma_data_direction direction) in system_heap_dma_buf_end_cpu_access() 221 static int system_heap_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma) in system_heap_mmap() 283 static void *system_heap_vmap(struct dma_buf *dmabuf) in system_heap_vmap() 308 static void system_heap_vunmap(struct dma_buf *dmabuf, void *vaddr) in system_heap_vunmap() 374 static void system_heap_dma_buf_release(struct dma_buf *dmabuf) in system_heap_dma_buf_release() 416 static struct dma_buf *system_heap_do_allocate(struct dma_heap *heap, unsigned long len, unsigned long fd_flags, in system_heap_do_allocate() 423 struct dma_buf *dmabu in system_heap_do_allocate() [all...] |
H A D | cma_heap.c | 49 static int cma_heap_attach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) in cma_heap_attach() 80 static void cma_heap_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) in cma_heap_detach() 116 static int cma_heap_dma_buf_begin_cpu_access(struct dma_buf *dmabuf, enum dma_data_direction direction) in cma_heap_dma_buf_begin_cpu_access() 138 static int cma_heap_dma_buf_end_cpu_access(struct dma_buf *dmabuf, enum dma_data_direction direction) in cma_heap_dma_buf_end_cpu_access() 179 static int cma_heap_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma) in cma_heap_mmap() 205 static void *cma_heap_vmap(struct dma_buf *dmabuf) in cma_heap_vmap() 230 static void cma_heap_vunmap(struct dma_buf *dmabuf, void *vaddr) in cma_heap_vunmap() 242 static void cma_heap_dma_buf_release(struct dma_buf *dmabuf) in cma_heap_dma_buf_release() 272 static struct dma_buf *cma_heap_allocate(struct dma_heap *heap, unsigned long len, unsigned long fd_flags, in cma_heap_allocate() 282 struct dma_buf *dmabu in cma_heap_allocate() [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/rga3/include/ |
H A D | rga_drv.h | 143 struct dma_buf *dma_buf; member 162 * use dma_buf directly, 172 struct dma_buf *dma_buf; member 261 struct dma_buf *dma_buf_src0; 262 struct dma_buf *dma_buf_src1; 263 struct dma_buf *dma_buf_dst; 264 struct dma_buf *dma_buf_els;
|
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/ |
H A D | videobuf2-rdma-sg.c | 27 * memory model, and to the dma_buf sglist when used with the
316 static int vb2_dma_sg_dmabuf_ops_attach(struct dma_buf *dbuf, struct dma_buf_attachment *dbuf_attach)
in vb2_dma_sg_dmabuf_ops_attach() 354 static void vb2_dma_sg_dmabuf_ops_detach(struct dma_buf *dbuf, struct dma_buf_attachment *db_attach)
in vb2_dma_sg_dmabuf_ops_detach() 416 static void vb2_dma_sg_dmabuf_ops_release(struct dma_buf *dbuf)
in vb2_dma_sg_dmabuf_ops_release() 422 static int vb2_dma_sg_dmabuf_ops_begin_cpu_access(struct dma_buf *dbuf, enum dma_data_direction direction)
in vb2_dma_sg_dmabuf_ops_begin_cpu_access() 431 static int vb2_dma_sg_dmabuf_ops_end_cpu_access(struct dma_buf *dbuf, enum dma_data_direction direction)
in vb2_dma_sg_dmabuf_ops_end_cpu_access() 440 static void *vb2_dma_sg_dmabuf_ops_vmap(struct dma_buf *dbuf)
in vb2_dma_sg_dmabuf_ops_vmap() 447 static int vb2_dma_sg_dmabuf_ops_mmap(struct dma_buf *dbuf, struct vm_area_struct *vma)
in vb2_dma_sg_dmabuf_ops_mmap() 464 static struct dma_buf *vb2_dma_sg_get_dmabuf(void *buf_priv, unsigned long flags)
in vb2_dma_sg_get_dmabuf() 467 struct dma_buf *dbu in vb2_dma_sg_get_dmabuf() [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/ |
H A D | videobuf2-rdma-sg.c | 27 * memory model, and to the dma_buf sglist when used with the 306 static int vb2_dma_sg_dmabuf_ops_attach(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_attach() 344 static void vb2_dma_sg_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_detach() 406 static void vb2_dma_sg_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_dma_sg_dmabuf_ops_release() 413 vb2_dma_sg_dmabuf_ops_begin_cpu_access(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_begin_cpu_access() 424 vb2_dma_sg_dmabuf_ops_end_cpu_access(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_end_cpu_access() 434 static void *vb2_dma_sg_dmabuf_ops_vmap(struct dma_buf *dbuf) in vb2_dma_sg_dmabuf_ops_vmap() 441 static int vb2_dma_sg_dmabuf_ops_mmap(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_mmap() 459 static struct dma_buf *vb2_dma_sg_get_dmabuf(void *buf_priv, unsigned long flags) in vb2_dma_sg_get_dmabuf() 462 struct dma_buf *dbu in vb2_dma_sg_get_dmabuf() [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/ |
H A D | mali_memory_dma_buf.c | 52 mem = mem_backend->dma_buf.attachment; in mali_dma_buf_map() 188 mem = mem_bkend->dma_buf.attachment; in mali_dma_buf_map_job() 237 mem = mem_bkend->dma_buf.attachment; in mali_dma_buf_unmap_job() 250 struct dma_buf *buf; in mali_dma_buf_get_size() 278 struct dma_buf *buf; in mali_mem_bind_dma_buf() 312 mem_backend->dma_buf.attachment = dma_mem; in mali_mem_bind_dma_buf() 349 mem = mem_backend->dma_buf.attachment; in mali_mem_unbind_dma_buf()
|
/device/soc/rockchip/rk3568/hardware/mpp/mpp/legacy/ |
H A D | vpu_mem_legacy.c | 242 VPUMemLinear_t *dma_buf = NULL; in VPUMallocLinearFromRender() local 247 dma_buf = (VPUMemLinear_t *) \ in VPUMallocLinearFromRender() 250 if (dma_buf != NULL) { in VPUMallocLinearFromRender() 251 if (dma_buf->size < size) { in VPUMallocLinearFromRender() 252 (*(mRKMppApi.Hdimpp_osal_free))(__FUNCTION__, dma_buf); in VPUMallocLinearFromRender() 255 if (memcpy_s(p, sizeof(VPUMemLinear_t), dma_buf, sizeof(VPUMemLinear_t)) != EOK) { in VPUMallocLinearFromRender() 258 (*(mRKMppApi.Hdimpp_osal_free))(__FUNCTION__, dma_buf); in VPUMallocLinearFromRender()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/ |
H A D | mali_memory_dma_buf.c | 51 mem = mem_backend->dma_buf.attachment; in mali_dma_buf_map() 186 mem = mem_bkend->dma_buf.attachment; in mali_dma_buf_map_job() 235 mem = mem_bkend->dma_buf.attachment; in mali_dma_buf_unmap_job() 248 struct dma_buf *buf; in mali_dma_buf_get_size() 278 struct dma_buf *buf; in mali_mem_bind_dma_buf() 312 mem_backend->dma_buf.attachment = dma_mem; in mali_mem_bind_dma_buf() 350 mem = mem_backend->dma_buf.attachment; in mali_mem_unbind_dma_buf()
|
/device/soc/rockchip/rk3588/kernel/include/linux/ |
H A D | dma-buf-cache.h | 10 extern void dma_buf_cache_detach(struct dma_buf *dmabuf, 18 dma_buf_cache_attach(struct dma_buf *dmabuf, struct device *dev);
|
H A D | memory_group_manager.h | 194 struct dma_buf *dma_buf; member
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hifb/src/init/linux/ |
H A D | hifb_init.c | 393 static hi_void __init_memblock hifb_memblock_release(struct dma_buf *fb_dma_buf) in hifb_memblock_release() 398 static hi_void *hifb_memblock_do_kmap(struct dma_buf *fb_dma_buf, hi_ulong pgoffset, bool atomic) in hifb_memblock_do_kmap() 426 static hi_void *hifb_memblock_kmap(struct dma_buf *fb_dma_buf, hi_ulong pgoffset) in hifb_memblock_kmap() 431 static hi_void hifb_memblock_kunmap(struct dma_buf *fb_dma_buf, hi_ulong pgoffset, hi_void *vir_addr) in hifb_memblock_kunmap() 445 static hi_s32 hifb_memblock_mmap(struct dma_buf *fb_dma_buf, struct vm_area_struct *vma_area) in hifb_memblock_mmap() 489 struct dma_buf *hifb_memblock_export(phys_addr_t mem_base, size_t mem_size, hi_s32 flags) in hifb_memblock_export() 492 struct dma_buf *fb_dma_buf = HI_NULL; in hifb_memblock_export() 511 struct dma_buf *hifb_memblock_export(phys_addr_t mem_base, size_t mem_size, hi_s32 flags) in hifb_memblock_export() 514 struct dma_buf *fb_dma_buf = HI_NULL; in hifb_memblock_export()
|
/device/soc/rockchip/common/sdk_linux/include/trace/hooks/ |
H A D | cam_heap_hooks.h | 23 struct dma_buf;
28 pgoff_t pagecount, unsigned long fd_flags, struct dma_buf *dmabuf,
|
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/ |
H A D | dhd_msgbuf.c | 408 dhd_dma_buf_t dma_buf; /* DMA-able buffer: pa, va, len, dmah, secdma */ member 428 #define DHD_RING_BGN_VA(ring) ((ring)->dma_buf.va) 593 static int dhd_dma_buf_audit(dhd_pub_t *dhd, dhd_dma_buf_t *dma_buf); 594 static void dhd_dma_buf_reset(dhd_pub_t *dhd, dhd_dma_buf_t *dma_buf); 630 dhd_dma_buf_t *dma_buf, uint32 bufsz); 874 " tot<%lu> dma_buf va<%p> msg<%p> curr_rd<%d> rd<%d> wr<%d>\n", in dhd_prot_d2h_sync_livelock() 877 ring->dma_buf.va, msg, ring->curr_rd, ring->rd, ring->wr)); in dhd_prot_d2h_sync_livelock() 1369 dhd_dma_buf_audit(dhd_pub_t *dhd, dhd_dma_buf_t *dma_buf) in dhd_dma_buf_audit() argument 1372 ASSERT(dma_buf); in dhd_dma_buf_audit() 1373 pa_lowaddr = PHYSADDRLO(dma_buf in dhd_dma_buf_audit() 1396 dhd_dma_buf_alloc(dhd_pub_t *dhd, dhd_dma_buf_t *dma_buf, uint32 buf_len) dhd_dma_buf_alloc() argument 1436 dhd_dma_buf_reset(dhd_pub_t *dhd, dhd_dma_buf_t *dma_buf) dhd_dma_buf_reset() argument 1453 dhd_dma_buf_free(dhd_pub_t *dhd, dhd_dma_buf_t *dma_buf) dhd_dma_buf_free() argument 1480 dhd_dma_buf_t *dma_buf; dhd_dma_buf_init() local 8160 dhd_dma_buf_t *dma_buf = NULL; dhd_prot_ring_attach() local 9015 dhd_prot_dma_indx_alloc(dhd_pub_t *dhd, uint8 type, dhd_dma_buf_t *dma_buf, uint32 bufsz) dhd_prot_dma_indx_alloc() argument 9033 dhd_dma_buf_t *dma_buf; dhd_prot_dma_indx_init() local [all...] |