Home
last modified time | relevance | path

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

/openbsd/sys/dev/pci/drm/i915/gem/selftests/
H A Di915_gem_dmabuf.c223 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()
/openbsd/sys/dev/pci/drm/i915/gem/
H A Di915_gem_dmabuf.c254 sgt = dma_buf_map_attachment(obj->base.import_attach, in i915_gem_object_get_pages_dmabuf()
282 dma_buf_unmap_attachment(obj->base.import_attach, sgt, in i915_gem_object_put_pages_dmabuf()
336 obj->base.import_attach = attach; in i915_gem_prime_import()
H A Di915_gem_object.c377 if (obj->base.import_attach) in __i915_gem_object_pages_fini()
382 if (obj->base.import_attach) in __i915_gem_object_pages_fini()
396 if (obj->base.import_attach) in __i915_gem_free_object()
/openbsd/sys/dev/pci/drm/amd/amdgpu/
H A Damdgpu_dma_buf.c481 obj->import_attach = attach; in amdgpu_gem_prime_import()
500 if (obj->import_attach) { in amdgpu_dmabuf_is_xgmi_accessible()
502 struct dma_buf *dma_buf = obj->import_attach->dmabuf; in amdgpu_dmabuf_is_xgmi_accessible()
H A Damdgpu_object.c63 if (bo->tbo.base.import_attach) in amdgpu_bo_destroy()
920 if (bo->tbo.base.import_attach) { in amdgpu_bo_pin_restricted()
957 if (bo->tbo.base.import_attach) in amdgpu_bo_pin_restricted()
958 dma_buf_pin(bo->tbo.base.import_attach); in amdgpu_bo_pin_restricted()
1036 if (bo->tbo.base.import_attach) in amdgpu_bo_unpin()
1037 dma_buf_unpin(bo->tbo.base.import_attach); in amdgpu_bo_unpin()
1297 if (abo->tbo.base.dma_buf && !abo->tbo.base.import_attach && in amdgpu_bo_move_notify()
1651 attachment = READ_ONCE(bo->tbo.base.import_attach); in amdgpu_bo_print_info()
H A Damdgpu_ttm.c929 attach = gtt->gobj->import_attach; in amdgpu_ttm_backend_bind()
1056 } else if (ttm->sg && gtt->gobj->import_attach) { in amdgpu_ttm_backend_unbind()
1059 attach = gtt->gobj->import_attach; in amdgpu_ttm_backend_unbind()
H A Damdgpu_vm.c1151 if (obj->import_attach && bo_va->is_xgmi) { in amdgpu_vm_bo_update()
1152 struct dma_buf *dma_buf = obj->import_attach->dmabuf; in amdgpu_vm_bo_update()
H A Damdgpu_gem.c970 if (robj->tbo.base.import_attach &&
H A Damdgpu_display.c1277 if (obj->import_attach && !(domains & AMDGPU_GEM_DOMAIN_GTT)) { in amdgpu_display_user_framebuffer_create()
/openbsd/sys/dev/pci/drm/
H A Ddrm_prime.c452 if (obj->import_attach) { in drm_gem_prime_handle_to_fd()
453 dmabuf = obj->import_attach->dmabuf; in drm_gem_prime_handle_to_fd()
997 obj->import_attach = attach; in drm_gem_prime_import_dev()
1113 attach = obj->import_attach; in drm_prime_gem_destroy()
H A Ddrm_gem.c509 if (obj->import_attach) { in drm_gem_dumb_map_offset()
1467 str_yes_no(obj->import_attach)); in drm_gem_print_info()
/openbsd/sys/dev/pci/drm/include/drm/
H A Ddrm_gem.h380 struct dma_buf_attachment *import_attach; member
/openbsd/sys/dev/pci/drm/radeon/
H A Dradeon_object.c63 if (bo->tbo.base.import_attach) in radeon_ttm_bo_destroy()
H A Dradeon_display.c1331 if (obj->import_attach) { in radeon_user_framebuffer_create()