Lines Matching defs:pUsbIns

646     for (PPDMUSBINS pUsbIns = pVM->pdm.s.pUsbInstances; pUsbIns; pUsbIns = pUsbIns->Internal.s.pNext)
648 pdmR3TermLuns(pVM, pUsbIns->Internal.s.pLuns, pUsbIns->pReg->szName, pUsbIns->iInstance);
654 PPDMUSBHUB pHub = pUsbIns->Internal.s.pHub;
657 int rc = pHub->Reg.pfnDetachDevice(pHub->pDrvIns, pUsbIns, pUsbIns->Internal.s.iPort);
661 pUsbIns->pReg->szName, pUsbIns->iInstance, pHub, rc));
667 pUsbIns->Internal.s.pHub = NULL;
671 if (pUsbIns->pReg->pfnDestruct)
674 pUsbIns->pReg->szName, pUsbIns->iInstance));
675 pUsbIns->pReg->pfnDestruct(pUsbIns);
678 //TMR3TimerDestroyUsb(pVM, pUsbIns);
679 //SSMR3DeregisterUsb(pVM, pUsbIns, NULL, 0);
680 pdmR3ThreadDestroyUsb(pVM, pUsbIns);
1102 * @param pUsbIns The USB device instance.
1104 DECLINLINE(int) pdmR3PowerOnUsb(PPDMUSBINS pUsbIns)
1106 Assert(pUsbIns->Internal.s.fVMSuspended);
1107 if (pUsbIns->pReg->pfnVMPowerOn)
1109 LogFlow(("PDMR3PowerOn: Notifying - device '%s'/%d\n", pUsbIns->pReg->szName, pUsbIns->iInstance));
1110 int rc = VINF_SUCCESS; pUsbIns->pReg->pfnVMPowerOn(pUsbIns);
1113 LogRel(("PDMR3PowerOn: device '%s'/%d -> %Rrc\n", pUsbIns->pReg->szName, pUsbIns->iInstance, rc));
1117 pUsbIns->Internal.s.fVMSuspended = false;
1173 for (PPDMUSBINS pUsbIns = pVM->pdm.s.pUsbInstances; pUsbIns && RT_SUCCESS(rc); pUsbIns = pUsbIns->Internal.s.pNext)
1175 for (PPDMLUN pLun = pUsbIns->Internal.s.pLuns; pLun && RT_SUCCESS(rc); pLun = pLun->pNext)
1177 rc = pdmR3PowerOnDrv(pDrvIns, pUsbIns->pReg->szName, pUsbIns->iInstance, pLun->iLun);
1179 rc = pdmR3PowerOnUsb(pUsbIns);
1375 * @param pUsbIns The USB device instance.
1379 DECLINLINE(void) pdmR3ResetUsb(PPDMUSBINS pUsbIns, PPDMNOTIFYASYNCSTATS pAsync)
1381 if (!pUsbIns->Internal.s.fVMReset)
1383 pUsbIns->Internal.s.fVMReset = true;
1384 if (pUsbIns->pReg->pfnVMReset)
1386 if (!pUsbIns->Internal.s.pfnAsyncNotify)
1388 LogFlow(("PDMR3Reset: Notifying - device '%s'/%d\n", pUsbIns->pReg->szName, pUsbIns->iInstance));
1389 pUsbIns->pReg->pfnVMReset(pUsbIns);
1390 if (pUsbIns->Internal.s.pfnAsyncNotify)
1391 LogFlow(("PDMR3Reset: Async notification started - device '%s'/%d\n", pUsbIns->pReg->szName, pUsbIns->iInstance));
1393 else if (pUsbIns->Internal.s.pfnAsyncNotify(pUsbIns))
1395 LogFlow(("PDMR3Reset: Async notification completed - device '%s'/%d\n", pUsbIns->pReg->szName, pUsbIns->iInstance));
1396 pUsbIns->Internal.s.pfnAsyncNotify = NULL;
1398 if (pUsbIns->Internal.s.pfnAsyncNotify)
1400 pUsbIns->Internal.s.fVMReset = false;
1401 pdmR3NotifyAsyncAdd(pAsync, pUsbIns->Internal.s.pUsbDev->pReg->szName, pUsbIns->iInstance);
1490 for (PPDMUSBINS pUsbIns = pVM->pdm.s.pUsbInstances; pUsbIns; pUsbIns = pUsbIns->Internal.s.pNext)
1492 pUsbIns->Internal.s.fVMReset = false;
1493 for (PPDMLUN pLun = pUsbIns->Internal.s.pLuns; pLun; pLun = pLun->pNext)
1531 for (PPDMUSBINS pUsbIns = pVM->pdm.s.pUsbInstances; pUsbIns; pUsbIns = pUsbIns->Internal.s.pNext)
1535 for (PPDMLUN pLun = pUsbIns->Internal.s.pLuns; pLun; pLun = pLun->pNext)
1537 if (!pdmR3ResetDrv(pDrvIns, &Async, pUsbIns->pReg->szName, pUsbIns->iInstance, pLun->iLun))
1541 pdmR3ResetUsb(pUsbIns, &Async);
1645 * @param pUsbIns The USB device instance.
1649 DECLINLINE(void) pdmR3SuspendUsb(PPDMUSBINS pUsbIns, PPDMNOTIFYASYNCSTATS pAsync)
1651 if (!pUsbIns->Internal.s.fVMSuspended)
1653 pUsbIns->Internal.s.fVMSuspended = true;
1654 if (pUsbIns->pReg->pfnVMSuspend)
1658 if (!pUsbIns->Internal.s.pfnAsyncNotify)
1660 LogFlow(("PDMR3Suspend: Notifying - USB device '%s'/%d\n", pUsbIns->pReg->szName, pUsbIns->iInstance));
1661 pUsbIns->pReg->pfnVMSuspend(pUsbIns);
1662 if (pUsbIns->Internal.s.pfnAsyncNotify)
1663 LogFlow(("PDMR3Suspend: Async notification started - USB device '%s'/%d\n", pUsbIns->pReg->szName, pUsbIns->iInstance));
1665 else if (pUsbIns->Internal.s.pfnAsyncNotify(pUsbIns))
1667 LogFlow(("PDMR3Suspend: Async notification completed - USB device '%s'/%d\n", pUsbIns->pReg->szName, pUsbIns->iInstance));
1668 pUsbIns->Internal.s.pfnAsyncNotify = NULL;
1670 if (pUsbIns->Internal.s.pfnAsyncNotify)
1672 pUsbIns->Internal.s.fVMSuspended = false;
1673 pdmR3NotifyAsyncAdd(pAsync, pUsbIns->Internal.s.pUsbDev->pReg->szName, pUsbIns->iInstance);
1679 pUsbIns->pReg->szName, pUsbIns->iInstance, cNsElapsed));
1785 for (PPDMUSBINS pUsbIns = pVM->pdm.s.pUsbInstances; pUsbIns; pUsbIns = pUsbIns->Internal.s.pNext)
1789 for (PPDMLUN pLun = pUsbIns->Internal.s.pLuns; pLun; pLun = pLun->pNext)
1791 if (!pdmR3SuspendDrv(pDrvIns, &Async, pUsbIns->pReg->szName, pUsbIns->iInstance, pLun->iLun))
1795 pdmR3SuspendUsb(pUsbIns, &Async);
1846 * @param pUsbIns The USB device instance.
1848 DECLINLINE(int) pdmR3ResumeUsb(PPDMUSBINS pUsbIns)
1850 Assert(pUsbIns->Internal.s.fVMSuspended);
1851 if (pUsbIns->pReg->pfnVMResume)
1853 LogFlow(("PDMR3Resume: Notifying - device '%s'/%d\n", pUsbIns->pReg->szName, pUsbIns->iInstance));
1854 int rc = VINF_SUCCESS; pUsbIns->pReg->pfnVMResume(pUsbIns);
1857 LogRel(("PDMR3Resume: device '%s'/%d -> %Rrc\n", pUsbIns->pReg->szName, pUsbIns->iInstance, rc));
1861 pUsbIns->Internal.s.fVMSuspended = false;
1917 for (PPDMUSBINS pUsbIns = pVM->pdm.s.pUsbInstances; pUsbIns && RT_SUCCESS(rc); pUsbIns = pUsbIns->Internal.s.pNext)
1919 for (PPDMLUN pLun = pUsbIns->Internal.s.pLuns; pLun && RT_SUCCESS(rc); pLun = pLun->pNext)
1921 rc = pdmR3ResumeDrv(pDrvIns, pUsbIns->pReg->szName, pUsbIns->iInstance, pLun->iLun);
1923 rc = pdmR3ResumeUsb(pUsbIns);
2007 * @param pUsbIns The USB device instance.
2011 DECLINLINE(void) pdmR3PowerOffUsb(PPDMUSBINS pUsbIns, PPDMNOTIFYASYNCSTATS pAsync)
2013 if (!pUsbIns->Internal.s.fVMSuspended)
2015 pUsbIns->Internal.s.fVMSuspended = true;
2016 if (pUsbIns->pReg->pfnVMPowerOff)
2020 if (!pUsbIns->Internal.s.pfnAsyncNotify)
2022 LogFlow(("PDMR3PowerOff: Notifying - USB device '%s'/%d\n", pUsbIns->pReg->szName, pUsbIns->iInstance));
2023 pUsbIns->pReg->pfnVMPowerOff(pUsbIns);
2024 if (pUsbIns->Internal.s.pfnAsyncNotify)
2025 LogFlow(("PDMR3PowerOff: Async notification started - USB device '%s'/%d\n", pUsbIns->pReg->szName, pUsbIns->iInstance));
2027 else if (pUsbIns->Internal.s.pfnAsyncNotify(pUsbIns))
2029 LogFlow(("PDMR3PowerOff: Async notification completed - USB device '%s'/%d\n", pUsbIns->pReg->szName, pUsbIns->iInstance));
2030 pUsbIns->Internal.s.pfnAsyncNotify = NULL;
2032 if (pUsbIns->Internal.s.pfnAsyncNotify)
2034 pUsbIns->Internal.s.fVMSuspended = false;
2035 pdmR3NotifyAsyncAdd(pAsync, pUsbIns->Internal.s.pUsbDev->pReg->szName, pUsbIns->iInstance);
2041 pUsbIns->pReg->szName, pUsbIns->iInstance, cNsElapsed));
2141 for (PPDMUSBINS pUsbIns = pVM->pdm.s.pUsbInstances; pUsbIns; pUsbIns = pUsbIns->Internal.s.pNext)
2145 for (PPDMLUN pLun = pUsbIns->Internal.s.pLuns; pLun; pLun = pLun->pNext)
2147 if (!pdmR3PowerOffDrv(pDrvIns, &Async, pUsbIns->pReg->szName, pUsbIns->iInstance, pLun->iLun))
2151 pdmR3PowerOffUsb(pUsbIns, &Async);
2512 for (PPDMUSBINS pUsbIns = pVM->pdm.s.pUsbInstances; pUsbIns; pUsbIns = pUsbIns->Internal.s.pNext)
2514 pUsbIns->fTracing = fEnable;
2515 for (PPDMLUN pLun = pUsbIns->Internal.s.pLuns; pLun; pLun = pLun->pNext)
2551 for (PPDMUSBINS pUsbIns = pVM->pdm.s.pUsbInstances; pUsbIns; pUsbIns = pUsbIns->Internal.s.pNext)
2553 const char *pszUsbName = pUsbIns->Internal.s.pUsbDev->pReg->szName;
2562 pUsbIns->fTracing = fEnable;
2588 for (PPDMUSBINS pUsbIns = pVM->pdm.s.pUsbInstances; pUsbIns; pUsbIns = pUsbIns->Internal.s.pNext)
2589 for (PPDMLUN pLun = pUsbIns->Internal.s.pLuns; pLun; pLun = pLun->pNext)
2635 for (PPDMUSBINS pUsbIns = pVM->pdm.s.pUsbInstances; pUsbIns; pUsbIns = pUsbIns->Internal.s.pNext)
2637 if (pUsbIns->fTracing != (uint32_t)fEnabled)
2640 for (PPDMLUN pLun = pUsbIns->Internal.s.pLuns; pLun; pLun = pLun->pNext)
2724 for (PPDMUSBINS pUsbIns = pVM->pdm.s.pUsbInstances; pUsbIns; pUsbIns = pUsbIns->Internal.s.pNext)
2726 if (pUsbIns->fTracing)
2728 rc = pdmR3TracingAdd(&pszDst, &cbDst, pszDst != pszConfig, "usb", pUsbIns->Internal.s.pUsbDev->pReg->szName);
2733 for (PPDMLUN pLun = pUsbIns->Internal.s.pLuns; pLun; pLun = pLun->pNext)
2813 for (PPDMUSBINS pUsbIns = pVM->pdm.s.pUsbInstances; pUsbIns; pUsbIns = pUsbIns->Internal.s.pNext)
2814 pHlp->pfnPrintf(pHlp, "%05u %s\n", pUsbIns->idTracing, pUsbIns->Internal.s.pUsbDev->pReg->szName);
2833 for (PPDMUSBINS pUsbIns = pVM->pdm.s.pUsbInstances; pUsbIns; pUsbIns = pUsbIns->Internal.s.pNext)
2835 for (PPDMLUN pLun = pUsbIns->Internal.s.pLuns; pLun; pLun = pLun->pNext)
2841 iLevel, pLun->iLun, pUsbIns->Internal.s.pUsbDev->pReg->szName);