Lines Matching refs:vm_manager
62 return adev->vm_manager.max_pfn >> amdgpu_vm_block_size; in amdgpu_vm_num_pdes()
150 owner = atomic_long_read(&adev->vm_manager.ids[id].owner); in amdgpu_vm_grab_id()
161 for (i = 1; i < adev->vm_manager.nvm; ++i) { in amdgpu_vm_grab_id()
162 struct fence *fence = adev->vm_manager.ids[i].active; in amdgpu_vm_grab_id()
184 fence = adev->vm_manager.ids[choices[i]].active; in amdgpu_vm_grab_id()
254 fence_put(adev->vm_manager.ids[vm_id].active); in amdgpu_vm_fence()
255 adev->vm_manager.ids[vm_id].active = fence_get(fence); in amdgpu_vm_fence()
256 atomic_long_set(&adev->vm_manager.ids[vm_id].owner, (long)vm); in amdgpu_vm_fence()
341 struct amdgpu_ring *ring = adev->vm_manager.vm_pte_funcs_ring; in amdgpu_vm_clear_bo()
430 struct amdgpu_ring *ring = adev->vm_manager.vm_pte_funcs_ring; in amdgpu_vm_update_page_directory()
709 struct amdgpu_ring *ring = adev->vm_manager.vm_pte_funcs_ring; in amdgpu_vm_bo_update_mapping()
834 addr += adev->vm_manager.vram_base_offset; in amdgpu_vm_bo_update()
1018 if (last_pfn >= adev->vm_manager.max_pfn) { in amdgpu_vm_bo_map()
1020 last_pfn, adev->vm_manager.max_pfn); in amdgpu_vm_bo_map()
1336 atomic_long_cmpxchg(&adev->vm_manager.ids[id].owner, in amdgpu_vm_fini()
1355 fence_put(adev->vm_manager.ids[i].active); in amdgpu_vm_manager_fini()