Home
last modified time | relevance | path

Searched refs:attachment (Results 1 - 17 of 17) sorted by relevance

/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_amdkfd_gpuvm.c511 struct kfd_mem_attachment *attachment) in kfd_mem_dmamap_userptr()
517 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_userptr()
518 struct amdgpu_device *adev = attachment->adev; in kfd_mem_dmamap_userptr()
561 kfd_mem_dmamap_dmabuf(struct kfd_mem_attachment *attachment) in kfd_mem_dmamap_dmabuf() argument
564 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_dmabuf()
579 * @attachment: Virtual address attachment of the BO on accessing device
604 struct kfd_mem_attachment *attachment) in kfd_mem_dmamap_sg_bo()
607 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_sg_bo()
608 struct amdgpu_device *adev = attachment in kfd_mem_dmamap_sg_bo()
510 kfd_mem_dmamap_userptr(struct kgd_mem *mem, struct kfd_mem_attachment *attachment) kfd_mem_dmamap_userptr() argument
603 kfd_mem_dmamap_sg_bo(struct kgd_mem *mem, struct kfd_mem_attachment *attachment) kfd_mem_dmamap_sg_bo() argument
658 kfd_mem_dmamap_attachment(struct kgd_mem *mem, struct kfd_mem_attachment *attachment) kfd_mem_dmamap_attachment() argument
677 kfd_mem_dmaunmap_userptr(struct kgd_mem *mem, struct kfd_mem_attachment *attachment) kfd_mem_dmaunmap_userptr() argument
701 kfd_mem_dmaunmap_dmabuf(struct kfd_mem_attachment *attachment) kfd_mem_dmaunmap_dmabuf() argument
726 kfd_mem_dmaunmap_sg_bo(struct kgd_mem *mem, struct kfd_mem_attachment *attachment) kfd_mem_dmaunmap_sg_bo() argument
754 kfd_mem_dmaunmap_attachment(struct kgd_mem *mem, struct kfd_mem_attachment *attachment) kfd_mem_dmaunmap_attachment() argument
829 struct kfd_mem_attachment *attachment[2] = {NULL, NULL}; kfd_mem_attach() local
952 kfd_mem_detach(struct kfd_mem_attachment *attachment) kfd_mem_detach() argument
2536 struct kfd_mem_attachment *attachment; validate_invalid_user_pages() local
2788 struct kfd_mem_attachment *attachment; amdgpu_amdkfd_gpuvm_restore_process_bos() local
[all...]
H A Damdgpu_object.c1574 struct dma_buf_attachment *attachment; in amdgpu_bo_print_info() local
1612 attachment = READ_ONCE(bo->tbo.base.import_attach); in amdgpu_bo_print_info()
1614 if (attachment) in amdgpu_bo_print_info()
/kernel/linux/linux-5.10/drivers/staging/media/tegra-vde/
H A 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/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()
/kernel/linux/linux-5.10/drivers/dma-buf/heaps/
H A Dheap-helpers.c94 struct dma_buf_attachment *attachment) in dma_heap_attach()
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()
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 in dma_heap_unmap_dma_buf()
93 dma_heap_attach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) dma_heap_attach() argument
125 dma_heap_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) dma_heap_detach() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/
H A 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/
H A 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/dma-buf/heaps/
H A Dsystem_heap.c83 struct dma_buf_attachment *attachment) in system_heap_attach()
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()
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 in system_heap_unmap_dma_buf()
82 system_heap_attach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) system_heap_attach() argument
113 system_heap_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) system_heap_detach() argument
[all...]
H A Dcma_heap.c51 struct dma_buf_attachment *attachment) in cma_heap_attach()
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()
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 in cma_heap_unmap_dma_buf()
50 cma_heap_attach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) cma_heap_attach() argument
83 cma_heap_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) cma_heap_detach() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
H A 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/gpu/drm/omapdrm/
H A Domap_gem_dmabuf.c19 struct dma_buf_attachment *attachment, in omap_gem_map_dma_buf()
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()
18 omap_gem_map_dma_buf( struct dma_buf_attachment *attachment, enum dma_data_direction dir) omap_gem_map_dma_buf() argument
/kernel/linux/linux-6.6/drivers/gpu/drm/omapdrm/
H A Domap_gem_dmabuf.c21 struct dma_buf_attachment *attachment, in omap_gem_map_dma_buf()
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()
20 omap_gem_map_dma_buf( struct dma_buf_attachment *attachment, enum dma_data_direction dir) omap_gem_map_dma_buf() argument
/kernel/linux/linux-5.10/drivers/staging/android/ion/
H A Dion.c182 struct dma_buf_attachment *attachment) in ion_dma_buf_attach()
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()
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 in ion_unmap_dma_buf()
181 ion_dma_buf_attach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) ion_dma_buf_attach() argument
211 ion_dma_buf_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) ion_dma_buf_detach() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gem.c854 struct dma_buf_attachment *attachment; in amdgpu_debugfs_gem_bo_info() local
881 attachment = READ_ONCE(bo->tbo.base.import_attach); in amdgpu_debugfs_gem_bo_info()
883 if (attachment) in amdgpu_debugfs_gem_bo_info()
885 attachment->peer2peer ? " P2P" : ""); in amdgpu_debugfs_gem_bo_info()
/kernel/linux/linux-5.10/drivers/misc/
H A Dfastrpc.c527 fastrpc_map_dma_buf(struct dma_buf_attachment *attachment, in fastrpc_map_dma_buf() argument
530 struct fastrpc_dma_buf_attachment *a = attachment->priv; in fastrpc_map_dma_buf()
536 ret = dma_map_sgtable(attachment->dev, table, dir, 0); in fastrpc_map_dma_buf()
557 struct dma_buf_attachment *attachment) in fastrpc_dma_buf_attach()
575 a->dev = attachment->dev; in fastrpc_dma_buf_attach()
577 attachment->priv = a; in fastrpc_dma_buf_attach()
587 struct dma_buf_attachment *attachment) in fastrpc_dma_buf_detatch()
589 struct fastrpc_dma_buf_attachment *a = attachment->priv; in fastrpc_dma_buf_detatch()
556 fastrpc_dma_buf_attach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) fastrpc_dma_buf_attach() argument
586 fastrpc_dma_buf_detatch(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) fastrpc_dma_buf_detatch() argument
/kernel/linux/linux-6.6/drivers/accel/habanalabs/common/
H A Dmemory.c1684 struct dma_buf_attachment *attachment) in hl_dmabuf_attach()
1693 rc = pci_p2pdma_distance(hdev->pdev, attachment->dev, true); in hl_dmabuf_attach()
1696 attachment->peer2peer = false; in hl_dmabuf_attach()
1700 static struct sg_table *hl_map_dmabuf(struct dma_buf_attachment *attachment, in hl_map_dmabuf() argument
1703 struct dma_buf *dma_buf = attachment->dmabuf; in hl_map_dmabuf()
1713 if (!attachment->peer2peer) { in hl_map_dmabuf()
1724 attachment->dev, in hl_map_dmabuf()
1732 attachment->dev, in hl_map_dmabuf()
1741 static void hl_unmap_dmabuf(struct dma_buf_attachment *attachment, in hl_unmap_dmabuf() argument
1756 dma_unmap_resource(attachment in hl_unmap_dmabuf()
1683 hl_dmabuf_attach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) hl_dmabuf_attach() argument
[all...]
/kernel/linux/linux-6.6/drivers/misc/
H A Dfastrpc.c652 fastrpc_map_dma_buf(struct dma_buf_attachment *attachment, in fastrpc_map_dma_buf() argument
655 struct fastrpc_dma_buf_attachment *a = attachment->priv; in fastrpc_map_dma_buf()
661 ret = dma_map_sgtable(attachment->dev, table, dir, 0); in fastrpc_map_dma_buf()
682 struct dma_buf_attachment *attachment) in fastrpc_dma_buf_attach()
700 a->dev = attachment->dev; in fastrpc_dma_buf_attach()
702 attachment->priv = a; in fastrpc_dma_buf_attach()
712 struct dma_buf_attachment *attachment) in fastrpc_dma_buf_detatch()
714 struct fastrpc_dma_buf_attachment *a = attachment->priv; in fastrpc_dma_buf_detatch()
681 fastrpc_dma_buf_attach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) fastrpc_dma_buf_attach() argument
711 fastrpc_dma_buf_detatch(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) fastrpc_dma_buf_detatch() argument

Completed in 19 milliseconds