Lines Matching defs:idle
188 * amdgpu_vmid_grab_idle - grab idle VMID
191 * @idle: resulting idle VMID
194 * Try to find an idle VMID, if none is idle add a fence to wait to the sync
198 struct amdgpu_vmid **idle,
216 /* Check if we have an idle VMID */
218 list_for_each_entry((*idle), &id_mgr->ids_lru, list) {
223 fences[i] = amdgpu_sync_peek_fence(&(*idle)->active, r);
229 /* If we can't find a idle VMID to use, wait till one becomes available */
230 if (&(*idle)->list == &id_mgr->ids_lru) {
236 *idle = NULL;
400 struct amdgpu_vmid *idle = NULL;
405 r = amdgpu_vmid_grab_idle(ring, &idle, fence);
406 if (r || !idle)
419 /* Still no ID to use? Then use the idle one found earlier */
420 id = idle;