/linux/drivers/gpu/drm/ |
A D | drm_gem_framebuffer_helper.c | 422 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 D | drm_gem_shmem_helper.c | 135 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 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() 951 obj->import_attach = attach; in drm_gem_prime_import_dev() 1053 attach = obj->import_attach; in drm_prime_gem_destroy()
|
A D | drm_gem_cma_helper.c | 208 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 D | drm_gem.c | 321 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 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/drivers/gpu/drm/i915/gem/selftests/ |
A 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() 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 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()
|
A D | msm_gem.h | 208 return msm_obj->base.import_attach || msm_obj->pin_count; in is_unpurgeable()
|
A D | msm_gem.c | 602 if (obj->import_attach) in get_vaddr() 1027 if (obj->import_attach) { in msm_gem_free_object()
|
/linux/drivers/gpu/drm/tegra/ |
A D | gem.c | 143 } 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 D | i915_gem_dmabuf.c | 246 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 D | i915_gem_object.c | 298 if (obj->base.import_attach) in __i915_gem_free_object()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_object.c | 61 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 D | amdgpu_dma_buf.c | 475 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 D | amdgpu_ttm.c | 908 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 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()
|
A D | armada_fb.c | 114 if (obj->obj.import_attach && !obj->sgt) { in armada_fb_create()
|
/linux/drivers/gpu/drm/gud/ |
A D | gud_pipe.c | 153 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 D | drm_gem_shmem_helper.h | 125 !shmem->base.dma_buf && !shmem->base.import_attach; in drm_gem_shmem_is_purgeable()
|
A D | drm_gem.h | 285 struct dma_buf_attachment *import_attach; member
|
/linux/drivers/gpu/drm/exynos/ |
A D | exynos_drm_gem.c | 122 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 D | omap_gem_dmabuf.c | 166 obj->import_attach = attach; in omap_gem_prime_import()
|
/linux/drivers/gpu/drm/xen/ |
A D | xen_drm_front_gem.c | 165 if (xen_obj->base.import_attach) { in xen_drm_front_gem_free_object_unlocked()
|
/linux/drivers/gpu/drm/rockchip/ |
A D | rockchip_drm_gem.c | 360 if (obj->import_attach) { in rockchip_gem_free_object()
|