Home
last modified time | relevance | path

Searched full:attachment (Results 1 – 25 of 315) sorted by relevance

12345678910>>...13

/OK3568_Linux_fs/kernel/drivers/base/arm/dma_buf_test_exporter/
H A Ddma-buf-test-exporter.c78 …t dma_buf_te_attach(struct dma_buf *buf, struct device *dev, struct dma_buf_attachment *attachment) in dma_buf_te_attach() argument
80 static int dma_buf_te_attach(struct dma_buf *buf, struct dma_buf_attachment *attachment) in dma_buf_te_attach()
90 attachment->priv = kzalloc(sizeof(struct dma_buf_te_attachment), GFP_KERNEL); in dma_buf_te_attach()
91 if (!attachment->priv) in dma_buf_te_attach()
100 * dma_buf_te_detach - The detach callback function to release &attachment
102 * @buf: buffer for the &attachment
103 * @attachment: attachment data to be released
105 static void dma_buf_te_detach(struct dma_buf *buf, struct dma_buf_attachment *attachment) in dma_buf_te_detach() argument
108 struct dma_buf_te_attachment *pa = attachment->priv; in dma_buf_te_detach()
119 static struct sg_table *dma_buf_te_map(struct dma_buf_attachment *attachment, enum dma_data_directi… in dma_buf_te_map() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/android/ion/
H A Dion_dma_buf.c49 struct dma_buf_attachment *attachment) in ion_dma_buf_attach() argument
57 return heap->buf_ops.attach(dmabuf, attachment); in ion_dma_buf_attach()
70 a->dev = attachment->dev; in ion_dma_buf_attach()
74 attachment->priv = a; in ion_dma_buf_attach()
84 struct dma_buf_attachment *attachment) in ion_dma_buf_detatch() argument
86 struct ion_dma_buf_attachment *a = attachment->priv; in ion_dma_buf_detatch()
91 return heap->buf_ops.detach(dmabuf, attachment); in ion_dma_buf_detatch()
101 static struct sg_table *ion_map_dma_buf(struct dma_buf_attachment *attachment, in ion_map_dma_buf() argument
104 struct ion_buffer *buffer = attachment->dmabuf->priv; in ion_map_dma_buf()
108 unsigned long attrs = attachment->dma_map_attrs; in ion_map_dma_buf()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_memory_dma_buf.c33 * Map DMA buf attachment \a mem into \a session at virtual address \a virt.
51 mem = mem_backend->dma_buf.attachment; in mali_dma_buf_map()
64 MALI_DEBUG_PRINT(5, ("Mali DMA-buf: map attachment %p, new map_ref = %d\n", mem, mem->map_ref)); in mali_dma_buf_map()
71 mem->sgt = dma_buf_map_attachment(mem->attachment, DMA_BIDIRECTIONAL); in mali_dma_buf_map()
73 MALI_DEBUG_PRINT_ERROR(("Failed to map dma-buf attachment\n")); in mali_dma_buf_map()
127 MALI_DEBUG_ASSERT_POINTER(mem->attachment); in mali_dma_buf_unmap()
134 MALI_DEBUG_PRINT(5, ("Mali DMA-buf: unmap attachment %p, new map_ref = %d\n", mem, mem->map_ref)); in mali_dma_buf_unmap()
137 dma_buf_unmap_attachment(mem->attachment, mem->sgt, DMA_BIDIRECTIONAL); in mali_dma_buf_unmap()
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()
[all …]
H A Dmali_memory_secure.c38 secure_mem->attachment = dma_buf_attach(secure_mem->buf, &mali_platform_device->dev); in mali_mem_secure_attach_dma_buf()
39 if (NULL == secure_mem->attachment) { in mali_mem_secure_attach_dma_buf()
40 MALI_DEBUG_PRINT_ERROR(("Failed to get dma buf attachment!\n")); in mali_mem_secure_attach_dma_buf()
44 secure_mem->sgt = dma_buf_map_attachment(secure_mem->attachment, DMA_BIDIRECTIONAL); in mali_mem_secure_attach_dma_buf()
46 MALI_DEBUG_PRINT_ERROR(("Failed to map dma buf attachment\n")); in mali_mem_secure_attach_dma_buf()
55 dma_buf_detach(secure_mem->buf, secure_mem->attachment); in mali_mem_secure_attach_dma_buf()
154 MALI_DEBUG_ASSERT_POINTER(mem->attachment); in mali_mem_secure_release()
160 dma_buf_unmap_attachment(mem->attachment, mem->sgt, DMA_BIDIRECTIONAL); in mali_mem_secure_release()
161 dma_buf_detach(mem->buf, mem->attachment); in mali_mem_secure_release()
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp/
H A Drkisp_tb_helper.c34 static struct sg_table *shm_map_dma_buf(struct dma_buf_attachment *attachment, in shm_map_dma_buf() argument
37 struct shm_data *data = attachment->dmabuf->priv; in shm_map_dma_buf()
53 dma_map_sg_attrs(attachment->dev, table->sgl, table->nents, dir, DMA_ATTR_SKIP_CPU_SYNC); in shm_map_dma_buf()
58 static void shm_unmap_dma_buf(struct dma_buf_attachment *attachment, in shm_unmap_dma_buf() argument
62 dma_unmap_sg(attachment->dev, table->sgl, table->nents, dir); in shm_unmap_dma_buf()
105 struct dma_buf_attachment *attachment; in shm_begin_cpu_access() local
108 attachment = list_first_entry(&dmabuf->attachments, struct dma_buf_attachment, node); in shm_begin_cpu_access()
109 table = attachment->priv; in shm_begin_cpu_access()
117 struct dma_buf_attachment *attachment; in shm_end_cpu_access() local
120 attachment = list_first_entry(&dmabuf->attachments, struct dma_buf_attachment, node); in shm_end_cpu_access()
[all …]
/OK3568_Linux_fs/kernel/drivers/dma-buf/heaps/
H A Dcma_heap.c51 struct dma_buf_attachment *attachment) in cma_heap_attach() argument
70 a->dev = attachment->dev; in cma_heap_attach()
74 attachment->priv = a; in cma_heap_attach()
84 struct dma_buf_attachment *attachment) in cma_heap_detach() argument
87 struct dma_heap_attachment *a = attachment->priv; in cma_heap_detach()
97 static struct sg_table *cma_heap_map_dma_buf(struct dma_buf_attachment *attachment, in cma_heap_map_dma_buf() argument
100 struct dma_heap_attachment *a = attachment->priv; in cma_heap_map_dma_buf()
102 int attrs = attachment->dma_map_attrs; in cma_heap_map_dma_buf()
105 ret = dma_map_sgtable(attachment->dev, table, direction, attrs); in cma_heap_map_dma_buf()
112 static void cma_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, in cma_heap_unmap_dma_buf() argument
[all …]
H A Dsram_heap.c56 struct dma_buf_attachment *attachment) in dma_heap_attach() argument
85 a->dev = attachment->dev; in dma_heap_attach()
88 attachment->priv = a; in dma_heap_attach()
104 struct dma_buf_attachment *attachment) in dma_heap_detatch() argument
107 struct dma_heap_attachment *a = attachment->priv; in dma_heap_detatch()
118 static struct sg_table *dma_heap_map_dma_buf(struct dma_buf_attachment *attachment, in dma_heap_map_dma_buf() argument
121 struct dma_heap_attachment *a = attachment->priv; in dma_heap_map_dma_buf()
125 ret = dma_map_sgtable(attachment->dev, table, direction, DMA_ATTR_SKIP_CPU_SYNC); in dma_heap_map_dma_buf()
132 static void dma_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, in dma_heap_unmap_dma_buf() argument
136 dma_unmap_sgtable(attachment->dev, table, direction, DMA_ATTR_SKIP_CPU_SYNC); in dma_heap_unmap_dma_buf()
H A Drk_cma_heap.c58 struct dma_buf_attachment *attachment) in cma_heap_attach() argument
77 a->dev = attachment->dev; in cma_heap_attach()
82 attachment->priv = a; in cma_heap_attach()
92 struct dma_buf_attachment *attachment) in cma_heap_detach() argument
95 struct dma_heap_attachment *a = attachment->priv; in cma_heap_detach()
105 static struct sg_table *cma_heap_map_dma_buf(struct dma_buf_attachment *attachment, in cma_heap_map_dma_buf() argument
108 struct dma_heap_attachment *a = attachment->priv; in cma_heap_map_dma_buf()
110 int attrs = attachment->dma_map_attrs; in cma_heap_map_dma_buf()
116 ret = dma_map_sgtable(attachment->dev, table, direction, attrs); in cma_heap_map_dma_buf()
123 static void cma_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, in cma_heap_unmap_dma_buf() argument
[all …]
H A Dsystem_heap.c93 struct dma_buf_attachment *attachment) in system_heap_attach() argument
110 a->dev = attachment->dev; in system_heap_attach()
114 attachment->priv = a; in system_heap_attach()
124 struct dma_buf_attachment *attachment) in system_heap_detach() argument
127 struct dma_heap_attachment *a = attachment->priv; in system_heap_detach()
138 static struct sg_table *system_heap_map_dma_buf(struct dma_buf_attachment *attachment, in system_heap_map_dma_buf() argument
141 struct dma_heap_attachment *a = attachment->priv; in system_heap_map_dma_buf()
143 int attr = attachment->dma_map_attrs; in system_heap_map_dma_buf()
149 ret = dma_map_sgtable(attachment->dev, table, direction, attr); in system_heap_map_dma_buf()
157 static void system_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, in system_heap_unmap_dma_buf() argument
[all …]
H A Drk_system_heap.c103 struct dma_buf_attachment *attachment) in system_heap_attach() argument
120 a->dev = attachment->dev; in system_heap_attach()
124 attachment->priv = a; in system_heap_attach()
134 struct dma_buf_attachment *attachment) in system_heap_detach() argument
137 struct dma_heap_attachment *a = attachment->priv; in system_heap_detach()
148 static struct sg_table *system_heap_map_dma_buf(struct dma_buf_attachment *attachment, in system_heap_map_dma_buf() argument
151 struct dma_heap_attachment *a = attachment->priv; in system_heap_map_dma_buf()
153 int attr = attachment->dma_map_attrs; in system_heap_map_dma_buf()
159 ret = dma_map_sgtable(attachment->dev, table, direction, attr); in system_heap_map_dma_buf()
167 static void system_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, in system_heap_unmap_dma_buf() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/tegra-vde/
H A Ddmabuf-cache.c67 struct dma_buf_attachment *attachment; in tegra_vde_dmabuf_cache_map() local
95 attachment = dma_buf_attach(dmabuf, dev); in tegra_vde_dmabuf_cache_map()
96 if (IS_ERR(attachment)) { in tegra_vde_dmabuf_cache_map()
98 err = PTR_ERR(attachment); in tegra_vde_dmabuf_cache_map()
102 sgt = dma_buf_map_attachment(attachment, dma_dir); in tegra_vde_dmabuf_cache_map()
139 entry->a = attachment; in tegra_vde_dmabuf_cache_map()
152 dma_buf_unmap_attachment(attachment, sgt, dma_dir); in tegra_vde_dmabuf_cache_map()
154 dma_buf_detach(dmabuf, attachment); in tegra_vde_dmabuf_cache_map()
/OK3568_Linux_fs/kernel/drivers/rknpu/
H A Drknpu_mem.c23 struct dma_buf_attachment *attachment; in rknpu_mem_create_ioctl() local
87 attachment = dma_buf_attach(dmabuf, rknpu_dev->dev); in rknpu_mem_create_ioctl()
88 if (IS_ERR(attachment)) { in rknpu_mem_create_ioctl()
90 ret = PTR_ERR(attachment); in rknpu_mem_create_ioctl()
94 table = dma_buf_map_attachment(attachment, DMA_BIDIRECTIONAL); in rknpu_mem_create_ioctl()
97 dma_buf_detach(dmabuf, attachment); in rknpu_mem_create_ioctl()
150 dma_buf_unmap_attachment(attachment, table, DMA_BIDIRECTIONAL); in rknpu_mem_create_ioctl()
151 dma_buf_detach(dmabuf, attachment); in rknpu_mem_create_ioctl()
175 dma_buf_unmap_attachment(attachment, table, DMA_BIDIRECTIONAL); in rknpu_mem_create_ioctl()
176 dma_buf_detach(dmabuf, attachment); in rknpu_mem_create_ioctl()
/OK3568_Linux_fs/kernel/tools/bpf/bpftool/Documentation/
H A Dbpftool-perf.rst29 List all raw_tracepoint, tracepoint, kprobe attachment in the system.
32 followed by bpf program id, attachment information, and attachment point.
33 The attachment point for raw_tracepoint/tracepoint is the trace probe name.
34 The attachment point for k[ret]probe is either symbol name and offset,
36 The attachment point for u[ret]probe is the file name and the file offset.
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/cif/
H A Dcommon.c196 static struct sg_table *rkcif_shm_map_dma_buf(struct dma_buf_attachment *attachment, in rkcif_shm_map_dma_buf() argument
199 struct rkcif_shm_data *data = attachment->dmabuf->priv; in rkcif_shm_map_dma_buf()
209 dma_map_sgtable(attachment->dev, table, dir, DMA_ATTR_SKIP_CPU_SYNC); in rkcif_shm_map_dma_buf()
214 static void rkcif_shm_unmap_dma_buf(struct dma_buf_attachment *attachment, in rkcif_shm_unmap_dma_buf() argument
218 dma_unmap_sgtable(attachment->dev, table, dir, DMA_ATTR_SKIP_CPU_SYNC); in rkcif_shm_unmap_dma_buf()
258 struct dma_buf_attachment *attachment; in rkcif_shm_begin_cpu_access() local
261 attachment = list_first_entry(&dmabuf->attachments, struct dma_buf_attachment, node); in rkcif_shm_begin_cpu_access()
262 table = attachment->priv; in rkcif_shm_begin_cpu_access()
270 struct dma_buf_attachment *attachment; in rkcif_shm_end_cpu_access() local
273 attachment = list_first_entry(&dmabuf->attachments, struct dma_buf_attachment, node); in rkcif_shm_end_cpu_access()
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/share/doc/gdb/
H A DHost-I_002fO-Packets.html105 <dt>&lsquo;<samp>F <var>result</var> [, <var>errno</var>] [; <var>attachment</var>]</samp>&rsquo;</…
110 operations which return data, <var>attachment</var> supplies the data as a
114 <var>attachment</var>.
149 <p>The data read should be returned as a binary attachment on success.
151 attachment (i.e. a trailing semicolon). The return value is the
152 number of target bytes read; the binary attachment may be longer if
168 On success the information is returned as a binary attachment
169 and the return value is the size of this attachment in bytes.
171 returned binary attachment is as described in <a href="struct-stat.html#struct-stat">struct stat</a…
183 <p>The data read should be returned as a binary attachment on success.
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/share/doc/gdb/
H A DHost-I_002fO-Packets.html105 <dt>&lsquo;<samp>F <var>result</var> [, <var>errno</var>] [; <var>attachment</var>]</samp>&rsquo;</…
110 operations which return data, <var>attachment</var> supplies the data as a
114 <var>attachment</var>.
149 <p>The data read should be returned as a binary attachment on success.
151 attachment (i.e. a trailing semicolon). The return value is the
152 number of target bytes read; the binary attachment may be longer if
168 On success the information is returned as a binary attachment
169 and the return value is the size of this attachment in bytes.
171 returned binary attachment is as described in <a href="struct-stat.html#struct-stat">struct stat</a…
183 <p>The data read should be returned as a binary attachment on success.
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/selftests/
H A Dmock_dmabuf.c9 static struct sg_table *mock_map_dma_buf(struct dma_buf_attachment *attachment, in mock_map_dma_buf() argument
12 struct mock_dmabuf *mock = to_mock(attachment->dmabuf); in mock_map_dma_buf()
31 err = dma_map_sgtable(attachment->dev, st, dir, 0); in mock_map_dma_buf()
44 static void mock_unmap_dma_buf(struct dma_buf_attachment *attachment, in mock_unmap_dma_buf() argument
48 dma_unmap_sgtable(attachment->dev, st, dir, 0); in mock_unmap_dma_buf()
/OK3568_Linux_fs/kernel/drivers/dma-buf/rk_heaps/
H A Drk-cma-heap.c59 struct dma_buf_attachment *attachment) in rk_cma_heap_attach() argument
80 a->dev = attachment->dev; in rk_cma_heap_attach()
84 attachment->priv = a; in rk_cma_heap_attach()
96 struct dma_buf_attachment *attachment) in rk_cma_heap_detach() argument
99 struct rk_cma_heap_attachment *a = attachment->priv; in rk_cma_heap_detach()
111 static struct sg_table *rk_cma_heap_map_dma_buf(struct dma_buf_attachment *attachment, in rk_cma_heap_map_dma_buf() argument
114 struct rk_cma_heap_attachment *a = attachment->priv; in rk_cma_heap_map_dma_buf()
116 int attrs = attachment->dma_map_attrs; in rk_cma_heap_map_dma_buf()
119 ret = dma_map_sgtable(attachment->dev, table, direction, attrs); in rk_cma_heap_map_dma_buf()
126 static void rk_cma_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, in rk_cma_heap_unmap_dma_buf() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_dma_buf.c172 * @attach: attachment to add
174 * Add the attachment as user to the exported DMA-buf.
214 * @dmabuf: DMA-buf where we remove the attachment from
215 * @attach: the attachment to remove
217 * Called when an attachment is removed from the DMA-buf.
233 * @attach: attachment to pin down
261 * @attach: attachment to unpin
275 * @attach: DMA-buf attachment
349 * @attach: DMA-buf attachment
465 * described by the given DMA-buf attachment and scatter/gather table.
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/
H A Di915_gem_dmabuf.c20 static struct sg_table *i915_gem_map_dma_buf(struct dma_buf_attachment *attachment, in i915_gem_map_dma_buf() argument
23 struct drm_i915_gem_object *obj = dma_buf_to_obj(attachment->dmabuf); in i915_gem_map_dma_buf()
51 ret = dma_map_sgtable(attachment->dev, st, dir, DMA_ATTR_SKIP_CPU_SYNC); in i915_gem_map_dma_buf()
67 static void i915_gem_unmap_dma_buf(struct dma_buf_attachment *attachment, in i915_gem_unmap_dma_buf() argument
71 struct drm_i915_gem_object *obj = dma_buf_to_obj(attachment->dmabuf); in i915_gem_unmap_dma_buf()
73 dma_unmap_sgtable(attachment->dev, sg, dir, DMA_ATTR_SKIP_CPU_SYNC); in i915_gem_unmap_dma_buf()
/OK3568_Linux_fs/kernel/include/linux/
H A Ddma-buf.h41 * attachment. This avoids creating mappings for attachments multiple
453 * struct dma_buf_attach_ops - importer operations for an attachment
455 * Attachment operations implemented by the importer.
488 * struct dma_buf_attachment - holds device-buffer attachment data
489 * @dmabuf: buffer for this attachment.
495 * @priv: exporter specific attachment data.
496 * @importer_ops: importer operations for this attachment, if provided
498 * @importer_priv: importer specific attachment data.
502 * This structure holds the attachment information between the dma_buf buffer
503 * and its user device(s). The list contains one attachment struct per device
[all …]
/OK3568_Linux_fs/external/xserver/hw/xfree86/dri2/
H A Ddri2.c461 unsigned int attachment, unsigned int format) in create_buffer() argument
467 pDraw, attachment, format); in create_buffer()
469 buffer = (*ds->CreateBuffer)(pDraw, attachment, format); in create_buffer()
487 find_attachment(DRI2DrawablePtr pPriv, unsigned attachment) in find_attachment() argument
497 && (pPriv->buffers[i]->attachment == attachment)) { in find_attachment()
508 unsigned int attachment, unsigned int format, in allocate_or_reuse_buffer() argument
511 int old_buf = find_attachment(pPriv, attachment); in allocate_or_reuse_buffer()
514 || attachment == DRI2BufferFrontLeft in allocate_or_reuse_buffer()
516 *buffer = create_buffer(ds, pDraw, attachment, format); in allocate_or_reuse_buffer()
589 const unsigned attachment = *(attachments++); in do_get_buffers() local
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/omapdrm/
H A Domap_gem_dmabuf.c19 struct dma_buf_attachment *attachment, in omap_gem_map_dma_buf() argument
22 struct drm_gem_object *obj = attachment->dmabuf->priv; in omap_gem_map_dma_buf()
56 static void omap_gem_unmap_dma_buf(struct dma_buf_attachment *attachment, in omap_gem_unmap_dma_buf() argument
59 struct drm_gem_object *obj = attachment->dmabuf->priv; in omap_gem_unmap_dma_buf()
/OK3568_Linux_fs/external/xserver/hw/xfree86/drivers/modesetting/
H A Ddri2.c121 unsigned int attachment, unsigned int format) in ms_dri2_create_buffer2() argument
141 if (attachment == DRI2BufferFrontLeft) { in ms_dri2_create_buffer2()
158 switch (attachment) { in ms_dri2_create_buffer2()
174 "Request for DRI2 buffer attachment %d unsupported\n", in ms_dri2_create_buffer2()
175 attachment); in ms_dri2_create_buffer2()
193 buffer->attachment = attachment; in ms_dri2_create_buffer2()
219 ms_dri2_create_buffer(DrawablePtr drawable, unsigned int attachment, in ms_dri2_create_buffer() argument
222 return ms_dri2_create_buffer2(drawable->pScreen, drawable, attachment, in ms_dri2_create_buffer()
267 DrawablePtr src = (sourceBuffer->attachment == DRI2BufferFrontLeft) in ms_dri2_copy_region2()
269 DrawablePtr dst = (destBuffer->attachment == DRI2BufferFrontLeft) in ms_dri2_copy_region2()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/gadget/function/
H A Duvc_queue.c99 struct dma_buf_attachment *attachment; in uvc_dma_buf_phys_to_virt() local
105 attachment = dma_buf_attach(dbuf, gadget->dev.parent); in uvc_dma_buf_phys_to_virt()
106 if (IS_ERR(attachment)) in uvc_dma_buf_phys_to_virt()
109 table = dma_buf_map_attachment(attachment, DMA_BIDIRECTIONAL); in uvc_dma_buf_phys_to_virt()
111 dma_buf_detach(dbuf, attachment); in uvc_dma_buf_phys_to_virt()
118 dma_buf_unmap_attachment(attachment, table, DMA_BIDIRECTIONAL); in uvc_dma_buf_phys_to_virt()
119 dma_buf_detach(dbuf, attachment); in uvc_dma_buf_phys_to_virt()

12345678910>>...13