Home
last modified time | relevance | path

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

12

/linux/drivers/vfio/pci/
H A Dvfio_pci_dmabuf.c24 struct dma_buf_attachment *attachment) in vfio_pci_dma_buf_attach() argument
28 if (!attachment->peer2peer) in vfio_pci_dma_buf_attach()
38 vfio_pci_dma_buf_map(struct dma_buf_attachment *attachment, in vfio_pci_dma_buf_map() argument
41 struct vfio_pci_dma_buf *priv = attachment->dmabuf->priv; in vfio_pci_dma_buf_map()
48 return dma_buf_phys_vec_to_sgt(attachment, priv->provider, in vfio_pci_dma_buf_map()
53 static void vfio_pci_dma_buf_unmap(struct dma_buf_attachment *attachment, in vfio_pci_dma_buf_unmap() argument
57 dma_buf_free_sgt(attachment, sgt, dir); in vfio_pci_dma_buf_unmap()
96 int vfio_pci_dma_buf_iommufd_map(struct dma_buf_attachment *attachment, in vfio_pci_dma_buf_iommufd_map() argument
101 dma_resv_assert_held(attachment->dmabuf->resv); in vfio_pci_dma_buf_iommufd_map()
103 if (attachment->dmabuf->ops != &vfio_pci_dmabuf_ops) in vfio_pci_dma_buf_iommufd_map()
[all …]
/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/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/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 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/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/net/core/
H A Ddevmem.c73 dma_buf_unmap_attachment_unlocked(binding->attachment, binding->sgt, in __net_devmem_dmabuf_binding_free()
75 dma_buf_detach(binding->dmabuf, binding->attachment); in __net_devmem_dmabuf_binding_free()
219 binding->attachment = dma_buf_attach(binding->dmabuf, dma_dev); in net_devmem_bind_dmabuf()
220 if (IS_ERR(binding->attachment)) { in net_devmem_bind_dmabuf()
221 err = PTR_ERR(binding->attachment); in net_devmem_bind_dmabuf()
226 binding->sgt = dma_buf_map_attachment_unlocked(binding->attachment, in net_devmem_bind_dmabuf()
321 dma_buf_unmap_attachment_unlocked(binding->attachment, binding->sgt, in net_devmem_bind_dmabuf()
324 dma_buf_detach(dmabuf, binding->attachment); in net_devmem_bind_dmabuf()
/linux/sound/soc/fsl/
H A Dfsl_asrc_m2m.c411 static struct sg_table *fsl_asrc_m2m_map_dma_buf(struct dma_buf_attachment *attachment, in fsl_asrc_m2m_map_dma_buf() argument
414 struct snd_dma_buffer *dmab = attachment->dmabuf->priv; in fsl_asrc_m2m_map_dma_buf()
421 if (dma_get_sgtable(attachment->dev, sgt, dmab->area, dmab->addr, dmab->bytes) < 0) in fsl_asrc_m2m_map_dma_buf()
424 if (dma_map_sgtable(attachment->dev, sgt, direction, 0)) in fsl_asrc_m2m_map_dma_buf()
435 static void fsl_asrc_m2m_unmap_dma_buf(struct dma_buf_attachment *attachment, in fsl_asrc_m2m_unmap_dma_buf() argument
439 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/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.c646 fastrpc_map_dma_buf(struct dma_buf_attachment *attachment, in fastrpc_map_dma_buf() argument
649 struct fastrpc_dma_buf_attachment *a = attachment->priv; in fastrpc_map_dma_buf()
655 ret = dma_map_sgtable(attachment->dev, table, dir, 0); in fastrpc_map_dma_buf()
676 struct dma_buf_attachment *attachment) in fastrpc_dma_buf_attach() argument
694 a->dev = attachment->dev; in fastrpc_dma_buf_attach()
696 attachment->priv = a; in fastrpc_dma_buf_attach()
706 struct dma_buf_attachment *attachment) in fastrpc_dma_buf_detatch() argument
708 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/drivers/iommu/iommufd/
H A Diommufd_private.h720 int iommufd_test_dma_buf_iommufd_map(struct dma_buf_attachment *attachment,
744 iommufd_test_dma_buf_iommufd_map(struct dma_buf_attachment *attachment, in iommufd_test_dma_buf_iommufd_map() argument
H A Dpages.c1462 sym_vfio_pci_dma_buf_iommufd_map(struct dma_buf_attachment *attachment, in sym_vfio_pci_dma_buf_iommufd_map() argument
1468 rc = iommufd_test_dma_buf_iommufd_map(attachment, phys); in sym_vfio_pci_dma_buf_iommufd_map()
1478 rc = fn(attachment, phys); in sym_vfio_pci_dma_buf_iommufd_map()
/linux/include/linux/
H A Dvfio_pci_core.h238 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
/linux/Documentation/hid/
H A Dhid-bpf.rst155 HID-BPF has the following attachment types available:
248 For all HID-BPF attachment types except for :c:func:`hid_rdesc_fixup`, several eBPF
321 We now use standard struct_ops attachment through ``bpf_map__attach_struct_ops()``.
/linux/Documentation/admin-guide/media/
H A Dfimc.rst31 - dynamic pipeline re-configuration at runtime (re-attachment of any FIMC
/linux/security/
H A DKconfig31 require actual active ptrace attachment.
/linux/Documentation/arch/s390/
H A D3270.rst5 This file describes the driver that supports local channel attachment
/linux/Documentation/process/
H A Dsubmitting-patches.rst298 Do not attach the patch as a MIME attachment, compressed or not.
300 attachment as plain text, making it impossible to comment on your
301 code. A MIME attachment also takes Linus a bit more time to process,
/linux/Documentation/admin-guide/cgroup-v1/
H A Dcgroups.rst262 The attachment of each task, automatically inherited at fork by any
642 post-attachment activity that requires memory allocations or blocking.

12