Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/gpu/drm/
Ddrm_gem_shmem_helper.c144 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 …]
Ddrm_gem_framebuffer_helper.c414 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()
Ddrm_prime.c453 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()
Ddrm_gem_dma_helper.c231 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()
Ddrm_gem.c308 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/
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(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/
Di915_gem_dmabuf.c150 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/
Dmsm_gem_prime.c65 if (!obj->import_attach) in msm_gem_prime_pin()
72 if (!obj->import_attach) in msm_gem_prime_unpin()
Dmsm_gem.h224 return msm_obj->base.import_attach || msm_obj->pin_count; in is_unpurgeable()
Dmsm_gem.c635 if (obj->import_attach) in get_vaddr()
989 if (obj->import_attach) { in msm_gem_free_object()
/Linux-v6.1/drivers/gpu/drm/tegra/
Dgem.c78 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/
Di915_gem_dmabuf.c244 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()
Di915_gem_object.c305 if (obj->base.import_attach) in __i915_gem_free_object()
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_dma_buf.c460 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()
Damdgpu_object.c62 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()
Damdgpu_ttm.c874 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/
Darmada_gem.c66 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()
Darmada_fb.c114 if (obj->obj.import_attach && !obj->sgt) { in armada_fb_create()
/Linux-v6.1/drivers/gpu/drm/gud/
Dgud_pipe.c158 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/
Dexynos_drm_gem.c124 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/
Domap_gem_dmabuf.c140 obj->import_attach = attach; in omap_gem_prime_import()
/Linux-v6.1/include/drm/
Ddrm_gem_shmem_helper.h128 !shmem->base.dma_buf && !shmem->base.import_attach; in drm_gem_shmem_is_purgeable()
Ddrm_gem.h320 struct dma_buf_attachment *import_attach; member
/Linux-v6.1/drivers/gpu/drm/xen/
Dxen_drm_front_gem.c207 if (xen_obj->base.import_attach) { in xen_drm_front_gem_free_object_unlocked()
/Linux-v6.1/drivers/gpu/drm/rockchip/
Drockchip_drm_gem.c338 if (obj->import_attach) { in rockchip_gem_free_object()

12