/linux-6.6.21/drivers/gpu/drm/ |
D | drm_gem_framebuffer_helper.c | 422 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()
|
D | drm_gem_shmem_helper.c | 142 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 …]
|
D | drm_prime.c | 449 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()
|
D | drm_gem_dma_helper.c | 231 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()
|
D | drm_gem.c | 325 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/ |
D | etnaviv_gem_prime.c | 42 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/ |
D | i915_gem_dmabuf.c | 223 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/ |
D | msm_gem_prime.c | 50 if (!obj->import_attach) in msm_gem_prime_pin() 57 if (!obj->import_attach) in msm_gem_prime_unpin()
|
D | msm_gem.h | 222 return msm_obj->base.import_attach || msm_obj->pin_count; in is_unpurgeable()
|
D | msm_gem.c | 703 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/ |
D | gem.c | 79 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/ |
D | i915_gem_dmabuf.c | 244 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()
|
D | i915_gem_object.c | 364 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/ |
D | armada_gem.c | 66 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()
|
D | armada_fb.c | 113 if (obj->obj.import_attach && !obj->sgt) { in armada_fb_create()
|
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_dma_buf.c | 466 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()
|
D | amdgpu_object.c | 62 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/ |
D | ivpu_gem.c | 45 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/ |
D | omap_gem_dmabuf.c | 135 obj->import_attach = attach; in omap_gem_prime_import()
|
/linux-6.6.21/drivers/gpu/drm/exynos/ |
D | exynos_drm_gem.c | 124 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/ |
D | drm_gem_shmem_helper.h | 117 !shmem->base.dma_buf && !shmem->base.import_attach; in drm_gem_shmem_is_purgeable()
|
D | drm_gem.h | 364 struct dma_buf_attachment *import_attach; member
|
/linux-6.6.21/drivers/accel/qaic/ |
D | qaic_data.c | 597 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/ |
D | xen_drm_front_gem.c | 205 if (xen_obj->base.import_attach) { in xen_drm_front_gem_free_object_unlocked()
|
/linux-6.6.21/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_gem.c | 335 if (obj->import_attach) { in rockchip_gem_free_object()
|