Lines Matching refs:tbo
125 *obj = &bo->tbo.base; in amdgpu_gem_object_create()
163 struct amdgpu_device *adev = amdgpu_ttm_adev(abo->tbo.bdev); in amdgpu_gem_object_open()
170 mm = amdgpu_ttm_tt_get_usermm(abo->tbo.ttm); in amdgpu_gem_object_open()
175 abo->tbo.base.resv != vm->root.bo->tbo.base.resv) in amdgpu_gem_object_open()
196 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); in amdgpu_gem_object_close()
211 tv.bo = &bo->tbo; in amdgpu_gem_object_close()
249 if (amdgpu_ttm_tt_get_usermm(bo->tbo.ttm)) in amdgpu_gem_object_mmap()
332 resv = vm->root.bo->tbo.base.resv; in amdgpu_gem_create_ioctl()
415 r = amdgpu_ttm_tt_set_userptr(&bo->tbo, args->addr, args->flags); in amdgpu_gem_userptr_ioctl()
424 r = amdgpu_ttm_tt_get_user_pages(bo, bo->tbo.ttm->pages, in amdgpu_gem_userptr_ioctl()
434 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_gem_userptr_ioctl()
448 amdgpu_ttm_tt_get_user_pages_done(bo->tbo.ttm, range); in amdgpu_gem_userptr_ioctl()
468 if (amdgpu_ttm_tt_get_usermm(robj->tbo.ttm) || in amdgpu_mode_dumb_mmap()
531 ret = dma_resv_wait_timeout(robj->tbo.base.resv, DMA_RESV_USAGE_READ, in amdgpu_gem_wait_idle_ioctl()
737 tv.bo = &abo->tbo; in amdgpu_gem_va_ioctl()
828 info.bo_size = robj->tbo.base.size; in amdgpu_gem_op_ioctl()
829 info.alignment = robj->tbo.page_alignment << PAGE_SHIFT; in amdgpu_gem_op_ioctl()
838 if (robj->tbo.base.import_attach && in amdgpu_gem_op_ioctl()
844 if (amdgpu_ttm_tt_get_usermm(robj->tbo.ttm)) { in amdgpu_gem_op_ioctl()
850 if (amdgpu_xgmi_same_hive(amdgpu_ttm_adev(robj->tbo.bdev), in amdgpu_gem_op_ioctl()
851 amdgpu_ttm_adev(base->vm->root.bo->tbo.bdev))) { in amdgpu_gem_op_ioctl()