Lines Matching refs:tbo

161 	if (bo->tbo.type == ttm_bo_type_kernel)  in amdgpu_vm_bo_evicted()
270 if (bo->tbo.base.resv != vm->root.bo->tbo.base.resv) in amdgpu_vm_bo_base_init()
273 dma_resv_assert_held(vm->root.bo->tbo.base.resv); in amdgpu_vm_bo_base_init()
275 ttm_bo_set_bulk_move(&bo->tbo, &vm->lru_bulk_move); in amdgpu_vm_bo_base_init()
276 if (bo->tbo.type == ttm_bo_type_kernel && bo->parent) in amdgpu_vm_bo_base_init()
282 amdgpu_mem_type_to_domain(bo->tbo.resource->mem_type)) in amdgpu_vm_bo_base_init()
308 entry->tv.bo = &vm->root.bo->tbo; in amdgpu_vm_get_pd_bo()
373 if (bo->tbo.type != ttm_bo_type_kernel) { in amdgpu_vm_validate_pt_bos()
985 resv = vm->root.bo->tbo.base.resv; in amdgpu_vm_bo_update()
987 struct drm_gem_object *obj = &bo->tbo.base; in amdgpu_vm_bo_update()
989 resv = bo->tbo.base.resv; in amdgpu_vm_bo_update()
995 if (abo->tbo.resource->mem_type == TTM_PL_VRAM) in amdgpu_vm_bo_update()
998 mem = bo->tbo.resource; in amdgpu_vm_bo_update()
1001 pages_addr = bo->tbo.ttm->dma_address; in amdgpu_vm_bo_update()
1007 flags = amdgpu_ttm_tt_pte_flags(adev, bo->tbo.ttm, mem); in amdgpu_vm_bo_update()
1012 bo_adev = amdgpu_ttm_adev(bo->tbo.bdev); in amdgpu_vm_bo_update()
1019 if (clear || (bo && bo->tbo.base.resv == in amdgpu_vm_bo_update()
1020 vm->root.bo->tbo.base.resv)) in amdgpu_vm_bo_update()
1062 if (bo && bo->tbo.base.resv == vm->root.bo->tbo.base.resv) { in amdgpu_vm_bo_update()
1063 uint32_t mem_type = bo->tbo.resource->mem_type; in amdgpu_vm_bo_update()
1200 struct dma_resv *resv = vm->root.bo->tbo.base.resv; in amdgpu_vm_prt_fini()
1230 struct dma_resv *resv = vm->root.bo->tbo.base.resv; in amdgpu_vm_clear_freed()
1304 resv = bo_va->base.bo->tbo.base.resv; in amdgpu_vm_handle_moved()
1361 dma_resv_assert_held(bo->tbo.base.resv); in amdgpu_vm_bo_add()
1395 if (bo && bo->tbo.base.resv == vm->root.bo->tbo.base.resv && in amdgpu_vm_bo_insert_map()
1729 if (dma_resv_locking_ctx(bo->tbo.base.resv) != in amdgpu_vm_bo_trace_cs()
1756 dma_resv_assert_held(vm->root.bo->tbo.base.resv); in amdgpu_vm_bo_del()
1759 dma_resv_assert_held(bo->tbo.base.resv); in amdgpu_vm_bo_del()
1760 if (bo->tbo.base.resv == vm->root.bo->tbo.base.resv) in amdgpu_vm_bo_del()
1761 ttm_bo_set_bulk_move(&bo->tbo, NULL); in amdgpu_vm_bo_del()
1815 if (!dma_resv_test_signaled(bo->tbo.base.resv, DMA_RESV_USAGE_BOOKKEEP)) in amdgpu_vm_evictable()
1854 if (evicted && bo->tbo.base.resv == vm->root.bo->tbo.base.resv) { in amdgpu_vm_bo_invalidate()
1863 if (bo->tbo.type == ttm_bo_type_kernel) in amdgpu_vm_bo_invalidate()
1865 else if (bo->tbo.base.resv == vm->root.bo->tbo.base.resv) in amdgpu_vm_bo_invalidate()
1995 timeout = dma_resv_wait_timeout(vm->root.bo->tbo.base.resv, in amdgpu_vm_wait_idle()
2080 r = dma_resv_reserve_fences(root_bo->tbo.base.resv, 1); in amdgpu_vm_init()
2515 r = dma_resv_reserve_fences(root->tbo.base.resv, 1); in amdgpu_vm_handle_fault()