Lines Matching full:vmid
147 * VMID manager
156 * @id: VMID structure
158 * Check if GPU reset occured since last use of the VMID.
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
216 /* Check if we have an idle VMID */ in amdgpu_vmid_grab_idle()
219 /* Don't use per engine and per process VMID at the same time */ in amdgpu_vmid_grab_idle()
229 /* If we can't find a idle VMID to use, wait till one becomes available */ in amdgpu_vmid_grab_idle()
260 * amdgpu_vmid_grab_reserved - try to assign reserved VMID
264 * @job: job who wants to use the VMID
265 * @id: resulting VMID
268 * Try to assign a reserved VMID.
297 /* Don't use per engine and per process VMID at the in amdgpu_vmid_grab_reserved()
313 /* Good we can use this VMID. Remember this submission as in amdgpu_vmid_grab_reserved()
314 * user of the VMID. in amdgpu_vmid_grab_reserved()
327 * amdgpu_vmid_grab_used - try to reuse a VMID
331 * @job: job who wants to use the VMID
332 * @id: resulting VMID
334 * Try to reuse a VMID for this submission.
350 /* Check if we can use a VMID already assigned to this VM */ in amdgpu_vmid_grab_used()
354 /* Check all the prerequisites to using this VMID */ in amdgpu_vmid_grab_used()
372 /* Good, we can use this VMID. Remember this submission as in amdgpu_vmid_grab_used()
373 * user of the VMID. in amdgpu_vmid_grab_used()
390 * amdgpu_vmid_grab - allocate the next free VMID
394 * @job: job who wants to use the VMID
427 /* Remember this submission as user of the VMID */ in amdgpu_vmid_grab()
446 job->vmid = id - id_mgr->ids; in amdgpu_vmid_grab()
466 * amdgpu_vmid_uses_reserved - check if a VM will use a reserved VMID
470 * Returns: True if the VM will use a reserved VMID.
515 * amdgpu_vmid_reset - reset VMID to zero
519 * @vmid: vmid number to use
524 unsigned vmid) in amdgpu_vmid_reset() argument
527 struct amdgpu_vmid *id = &id_mgr->ids[vmid]; in amdgpu_vmid_reset()
541 * amdgpu_vmid_reset_all - reset VMID to zero
545 * Reset VMID to force flush on next use
561 * amdgpu_vmid_mgr_init - init the VMID manager
582 /* skip over VMID 0, since it is the system VM */ in amdgpu_vmid_mgr_init()
589 /* alloc a default reserved vmid to enforce isolation */ in amdgpu_vmid_mgr_init()