Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/gpu/drm/
Ddrm_gem_framebuffer_helper.c422 struct dma_buf_attachment *import_attach; in __drm_gem_fb_end_cpu_access() local
431 import_attach = obj->import_attach; in __drm_gem_fb_end_cpu_access()
432 if (!import_attach) in __drm_gem_fb_end_cpu_access()
434 ret = dma_buf_end_cpu_access(import_attach->dmabuf, dir); in __drm_gem_fb_end_cpu_access()
457 struct dma_buf_attachment *import_attach; in drm_gem_fb_begin_cpu_access() local
468 import_attach = obj->import_attach; in drm_gem_fb_begin_cpu_access()
469 if (!import_attach) in drm_gem_fb_begin_cpu_access()
471 ret = dma_buf_begin_cpu_access(import_attach->dmabuf, dir); in drm_gem_fb_begin_cpu_access()
Ddrm_gem_shmem_helper.c142 if (obj->import_attach) { in drm_gem_shmem_free()
264 drm_WARN_ON(obj->dev, obj->import_attach); in drm_gem_shmem_pin()
287 drm_WARN_ON(obj->dev, obj->import_attach); in drm_gem_shmem_unpin()
316 if (obj->import_attach) { in drm_gem_shmem_vmap()
317 ret = dma_buf_vmap(obj->import_attach->dmabuf, map); in drm_gem_shmem_vmap()
320 dma_buf_vunmap(obj->import_attach->dmabuf, map); in drm_gem_shmem_vmap()
356 if (!obj->import_attach) in drm_gem_shmem_vmap()
382 if (obj->import_attach) { in drm_gem_shmem_vunmap()
383 dma_buf_vunmap(obj->import_attach->dmabuf, map); in drm_gem_shmem_vunmap()
544 drm_WARN_ON(obj->dev, obj->import_attach); in drm_gem_shmem_vm_open()
[all …]
Ddrm_prime.c449 if (obj->import_attach) { in drm_gem_prime_handle_to_fd()
450 dmabuf = obj->import_attach->dmabuf; in drm_gem_prime_handle_to_fd()
947 obj->import_attach = attach; in drm_gem_prime_import_dev()
1049 attach = obj->import_attach; in drm_prime_gem_destroy()
Ddrm_gem_dma_helper.c231 if (gem_obj->import_attach) { in drm_gem_dma_free()
233 dma_buf_vunmap_unlocked(gem_obj->import_attach->dmabuf, &map); in drm_gem_dma_free()
Ddrm_gem.c325 if (obj->import_attach) { in drm_gem_dumb_map_offset()
1158 str_yes_no(obj->import_attach)); in drm_gem_print_info()
/linux-6.6.21/drivers/gpu/drm/etnaviv/
Detnaviv_gem_prime.c42 if (!obj->import_attach) { in etnaviv_gem_prime_pin()
54 if (!obj->import_attach) { in etnaviv_gem_prime_unpin()
68 dma_buf_vunmap_unlocked(etnaviv_obj->base.import_attach->dmabuf, &map); in etnaviv_gem_prime_release()
85 ret = dma_buf_vmap(etnaviv_obj->base.import_attach->dmabuf, &map); in etnaviv_gem_prime_vmap_impl()
/linux-6.6.21/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_dmabuf.c223 struct dma_buf_attachment *import_attach; in igt_dmabuf_import_same_driver() local
287 import_attach = dma_buf_attach(dmabuf, obj->base.dev->dev); in igt_dmabuf_import_same_driver()
288 if (IS_ERR(import_attach)) { in igt_dmabuf_import_same_driver()
289 err = PTR_ERR(import_attach); in igt_dmabuf_import_same_driver()
293 st = dma_buf_map_attachment_unlocked(import_attach, DMA_BIDIRECTIONAL); in igt_dmabuf_import_same_driver()
306 dma_buf_unmap_attachment_unlocked(import_attach, st, DMA_BIDIRECTIONAL); in igt_dmabuf_import_same_driver()
308 dma_buf_detach(dmabuf, import_attach); in igt_dmabuf_import_same_driver()
/linux-6.6.21/drivers/gpu/drm/msm/
Dmsm_gem_prime.c50 if (!obj->import_attach) in msm_gem_prime_pin()
57 if (!obj->import_attach) in msm_gem_prime_unpin()
Dmsm_gem.h222 return msm_obj->base.import_attach || msm_obj->pin_count; in is_unpurgeable()
Dmsm_gem.c703 if (obj->import_attach) in get_vaddr()
1042 if (obj->import_attach) { in msm_gem_free_object()
/linux-6.6.21/drivers/gpu/drm/tegra/
Dgem.c79 if (gem->import_attach) { in tegra_bo_pin()
80 struct dma_buf *buf = gem->import_attach->dmabuf; in tegra_bo_pin()
185 } else if (obj->gem.import_attach) { in tegra_bo_mmap()
186 ret = dma_buf_vmap_unlocked(obj->gem.import_attach->dmabuf, &map); in tegra_bo_mmap()
201 else if (obj->gem.import_attach) in tegra_bo_munmap()
202 dma_buf_vunmap_unlocked(obj->gem.import_attach->dmabuf, &map); in tegra_bo_munmap()
478 bo->gem.import_attach = attach; in tegra_bo_import()
512 if (gem->import_attach) { in tegra_bo_free_object()
513 dma_buf_unmap_attachment_unlocked(gem->import_attach, bo->sgt, in tegra_bo_free_object()
/linux-6.6.21/drivers/gpu/drm/i915/gem/
Di915_gem_dmabuf.c244 sgt = dma_buf_map_attachment(obj->base.import_attach, in i915_gem_object_get_pages_dmabuf()
272 dma_buf_unmap_attachment(obj->base.import_attach, sgt, in i915_gem_object_put_pages_dmabuf()
323 obj->base.import_attach = attach; in i915_gem_prime_import()
Di915_gem_object.c364 if (obj->base.import_attach) in __i915_gem_object_pages_fini()
369 if (obj->base.import_attach) in __i915_gem_object_pages_fini()
383 if (obj->base.import_attach) in __i915_gem_free_object()
/linux-6.6.21/drivers/gpu/drm/armada/
Darmada_gem.c66 if (dobj->obj.import_attach) { in armada_gem_free_object()
69 dma_buf_unmap_attachment_unlocked(dobj->obj.import_attach, in armada_gem_free_object()
527 dobj->obj.import_attach = attach; in armada_gem_prime_import()
542 dobj->sgt = dma_buf_map_attachment_unlocked(dobj->obj.import_attach, in armada_gem_map_import()
Darmada_fb.c113 if (obj->obj.import_attach && !obj->sgt) { in armada_fb_create()
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_dma_buf.c466 obj->import_attach = attach; in amdgpu_gem_prime_import()
485 if (obj->import_attach) { in amdgpu_dmabuf_is_xgmi_accessible()
486 struct dma_buf *dma_buf = obj->import_attach->dmabuf; in amdgpu_dmabuf_is_xgmi_accessible()
Damdgpu_object.c62 if (bo->tbo.base.import_attach) in amdgpu_bo_destroy()
917 if (bo->tbo.base.import_attach) { in amdgpu_bo_pin_restricted()
953 if (bo->tbo.base.import_attach) in amdgpu_bo_pin_restricted()
954 dma_buf_pin(bo->tbo.base.import_attach); in amdgpu_bo_pin_restricted()
1030 if (bo->tbo.base.import_attach) in amdgpu_bo_unpin()
1031 dma_buf_unpin(bo->tbo.base.import_attach); in amdgpu_bo_unpin()
1271 if (abo->tbo.base.dma_buf && !abo->tbo.base.import_attach && in amdgpu_bo_move_notify()
1612 attachment = READ_ONCE(bo->tbo.base.import_attach); in amdgpu_bo_print_info()
/linux-6.6.21/drivers/accel/ivpu/
Divpu_gem.c45 sgt = dma_buf_map_attachment_unlocked(bo->base.import_attach, DMA_BIDIRECTIONAL); in prime_map_pages_locked()
57 dma_buf_unmap_attachment_unlocked(bo->base.import_attach, bo->sgt, DMA_BIDIRECTIONAL); in prime_unmap_pages_locked()
426 if (bo->base.import_attach) in ivpu_bo_free()
443 if (obj->import_attach) { in ivpu_bo_mmap()
642 bo->base.import_attach = attach; in ivpu_gem_prime_import()
/linux-6.6.21/drivers/gpu/drm/omapdrm/
Domap_gem_dmabuf.c135 obj->import_attach = attach; in omap_gem_prime_import()
/linux-6.6.21/drivers/gpu/drm/exynos/
Dexynos_drm_gem.c124 if (obj->import_attach) in exynos_drm_gem_destroy()
368 if (obj->import_attach) in exynos_drm_gem_mmap()
/linux-6.6.21/include/drm/
Ddrm_gem_shmem_helper.h117 !shmem->base.dma_buf && !shmem->base.import_attach; in drm_gem_shmem_is_purgeable()
Ddrm_gem.h364 struct dma_buf_attachment *import_attach; member
/linux-6.6.21/drivers/accel/qaic/
Dqaic_data.c597 if (obj->import_attach) in qaic_gem_object_mmap()
618 if (obj->import_attach) { in qaic_free_object()
799 obj->import_attach = attach; in qaic_gem_prime_import()
819 if (obj->import_attach->dmabuf->size < hdr->size) in qaic_prepare_import_bo()
822 sgt = dma_buf_map_attachment(obj->import_attach, hdr->dir); in qaic_prepare_import_bo()
854 if (bo->base.import_attach) in qaic_prepare_bo()
867 dma_buf_unmap_attachment(bo->base.import_attach, bo->sgt, bo->dir); in qaic_unprepare_import_bo()
879 if (bo->base.import_attach) in qaic_unprepare_bo()
/linux-6.6.21/drivers/gpu/drm/xen/
Dxen_drm_front_gem.c205 if (xen_obj->base.import_attach) { in xen_drm_front_gem_free_object_unlocked()
/linux-6.6.21/drivers/gpu/drm/rockchip/
Drockchip_drm_gem.c335 if (obj->import_attach) { in rockchip_gem_free_object()

12