/Linux-v6.1/drivers/gpu/drm/ |
D | drm_gem_shmem_helper.c | 144 if (obj->import_attach) { in drm_gem_shmem_free() 210 WARN_ON(shmem->base.import_attach); in drm_gem_shmem_get_pages() 269 WARN_ON(shmem->base.import_attach); in drm_gem_shmem_pin() 284 WARN_ON(shmem->base.import_attach); in drm_gem_shmem_unpin() 301 if (obj->import_attach) { in drm_gem_shmem_vmap_locked() 302 ret = dma_buf_vmap(obj->import_attach->dmabuf, map); in drm_gem_shmem_vmap_locked() 305 dma_buf_vunmap(obj->import_attach->dmabuf, map); in drm_gem_shmem_vmap_locked() 336 if (!obj->import_attach) in drm_gem_shmem_vmap_locked() 385 if (obj->import_attach) { in drm_gem_shmem_vunmap_locked() 386 dma_buf_vunmap(obj->import_attach->dmabuf, map); in drm_gem_shmem_vunmap_locked() [all …]
|
D | drm_gem_framebuffer_helper.c | 414 struct dma_buf_attachment *import_attach; in __drm_gem_fb_end_cpu_access() local 423 import_attach = obj->import_attach; in __drm_gem_fb_end_cpu_access() 424 if (!import_attach) in __drm_gem_fb_end_cpu_access() 426 ret = dma_buf_end_cpu_access(import_attach->dmabuf, dir); in __drm_gem_fb_end_cpu_access() 449 struct dma_buf_attachment *import_attach; in drm_gem_fb_begin_cpu_access() local 460 import_attach = obj->import_attach; in drm_gem_fb_begin_cpu_access() 461 if (!import_attach) in drm_gem_fb_begin_cpu_access() 463 ret = dma_buf_begin_cpu_access(import_attach->dmabuf, dir); in drm_gem_fb_begin_cpu_access()
|
D | drm_prime.c | 453 if (obj->import_attach) { in drm_gem_prime_handle_to_fd() 454 dmabuf = obj->import_attach->dmabuf; in drm_gem_prime_handle_to_fd() 955 obj->import_attach = attach; in drm_gem_prime_import_dev() 1057 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(gem_obj->import_attach->dmabuf, &map); in drm_gem_dma_free()
|
D | drm_gem.c | 308 if (obj->import_attach) { in drm_gem_dumb_map_offset() 1137 str_yes_no(obj->import_attach)); in drm_gem_print_info()
|
/Linux-v6.1/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(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-v6.1/drivers/gpu/drm/i915/gem/selftests/ |
D | i915_gem_dmabuf.c | 150 struct dma_buf_attachment *import_attach; in igt_dmabuf_import_same_driver() local 210 import_attach = dma_buf_attach(dmabuf, obj->base.dev->dev); in igt_dmabuf_import_same_driver() 211 if (IS_ERR(import_attach)) { in igt_dmabuf_import_same_driver() 212 err = PTR_ERR(import_attach); in igt_dmabuf_import_same_driver() 216 st = dma_buf_map_attachment(import_attach, DMA_BIDIRECTIONAL); in igt_dmabuf_import_same_driver() 229 dma_buf_unmap_attachment(import_attach, st, DMA_BIDIRECTIONAL); in igt_dmabuf_import_same_driver() 231 dma_buf_detach(dmabuf, import_attach); in igt_dmabuf_import_same_driver()
|
/Linux-v6.1/drivers/gpu/drm/msm/ |
D | msm_gem_prime.c | 65 if (!obj->import_attach) in msm_gem_prime_pin() 72 if (!obj->import_attach) in msm_gem_prime_unpin()
|
D | msm_gem.h | 224 return msm_obj->base.import_attach || msm_obj->pin_count; in is_unpurgeable()
|
D | msm_gem.c | 635 if (obj->import_attach) in get_vaddr() 989 if (obj->import_attach) { in msm_gem_free_object()
|
/Linux-v6.1/drivers/gpu/drm/tegra/ |
D | gem.c | 78 if (gem->import_attach) { in tegra_bo_pin() 79 struct dma_buf *buf = gem->import_attach->dmabuf; in tegra_bo_pin() 183 } else if (obj->gem.import_attach) { in tegra_bo_mmap() 184 ret = dma_buf_vmap(obj->gem.import_attach->dmabuf, &map); in tegra_bo_mmap() 199 else if (obj->gem.import_attach) in tegra_bo_munmap() 200 dma_buf_vunmap(obj->gem.import_attach->dmabuf, &map); in tegra_bo_munmap() 476 bo->gem.import_attach = attach; in tegra_bo_import() 510 if (gem->import_attach) { in tegra_bo_free_object() 511 dma_buf_unmap_attachment(gem->import_attach, bo->sgt, in tegra_bo_free_object()
|
/Linux-v6.1/drivers/gpu/drm/i915/gem/ |
D | i915_gem_dmabuf.c | 244 pages = dma_buf_map_attachment(obj->base.import_attach, in i915_gem_object_get_pages_dmabuf() 273 dma_buf_unmap_attachment(obj->base.import_attach, pages, in i915_gem_object_put_pages_dmabuf() 324 obj->base.import_attach = attach; in i915_gem_prime_import()
|
D | i915_gem_object.c | 305 if (obj->base.import_attach) in __i915_gem_free_object()
|
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_dma_buf.c | 460 obj->import_attach = attach; in amdgpu_gem_prime_import() 479 if (obj->import_attach) { in amdgpu_dmabuf_is_xgmi_accessible() 480 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() 893 if (bo->tbo.base.import_attach) { in amdgpu_bo_pin_restricted() 929 if (bo->tbo.base.import_attach) in amdgpu_bo_pin_restricted() 930 dma_buf_pin(bo->tbo.base.import_attach); in amdgpu_bo_pin_restricted() 1006 if (bo->tbo.base.import_attach) in amdgpu_bo_unpin() 1007 dma_buf_unpin(bo->tbo.base.import_attach); in amdgpu_bo_unpin() 1251 if (abo->tbo.base.dma_buf && !abo->tbo.base.import_attach && in amdgpu_bo_move_notify() 1572 attachment = READ_ONCE(bo->tbo.base.import_attach); in amdgpu_bo_print_info()
|
D | amdgpu_ttm.c | 874 attach = gtt->gobj->import_attach; in amdgpu_ttm_backend_bind() 996 } else if (ttm->sg && gtt->gobj->import_attach) { in amdgpu_ttm_backend_unbind() 999 attach = gtt->gobj->import_attach; in amdgpu_ttm_backend_unbind()
|
/Linux-v6.1/drivers/gpu/drm/armada/ |
D | armada_gem.c | 66 if (dobj->obj.import_attach) { in armada_gem_free_object() 69 dma_buf_unmap_attachment(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(dobj->obj.import_attach, in armada_gem_map_import()
|
D | armada_fb.c | 114 if (obj->obj.import_attach && !obj->sgt) { in armada_fb_create()
|
/Linux-v6.1/drivers/gpu/drm/gud/ |
D | gud_pipe.c | 158 struct dma_buf_attachment *import_attach = fb->obj[0]->import_attach; in gud_prep_flush() local 212 drm_fb_swab(&dst, NULL, map_data, fb, rect, !import_attach); in gud_prep_flush() 213 } else if (compression && !import_attach && pitch == fb->pitches[0]) { in gud_prep_flush()
|
/Linux-v6.1/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-v6.1/drivers/gpu/drm/omapdrm/ |
D | omap_gem_dmabuf.c | 140 obj->import_attach = attach; in omap_gem_prime_import()
|
/Linux-v6.1/include/drm/ |
D | drm_gem_shmem_helper.h | 128 !shmem->base.dma_buf && !shmem->base.import_attach; in drm_gem_shmem_is_purgeable()
|
D | drm_gem.h | 320 struct dma_buf_attachment *import_attach; member
|
/Linux-v6.1/drivers/gpu/drm/xen/ |
D | xen_drm_front_gem.c | 207 if (xen_obj->base.import_attach) { in xen_drm_front_gem_free_object_unlocked()
|
/Linux-v6.1/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_gem.c | 338 if (obj->import_attach) { in rockchip_gem_free_object()
|