Lines Matching refs:tbo
123 *obj = &bo->tbo.base; in amdgpu_gem_object_create()
161 struct amdgpu_device *adev = amdgpu_ttm_adev(abo->tbo.bdev); in amdgpu_gem_object_open()
168 mm = amdgpu_ttm_tt_get_usermm(abo->tbo.ttm); in amdgpu_gem_object_open()
173 abo->tbo.base.resv != vm->root.bo->tbo.base.resv) in amdgpu_gem_object_open()
194 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); in amdgpu_gem_object_close()
209 tv.bo = &bo->tbo; in amdgpu_gem_object_close()
247 if (amdgpu_ttm_tt_get_usermm(bo->tbo.ttm)) in amdgpu_gem_object_mmap()
330 resv = vm->root.bo->tbo.base.resv; in amdgpu_gem_create_ioctl()
413 r = amdgpu_ttm_tt_set_userptr(&bo->tbo, args->addr, args->flags); in amdgpu_gem_userptr_ioctl()
422 r = amdgpu_ttm_tt_get_user_pages(bo, bo->tbo.ttm->pages, in amdgpu_gem_userptr_ioctl()
432 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_gem_userptr_ioctl()
446 amdgpu_ttm_tt_get_user_pages_done(bo->tbo.ttm, range); in amdgpu_gem_userptr_ioctl()
466 if (amdgpu_ttm_tt_get_usermm(robj->tbo.ttm) || in amdgpu_mode_dumb_mmap()
529 ret = dma_resv_wait_timeout(robj->tbo.base.resv, DMA_RESV_USAGE_READ, in amdgpu_gem_wait_idle_ioctl()
735 tv.bo = &abo->tbo; in amdgpu_gem_va_ioctl()
826 info.bo_size = robj->tbo.base.size; in amdgpu_gem_op_ioctl()
827 info.alignment = robj->tbo.page_alignment << PAGE_SHIFT; in amdgpu_gem_op_ioctl()
836 if (robj->tbo.base.import_attach && in amdgpu_gem_op_ioctl()
842 if (amdgpu_ttm_tt_get_usermm(robj->tbo.ttm)) { in amdgpu_gem_op_ioctl()
848 if (amdgpu_xgmi_same_hive(amdgpu_ttm_adev(robj->tbo.bdev), in amdgpu_gem_op_ioctl()
849 amdgpu_ttm_adev(base->vm->root.bo->tbo.bdev))) { in amdgpu_gem_op_ioctl()