Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/
A Ddrm_gem_framebuffer_helper.c422 struct dma_buf_attachment *import_attach; in drm_gem_fb_begin_cpu_access() local
431 import_attach = obj->import_attach; in drm_gem_fb_begin_cpu_access()
432 if (!import_attach) in drm_gem_fb_begin_cpu_access()
434 ret = dma_buf_begin_cpu_access(import_attach->dmabuf, dir); in drm_gem_fb_begin_cpu_access()
447 import_attach = obj->import_attach; in drm_gem_fb_begin_cpu_access()
448 if (!import_attach) in drm_gem_fb_begin_cpu_access()
450 ret2 = dma_buf_end_cpu_access(import_attach->dmabuf, dir); in drm_gem_fb_begin_cpu_access()
476 struct dma_buf_attachment *import_attach; in drm_gem_fb_end_cpu_access() local
485 import_attach = obj->import_attach; in drm_gem_fb_end_cpu_access()
486 if (!import_attach) in drm_gem_fb_end_cpu_access()
[all …]
A Ddrm_gem_shmem_helper.c135 if (obj->import_attach) { in drm_gem_shmem_free_object()
201 WARN_ON(shmem->base.import_attach); in drm_gem_shmem_get_pages()
263 WARN_ON(shmem->base.import_attach); in drm_gem_shmem_pin()
280 WARN_ON(shmem->base.import_attach); in drm_gem_shmem_unpin()
296 if (obj->import_attach) { in drm_gem_shmem_vmap_locked()
330 if (!obj->import_attach) in drm_gem_shmem_vmap_locked()
382 if (obj->import_attach) { in drm_gem_shmem_vunmap_locked()
581 WARN_ON(shmem->base.import_attach); in drm_gem_shmem_vm_open()
621 if (obj->import_attach) { in drm_gem_shmem_mmap()
686 WARN_ON(shmem->base.import_attach); in drm_gem_shmem_get_sg_table()
[all …]
A 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()
951 obj->import_attach = attach; in drm_gem_prime_import_dev()
1053 attach = obj->import_attach; in drm_prime_gem_destroy()
A Ddrm_gem_cma_helper.c208 if (gem_obj->import_attach) { in drm_gem_cma_free_object()
210 dma_buf_vunmap(gem_obj->import_attach->dmabuf, &map); in drm_gem_cma_free_object()
A Ddrm_gem.c321 if (obj->import_attach) { in drm_gem_dumb_map_offset()
1148 obj->import_attach ? "yes" : "no"); in drm_gem_print_info()
/linux/drivers/gpu/drm/etnaviv/
A 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/drivers/gpu/drm/i915/gem/selftests/
A 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()
228 dma_buf_unmap_attachment(import_attach, st, DMA_BIDIRECTIONAL); in igt_dmabuf_import_same_driver()
230 dma_buf_detach(dmabuf, import_attach); in igt_dmabuf_import_same_driver()
/linux/drivers/gpu/drm/msm/
A Dmsm_gem_prime.c50 if (!obj->import_attach) in msm_gem_prime_pin()
57 if (!obj->import_attach) in msm_gem_prime_unpin()
A Dmsm_gem.h208 return msm_obj->base.import_attach || msm_obj->pin_count; in is_unpurgeable()
A Dmsm_gem.c602 if (obj->import_attach) in get_vaddr()
1027 if (obj->import_attach) { in msm_gem_free_object()
/linux/drivers/gpu/drm/tegra/
A Dgem.c143 } else if (obj->gem.import_attach) { in tegra_bo_mmap()
144 ret = dma_buf_vmap(obj->gem.import_attach->dmabuf, &map); in tegra_bo_mmap()
159 else if (obj->gem.import_attach) in tegra_bo_munmap()
160 dma_buf_vunmap(obj->gem.import_attach->dmabuf, &map); in tegra_bo_munmap()
436 bo->gem.import_attach = attach; in tegra_bo_import()
460 if (gem->import_attach) { in tegra_bo_free_object()
461 dma_buf_unmap_attachment(gem->import_attach, bo->sgt, in tegra_bo_free_object()
/linux/drivers/gpu/drm/i915/gem/
A Di915_gem_dmabuf.c246 pages = dma_buf_map_attachment(obj->base.import_attach, in i915_gem_object_get_pages_dmabuf()
264 dma_buf_unmap_attachment(obj->base.import_attach, pages, in i915_gem_object_put_pages_dmabuf()
315 obj->base.import_attach = attach; in i915_gem_prime_import()
A Di915_gem_object.c298 if (obj->base.import_attach) in __i915_gem_free_object()
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_object.c61 if (bo->tbo.base.import_attach) in amdgpu_bo_destroy()
882 if (bo->tbo.base.import_attach) { in amdgpu_bo_pin_restricted()
918 if (bo->tbo.base.import_attach) in amdgpu_bo_pin_restricted()
919 dma_buf_pin(bo->tbo.base.import_attach); in amdgpu_bo_pin_restricted()
995 if (bo->tbo.base.import_attach) in amdgpu_bo_unpin()
996 dma_buf_unpin(bo->tbo.base.import_attach); in amdgpu_bo_unpin()
1222 if (abo->tbo.base.dma_buf && !abo->tbo.base.import_attach && in amdgpu_bo_move_notify()
1534 attachment = READ_ONCE(bo->tbo.base.import_attach); in amdgpu_bo_print_info()
A Damdgpu_dma_buf.c475 obj->import_attach = attach; in amdgpu_gem_prime_import()
494 if (obj->import_attach) { in amdgpu_dmabuf_is_xgmi_accessible()
495 struct dma_buf *dma_buf = obj->import_attach->dmabuf; in amdgpu_dmabuf_is_xgmi_accessible()
A Damdgpu_ttm.c908 attach = gtt->gobj->import_attach; in amdgpu_ttm_backend_bind()
1048 } else if (ttm->sg && gtt->gobj->import_attach) { in amdgpu_ttm_backend_unbind()
1051 attach = gtt->gobj->import_attach; in amdgpu_ttm_backend_unbind()
/linux/drivers/gpu/drm/armada/
A 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()
A Darmada_fb.c114 if (obj->obj.import_attach && !obj->sgt) { in armada_fb_create()
/linux/drivers/gpu/drm/gud/
A Dgud_pipe.c153 struct dma_buf_attachment *import_attach = fb->obj[0]->import_attach; in gud_prep_flush() local
204 drm_fb_swab(buf, vaddr, fb, rect, !import_attach); in gud_prep_flush()
205 } else if (compression && !import_attach && pitch == fb->pitches[0]) { in gud_prep_flush()
/linux/include/drm/
A Ddrm_gem_shmem_helper.h125 !shmem->base.dma_buf && !shmem->base.import_attach; in drm_gem_shmem_is_purgeable()
A Ddrm_gem.h285 struct dma_buf_attachment *import_attach; member
/linux/drivers/gpu/drm/exynos/
A Dexynos_drm_gem.c122 if (obj->import_attach) in exynos_drm_gem_destroy()
405 if (obj->import_attach) in exynos_drm_gem_mmap()
/linux/drivers/gpu/drm/omapdrm/
A Domap_gem_dmabuf.c166 obj->import_attach = attach; in omap_gem_prime_import()
/linux/drivers/gpu/drm/xen/
A Dxen_drm_front_gem.c165 if (xen_obj->base.import_attach) { in xen_drm_front_gem_free_object_unlocked()
/linux/drivers/gpu/drm/rockchip/
A Drockchip_drm_gem.c360 if (obj->import_attach) { in rockchip_gem_free_object()

Completed in 58 milliseconds

12