Lines Matching defs:VPCI

45 #define INSTANCE(pThis) pThis->VPCI.szInstance
121 VPCISTATE VPCI;
251 AssertCompileMemberOffset(VNETSTATE, VPCI, 0);
281 return !!(pThis->VPCI.uGuestFeatures & VNET_F_MRG_RXBUF);
286 return vpciCsEnter(&pThis->VPCI, rcBusy);
291 vpciCsLeave(&pThis->VPCI);
456 vpciReset(&pThis->VPCI);
519 vpciRaiseInterrupt(&pThis->VPCI, VERR_SEM_BUSY, VPCI_ISR_CONFIG);
539 vpciRaiseInterrupt(&pThis->VPCI, VERR_SEM_BUSY, VPCI_ISR_CONFIG);
569 vnetWakeupReceive(pThis->VPCI.CTX_SUFF(pDevIns));
631 if (!(pThis->VPCI.uStatus & VPCI_STATUS_DRV_OK))
633 else if (!vqueueIsReady(&pThis->VPCI, pThis->pRxQueue))
635 else if (vqueueIsEmpty(&pThis->VPCI, pThis->pRxQueue))
637 vringSetNotification(&pThis->VPCI, &pThis->pRxQueue->VRing, true);
642 vringSetNotification(&pThis->VPCI, &pThis->pRxQueue->VRing, false);
670 while (RT_LIKELY( (enmVMState = PDMDevHlpVMState(pThis->VPCI.CTX_SUFF(pDevIns))) == VMSTATE_RUNNING
696 PVNETSTATE pThis = RT_FROM_MEMBER(pInterface, VNETSTATE, VPCI.IBase);
697 Assert(&pThis->VPCI.IBase == pInterface);
839 if (!vqueueGet(&pThis->VPCI, pThis->pRxQueue, &elem))
883 vqueuePut(&pThis->VPCI, pThis->pRxQueue, &elem, uElemSize, cbReserved);
892 int rc = PDMDevHlpPCIPhysWrite(pThis->VPCI.CTX_SUFF(pDevIns), addrHdrMrx,
901 vqueueSync(&pThis->VPCI, pThis->pRxQueue);
923 uint32_t uFeatures = pThis->VPCI.uGuestFeatures;
956 VMSTATE enmVMState = PDMDevHlpVMState(pThis->VPCI.CTX_SUFF(pDevIns));
963 vpciSetReadLed(&pThis->VPCI, true);
974 vpciSetReadLed(&pThis->VPCI, false);
1051 vpciRaiseInterrupt(&pThis->VPCI, VERR_SEM_BUSY, VPCI_ISR_CONFIG);
1059 vpciRaiseInterrupt(&pThis->VPCI, VERR_SEM_BUSY, VPCI_ISR_CONFIG);
1071 vnetWakeupReceive(pThis->VPCI.CTX_SUFF(pDevIns));
1151 if ((pThis->VPCI.uStatus & VPCI_STATUS_DRV_OK) == 0)
1154 INSTANCE(pThis), pThis->VPCI.uStatus));
1177 vringReadAvailIndex(&pThis->VPCI, &pThis->pTxQueue->VRing) - pThis->pTxQueue->uNextAvailIndex));
1179 vpciSetWriteLed(&pThis->VPCI, true);
1186 while (vqueuePeek(&pThis->VPCI, pQueue, &elem))
1210 PDMDevHlpPhysRead(pThis->VPCI.CTX_SUFF(pDevIns), elem.aSegsOut[0].addr,
1227 PDMDevHlpPhysRead(pThis->VPCI.CTX_SUFF(pDevIns), elem.aSegsOut[i].addr,
1295 vqueueSkip(&pThis->VPCI, pQueue);
1296 vqueuePut(&pThis->VPCI, pQueue, &elem, sizeof(VNETHDR) + uOffset);
1297 vqueueSync(&pThis->VPCI, pQueue);
1300 vpciSetWriteLed(&pThis->VPCI, false);
1332 vringSetNotification(&pThis->VPCI, &pThis->pTxQueue->VRing, true);
1342 vringSetNotification(&pThis->VPCI, &pThis->pTxQueue->VRing, false);
1374 vringSetNotification(&pThis->VPCI, &pThis->pTxQueue->VRing, true);
1393 PDMDevHlpPhysRead(pThis->VPCI.CTX_SUFF(pDevIns),
1432 PDMDevHlpPhysRead(pThis->VPCI.CTX_SUFF(pDevIns),
1452 PDMDevHlpPhysRead(pThis->VPCI.CTX_SUFF(pDevIns),
1464 PDMDevHlpPhysRead(pThis->VPCI.CTX_SUFF(pDevIns),
1484 PDMDevHlpPhysRead(pThis->VPCI.CTX_SUFF(pDevIns),
1513 PDMDevHlpPhysRead(pThis->VPCI.CTX_SUFF(pDevIns),
1548 while (vqueueGet(&pThis->VPCI, pQueue, &elem))
1570 PDMDevHlpPhysRead(pThis->VPCI.CTX_SUFF(pDevIns),
1589 PDMDevHlpPCIPhysWrite(pThis->VPCI.CTX_SUFF(pDevIns),
1593 vqueuePut(&pThis->VPCI, pQueue, &elem, sizeof(u8Ack));
1594 vqueueSync(&pThis->VPCI, pQueue);
1650 int rc = vpciSaveExec(&pThis->VPCI, pSSM);
1703 rc = vpciLoadExec(&pThis->VPCI, pSSM, uVersion, uPass, VNET_N_QUEUES);
1789 pThis->VPCI.IOPortBase = (RTIOPORT)GCPhysAddress;
1790 rc = PDMDevHlpIOPortRegister(pPciDev->pDevIns, pThis->VPCI.IOPortBase,
1795 rc = PDMDevHlpIOPortRegisterR0(pPciDev->pDevIns, pThis->VPCI.IOPortBase,
1799 rc = PDMDevHlpIOPortRegisterRC(pPciDev->pDevIns, pThis->VPCI.IOPortBase,
1857 rc = PDMDevHlpDriverAttach(pDevIns, 0, &pThis->VPCI.IBase, &pThis->pDrvBase, "Network Port");
1952 return vpciDestruct(&pThis->VPCI);
1973 pThis->VPCI.IBase.pfnQueryInterface = vnetQueryInterface;
1974 rc = vpciConstruct(pDevIns, &pThis->VPCI, iInstance,
1977 pThis->pRxQueue = vpciAddQueue(&pThis->VPCI, 256, vnetQueueReceive, "RX ");
1978 pThis->pTxQueue = vpciAddQueue(&pThis->VPCI, 256, vnetQueueTransmit, "TX ");
1979 pThis->pCtlQueue = vpciAddQueue(&pThis->VPCI, 16, vnetQueueControl, "CTL");
2034 // char szTmp[sizeof(pThis->VPCI.szInstance) + 2];
2035 // RTStrPrintf(szTmp, sizeof(szTmp), "%sRX", pThis->VPCI.szInstance);
2085 rc = PDMDevHlpDriverAttach(pDevIns, 0, &pThis->VPCI.IBase, &pThis->pDrvBase, "Network Port");