Home
last modified time | relevance | path

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

12345678910

/kernel/linux/linux-5.10/drivers/dma-buf/heaps/
Dheap-helpers.c93 struct dma_buf_attachment *attachment) in dma_heap_attach() argument
112 a->dev = attachment->dev; in dma_heap_attach()
115 attachment->priv = a; in dma_heap_attach()
125 struct dma_buf_attachment *attachment) in dma_heap_detach() argument
127 struct dma_heaps_attachment *a = attachment->priv; in dma_heap_detach()
139 struct sg_table *dma_heap_map_dma_buf(struct dma_buf_attachment *attachment, in dma_heap_map_dma_buf() argument
142 struct dma_heaps_attachment *a = attachment->priv; in dma_heap_map_dma_buf()
146 ret = dma_map_sgtable(attachment->dev, table, direction, 0); in dma_heap_map_dma_buf()
152 static void dma_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, in dma_heap_unmap_dma_buf() argument
156 dma_unmap_sgtable(attachment->dev, table, direction, 0); in dma_heap_unmap_dma_buf()
/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-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-4.19/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-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-5.10/include/linux/
Ddma-buf.h40 * attachment. This avoids creating mappings for attachments multiple
333 * struct dma_buf_attach_ops - importer operations for an attachment
335 * Attachment operations implemented by the importer.
368 * struct dma_buf_attachment - holds device-buffer attachment data
369 * @dmabuf: buffer for this attachment.
375 * @priv: exporter specific attachment data.
376 * @importer_ops: importer operations for this attachment, if provided
378 * @importer_priv: importer specific attachment data.
380 * This structure holds the attachment information between the dma_buf buffer
381 * and its user device(s). The list contains one attachment struct per device
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/i915/selftests/
Dmock_dmabuf.c27 static struct sg_table *mock_map_dma_buf(struct dma_buf_attachment *attachment, in mock_map_dma_buf() argument
30 struct mock_dmabuf *mock = to_mock(attachment->dmabuf); in mock_map_dma_buf()
49 if (!dma_map_sg(attachment->dev, st->sgl, st->nents, dir)) { in mock_map_dma_buf()
63 static void mock_unmap_dma_buf(struct dma_buf_attachment *attachment, in mock_unmap_dma_buf() argument
67 dma_unmap_sg(attachment->dev, st->sgl, st->nents, dir); in mock_unmap_dma_buf()
/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-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.c179 struct dma_buf_attachment *attachment) in ion_dma_buf_attach() argument
196 a->dev = attachment->dev; in ion_dma_buf_attach()
199 attachment->priv = a; in ion_dma_buf_attach()
209 struct dma_buf_attachment *attachment) in ion_dma_buf_detach() argument
211 struct ion_dma_buf_attachment *a = attachment->priv; in ion_dma_buf_detach()
222 static struct sg_table *ion_map_dma_buf(struct dma_buf_attachment *attachment, in ion_map_dma_buf() argument
225 struct ion_dma_buf_attachment *a = attachment->priv; in ion_map_dma_buf()
231 ret = dma_map_sgtable(attachment->dev, table, direction, 0); in ion_map_dma_buf()
238 static void ion_unmap_dma_buf(struct dma_buf_attachment *attachment, in ion_unmap_dma_buf() argument
242 dma_unmap_sgtable(attachment->dev, table, direction, 0); in ion_unmap_dma_buf()
/kernel/linux/linux-4.19/drivers/staging/android/ion/
Dion.c205 struct dma_buf_attachment *attachment) in ion_dma_buf_attach() argument
222 a->dev = attachment->dev; in ion_dma_buf_attach()
225 attachment->priv = a; in ion_dma_buf_attach()
235 struct dma_buf_attachment *attachment) in ion_dma_buf_detatch() argument
237 struct ion_dma_buf_attachment *a = attachment->priv; in ion_dma_buf_detatch()
248 static struct sg_table *ion_map_dma_buf(struct dma_buf_attachment *attachment, in ion_map_dma_buf() argument
251 struct ion_dma_buf_attachment *a = attachment->priv; in ion_map_dma_buf()
256 if (!dma_map_sg(attachment->dev, table->sgl, table->nents, in ion_map_dma_buf()
263 static void ion_unmap_dma_buf(struct dma_buf_attachment *attachment, in ion_unmap_dma_buf() argument
267 dma_unmap_sg(attachment->dev, table->sgl, table->nents, direction); in ion_unmap_dma_buf()
/kernel/linux/linux-4.19/drivers/gpu/drm/i915/
Di915_gem_dmabuf.c39 static struct sg_table *i915_gem_map_dma_buf(struct dma_buf_attachment *attachment, in i915_gem_map_dma_buf() argument
42 struct drm_i915_gem_object *obj = dma_buf_to_obj(attachment->dmabuf); in i915_gem_map_dma_buf()
70 if (!dma_map_sg(attachment->dev, st->sgl, st->nents, dir)) { in i915_gem_map_dma_buf()
87 static void i915_gem_unmap_dma_buf(struct dma_buf_attachment *attachment, in i915_gem_unmap_dma_buf() argument
91 struct drm_i915_gem_object *obj = dma_buf_to_obj(attachment->dmabuf); in i915_gem_unmap_dma_buf()
93 dma_unmap_sg(attachment->dev, sg->sgl, sg->nents, dir); in i915_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-4.19/drivers/gpu/drm/omapdrm/
Domap_gem_dmabuf.c27 struct dma_buf_attachment *attachment, in omap_gem_map_dma_buf() argument
30 struct drm_gem_object *obj = attachment->dmabuf->priv; in omap_gem_map_dma_buf()
64 static void omap_gem_unmap_dma_buf(struct dma_buf_attachment *attachment, in omap_gem_unmap_dma_buf() argument
67 struct drm_gem_object *obj = attachment->dmabuf->priv; in omap_gem_unmap_dma_buf()
/kernel/linux/linux-5.10/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-4.19/include/linux/
Ddma-buf.h306 * struct dma_buf_attachment - holds device-buffer attachment data
307 * @dmabuf: buffer for this attachment.
310 * @priv: exporter specific attachment data.
312 * This structure holds the attachment information between the dma_buf buffer
313 * and its user device(s). The list contains one attachment struct per device
316 * An attachment is created by calling dma_buf_attach(), and released again by
/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.
Dmap_cgroup_storage.rst130 Prior to Linux 5.9, the lifetime of a storage is precisely per-attachment, and
146 the old storage is reused for the new attachment. If the map is attach type
160 APIs to read or update the storage for a given attachment. For Linux 5.9
/kernel/linux/linux-4.19/net/xfrm/
DKconfig55 where mobile nodes change their attachment point to the Internet.
95 change their attachment point to the Internet. Detail
/kernel/linux/linux-4.19/drivers/gpu/drm/
Ddrm_prime.c53 * It calls dma_buf_get, creates an attachment to it and stores the
54 * attachment in the GEM object. When this attachment is destroyed
55 * when the imported object is destroyed, we remove the attachment
189 * @attach: buffer attachment data
192 * device specific attachment. This can be used as the &dma_buf_ops.attach
221 * @attach: attachment to be detached
282 * @attach: attachment whose scatterlist is to be returned
307 * two mappings with different directions for the same attachment are in drm_gem_map_dma_buf()
333 * @attach: attachment to unmap buffer from
/kernel/linux/linux-4.19/fs/jffs2/
Dsecurity.c25 /* ---- Initial Security Label(s) Attachment callback --- */
42 /* ---- Initial Security Label(s) Attachment ----------- */
/kernel/linux/linux-5.10/fs/jffs2/
Dsecurity.c25 /* ---- Initial Security Label(s) Attachment callback --- */
42 /* ---- Initial Security Label(s) Attachment ----------- */
/kernel/linux/linux-5.10/net/xfrm/
DKconfig67 where mobile nodes change their attachment point to the Internet.
131 change their attachment point to the Internet. Detail
/kernel/linux/linux-5.10/drivers/dma-buf/
Ddma-buf.c673 * @importer_ops: [in] importer operations for the attachment
674 * @importer_priv: [in] importer private pointer for the attachment
676 * Returns struct dma_buf_attachment pointer for this attachment. Attachments
785 * dma_buf_detach - Remove the given attachment from dmabuf's attachments list;
788 * @attach: [in] attachment to be detached; is free'd after this call.
790 * Clean up a device attachment obtained by calling dma_buf_attach().
822 * @attach: [in] attachment which should be pinned
844 * @attach: [in] attachment which should be unpinned
858 * dma_buf_map_attachment - Returns the scatterlist table of the attachment;
861 * @attach: [in] attachment whose scatterlist is to be returned
[all …]

12345678910