Searched refs:id_mgr (Results 1 – 8 of 8) sorted by relevance
186 struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; in amdgpu_vmid_grab_idle() local194 fences = kmalloc_array(id_mgr->num_ids, sizeof(void *), GFP_KERNEL); in amdgpu_vmid_grab_idle()200 list_for_each_entry((*idle), &id_mgr->ids_lru, list) { in amdgpu_vmid_grab_idle()212 if (&(*idle)->list == &id_mgr->ids_lru) { in amdgpu_vmid_grab_idle()323 struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; in amdgpu_vmid_grab_used() local331 list_for_each_entry_reverse((*id), &id_mgr->ids_lru, list) { in amdgpu_vmid_grab_used()385 struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; in amdgpu_vmid_grab() local390 mutex_lock(&id_mgr->lock); in amdgpu_vmid_grab()417 list_move_tail(&id->list, &id_mgr->ids_lru); in amdgpu_vmid_grab()427 job->vmid = id - id_mgr->ids; in amdgpu_vmid_grab()[all …]
465 struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; in amdgpu_vm_need_pipeline_sync() local472 id = &id_mgr->ids[job->vmid]; in amdgpu_vm_need_pipeline_sync()504 struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; in amdgpu_vm_flush() local505 struct amdgpu_vmid *id = &id_mgr->ids[job->vmid]; in amdgpu_vm_flush()529 mutex_lock(&id_mgr->lock); in amdgpu_vm_flush()533 mutex_unlock(&id_mgr->lock); in amdgpu_vm_flush()565 mutex_lock(&id_mgr->lock); in amdgpu_vm_flush()570 mutex_unlock(&id_mgr->lock); in amdgpu_vm_flush()574 mutex_lock(&id_mgr->lock); in amdgpu_vm_flush()578 mutex_unlock(&id_mgr->lock); in amdgpu_vm_flush()
336 struct amdgpu_vmid_mgr id_mgr[AMDGPU_MAX_VMHUBS]; member
1969 for (i = 0; i < adev->vm_manager.id_mgr[0].num_ids; i++) { in gfx_v7_0_constants_init()
1653 for (i = 0; i < adev->vm_manager.id_mgr[AMDGPU_GFXHUB_0].num_ids; i++) { in gfx_v11_0_constants_init()
2430 for (i = 0; i < adev->vm_manager.id_mgr[AMDGPU_GFXHUB_0].num_ids; i++) { in gfx_v9_0_constants_init()
3783 for (i = 0; i < adev->vm_manager.id_mgr[0].num_ids; i++) { in gfx_v8_0_constants_init()
5060 for (i = 0; i < adev->vm_manager.id_mgr[AMDGPU_GFXHUB_0].num_ids; i++) { in gfx_v10_0_constants_init()