Lines Matching refs:bo_base
467 struct amdgpu_vm_bo_base *bo_base; in amdgpu_vm_validate() local
482 bo_base = list_first_entry(&vm->evicted, in amdgpu_vm_validate()
487 bo = bo_base->bo; in amdgpu_vm_validate()
494 amdgpu_vm_bo_moved(bo_base); in amdgpu_vm_validate()
497 amdgpu_vm_bo_relocated(bo_base); in amdgpu_vm_validate()
502 bo_base = list_first_entry(&vm->evicted_user, in amdgpu_vm_validate()
507 bo = bo_base->bo; in amdgpu_vm_validate()
525 amdgpu_vm_bo_invalidated(bo_base); in amdgpu_vm_validate()
2112 struct amdgpu_vm_bo_base *bo_base = bo->vm_bo; in amdgpu_vm_evictable() local
2115 if (!bo_base || !bo_base->vm) in amdgpu_vm_evictable()
2123 if (!amdgpu_vm_eviction_trylock(bo_base->vm)) in amdgpu_vm_evictable()
2127 if (!dma_fence_is_signaled(bo_base->vm->last_unlocked)) { in amdgpu_vm_evictable()
2128 amdgpu_vm_eviction_unlock(bo_base->vm); in amdgpu_vm_evictable()
2132 bo_base->vm->evicting = true; in amdgpu_vm_evictable()
2133 amdgpu_vm_eviction_unlock(bo_base->vm); in amdgpu_vm_evictable()
2149 struct amdgpu_vm_bo_base *bo_base; in amdgpu_vm_bo_invalidate() local
2151 for (bo_base = bo->vm_bo; bo_base; bo_base = bo_base->next) { in amdgpu_vm_bo_invalidate()
2152 struct amdgpu_vm *vm = bo_base->vm; in amdgpu_vm_bo_invalidate()
2155 amdgpu_vm_bo_evicted(bo_base); in amdgpu_vm_bo_invalidate()
2159 if (bo_base->moved) in amdgpu_vm_bo_invalidate()
2161 bo_base->moved = true; in amdgpu_vm_bo_invalidate()
2164 amdgpu_vm_bo_relocated(bo_base); in amdgpu_vm_bo_invalidate()
2166 amdgpu_vm_bo_moved(bo_base); in amdgpu_vm_bo_invalidate()
2168 amdgpu_vm_bo_invalidated(bo_base); in amdgpu_vm_bo_invalidate()