Home
last modified time | relevance | path

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

12345678910>>...12

/kernel/linux/linux-5.10/drivers/dma-buf/heaps/
Dheap-helpers.c94 struct dma_buf_attachment *attachment) in dma_heap_attach() argument
113 a->dev = attachment->dev; in dma_heap_attach()
116 attachment->priv = a; in dma_heap_attach()
126 struct dma_buf_attachment *attachment) in dma_heap_detach() argument
128 struct dma_heaps_attachment *a = attachment->priv; in dma_heap_detach()
140 struct sg_table *dma_heap_map_dma_buf(struct dma_buf_attachment *attachment, in dma_heap_map_dma_buf() argument
143 struct dma_heaps_attachment *a = attachment->priv; in dma_heap_map_dma_buf()
147 ret = dma_map_sgtable(attachment->dev, table, direction, 0); in dma_heap_map_dma_buf()
153 static void dma_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, in dma_heap_unmap_dma_buf() argument
157 dma_unmap_sgtable(attachment->dev, table, direction, 0); in dma_heap_unmap_dma_buf()
/kernel/linux/linux-6.6/drivers/media/platform/nvidia/tegra-vde/
Ddmabuf-cache.c69 struct dma_buf_attachment *attachment; in tegra_vde_dmabuf_cache_map() local
98 attachment = dma_buf_attach(dmabuf, dev); in tegra_vde_dmabuf_cache_map()
99 if (IS_ERR(attachment)) { in tegra_vde_dmabuf_cache_map()
101 err = PTR_ERR(attachment); in tegra_vde_dmabuf_cache_map()
105 sgt = dma_buf_map_attachment_unlocked(attachment, dma_dir); in tegra_vde_dmabuf_cache_map()
142 entry->a = attachment; in tegra_vde_dmabuf_cache_map()
155 dma_buf_unmap_attachment_unlocked(attachment, sgt, dma_dir); in tegra_vde_dmabuf_cache_map()
157 dma_buf_detach(dmabuf, attachment); in tegra_vde_dmabuf_cache_map()
/kernel/linux/linux-5.10/drivers/staging/media/tegra-vde/
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()
/kernel/linux/linux-6.6/tools/bpf/bpftool/Documentation/
Dbpftool-perf.rst33 List all raw_tracepoint, tracepoint, kprobe attachment in the system.
36 followed by bpf program id, attachment information, and attachment point.
37 The attachment point for raw_tracepoint/tracepoint is the trace probe name.
38 The attachment point for k[ret]probe is either symbol name and offset,
40 The attachment point for u[ret]probe is the file name and the file offset.
/kernel/linux/linux-5.10/tools/bpf/bpftool/Documentation/
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.
/kernel/linux/linux-6.6/drivers/dma-buf/heaps/
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()
104 ret = dma_map_sgtable(attachment->dev, table, direction, 0); in cma_heap_map_dma_buf()
111 static void cma_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, in cma_heap_unmap_dma_buf() argument
115 struct dma_heap_attachment *a = attachment->priv; in cma_heap_unmap_dma_buf()
[all …]
Dsystem_heap.c83 struct dma_buf_attachment *attachment) in system_heap_attach() argument
100 a->dev = attachment->dev; in system_heap_attach()
104 attachment->priv = a; in system_heap_attach()
114 struct dma_buf_attachment *attachment) in system_heap_detach() argument
117 struct dma_heap_attachment *a = attachment->priv; in system_heap_detach()
128 static struct sg_table *system_heap_map_dma_buf(struct dma_buf_attachment *attachment, in system_heap_map_dma_buf() argument
131 struct dma_heap_attachment *a = attachment->priv; in system_heap_map_dma_buf()
135 ret = dma_map_sgtable(attachment->dev, table, direction, 0); in system_heap_map_dma_buf()
143 static void system_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, in system_heap_unmap_dma_buf() argument
147 struct dma_heap_attachment *a = attachment->priv; in system_heap_unmap_dma_buf()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
Damdgpu_dma_buf.c49 * dma_buf_attach_adev - Helper to get adev of an attachment
51 * @attach: attachment
73 * @attach: attachment to add
75 * Add the attachment as user to the exported DMA-buf.
104 * @dmabuf: DMA-buf where we remove the attachment from
105 * @attach: the attachment to remove
107 * Called when an attachment is removed from the DMA-buf.
123 * @attach: attachment to pin down
139 * @attach: attachment to unpin
153 * @attach: DMA-buf attachment
[all …]
Damdgpu_amdkfd_gpuvm.c515 struct kfd_mem_attachment *attachment) in kfd_mem_dmamap_userptr() argument
521 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_userptr()
522 struct amdgpu_device *adev = attachment->adev; in kfd_mem_dmamap_userptr()
565 kfd_mem_dmamap_dmabuf(struct kfd_mem_attachment *attachment) in kfd_mem_dmamap_dmabuf() argument
568 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_dmabuf()
583 * @attachment: Virtual address attachment of the BO on accessing device
608 struct kfd_mem_attachment *attachment) in kfd_mem_dmamap_sg_bo() argument
611 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_sg_bo()
612 struct amdgpu_device *adev = attachment->adev; in kfd_mem_dmamap_sg_bo()
663 struct kfd_mem_attachment *attachment) in kfd_mem_dmamap_attachment() argument
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/
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()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/selftests/
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()
/kernel/linux/linux-5.10/include/linux/
Ddma-buf.h40 * attachment. This avoids creating mappings for attachments multiple
349 * struct dma_buf_attach_ops - importer operations for an attachment
351 * Attachment operations implemented by the importer.
384 * struct dma_buf_attachment - holds device-buffer attachment data
385 * @dmabuf: buffer for this attachment.
391 * @priv: exporter specific attachment data.
392 * @importer_ops: importer operations for this attachment, if provided
394 * @importer_priv: importer specific attachment data.
396 * This structure holds the attachment information between the dma_buf buffer
397 * and its user device(s). The list contains one attachment struct per device
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
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 …]
/kernel/linux/linux-6.6/include/linux/
Ddma-buf.h41 * attachment. This avoids creating mappings for attachments multiple
452 * struct dma_buf_attach_ops - importer operations for an attachment
454 * Attachment operations implemented by the importer.
487 * struct dma_buf_attachment - holds device-buffer attachment data
488 * @dmabuf: buffer for this attachment.
494 * @priv: exporter specific attachment data.
495 * @importer_ops: importer operations for this attachment, if provided
497 * @importer_priv: importer specific attachment data.
499 * This structure holds the attachment information between the dma_buf buffer
500 * and its user device(s). The list contains one attachment struct per device
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
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()
/kernel/linux/linux-5.10/drivers/staging/android/ion/
Dion.c182 struct dma_buf_attachment *attachment) in ion_dma_buf_attach() argument
199 a->dev = attachment->dev; in ion_dma_buf_attach()
202 attachment->priv = a; in ion_dma_buf_attach()
212 struct dma_buf_attachment *attachment) in ion_dma_buf_detach() argument
214 struct ion_dma_buf_attachment *a = attachment->priv; in ion_dma_buf_detach()
225 static struct sg_table *ion_map_dma_buf(struct dma_buf_attachment *attachment, in ion_map_dma_buf() argument
228 struct ion_dma_buf_attachment *a = attachment->priv; in ion_map_dma_buf()
234 ret = dma_map_sgtable(attachment->dev, table, direction, 0); in ion_map_dma_buf()
241 static void ion_unmap_dma_buf(struct dma_buf_attachment *attachment, in ion_unmap_dma_buf() argument
245 dma_unmap_sgtable(attachment->dev, table, direction, 0); in ion_unmap_dma_buf()
/kernel/linux/linux-6.6/drivers/gpu/drm/omapdrm/
Domap_gem_dmabuf.c21 struct dma_buf_attachment *attachment, in omap_gem_map_dma_buf() argument
24 struct drm_gem_object *obj = attachment->dmabuf->priv; in omap_gem_map_dma_buf()
33 static void omap_gem_unmap_dma_buf(struct dma_buf_attachment *attachment, in omap_gem_unmap_dma_buf() argument
36 struct drm_gem_object *obj = attachment->dmabuf->priv; in omap_gem_unmap_dma_buf()
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/
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()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/ata/
Dpata-common.yaml7 title: Common Properties for Parallel AT attachment (PATA) controllers
14 ATA (PATA, also known as IDE) AT attachment storage devices.
Dsata-common.yaml7 title: Common Properties for Serial AT attachment (SATA) controllers
14 AT attachment (SATA) storage devices. It doesn't constitute a device tree
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/ata/
Dsata-common.yaml7 title: Common Properties for Serial AT attachment (SATA) controllers
14 AT attachment (SATA) storage devices. It doesn't constitute a device tree
Dpata-common.yaml7 title: Common Properties for Parallel AT attachment (PATA) controllers
14 ATA (PATA, also known as IDE) AT attachment storage devices.
/kernel/linux/linux-6.6/security/apparmor/include/
Dpolicy.h152 /* struct aa_attachment - data and rules for a profiles attachment
154 * @xmatch_str: human readable attachment string
179 * @attach: attachment rules for the profile
188 * used to determine profile attachment against unconfined tasks. All other
196 * determining profile attachment on "unconfined" tasks.
/kernel/linux/linux-5.10/Documentation/bpf/
Dbpf_lsm.rst116 Attachment to LSM Hooks
119 The LSM allows attachment of eBPF programs as LSM hooks using :manpage:`bpf(2)`
127 ``my_prog__attach`` for attachment and ``my_prog__destroy`` for cleaning up.
/kernel/linux/linux-6.6/Documentation/bpf/
Dprog_lsm.rst117 Attachment to LSM Hooks
120 The LSM allows attachment of eBPF programs as LSM hooks using :manpage:`bpf(2)`
128 ``my_prog__attach`` for attachment and ``my_prog__destroy`` for cleaning up.

12345678910>>...12