Home
last modified time | relevance | path

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

12

/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/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()
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
705 switch (attachment->type) { in kfd_mem_dmamap_attachment()
[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/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/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/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/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/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()
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/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()
/linux/Documentation/bpf/
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_lsm.rst120 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 Dprog_sk_lookup.rst38 netns FD as attachment ``target_fd``.
/linux/tools/testing/selftests/ublk/trace/
H A Dseq_io.bt8 completion, sync complete_seq to handle probe attachment races.
/linux/drivers/iommu/iommufd/
H A Dselftest.c1965 struct dma_buf_attachment *attachment) in iommufd_test_dma_buf_attach() argument
1971 struct dma_buf_attachment *attachment) in iommufd_test_dma_buf_detach() argument
1976 iommufd_test_dma_buf_map(struct dma_buf_attachment *attachment, in iommufd_test_dma_buf_map() argument
1982 static void iommufd_test_dma_buf_unmap(struct dma_buf_attachment *attachment, in iommufd_test_dma_buf_unmap() argument
2004 int iommufd_test_dma_buf_iommufd_map(struct dma_buf_attachment *attachment, in iommufd_test_dma_buf_iommufd_map() argument
2007 struct iommufd_test_dma_buf *priv = attachment->dmabuf->priv; in iommufd_test_dma_buf_iommufd_map()
2009 dma_resv_assert_held(attachment->dmabuf->resv); in iommufd_test_dma_buf_iommufd_map()
2011 if (attachment->dmabuf->ops != &iommufd_test_dmabuf_ops) in iommufd_test_dma_buf_iommufd_map()
/linux/drivers/accel/habanalabs/common/
H A Dmemory.c1708 struct dma_buf_attachment *attachment) in hl_dmabuf_attach() argument
1717 rc = pci_p2pdma_distance(hdev->pdev, attachment->dev, true); in hl_dmabuf_attach()
1720 attachment->peer2peer = false; in hl_dmabuf_attach()
1724 static struct sg_table *hl_map_dmabuf(struct dma_buf_attachment *attachment, in hl_map_dmabuf() argument
1728 struct dma_buf *dma_buf = attachment->dmabuf; in hl_map_dmabuf()
1737 if (!attachment->peer2peer) { in hl_map_dmabuf()
1757 attachment->dev, dir); in hl_map_dmabuf()
1764 static void hl_unmap_dmabuf(struct dma_buf_attachment *attachment, in hl_unmap_dmabuf() argument
1779 dma_unmap_resource(attachment->dev, sg_dma_address(sg), in hl_unmap_dmabuf()
/linux/drivers/sbus/char/
H A DKconfig29 events, and can also notice the attachment/detachment of external
/linux/Documentation/ABI/testing/
H A Dsysfs-firmware-ofw11 have no attachment to the system tree and will appear in a
/linux/drivers/misc/
H A Dfastrpc.c670 fastrpc_map_dma_buf(struct dma_buf_attachment *attachment, in fastrpc_map_dma_buf() argument
673 struct fastrpc_dma_buf_attachment *a = attachment->priv; in fastrpc_map_dma_buf()
679 ret = dma_map_sgtable(attachment->dev, table, dir, 0); in fastrpc_map_dma_buf()
700 struct dma_buf_attachment *attachment) in fastrpc_dma_buf_attach() argument
719 a->dev = attachment->dev; in fastrpc_dma_buf_attach()
721 attachment->priv = a; in fastrpc_dma_buf_attach()
731 struct dma_buf_attachment *attachment) in fastrpc_dma_buf_detatch() argument
733 struct fastrpc_dma_buf_attachment *a = attachment->priv; in fastrpc_dma_buf_detatch()
/linux/Documentation/networking/device_drivers/fddi/
H A Ddefza.rst12 model 200 workstation. The board is a single attachment station and
/linux/include/linux/
H A Dvfio_pci_core.h237 int vfio_pci_dma_buf_iommufd_map(struct dma_buf_attachment *attachment,
/linux/Documentation/admin-guide/LSM/
H A DYama.rst31 specifically disallow such ptrace attachment (e.g. ssh-agent), but many

12