Home
last modified time | relevance | path

Searched refs:dma_buf (Results 1 – 25 of 255) sorted by relevance

1234567891011

/OK3568_Linux_fs/kernel/include/linux/
H A Ddma-buf.h27 struct dma_buf;
72 int (*attach)(struct dma_buf *, struct dma_buf_attachment *);
83 void (*detach)(struct dma_buf *, struct dma_buf_attachment *);
179 void (*release)(struct dma_buf *);
211 int (*begin_cpu_access)(struct dma_buf *, enum dma_data_direction);
244 int (*begin_cpu_access_partial)(struct dma_buf *dmabuf,
265 int (*end_cpu_access)(struct dma_buf *, enum dma_data_direction);
285 int (*end_cpu_access_partial)(struct dma_buf *dmabuf,
324 int (*mmap)(struct dma_buf *, struct vm_area_struct *vma);
326 void *(*vmap)(struct dma_buf *);
[all …]
H A Dvirtio_dma_buf.h24 int (*device_attach)(struct dma_buf *dma_buf,
26 int (*get_uuid)(struct dma_buf *dma_buf, uuid_t *uuid);
29 int virtio_dma_buf_attach(struct dma_buf *dma_buf,
32 struct dma_buf *virtio_dma_buf_export
34 bool is_virtio_dma_buf(struct dma_buf *dma_buf);
35 int virtio_dma_buf_get_uuid(struct dma_buf *dma_buf, uuid_t *uuid);
H A Dsram_heap.h17 struct dma_buf *sram_heap_alloc_dma_buf(size_t size);
20 void sram_heap_free_dma_buf(struct dma_buf *dmabuf);
21 void *sram_heap_get_vaddr(struct dma_buf *dmabuf);
22 phys_addr_t sram_heap_get_paddr(struct dma_buf *dmabuf);
25 static inline struct dma_buf *sram_heap_alloc_dma_buf(size_t size) in sram_heap_alloc_dma_buf()
36 static inline void sram_heap_free_dma_buf(struct dma_buf *dmabuf) {} in sram_heap_free_dma_buf()
38 static inline void *sram_heap_get_vaddr(struct dma_buf *dmabuf) in sram_heap_get_vaddr()
43 static inline phys_addr_t sram_heap_get_paddr(struct dma_buf *dmabuf) in sram_heap_get_paddr()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/
H A Ddrm_prime.c91 struct dma_buf *dma_buf; member
99 struct dma_buf *dma_buf, uint32_t handle) in drm_prime_add_buf_handle() argument
108 get_dma_buf(dma_buf); in drm_prime_add_buf_handle()
109 member->dma_buf = dma_buf; in drm_prime_add_buf_handle()
119 if (dma_buf > pos->dma_buf) in drm_prime_add_buf_handle()
145 static struct dma_buf *drm_prime_lookup_buf_by_handle(struct drm_prime_file_private *prime_fpriv, in drm_prime_lookup_buf_by_handle()
156 return member->dma_buf; in drm_prime_lookup_buf_by_handle()
167 struct dma_buf *dma_buf, in drm_prime_lookup_buf_handle() argument
177 if (member->dma_buf == dma_buf) { in drm_prime_lookup_buf_handle()
180 } else if (member->dma_buf < dma_buf) { in drm_prime_lookup_buf_handle()
[all …]
/OK3568_Linux_fs/kernel/include/drm/
H A Ddrm_prime.h55 struct dma_buf;
65 struct dma_buf *drm_gem_dmabuf_export(struct drm_device *dev,
67 void drm_gem_dmabuf_release(struct dma_buf *dma_buf);
76 int drm_gem_map_attach(struct dma_buf *dma_buf,
78 void drm_gem_map_detach(struct dma_buf *dma_buf,
85 void *drm_gem_dmabuf_vmap(struct dma_buf *dma_buf);
86 void drm_gem_dmabuf_vunmap(struct dma_buf *dma_buf, void *vaddr);
89 int drm_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma);
93 struct dma_buf *drm_gem_prime_export(struct drm_gem_object *obj,
100 struct dma_buf *dma_buf,
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/
H A Dmali_kbase_trace_gpu_mem.c38 struct dma_buf *dma_buf; member
58 struct dma_buf *dma_buf, in kbase_delete_dma_buf_mapping() argument
70 if (dma_buf == buf_node->dma_buf) { in kbase_delete_dma_buf_mapping()
84 if (dma_buf < buf_node->dma_buf) in kbase_delete_dma_buf_mapping()
109 struct dma_buf *dma_buf, in kbase_capture_dma_buf_mapping() argument
121 if (dma_buf == buf_node->dma_buf) { in kbase_capture_dma_buf_mapping()
126 if (dma_buf < buf_node->dma_buf) in kbase_capture_dma_buf_mapping()
143 new_buf_node->dma_buf = dma_buf; in kbase_capture_dma_buf_mapping()
151 if (dma_buf < new_node->dma_buf) in kbase_capture_dma_buf_mapping()
175 kctx, alloc->imported.umm.dma_buf, &kbdev->dma_buf_root); in kbase_remove_dma_buf_usage()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/
H A Di915_gem_dmabuf.c15 static struct drm_i915_gem_object *dma_buf_to_obj(struct dma_buf *buf) in dma_buf_to_obj()
80 static void *i915_gem_dmabuf_vmap(struct dma_buf *dma_buf) in i915_gem_dmabuf_vmap() argument
82 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); in i915_gem_dmabuf_vmap()
87 static void i915_gem_dmabuf_vunmap(struct dma_buf *dma_buf, void *vaddr) in i915_gem_dmabuf_vunmap() argument
89 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); in i915_gem_dmabuf_vunmap()
95 static int i915_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma) in i915_gem_dmabuf_mmap() argument
97 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); in i915_gem_dmabuf_mmap()
116 static int i915_gem_begin_cpu_access(struct dma_buf *dma_buf, enum dma_data_direction direction) in i915_gem_begin_cpu_access() argument
118 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); in i915_gem_begin_cpu_access()
138 static int i915_gem_end_cpu_access(struct dma_buf *dma_buf, enum dma_data_direction direction) in i915_gem_end_cpu_access() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/virtio/
H A Dvirtio_dma_buf.c20 struct dma_buf *virtio_dma_buf_export in virtio_dma_buf_export()
43 int virtio_dma_buf_attach(struct dma_buf *dma_buf, in virtio_dma_buf_attach() argument
48 container_of(dma_buf->ops, in virtio_dma_buf_attach()
52 ret = ops->device_attach(dma_buf, attach); in virtio_dma_buf_attach()
64 bool is_virtio_dma_buf(struct dma_buf *dma_buf) in is_virtio_dma_buf() argument
69 return dma_buf->ops->attach == &virtio_dma_buf_attach; in is_virtio_dma_buf()
80 int virtio_dma_buf_get_uuid(struct dma_buf *dma_buf, in virtio_dma_buf_get_uuid() argument
84 container_of(dma_buf->ops, in virtio_dma_buf_get_uuid()
87 if (!is_virtio_dma_buf(dma_buf)) in virtio_dma_buf_get_uuid()
90 return ops->get_uuid(dma_buf, uuid); in virtio_dma_buf_get_uuid()
/OK3568_Linux_fs/kernel/drivers/video/rockchip/iep/
H A Diep_iommu_drm.c28 struct dma_buf *dma_buf; member
67 struct dma_buf *dma_buf = NULL; in iep_drm_get_buffer_fd_no_lock() local
69 dma_buf = dma_buf_get(fd); in iep_drm_get_buffer_fd_no_lock()
73 if (drm_buffer->dma_buf == dma_buf) { in iep_drm_get_buffer_fd_no_lock()
74 dma_buf_put(dma_buf); in iep_drm_get_buffer_fd_no_lock()
79 dma_buf_put(dma_buf); in iep_drm_get_buffer_fd_no_lock()
170 dma_buf_detach(drm_buffer->dma_buf, drm_buffer->attach); in iep_drm_clear_map()
171 dma_buf_put(drm_buffer->dma_buf); in iep_drm_clear_map()
192 drm_buffer->dma_buf); in vcdoec_drm_dump_info()
214 dma_buf_put(drm_buffer->dma_buf); in iep_drm_free()
[all …]
/OK3568_Linux_fs/kernel/drivers/base/arm/dma_buf_test_exporter/
H A Ddma-buf-test-exporter.c78 static int dma_buf_te_attach(struct dma_buf *buf, struct device *dev, struct dma_buf_attachment *at… in dma_buf_te_attach()
80 static int dma_buf_te_attach(struct dma_buf *buf, struct dma_buf_attachment *attachment) in dma_buf_te_attach()
105 static void dma_buf_te_detach(struct dma_buf *buf, struct dma_buf_attachment *attachment) in dma_buf_te_detach()
205 static void dma_buf_te_release(struct dma_buf *buf) in dma_buf_te_release()
231 static int dma_buf_te_sync(struct dma_buf *dmabuf, in dma_buf_te_sync()
263 static int dma_buf_te_begin_cpu_access(struct dma_buf *dmabuf, in dma_buf_te_begin_cpu_access()
269 static int dma_buf_te_end_cpu_access(struct dma_buf *dmabuf, in dma_buf_te_end_cpu_access()
277 struct dma_buf *dma_buf; in dma_buf_te_mmap_open() local
280 dma_buf = vma->vm_private_data; in dma_buf_te_mmap_open()
281 alloc = dma_buf->priv; in dma_buf_te_mmap_open()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_dma_buf.c176 static int amdgpu_dma_buf_attach(struct dma_buf *dmabuf, in amdgpu_dma_buf_attach()
219 static void amdgpu_dma_buf_detach(struct dma_buf *dmabuf, in amdgpu_dma_buf_detach()
289 struct dma_buf *dma_buf = attach->dmabuf; in amdgpu_dma_buf_map() local
290 struct drm_gem_object *obj = dma_buf->priv; in amdgpu_dma_buf_map()
360 struct dma_buf *dma_buf = attach->dmabuf; in amdgpu_dma_buf_unmap() local
361 struct drm_gem_object *obj = dma_buf->priv; in amdgpu_dma_buf_unmap()
386 static int amdgpu_dma_buf_begin_cpu_access(struct dma_buf *dma_buf, in amdgpu_dma_buf_begin_cpu_access() argument
389 struct amdgpu_bo *bo = gem_to_amdgpu_bo(dma_buf->priv); in amdgpu_dma_buf_begin_cpu_access()
438 struct dma_buf *amdgpu_gem_prime_export(struct drm_gem_object *gobj, in amdgpu_gem_prime_export()
442 struct dma_buf *buf; in amdgpu_gem_prime_export()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/vmwgfx/
H A Dttm_object.c95 void (*dmabuf_release)(struct dma_buf *dma_buf);
131 static void ttm_prime_dmabuf_release(struct dma_buf *dma_buf);
547 tdev->dma_buf_size = ttm_round_pot(sizeof(struct dma_buf)) + in ttm_object_device_init()
582 static bool __must_check get_dma_buf_unless_doomed(struct dma_buf *dmabuf) in get_dma_buf_unless_doomed()
604 BUG_ON(prime->dma_buf != NULL); in ttm_prime_refcount_release()
620 static void ttm_prime_dmabuf_release(struct dma_buf *dma_buf) in ttm_prime_dmabuf_release() argument
623 (struct ttm_prime_object *) dma_buf->priv; in ttm_prime_dmabuf_release()
628 tdev->dmabuf_release(dma_buf); in ttm_prime_dmabuf_release()
630 if (prime->dma_buf == dma_buf) in ttm_prime_dmabuf_release()
631 prime->dma_buf = NULL; in ttm_prime_dmabuf_release()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/selftests/
H A Dmock_dmabuf.c53 static void mock_dmabuf_release(struct dma_buf *dma_buf) in mock_dmabuf_release() argument
55 struct mock_dmabuf *mock = to_mock(dma_buf); in mock_dmabuf_release()
64 static void *mock_dmabuf_vmap(struct dma_buf *dma_buf) in mock_dmabuf_vmap() argument
66 struct mock_dmabuf *mock = to_mock(dma_buf); in mock_dmabuf_vmap()
71 static void mock_dmabuf_vunmap(struct dma_buf *dma_buf, void *vaddr) in mock_dmabuf_vunmap() argument
73 struct mock_dmabuf *mock = to_mock(dma_buf); in mock_dmabuf_vunmap()
78 static int mock_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma) in mock_dmabuf_mmap() argument
92 static struct dma_buf *mock_dmabuf(int npages) in mock_dmabuf()
96 struct dma_buf *dmabuf; in mock_dmabuf()
/OK3568_Linux_fs/kernel/drivers/video/rockchip/rga3/
H A Drga_dma_buf.c400 struct dma_buf *dma_buf; in rga_dma_memory_check() local
402 dma_buf = rga_dma_buffer->dma_buf; in rga_dma_memory_check()
404 if (!IS_ERR_OR_NULL(dma_buf)) { in rga_dma_memory_check()
406 ret = dma_buf_vmap(dma_buf, &map); in rga_dma_memory_check()
409 vaddr = dma_buf_vmap(dma_buf); in rga_dma_memory_check()
419 dma_buf_vunmap(dma_buf, &map); in rga_dma_memory_check()
421 dma_buf_vunmap(dma_buf, vaddr); in rga_dma_memory_check()
428 int rga_dma_map_buf(struct dma_buf *dma_buf, struct rga_dma_buffer *rga_dma_buffer, in rga_dma_map_buf() argument
436 if (dma_buf != NULL) { in rga_dma_map_buf()
437 get_dma_buf(dma_buf); in rga_dma_map_buf()
[all …]
/OK3568_Linux_fs/kernel/drivers/scsi/lpfc/
H A Dlpfc_mem.c541 struct hbq_dmabuf *dma_buf; in lpfc_sli4_rb_alloc() local
543 dma_buf = kzalloc(sizeof(struct hbq_dmabuf), GFP_KERNEL); in lpfc_sli4_rb_alloc()
544 if (!dma_buf) in lpfc_sli4_rb_alloc()
547 dma_buf->hbuf.virt = dma_pool_alloc(phba->lpfc_hrb_pool, GFP_KERNEL, in lpfc_sli4_rb_alloc()
548 &dma_buf->hbuf.phys); in lpfc_sli4_rb_alloc()
549 if (!dma_buf->hbuf.virt) { in lpfc_sli4_rb_alloc()
550 kfree(dma_buf); in lpfc_sli4_rb_alloc()
553 dma_buf->dbuf.virt = dma_pool_alloc(phba->lpfc_drb_pool, GFP_KERNEL, in lpfc_sli4_rb_alloc()
554 &dma_buf->dbuf.phys); in lpfc_sli4_rb_alloc()
555 if (!dma_buf->dbuf.virt) { in lpfc_sli4_rb_alloc()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/omapdrm/
H A Domap_gem_dmabuf.c65 static int omap_gem_dmabuf_begin_cpu_access(struct dma_buf *buffer, in omap_gem_dmabuf_begin_cpu_access()
80 static int omap_gem_dmabuf_end_cpu_access(struct dma_buf *buffer, in omap_gem_dmabuf_end_cpu_access()
88 static int omap_gem_dmabuf_mmap(struct dma_buf *buffer, in omap_gem_dmabuf_mmap()
110 struct dma_buf *omap_gem_prime_export(struct drm_gem_object *obj, int flags) in omap_gem_prime_export()
127 struct dma_buf *dma_buf) in omap_gem_prime_import() argument
134 if (dma_buf->ops == &omap_dmabuf_ops) { in omap_gem_prime_import()
135 obj = dma_buf->priv; in omap_gem_prime_import()
146 attach = dma_buf_attach(dma_buf, dev->dev); in omap_gem_prime_import()
150 get_dma_buf(dma_buf); in omap_gem_prime_import()
158 obj = omap_gem_new_dmabuf(dev, dma_buf->size, sgt); in omap_gem_prime_import()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp/
H A Drkisp_tb_helper.c67 static void shm_release(struct dma_buf *dma_buf) in shm_release() argument
69 struct shm_data *data = dma_buf->priv; in shm_release()
74 static void *shm_vmap(struct dma_buf *dma_buf) in shm_vmap() argument
76 struct shm_data *data = dma_buf->priv; in shm_vmap()
81 static void shm_vunmap(struct dma_buf *dma_buf, void *vaddr) in shm_vunmap() argument
83 struct shm_data *data = dma_buf->priv; in shm_vunmap()
88 static int shm_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma) in shm_mmap() argument
90 struct shm_data *data = dma_buf->priv; in shm_mmap()
103 static int shm_begin_cpu_access(struct dma_buf *dmabuf, enum dma_data_direction dir) in shm_begin_cpu_access()
115 static int shm_end_cpu_access(struct dma_buf *dmabuf, enum dma_data_direction dir) in shm_end_cpu_access()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/ump/linux/
H A Dump_ukk_ref_wrappers.c80 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, attach); in ump_dmabuf_import_wrapper()
227 dma_buf_put(dma_buf); in ump_dmabuf_import_wrapper()
/OK3568_Linux_fs/kernel/drivers/dma-buf/
H A Ddma-buf.c47 int get_each_dmabuf(int (*callback)(const struct dma_buf *dmabuf, in get_each_dmabuf()
50 struct dma_buf *buf; in get_each_dmabuf()
105 struct dma_buf *dmabuf; in dmabuffs_dname()
121 struct dma_buf *dmabuf; in dma_buf_release()
162 struct dma_buf *dmabuf; in dma_buf_file_release()
205 struct dma_buf *dmabuf; in dma_buf_mmap_internal()
226 struct dma_buf *dmabuf; in dma_buf_llseek()
285 struct dma_buf *dmabuf; in dma_buf_poll()
402 static long _dma_buf_set_name(struct dma_buf *dmabuf, const char *name) in _dma_buf_set_name()
425 long dma_buf_set_name(struct dma_buf *dmabuf, const char *name) in dma_buf_set_name()
[all …]
H A Ddma-buf-sysfs-stats.c24 ssize_t (*show)(struct dma_buf *dmabuf,
35 struct dma_buf *dmabuf; in dma_buf_stats_attribute_show()
51 static ssize_t exporter_name_show(struct dma_buf *dmabuf, in exporter_name_show()
58 static ssize_t size_show(struct dma_buf *dmabuf, in size_show()
90 void dma_buf_stats_teardown(struct dma_buf *dmabuf) in dma_buf_stats_teardown()
146 struct dma_buf *dmabuf;
159 struct dma_buf *dmabuf = create_entry->dmabuf; in sysfs_add_workfn()
193 int dma_buf_stats_setup(struct dma_buf *dmabuf) in dma_buf_stats_setup()
/OK3568_Linux_fs/kernel/drivers/scsi/csiostor/
H A Dcsio_scsi.c206 struct csio_dma_buf *dma_buf; in csio_scsi_init_cmd_wr() local
222 dma_buf = &req->dma_buf; in csio_scsi_init_cmd_wr()
225 wr->rsp_dmalen = cpu_to_be32(dma_buf->len); in csio_scsi_init_cmd_wr()
226 wr->rsp_dmaaddr = cpu_to_be64(dma_buf->paddr); in csio_scsi_init_cmd_wr()
298 struct csio_dma_buf *dma_buf; in csio_scsi_init_ultptx_dsgl() local
329 dma_buf = (struct csio_dma_buf *)tmp; in csio_scsi_init_ultptx_dsgl()
331 sgl->addr0 = cpu_to_be64(dma_buf->paddr); in csio_scsi_init_ultptx_dsgl()
333 min(xfer_len, dma_buf->len)); in csio_scsi_init_ultptx_dsgl()
336 sge_pair->addr[1] = cpu_to_be64(dma_buf->paddr); in csio_scsi_init_ultptx_dsgl()
338 min(xfer_len, dma_buf->len)); in csio_scsi_init_ultptx_dsgl()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/cif/
H A Dcommon.c223 static void *rkcif_shm_vmap(struct dma_buf *dma_buf) in rkcif_shm_vmap() argument
225 struct rkcif_shm_data *data = dma_buf->priv; in rkcif_shm_vmap()
232 static void rkcif_shm_vunmap(struct dma_buf *dma_buf, void *vaddr) in rkcif_shm_vunmap() argument
234 struct rkcif_shm_data *data = dma_buf->priv; in rkcif_shm_vunmap()
241 static int rkcif_shm_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma) in rkcif_shm_mmap() argument
243 struct rkcif_shm_data *data = dma_buf->priv; in rkcif_shm_mmap()
256 static int rkcif_shm_begin_cpu_access(struct dma_buf *dmabuf, enum dma_data_direction dir) in rkcif_shm_begin_cpu_access()
268 static int rkcif_shm_end_cpu_access(struct dma_buf *dmabuf, enum dma_data_direction dir) in rkcif_shm_end_cpu_access()
280 static void rkcif_shm_release(struct dma_buf *dma_buf) in rkcif_shm_release() argument
282 struct rkcif_shm_data *data = dma_buf->priv; in rkcif_shm_release()
[all …]
/OK3568_Linux_fs/kernel/drivers/i2c/busses/
H A Di2c-qcom-geni.c89 void *dma_buf; member
358 if (gi2c->dma_buf) { in geni_i2c_rx_msg_cleanup()
362 i2c_put_dma_safe_msg_buf(gi2c->dma_buf, cur, !gi2c->err); in geni_i2c_rx_msg_cleanup()
370 if (gi2c->dma_buf) { in geni_i2c_tx_msg_cleanup()
374 i2c_put_dma_safe_msg_buf(gi2c->dma_buf, cur, !gi2c->err); in geni_i2c_tx_msg_cleanup()
383 void *dma_buf = NULL; in geni_i2c_rx_one_msg() local
389 dma_buf = i2c_get_dma_safe_msg_buf(msg, 32); in geni_i2c_rx_one_msg()
391 if (dma_buf) in geni_i2c_rx_one_msg()
399 if (dma_buf && geni_se_rx_dma_prep(se, dma_buf, len, &rx_dma)) { in geni_i2c_rx_one_msg()
401 i2c_put_dma_safe_msg_buf(dma_buf, msg, false); in geni_i2c_rx_one_msg()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/android/ion/
H A Dion_dma_buf.c48 static int ion_dma_buf_attach(struct dma_buf *dmabuf, in ion_dma_buf_attach()
83 static void ion_dma_buf_detatch(struct dma_buf *dmabuf, in ion_dma_buf_detatch()
150 static void ion_dma_buf_release(struct dma_buf *dmabuf) in ion_dma_buf_release()
161 static int ion_dma_buf_begin_cpu_access(struct dma_buf *dmabuf, in ion_dma_buf_begin_cpu_access()
188 ion_dma_buf_begin_cpu_access_partial(struct dma_buf *dmabuf, in ion_dma_buf_begin_cpu_access_partial()
206 static int ion_dma_buf_end_cpu_access(struct dma_buf *dmabuf, in ion_dma_buf_end_cpu_access()
232 static int ion_dma_buf_end_cpu_access_partial(struct dma_buf *dmabuf, in ion_dma_buf_end_cpu_access_partial()
251 static int ion_dma_buf_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma) in ion_dma_buf_mmap()
276 static void *ion_dma_buf_vmap(struct dma_buf *dmabuf) in ion_dma_buf_vmap()
292 static void ion_dma_buf_vunmap(struct dma_buf *dmabuf, void *vaddr) in ion_dma_buf_vunmap()
[all …]
/OK3568_Linux_fs/kernel/drivers/dma-buf/heaps/
H A Dsram_heap.c55 static int dma_heap_attach(struct dma_buf *dmabuf, in dma_heap_attach()
103 static void dma_heap_detatch(struct dma_buf *dmabuf, in dma_heap_detatch()
139 static void dma_heap_dma_buf_release(struct dma_buf *dmabuf) in dma_heap_dma_buf_release()
147 static int dma_heap_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma) in dma_heap_mmap()
162 static void *dma_heap_vmap(struct dma_buf *dmabuf) in dma_heap_vmap()
179 static struct dma_buf *sram_dma_heap_allocate(struct dma_heap *heap, in sram_dma_heap_allocate()
188 struct dma_buf *dmabuf; in sram_dma_heap_allocate()
268 struct dma_buf *sram_heap_alloc_dma_buf(size_t size) in sram_heap_alloc_dma_buf()
274 struct dma_buf *dmabuf; in sram_heap_alloc_dma_buf()
381 void sram_heap_free_dma_buf(struct dma_buf *dmabuf) in sram_heap_free_dma_buf()
[all …]

1234567891011