Home
last modified time | relevance | path

Searched refs:attachment (Results 1 – 25 of 86) sorted by relevance

1234

/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()
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
124 struct dma_buf_te_attachment *pa = attachment->priv; in dma_buf_te_map()
128 alloc = attachment->dmabuf->priv; in dma_buf_te_map()
148 mutex_lock(&attachment->dmabuf->lock); in dma_buf_te_map()
[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.c51 mem = mem_backend->dma_buf.attachment; in mali_dma_buf_map()
71 mem->sgt = dma_buf_map_attachment(mem->attachment, DMA_BIDIRECTIONAL); in mali_dma_buf_map()
127 MALI_DEBUG_ASSERT_POINTER(mem->attachment); 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()
307 dma_mem->attachment = dma_buf_attach(dma_mem->buf, &mali_platform_device->dev); in mali_mem_bind_dma_buf()
308 if (NULL == dma_mem->attachment) { in mali_mem_bind_dma_buf()
312 mem_backend->dma_buf.attachment = dma_mem; in mali_mem_bind_dma_buf()
336 dma_buf_detach(dma_mem->buf, dma_mem->attachment); in mali_mem_bind_dma_buf()
[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()
44 secure_mem->sgt = dma_buf_map_attachment(secure_mem->attachment, DMA_BIDIRECTIONAL); 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()
H A Dmali_memory_types.h76 struct mali_dma_buf_attachment *attachment; member
177 struct dma_buf_attachment *attachment; member
/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/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/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/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/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/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/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()
/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/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 …]
H A Ddri2.h40 unsigned int attachment; member
105 unsigned int attachment,
181 unsigned int attachment,
/OK3568_Linux_fs/external/xserver/test/xi2/
H A Dprotocol-xiquerydevice.c104 swaps(&info->attachment); in reply_XIQueryDevice_data()
119 assert(info->attachment == devices.vck->id); in reply_XIQueryDevice_data()
125 assert(info->attachment == devices.vcp->id); in reply_XIQueryDevice_data()
131 assert(info->attachment == devices.vcp->id); in reply_XIQueryDevice_data()
137 assert(info->attachment == devices.vck->id); in reply_XIQueryDevice_data()
/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()
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()
276 if (destBuffer->attachment == DRI2BufferFrontLeft && in ms_dri2_copy_region2()
/OK3568_Linux_fs/yocto/poky/meta/recipes-extended/xdg-utils/xdg-utils/
H A D1f199813e0eb0246f63b54e9e154970e609575af.patch4 Subject: [PATCH] xdg-email: remove attachment handling from mailto
50 - NEWMAILTO="${NEWMAILTO},attachment='${ATTACH}'"

1234