Lines Matching refs:idle
198 struct amdgpu_vmid **idle) in amdgpu_vmid_grab_idle() argument
216 list_for_each_entry((*idle), &id_mgr->ids_lru, list) { in amdgpu_vmid_grab_idle()
221 fences[i] = amdgpu_sync_peek_fence(&(*idle)->active, r); in amdgpu_vmid_grab_idle()
228 if (&(*idle)->list == &id_mgr->ids_lru) { in amdgpu_vmid_grab_idle()
234 *idle = NULL; in amdgpu_vmid_grab_idle()
416 struct amdgpu_vmid *idle = NULL; in amdgpu_vmid_grab() local
421 r = amdgpu_vmid_grab_idle(vm, ring, sync, &idle); in amdgpu_vmid_grab()
422 if (r || !idle) in amdgpu_vmid_grab()
438 id = idle; in amdgpu_vmid_grab()
474 struct amdgpu_vmid *idle; in amdgpu_vmid_alloc_reserved() local
489 idle = list_first_entry(&id_mgr->ids_lru, struct amdgpu_vmid, list); in amdgpu_vmid_alloc_reserved()
490 list_del_init(&idle->list); in amdgpu_vmid_alloc_reserved()
491 vm->reserved_vmid[vmhub] = idle; in amdgpu_vmid_alloc_reserved()