Lines Matching defs:pVM
79 rc = pThread->u.Int.pfnWakeUp(pThread->Internal.s.pVM, pThread);
100 * @param pVM Pointer to the VM.
103 static int pdmR3ThreadNew(PVM pVM, PPPDMTHREAD ppThread)
106 int rc = MMR3HeapAllocZEx(pVM, MM_TAG_PDM_THREAD, sizeof(*pThread), (void **)&pThread);
113 pThread->Internal.s.pVM = pVM;
125 * @param pVM Pointer to the VM.
131 static int pdmR3ThreadInit(PVM pVM, PPPDMTHREAD ppThread, size_t cbStack, RTTHREADTYPE enmType, const char *pszName)
134 PUVM pUVM = pVM->pUVM;
139 pThread->Internal.s.pVM = pVM;
187 MMHyperFree(pVM, pThread);
198 * @param pVM Pointer to the VM.
209 int pdmR3ThreadCreateDevice(PVM pVM, PPDMDEVINS pDevIns, PPPDMTHREAD ppThread, void *pvUser, PFNPDMTHREADDEV pfnThread,
212 int rc = pdmR3ThreadNew(pVM, ppThread);
221 rc = pdmR3ThreadInit(pVM, ppThread, cbStack, enmType, pszName);
231 * @param pVM Pointer to the VM.
242 int pdmR3ThreadCreateUsb(PVM pVM, PPDMUSBINS pUsbIns, PPPDMTHREAD ppThread, void *pvUser, PFNPDMTHREADUSB pfnThread,
245 int rc = pdmR3ThreadNew(pVM, ppThread);
254 rc = pdmR3ThreadInit(pVM, ppThread, cbStack, enmType, pszName);
264 * @param pVM Pointer to the VM.
275 int pdmR3ThreadCreateDriver(PVM pVM, PPDMDRVINS pDrvIns, PPPDMTHREAD ppThread, void *pvUser, PFNPDMTHREADDRV pfnThread,
278 int rc = pdmR3ThreadNew(pVM, ppThread);
287 rc = pdmR3ThreadInit(pVM, ppThread, cbStack, enmType, pszName);
297 * @param pVM Pointer to the VM.
307 VMMR3DECL(int) PDMR3ThreadCreate(PVM pVM, PPPDMTHREAD ppThread, void *pvUser, PFNPDMTHREADINT pfnThread,
310 int rc = pdmR3ThreadNew(pVM, ppThread);
318 rc = pdmR3ThreadInit(pVM, ppThread, cbStack, enmType, pszName);
328 * @param pVM Pointer to the VM.
338 VMMR3DECL(int) PDMR3ThreadCreateExternal(PVM pVM, PPPDMTHREAD ppThread, void *pvUser, PFNPDMTHREADEXT pfnThread,
341 int rc = pdmR3ThreadNew(pVM, ppThread);
349 rc = pdmR3ThreadInit(pVM, ppThread, cbStack, enmType, pszName);
376 PVM pVM = pThread->Internal.s.pVM;
377 VM_ASSERT_EMT(pVM);
378 PUVM pUVM = pVM->pUVM;
476 * @param pVM Pointer to the VM.
479 int pdmR3ThreadDestroyDevice(PVM pVM, PPDMDEVINS pDevIns)
482 PUVM pUVM = pVM->pUVM;
511 * @param pVM Pointer to the VM.
514 int pdmR3ThreadDestroyUsb(PVM pVM, PPDMUSBINS pUsbIns)
517 PUVM pUVM = pVM->pUVM;
546 * @param pVM Pointer to the VM.
549 int pdmR3ThreadDestroyDriver(PVM pVM, PPDMDRVINS pDrvIns)
552 PUVM pUVM = pVM->pUVM;
578 * @param pVM Pointer to the VM.
580 void pdmR3ThreadDestroyAll(PVM pVM)
582 PUVM pUVM = pVM->pUVM;
761 PUVM pUVM = pThread->Internal.s.pVM->pUVM;
791 rc = pThread->u.Int.pfnThread(pThread->Internal.s.pVM, pThread);
974 * @param pVM Pointer to the VM.
976 int pdmR3ThreadSuspendAll(PVM pVM)
978 PUVM pUVM = pVM->pUVM;
1066 * @param pVM Pointer to the VM.
1068 int pdmR3ThreadResumeAll(PVM pVM)
1070 PUVM pUVM = pVM->pUVM;