Home
last modified time | relevance | path

Searched refs:dmabuf (Results 1 – 25 of 207) sorted by relevance

123456789

/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() argument
105 struct dma_buf *dmabuf; in dmabuffs_dname() local
109 dmabuf = dentry->d_fsdata; in dmabuffs_dname()
110 spin_lock(&dmabuf->name_lock); in dmabuffs_dname()
111 if (dmabuf->name) in dmabuffs_dname()
112 ret = strlcpy(name, dmabuf->name, DMA_BUF_NAME_LEN); in dmabuffs_dname()
113 spin_unlock(&dmabuf->name_lock); in dmabuffs_dname()
121 struct dma_buf *dmabuf; in dma_buf_release() local
126 dmabuf = dentry->d_fsdata; in dma_buf_release()
127 if (unlikely(!dmabuf)) in dma_buf_release()
[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() local
39 dmabuf = sysfs_entry->dmabuf; in dma_buf_stats_attribute_show()
41 if (!dmabuf || !attribute->show) in dma_buf_stats_attribute_show()
44 return attribute->show(dmabuf, attribute, buf); in dma_buf_stats_attribute_show()
51 static ssize_t exporter_name_show(struct dma_buf *dmabuf, in exporter_name_show() argument
55 return sysfs_emit(buf, "%s\n", dmabuf->exp_name); in exporter_name_show()
58 static ssize_t size_show(struct dma_buf *dmabuf, in size_show() argument
62 return sysfs_emit(buf, "%zu\n", dmabuf->size); in size_show()
90 void dma_buf_stats_teardown(struct dma_buf *dmabuf) in dma_buf_stats_teardown() argument
[all …]
H A Ddma-buf-cache.c24 static int dma_buf_cache_destructor(struct dma_buf *dmabuf, void *dtor_data) in dma_buf_cache_destructor() argument
29 mutex_lock(&dmabuf->cache_lock); in dma_buf_cache_destructor()
31 data = dmabuf->dtor_data; in dma_buf_cache_destructor()
39 dma_buf_detach(dmabuf, cache->attach); in dma_buf_cache_destructor()
44 mutex_unlock(&dmabuf->cache_lock); in dma_buf_cache_destructor()
55 struct dma_buf *dmabuf = attach->dmabuf; in dma_buf_cache_get_cache() local
57 if (dmabuf->dtor != dma_buf_cache_destructor) in dma_buf_cache_get_cache()
60 data = dmabuf->dtor_data; in dma_buf_cache_get_cache()
70 void dma_buf_cache_detach(struct dma_buf *dmabuf, in dma_buf_cache_detach() argument
75 mutex_lock(&dmabuf->cache_lock); in dma_buf_cache_detach()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/selftests/
H A Di915_gem_dmabuf.c17 struct dma_buf *dmabuf; in igt_dmabuf_export() local
23 dmabuf = i915_gem_prime_export(&obj->base, 0); in igt_dmabuf_export()
25 if (IS_ERR(dmabuf)) { in igt_dmabuf_export()
27 (int)PTR_ERR(dmabuf)); in igt_dmabuf_export()
28 return PTR_ERR(dmabuf); in igt_dmabuf_export()
31 dma_buf_put(dmabuf); in igt_dmabuf_export()
40 struct dma_buf *dmabuf; in igt_dmabuf_import_self() local
47 dmabuf = i915_gem_prime_export(&obj->base, 0); in igt_dmabuf_import_self()
48 if (IS_ERR(dmabuf)) { in igt_dmabuf_import_self()
50 (int)PTR_ERR(dmabuf)); in igt_dmabuf_import_self()
[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() argument
53 struct ion_buffer *buffer = dmabuf->priv; in ion_dma_buf_attach()
57 return heap->buf_ops.attach(dmabuf, attachment); in ion_dma_buf_attach()
83 static void ion_dma_buf_detatch(struct dma_buf *dmabuf, in ion_dma_buf_detatch() argument
87 struct ion_buffer *buffer = dmabuf->priv; in ion_dma_buf_detatch()
91 return heap->buf_ops.detach(dmabuf, attachment); in ion_dma_buf_detatch()
104 struct ion_buffer *buffer = attachment->dmabuf->priv; in ion_map_dma_buf()
132 struct ion_buffer *buffer = attachment->dmabuf->priv; in ion_unmap_dma_buf()
150 static void ion_dma_buf_release(struct dma_buf *dmabuf) in ion_dma_buf_release() argument
152 struct ion_buffer *buffer = dmabuf->priv; in ion_dma_buf_release()
[all …]
/OK3568_Linux_fs/kernel/drivers/soc/rockchip/
H A Drk_dmabuf_procfs.c17 static void rk_dmabuf_dump_empty_sgt(struct dma_buf *dmabuf, void *private) in rk_dmabuf_dump_empty_sgt() argument
26 a = dma_buf_attach(dmabuf, dmabuf_dev); in rk_dmabuf_dump_empty_sgt()
32 dma_buf_detach(dmabuf, a); in rk_dmabuf_dump_empty_sgt()
43 dmabuf, dmabuf->name, in rk_dmabuf_dump_empty_sgt()
44 dmabuf->exp_name, K(dmabuf->size)); in rk_dmabuf_dump_empty_sgt()
51 dma_buf_detach(dmabuf, a); in rk_dmabuf_dump_empty_sgt()
54 static void rk_dmabuf_dump_sgt(const struct dma_buf *dmabuf, void *private) in rk_dmabuf_dump_sgt() argument
62 list_for_each_entry_safe(a, t, &dmabuf->attachments, node) { in rk_dmabuf_dump_sgt()
72 dmabuf, dmabuf->name, in rk_dmabuf_dump_sgt()
73 dmabuf->exp_name, K(dmabuf->size)); in rk_dmabuf_dump_sgt()
[all …]
H A Drockchip_decompress_user.c76 struct dma_buf **dmabuf) in get_dmafd_sgtbl() argument
84 *dmabuf = NULL; in get_dmafd_sgtbl()
87 *dmabuf = dma_buf_get(dma_fd); in get_dmafd_sgtbl()
88 if (IS_ERR(*dmabuf)) { in get_dmafd_sgtbl()
89 ret = PTR_ERR(*dmabuf); in get_dmafd_sgtbl()
93 *dma_attach = dma_buf_attach(*dmabuf, dev); in get_dmafd_sgtbl()
111 dma_buf_detach(*dmabuf, *dma_attach); in get_dmafd_sgtbl()
113 if (*dmabuf) in get_dmafd_sgtbl()
114 dma_buf_put(*dmabuf); in get_dmafd_sgtbl()
117 *dmabuf = NULL; in get_dmafd_sgtbl()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Ddma-buf.h244 int (*begin_cpu_access_partial)(struct dma_buf *dmabuf,
285 int (*end_cpu_access_partial)(struct dma_buf *dmabuf,
342 int (*get_uuid)(struct dma_buf *dmabuf, uuid_t *uuid);
356 int (*get_flags)(struct dma_buf *dmabuf, unsigned long *flags);
373 typedef int (*dma_buf_destructor)(struct dma_buf *dmabuf, void *dtor_data);
439 struct dma_buf *dmabuf; member
512 struct dma_buf *dmabuf; member
573 static inline void get_dma_buf(struct dma_buf *dmabuf) in get_dma_buf() argument
575 get_file(dmabuf->file); in get_dma_buf()
586 static inline bool dma_buf_is_dynamic(struct dma_buf *dmabuf) in dma_buf_is_dynamic() argument
[all …]
/OK3568_Linux_fs/kernel/samples/vfio-mdev/
H A Dmbochs.c789 struct mbochs_dmabuf *dmabuf = vma->vm_private_data; in mbochs_dmabuf_vm_fault() local
791 if (WARN_ON(vmf->pgoff >= dmabuf->pagecount)) in mbochs_dmabuf_vm_fault()
794 vmf->page = dmabuf->pages[vmf->pgoff]; in mbochs_dmabuf_vm_fault()
805 struct mbochs_dmabuf *dmabuf = buf->priv; in mbochs_mmap_dmabuf() local
806 struct device *dev = mdev_dev(dmabuf->mdev_state->mdev); in mbochs_mmap_dmabuf()
808 dev_dbg(dev, "%s: %d\n", __func__, dmabuf->id); in mbochs_mmap_dmabuf()
814 vma->vm_private_data = dmabuf; in mbochs_mmap_dmabuf()
818 static void mbochs_print_dmabuf(struct mbochs_dmabuf *dmabuf, in mbochs_print_dmabuf() argument
821 struct device *dev = mdev_dev(dmabuf->mdev_state->mdev); in mbochs_print_dmabuf()
822 u32 fourcc = dmabuf->mode.drm_format; in mbochs_print_dmabuf()
[all …]
/OK3568_Linux_fs/kernel/drivers/hid/
H A Dhid-elan.c80 unsigned char *dmabuf, unsigned char param) in elan_get_device_param() argument
84 dmabuf[0] = ELAN_FEATURE_REPORT; in elan_get_device_param()
85 dmabuf[1] = 0x05; in elan_get_device_param()
86 dmabuf[2] = 0x03; in elan_get_device_param()
87 dmabuf[3] = param; in elan_get_device_param()
88 dmabuf[4] = 0x01; in elan_get_device_param()
90 ret = hid_hw_raw_request(hdev, ELAN_FEATURE_REPORT, dmabuf, in elan_get_device_param()
98 ret = hid_hw_raw_request(hdev, ELAN_FEATURE_REPORT, dmabuf, in elan_get_device_param()
121 unsigned char *dmabuf; in elan_get_device_params() local
124 dmabuf = kmalloc(ELAN_FEATURE_SIZE, GFP_KERNEL); in elan_get_device_params()
[all …]
/OK3568_Linux_fs/kernel/drivers/dma-buf/rk_heaps/
H A Drk-cma-heap.c58 static int rk_cma_heap_attach(struct dma_buf *dmabuf, in rk_cma_heap_attach() argument
61 struct rk_cma_heap_buffer *buffer = dmabuf->priv; in rk_cma_heap_attach()
95 static void rk_cma_heap_detach(struct dma_buf *dmabuf, in rk_cma_heap_detach() argument
98 struct rk_cma_heap_buffer *buffer = dmabuf->priv; in rk_cma_heap_detach()
138 rk_cma_heap_dma_buf_begin_cpu_access_partial(struct dma_buf *dmabuf, in rk_cma_heap_dma_buf_begin_cpu_access_partial() argument
143 struct rk_cma_heap_buffer *buffer = dmabuf->priv; in rk_cma_heap_dma_buf_begin_cpu_access_partial()
168 rk_cma_heap_dma_buf_end_cpu_access_partial(struct dma_buf *dmabuf, in rk_cma_heap_dma_buf_end_cpu_access_partial() argument
173 struct rk_cma_heap_buffer *buffer = dmabuf->priv; in rk_cma_heap_dma_buf_end_cpu_access_partial()
197 static int rk_cma_heap_dma_buf_begin_cpu_access(struct dma_buf *dmabuf, in rk_cma_heap_dma_buf_begin_cpu_access() argument
200 struct rk_cma_heap_buffer *buffer = dmabuf->priv; in rk_cma_heap_dma_buf_begin_cpu_access()
[all …]
/OK3568_Linux_fs/kernel/drivers/rknpu/
H A Drknpu_mem.c27 struct dma_buf *dmabuf; in rknpu_mem_create_ioctl() local
56 dmabuf = dma_buf_get(fd); in rknpu_mem_create_ioctl()
57 if (IS_ERR(dmabuf)) { in rknpu_mem_create_ioctl()
58 ret = PTR_ERR(dmabuf); in rknpu_mem_create_ioctl()
62 rknpu_obj->dmabuf = dmabuf; in rknpu_mem_create_ioctl()
66 dmabuf = rk_dma_heap_buffer_alloc(rknpu_dev->heap, args.size, in rknpu_mem_create_ioctl()
69 if (IS_ERR(dmabuf)) { in rknpu_mem_create_ioctl()
72 ret = PTR_ERR(dmabuf); in rknpu_mem_create_ioctl()
76 rknpu_obj->dmabuf = dmabuf; in rknpu_mem_create_ioctl()
79 fd = dma_buf_fd(dmabuf, O_CLOEXEC | O_RDWR); in rknpu_mem_create_ioctl()
[all …]
/OK3568_Linux_fs/kernel/drivers/base/arm/dma_buf_test_exporter/
H A Ddma-buf-test-exporter.c128 alloc = attachment->dmabuf->priv; in dma_buf_te_map()
148 mutex_lock(&attachment->dmabuf->lock); in dma_buf_te_map()
155 mutex_unlock(&attachment->dmabuf->lock); in dma_buf_te_map()
170 mutex_unlock(&attachment->dmabuf->lock); in dma_buf_te_map()
179 mutex_unlock(&attachment->dmabuf->lock); in dma_buf_te_map()
189 alloc = attachment->dmabuf->priv; in dma_buf_te_unmap()
191 mutex_lock(&attachment->dmabuf->lock); in dma_buf_te_unmap()
198 mutex_unlock(&attachment->dmabuf->lock); in dma_buf_te_unmap()
231 static int dma_buf_te_sync(struct dma_buf *dmabuf, in dma_buf_te_sync() argument
237 mutex_lock(&dmabuf->lock); in dma_buf_te_sync()
[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() argument
58 struct sram_dma_heap_buffer *buffer = dmabuf->priv; in dma_heap_attach()
103 static void dma_heap_detatch(struct dma_buf *dmabuf, in dma_heap_detatch() argument
106 struct sram_dma_heap_buffer *buffer = dmabuf->priv; in dma_heap_detatch()
139 static void dma_heap_dma_buf_release(struct dma_buf *dmabuf) in dma_heap_dma_buf_release() argument
141 struct sram_dma_heap_buffer *buffer = dmabuf->priv; 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() argument
149 struct sram_dma_heap_buffer *buffer = dmabuf->priv; in dma_heap_mmap()
162 static void *dma_heap_vmap(struct dma_buf *dmabuf) in dma_heap_vmap() argument
164 struct sram_dma_heap_buffer *buffer = dmabuf->priv; in dma_heap_vmap()
[all …]
H A Drk_cma_heap.c57 static int cma_heap_attach(struct dma_buf *dmabuf, in cma_heap_attach() argument
60 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_attach()
91 static void cma_heap_detach(struct dma_buf *dmabuf, in cma_heap_detach() argument
94 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_detach()
139 cma_heap_dma_buf_begin_cpu_access_partial(struct dma_buf *dmabuf, in cma_heap_dma_buf_begin_cpu_access_partial() argument
144 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_dma_buf_begin_cpu_access_partial()
164 cma_heap_dma_buf_end_cpu_access_partial(struct dma_buf *dmabuf, in cma_heap_dma_buf_end_cpu_access_partial() argument
169 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_dma_buf_end_cpu_access_partial()
188 static int cma_heap_dma_buf_begin_cpu_access(struct dma_buf *dmabuf, in cma_heap_dma_buf_begin_cpu_access() argument
191 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_dma_buf_begin_cpu_access()
[all …]
H A Dcma_heap.c50 static int cma_heap_attach(struct dma_buf *dmabuf, in cma_heap_attach() argument
53 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_attach()
83 static void cma_heap_detach(struct dma_buf *dmabuf, in cma_heap_detach() argument
86 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_detach()
123 static int cma_heap_dma_buf_begin_cpu_access(struct dma_buf *dmabuf, in cma_heap_dma_buf_begin_cpu_access() argument
126 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_dma_buf_begin_cpu_access()
144 static int cma_heap_dma_buf_end_cpu_access(struct dma_buf *dmabuf, in cma_heap_dma_buf_end_cpu_access() argument
147 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_dma_buf_end_cpu_access()
183 static int cma_heap_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma) in cma_heap_mmap() argument
185 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_mmap()
[all …]
/OK3568_Linux_fs/yocto/meta-rockchip/recipes-graphics/wayland/weston_10.0.2/
H A D0063-HACK-clients-Drop-dmabuf-feedback.patch4 Subject: [PATCH 63/79] HACK: clients: Drop dmabuf-feedback
22 - 'name': 'dmabuf-feedback',
24 - 'simple-dmabuf-feedback.c',
39 - required: simple_build_all or simple_clients_enabled.contains('dmabuf-feedback'),
40 - not_found_message: 'dmabuf-feedback requires gbm which was not found. If you rather not build …
47 +# 'name': 'dmabuf-feedback',
49 +# 'simple-dmabuf-feedback.c',
64 +# required: simple_build_all or simple_clients_enabled.contains('dmabuf-feedback'),
65 +# not_found_message: 'dmabuf-feedback requires gbm which was not found. If you rather not build…
72 'name': 'dmabuf-egl',
H A D0009-HACK-gl-renderer-Workaround-dmabuf-import-attach-for.patch4 Subject: [PATCH 09/79] HACK: gl-renderer: Workaround dmabuf import/attach for
57 @@ -2791,7 +2799,7 @@ dmabuf_is_opaque(struct linux_dmabuf_buffer *dmabuf)
65 struct linux_dmabuf_buffer *dmabuf)
68 linux_dmabuf_buffer_send_server_error(dmabuf,
69 "EGL dmabuf import not supported");
74 buffer->width = dmabuf->attributes.width;
78 if (dmabuf->direct_display)
82 image = linux_dmabuf_buffer_get_user_data(dmabuf);
98 + /* Prefer attaching as dmabuf for old mali */
99 + dmabuf = linux_dmabuf_buffer_get(buffer->resource);
[all …]
/OK3568_Linux_fs/yocto/meta-rockchip/recipes-graphics/wayland/weston_11.0.1/
H A D0065-HACK-clients-Drop-dmabuf-feedback.patch4 Subject: [PATCH 65/93] HACK: clients: Drop dmabuf-feedback
22 - 'name': 'dmabuf-feedback',
24 - 'simple-dmabuf-feedback.c',
41 - required: simple_build_all or simple_clients_enabled.contains('dmabuf-feedback'),
42 - not_found_message: 'dmabuf-feedback requires gbm which was not found. If you rather not build …
49 +# 'name': 'dmabuf-feedback',
51 +# 'simple-dmabuf-feedback.c',
68 +# required: simple_build_all or simple_clients_enabled.contains('dmabuf-feedback'),
69 +# not_found_message: 'dmabuf-feedback requires gbm which was not found. If you rather not build…
76 'name': 'dmabuf-egl',
H A D0030-HACK-backend-drm-Consider-linear-and-invalid-modifie.patch11 clients/simple-dmabuf-egl.c | 5 +++--
12 clients/simple-dmabuf-v4l.c | 2 +-
15 libweston/linux-dmabuf.c | 3 +--
22 diff --git a/clients/simple-dmabuf-egl.c b/clients/simple-dmabuf-egl.c
24 --- a/clients/simple-dmabuf-egl.c
25 +++ b/clients/simple-dmabuf-egl.c
45 diff --git a/clients/simple-dmabuf-v4l.c b/clients/simple-dmabuf-v4l.c
47 --- a/clients/simple-dmabuf-v4l.c
48 +++ b/clients/simple-dmabuf-v4l.c
85 @@ -238,6 +238,7 @@ drm_fb_get_from_dmabuf(struct linux_dmabuf_buffer *dmabuf,
[all …]
/OK3568_Linux_fs/buildroot/package/weston/
H A D0064-HACK-clients-Drop-dmabuf-feedback.patch4 Subject: [PATCH 64/92] HACK: clients: Drop dmabuf-feedback
22 - 'name': 'dmabuf-feedback',
24 - 'simple-dmabuf-feedback.c',
41 - required: simple_build_all or simple_clients_enabled.contains('dmabuf-feedback'),
42 - not_found_message: 'dmabuf-feedback requires gbm which was not found. If you rather not build …
49 +# 'name': 'dmabuf-feedback',
51 +# 'simple-dmabuf-feedback.c',
68 +# required: simple_build_all or simple_clients_enabled.contains('dmabuf-feedback'),
69 +# not_found_message: 'dmabuf-feedback requires gbm which was not found. If you rather not build…
76 'name': 'dmabuf-egl',
H A D0030-HACK-backend-drm-Consider-linear-and-invalid-modifie.patch11 clients/simple-dmabuf-egl.c | 5 +++--
12 clients/simple-dmabuf-v4l.c | 2 +-
15 libweston/linux-dmabuf.c | 3 +--
22 diff --git a/clients/simple-dmabuf-egl.c b/clients/simple-dmabuf-egl.c
24 --- a/clients/simple-dmabuf-egl.c
25 +++ b/clients/simple-dmabuf-egl.c
45 diff --git a/clients/simple-dmabuf-v4l.c b/clients/simple-dmabuf-v4l.c
47 --- a/clients/simple-dmabuf-v4l.c
48 +++ b/clients/simple-dmabuf-v4l.c
85 @@ -238,6 +238,7 @@ drm_fb_get_from_dmabuf(struct linux_dmabuf_buffer *dmabuf,
[all …]
/OK3568_Linux_fs/kernel/drivers/video/rockchip/mpp/
H A Dmpp_iommu.c34 struct dma_buf *dmabuf; in mpp_dma_find_buffer_fd() local
38 dmabuf = dma_buf_get(fd); in mpp_dma_find_buffer_fd()
39 if (IS_ERR(dmabuf)) in mpp_dma_find_buffer_fd()
49 if (buffer->dmabuf == dmabuf) { in mpp_dma_find_buffer_fd()
55 dma_buf_put(dmabuf); in mpp_dma_find_buffer_fd()
70 dma_buf_detach(buffer->dmabuf, buffer->attach); in mpp_dma_release_buffer()
71 dma_buf_put(buffer->dmabuf); in mpp_dma_release_buffer()
73 buffer->dmabuf = NULL; in mpp_dma_release_buffer()
184 struct dma_buf *dmabuf; in mpp_dma_import_fd() local
207 dmabuf = dma_buf_get(fd); in mpp_dma_import_fd()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/legacy/
H A Dvpu_mem_legacy.c61 VPUMemLinear_t *dmabuf = mpp_calloc(VPUMemLinear_t, 1); in get_free_memory_vpumem() local
63 if (dmabuf == NULL) { in get_free_memory_vpumem()
69 mpp_free(dmabuf); in get_free_memory_vpumem()
72 dmabuf->phy_addr = (RK_U32)mpp_buffer_get_fd(buffer); in get_free_memory_vpumem()
73 dmabuf->vir_addr = (RK_U32*)mpp_buffer_get_ptr(buffer); in get_free_memory_vpumem()
74 dmabuf->size = p_mempool->size; in get_free_memory_vpumem()
75 dmabuf->offset = (RK_U32*)buffer; in get_free_memory_vpumem()
76 vpu_mem_dbg_func("out pool %p ret %p fd %d size %d buffer %p\n", p, dmabuf, in get_free_memory_vpumem()
77 dmabuf->phy_addr, dmabuf->size, buffer); in get_free_memory_vpumem()
78 return dmabuf; in get_free_memory_vpumem()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp/
H A Drkisp_tb_helper.c37 struct shm_data *data = attachment->dmabuf->priv; in shm_map_dma_buf()
103 static int shm_begin_cpu_access(struct dma_buf *dmabuf, enum dma_data_direction dir) in shm_begin_cpu_access() argument
108 attachment = list_first_entry(&dmabuf->attachments, struct dma_buf_attachment, node); 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() argument
120 attachment = list_first_entry(&dmabuf->attachments, struct dma_buf_attachment, node); in shm_end_cpu_access()
141 struct dma_buf *dmabuf; in shm_alloc() local
159 dmabuf = dma_buf_export(&exp_info); in shm_alloc()
161 return dmabuf; in shm_alloc()
263 struct dma_buf *dmabuf; in rkisp_tb_shm_ioctl() local
266 dmabuf = shm_alloc(shmem); in rkisp_tb_shm_ioctl()
[all …]

123456789