Home
last modified time | relevance | path

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

1234567

/linux/drivers/auxdisplay/
H A Dline-display.c57 struct linedisp_attachment *attachment; in create_attachment() local
59 attachment = kzalloc_obj(*attachment); in create_attachment()
60 if (!attachment) in create_attachment()
63 attachment->device = dev; in create_attachment()
64 attachment->linedisp = linedisp; in create_attachment()
65 attachment->direct = direct; in create_attachment()
68 list_add(&attachment->list, &linedisp_attachments); in create_attachment()
75 struct linedisp_attachment *attachment; in delete_attachment() local
80 list_for_each_entry(attachment, &linedisp_attachments, list) { in delete_attachment()
81 if (attachment->device == dev && in delete_attachment()
[all …]
/linux/drivers/vfio/pci/
H A Dvfio_pci_dmabuf.c23 static int vfio_pci_dma_buf_pin(struct dma_buf_attachment *attachment) in vfio_pci_dma_buf_pin() argument
28 static void vfio_pci_dma_buf_unpin(struct dma_buf_attachment *attachment) in vfio_pci_dma_buf_unpin() argument
34 struct dma_buf_attachment *attachment) in vfio_pci_dma_buf_attach() argument
38 if (!attachment->peer2peer) in vfio_pci_dma_buf_attach()
48 vfio_pci_dma_buf_map(struct dma_buf_attachment *attachment, in vfio_pci_dma_buf_map() argument
51 struct vfio_pci_dma_buf *priv = attachment->dmabuf->priv; in vfio_pci_dma_buf_map()
58 return dma_buf_phys_vec_to_sgt(attachment, priv->provider, in vfio_pci_dma_buf_map()
63 static void vfio_pci_dma_buf_unmap(struct dma_buf_attachment *attachment, in vfio_pci_dma_buf_unmap() argument
67 dma_buf_free_sgt(attachment, sgt, dir); in vfio_pci_dma_buf_unmap()
108 int vfio_pci_dma_buf_iommufd_map(struct dma_buf_attachment *attachment, in vfio_pci_dma_buf_iommufd_map() argument
[all...]
/linux/drivers/infiniband/core/
H A Duverbs_std_types_dmabuf.c16 struct dma_buf_attachment *attachment) in uverbs_dmabuf_attach() argument
18 if (!attachment->peer2peer) in uverbs_dmabuf_attach()
25 uverbs_dmabuf_map(struct dma_buf_attachment *attachment, in uverbs_dmabuf_map() argument
28 struct ib_uverbs_dmabuf_file *priv = attachment->dmabuf->priv; in uverbs_dmabuf_map()
36 ret = dma_buf_phys_vec_to_sgt(attachment, priv->provider, in uverbs_dmabuf_map()
46 static void uverbs_dmabuf_unmap(struct dma_buf_attachment *attachment, in uverbs_dmabuf_unmap() argument
50 struct ib_uverbs_dmabuf_file *priv = attachment->dmabuf->priv; in uverbs_dmabuf_unmap()
53 dma_buf_free_sgt(attachment, sgt, dir); in uverbs_dmabuf_unmap()
/linux/drivers/media/platform/nvidia/tegra-vde/
H A 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()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_amdkfd_gpuvm.c561 struct kfd_mem_attachment *attachment) in kfd_mem_dmamap_userptr() argument
567 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_userptr()
568 struct amdgpu_device *adev = attachment->adev; in kfd_mem_dmamap_userptr()
611 kfd_mem_dmamap_dmabuf(struct kfd_mem_attachment *attachment) in kfd_mem_dmamap_dmabuf() argument
614 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_dmabuf()
623 * @attachment: Virtual address attachment of the BO on accessing device
648 struct kfd_mem_attachment *attachment) in kfd_mem_dmamap_sg_bo() argument
651 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_sg_bo()
652 struct amdgpu_device *adev = attachment->adev; in kfd_mem_dmamap_sg_bo()
703 struct kfd_mem_attachment *attachment) in kfd_mem_dmamap_attachment() argument
[all …]
H A Damdgpu_dma_buf.c50 * dma_buf_attach_adev - Helper to get adev of an attachment
52 * @attach: attachment
74 * @attach: attachment to add
76 * Add the attachment as user to the exported DMA-buf.
117 * @attach: attachment to pin down
130 * support if all attachments can do P2P. If any attachment can't do in amdgpu_dma_buf_pin()
157 * @attach: attachment to unpin
171 * @attach: DMA-buf attachment
255 * @attach: DMA-buf attachment
417 * described by the given DMA-buf attachment and scatter/gather table.
[all …]
/linux/drivers/dma-buf/heaps/
H A Dcma_heap.c71 struct dma_buf_attachment *attachment) in cma_heap_attach() argument
90 a->dev = attachment->dev; in cma_heap_attach()
94 attachment->priv = a; in cma_heap_attach()
104 struct dma_buf_attachment *attachment) in cma_heap_detach() argument
107 struct dma_heap_attachment *a = attachment->priv; in cma_heap_detach()
117 static struct sg_table *cma_heap_map_dma_buf(struct dma_buf_attachment *attachment, in cma_heap_map_dma_buf() argument
120 struct dma_heap_attachment *a = attachment->priv; in cma_heap_map_dma_buf()
124 ret = dma_map_sgtable(attachment->dev, table, direction, 0); in cma_heap_map_dma_buf()
131 static void cma_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, in cma_heap_unmap_dma_buf() argument
135 struct dma_heap_attachment *a = attachment->priv; in cma_heap_unmap_dma_buf()
[all …]
H A Dsystem_heap.c74 struct dma_buf_attachment *attachment) in system_heap_attach() argument
90 a->dev = attachment->dev; in system_heap_attach()
94 attachment->priv = a; in system_heap_attach()
104 struct dma_buf_attachment *attachment) in system_heap_detach() argument
107 struct dma_heap_attachment *a = attachment->priv; in system_heap_detach()
117 static struct sg_table *system_heap_map_dma_buf(struct dma_buf_attachment *attachment, in system_heap_map_dma_buf() argument
120 struct dma_heap_attachment *a = attachment->priv; in system_heap_map_dma_buf()
124 ret = dma_map_sgtable(attachment->dev, table, direction, 0); in system_heap_map_dma_buf()
132 static void system_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, in system_heap_unmap_dma_buf() argument
136 struct dma_heap_attachment *a = attachment->priv; in system_heap_unmap_dma_buf()
[all …]
/linux/tools/bpf/bpftool/Documentation/
H A 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, or a
39 kernel virtual address. The attachment point for u[ret]probe is the file
/linux/drivers/tee/
H A Dtee_heap.c91 struct dma_buf_attachment *attachment) in tee_heap_attach() argument
107 a->dev = attachment->dev; in tee_heap_attach()
108 attachment->priv = a; in tee_heap_attach()
114 struct dma_buf_attachment *attachment) in tee_heap_detach() argument
116 struct tee_heap_attachment *a = attachment->priv; in tee_heap_detach()
123 tee_heap_map_dma_buf(struct dma_buf_attachment *attachment, in tee_heap_map_dma_buf() argument
126 struct tee_heap_attachment *a = attachment->priv; in tee_heap_map_dma_buf()
129 ret = dma_map_sgtable(attachment->dev, &a->table, direction, in tee_heap_map_dma_buf()
137 static void tee_heap_unmap_dma_buf(struct dma_buf_attachment *attachment, in tee_heap_unmap_dma_buf() argument
141 struct tee_heap_attachment *a = attachment->priv; in tee_heap_unmap_dma_buf()
[all …]
/linux/drivers/gpu/drm/i915/gem/selftests/
H A Dmock_dmabuf.c10 static struct sg_table *mock_map_dma_buf(struct dma_buf_attachment *attachment, in mock_map_dma_buf() argument
13 struct mock_dmabuf *mock = to_mock(attachment->dmabuf); in mock_map_dma_buf()
32 err = dma_map_sgtable(attachment->dev, st, dir, 0); in mock_map_dma_buf()
45 static void mock_unmap_dma_buf(struct dma_buf_attachment *attachment, in mock_unmap_dma_buf() argument
49 dma_unmap_sgtable(attachment->dev, st, dir, 0); in mock_unmap_dma_buf()
/linux/net/core/
H A Ddevmem.c77 dma_buf_unmap_attachment_unlocked(binding->attachment, binding->sgt, in __net_devmem_dmabuf_binding_free()
79 dma_buf_detach(binding->dmabuf, binding->attachment); in __net_devmem_dmabuf_binding_free()
228 binding->attachment = dma_buf_attach(binding->dmabuf, dma_dev); in net_devmem_bind_dmabuf()
229 if (IS_ERR(binding->attachment)) { in net_devmem_bind_dmabuf()
230 err = PTR_ERR(binding->attachment); in net_devmem_bind_dmabuf()
235 binding->sgt = dma_buf_map_attachment_unlocked(binding->attachment, in net_devmem_bind_dmabuf()
239 NL_SET_ERR_MSG(extack, "Failed to map dmabuf attachment"); in net_devmem_bind_dmabuf()
328 dma_buf_unmap_attachment_unlocked(binding->attachment, binding->sgt, in net_devmem_bind_dmabuf()
331 dma_buf_detach(dmabuf, binding->attachment); in net_devmem_bind_dmabuf()
/linux/drivers/accel/ivpu/
H A Divpu_gem_userptr.c23 ivpu_gem_userptr_dmabuf_map(struct dma_buf_attachment *attachment, in ivpu_gem_userptr_dmabuf_map() argument
26 struct sg_table *sgt = attachment->dmabuf->priv; in ivpu_gem_userptr_dmabuf_map()
29 ret = dma_map_sgtable(attachment->dev, sgt, direction, DMA_ATTR_SKIP_CPU_SYNC); in ivpu_gem_userptr_dmabuf_map()
36 static void ivpu_gem_userptr_dmabuf_unmap(struct dma_buf_attachment *attachment, in ivpu_gem_userptr_dmabuf_unmap() argument
40 dma_unmap_sgtable(attachment->dev, sgt, direction, DMA_ATTR_SKIP_CPU_SYNC); in ivpu_gem_userptr_dmabuf_unmap()
/linux/drivers/gpu/drm/omapdrm/
H A 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()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Drecursive_attach.c9 /* Test recursive attachment of tracing progs with more than one nesting level
10 * is not possible. Create a chain of attachment, verify that the last prog
47 /* Create an attachment chain with two fentry progs */ in test_recursive_fentry_chain()
82 * attachment of the following prog. in test_recursive_fentry_chain()
/linux/Documentation/devicetree/bindings/ata/
H A Dpata-common.yaml7 title: Common Properties for Parallel AT attachment (PATA) controllers
14 ATA (PATA, also known as IDE) AT attachment storage devices.
H A 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
/linux/Documentation/bpf/
H A 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.
H A 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
H A Dprog_sk_lookup.rst33 Attachment chapter
38 netns FD as attachment ``target_fd``.
/linux/security/apparmor/include/
H A Dpolicy.h206 /* struct aa_attachment - data and rules for a profiles attachment
208 * @xmatch_str: human readable attachment string
233 * @attach: attachment rules for the profile
248 * used to determine profile attachment against unconfined tasks. All other
256 * determining profile attachment on "unconfined" tasks.
/linux/fs/jffs2/
H A Dsecurity.c25 /* ---- Initial Security Label(s) Attachment callback --- */
42 /* ---- Initial Security Label(s) Attachment ----------- */
/linux/drivers/dma-buf/
H A Ddma-buf.c991 * @importer_ops: [in] importer operations for the attachment
992 * @importer_priv: [in] importer private pointer for the attachment
994 * Returns struct dma_buf_attachment pointer for this attachment. Attachments
1070 * dma_buf_detach - Remove the given attachment from dmabuf's attachments list
1072 * @attach: [in] attachment to be detached; is free'd after this call.
1074 * Clean up a device attachment obtained by calling dma_buf_attach().
1099 * @attach: [in] attachment which should be pinned
1129 * @attach: [in] attachment which should be unpinned
1149 * dma_buf_map_attachment - Returns the scatterlist table of the attachment;
1152 * @attach: [in] attachment whose scatterlist is to be returned
[all …]
H A Ddma-buf-mapping.c70 * dma_buf_phys_vec_to_sgt - Returns the scatterlist table of the attachment
73 * @attach: [in] attachment whose scatterlist is to be returned
215 * @attach: [in] attachment to unmap buffer from
/linux/sound/soc/fsl/
H A Dfsl_asrc_m2m.c417 static struct sg_table *fsl_asrc_m2m_map_dma_buf(struct dma_buf_attachment *attachment, in fsl_asrc_m2m_map_dma_buf() argument
420 struct snd_dma_buffer *dmab = attachment->dmabuf->priv; in fsl_asrc_m2m_map_dma_buf()
427 if (dma_get_sgtable(attachment->dev, sgt, dmab->area, dmab->addr, dmab->bytes) < 0) in fsl_asrc_m2m_map_dma_buf()
430 if (dma_map_sgtable(attachment->dev, sgt, direction, 0)) in fsl_asrc_m2m_map_dma_buf()
441 static void fsl_asrc_m2m_unmap_dma_buf(struct dma_buf_attachment *attachment, in fsl_asrc_m2m_unmap_dma_buf() argument
445 dma_unmap_sgtable(attachment->dev, table, direction, 0); in fsl_asrc_m2m_unmap_dma_buf()

1234567