Lines Matching refs:attach
155 struct dma_buf_attachment *attach, in amdgpu_gem_prime_import_sg_table() argument
158 struct reservation_object *resv = attach->dmabuf->resv; in amdgpu_gem_prime_import_sg_table()
165 bp.size = attach->dmabuf->size; in amdgpu_gem_prime_import_sg_table()
180 if (attach->dmabuf->ops != &amdgpu_dmabuf_ops) in amdgpu_gem_prime_import_sg_table()
204 struct dma_buf_attachment *attach) in amdgpu_gem_map_attach() argument
211 r = drm_gem_map_attach(dma_buf, attach); in amdgpu_gem_map_attach()
220 if (attach->dev->driver != adev->dev->driver) { in amdgpu_gem_map_attach()
239 if (attach->dev->driver != adev->dev->driver) in amdgpu_gem_map_attach()
247 drm_gem_map_detach(dma_buf, attach); in amdgpu_gem_map_attach()
260 struct dma_buf_attachment *attach) in amdgpu_gem_map_detach() argument
272 if (attach->dev->driver != adev->dev->driver && bo->prime_shared_count) in amdgpu_gem_map_detach()
277 drm_gem_map_detach(dma_buf, attach); in amdgpu_gem_map_detach()
335 .attach = amdgpu_gem_map_attach,