Lines Matching refs:idle
199 struct amdgpu_vmid **idle) in amdgpu_vmid_grab_idle() argument
217 list_for_each_entry((*idle), &id_mgr->ids_lru, list) { in amdgpu_vmid_grab_idle()
218 fences[i] = amdgpu_sync_peek_fence(&(*idle)->active, ring); in amdgpu_vmid_grab_idle()
225 if (&(*idle)->list == &id_mgr->ids_lru) { in amdgpu_vmid_grab_idle()
231 *idle = NULL; in amdgpu_vmid_grab_idle()
413 struct amdgpu_vmid *idle = NULL; in amdgpu_vmid_grab() local
418 r = amdgpu_vmid_grab_idle(vm, ring, sync, &idle); in amdgpu_vmid_grab()
419 if (r || !idle) in amdgpu_vmid_grab()
435 id = idle; in amdgpu_vmid_grab()
472 struct amdgpu_vmid *idle; in amdgpu_vmid_alloc_reserved() local
487 idle = list_first_entry(&id_mgr->ids_lru, struct amdgpu_vmid, list); in amdgpu_vmid_alloc_reserved()
488 list_del_init(&idle->list); in amdgpu_vmid_alloc_reserved()
489 vm->reserved_vmid[vmhub] = idle; in amdgpu_vmid_alloc_reserved()