Lines Matching refs:pDrvIns

57     PPDMDRVINS              pDrvIns;
201 PDMDrvHlpFTSetCheckpoint(pThis->pDrvIns, FTMCHECKPOINTTYPE_NETWORK);
378 PPDMDRVINS pDrvIns = PDMIBASE_2_PDMDRV(pInterface);
379 PDRVUDPTUNNEL pThis = PDMINS_2_DATA(pDrvIns, PDRVUDPTUNNEL);
381 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIBASE, &pDrvIns->IBase);
395 * @param pDrvIns The driver instance data.
397 static DECLCALLBACK(void) drvUDPTunnelDestruct(PPDMDRVINS pDrvIns)
400 PDRVUDPTUNNEL pThis = PDMINS_2_DATA(pDrvIns, PDRVUDPTUNNEL);
401 PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns);
433 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatPktSent);
434 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatPktSentBytes);
435 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatPktRecv);
436 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatPktRecvBytes);
437 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatTransmit);
438 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatReceive);
448 static DECLCALLBACK(int) drvUDPTunnelConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
450 PDRVUDPTUNNEL pThis = PDMINS_2_DATA(pDrvIns, PDRVUDPTUNNEL);
451 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
456 pThis->pDrvIns = pDrvIns;
461 pDrvIns->IBase.pfnQueryInterface = drvUDPTunnelQueryInterface;
475 PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatPktSent, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Number of sent packets.", "/Drivers/UDPTunnel%d/Packets/Sent", pDrvIns->iInstance);
476 PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatPktSentBytes, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES, "Number of sent bytes.", "/Drivers/UDPTunnel%d/Bytes/Sent", pDrvIns->iInstance);
477 PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatPktRecv, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Number of received packets.", "/Drivers/UDPTunnel%d/Packets/Received", pDrvIns->iInstance);
478 PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatPktRecvBytes, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES, "Number of received bytes.", "/Drivers/UDPTunnel%d/Bytes/Received", pDrvIns->iInstance);
479 PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatTransmit, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling packet transmit runs.", "/Drivers/UDPTunnel%d/Transmit", pDrvIns->iInstance);
480 PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatReceive, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling packet receive runs.", "/Drivers/UDPTunnel%d/Receive", pDrvIns->iInstance);
487 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES, "");
492 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER,
499 pThis->pIAboveNet = PDMIBASE_QUERY_INTERFACE(pDrvIns->pUpBase, PDMINETWORKDOWN);
501 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_MISSING_INTERFACE_ABOVE,
511 rc = PDMDRV_SET_ERROR(pDrvIns, rc,
515 rc = PDMDRV_SET_ERROR(pDrvIns, rc,
522 rc = PDMDRV_SET_ERROR(pDrvIns, rc,
526 rc = PDMDRV_SET_ERROR(pDrvIns, rc,
533 rc = PDMDRV_SET_ERROR(pDrvIns, rc,
536 LogRel(("UDPTunnel#%d: sport=%d;dest=%s;dport=%d\n", pDrvIns->iInstance, pThis->uSrcPort, pThis->pszDestIP, pThis->uDestPort));
547 rc = RTStrAPrintf(&pThis->pszInstance, "UDPTunnel%d", pDrvIns->iInstance);
554 drvUDPTunnelReceive, pDrvIns, &pThis->pServer);
556 return PDMDrvHlpVMSetError(pThis->pDrvIns, VERR_PDM_HIF_OPEN_FAILED, RT_SRC_POS,
572 * @param pDrvIns The driver instance.
574 static DECLCALLBACK(void) drvUDPTunnelSuspend(PPDMDRVINS pDrvIns)
577 PDRVUDPTUNNEL pThis = PDMINS_2_DATA(pDrvIns, PDRVUDPTUNNEL);
590 * @param pDrvIns The driver instance.
592 static DECLCALLBACK(void) drvUDPTunnelResume(PPDMDRVINS pDrvIns)
595 PDRVUDPTUNNEL pThis = PDMINS_2_DATA(pDrvIns, PDRVUDPTUNNEL);
598 drvUDPTunnelReceive, pDrvIns, &pThis->pServer);
600 PDMDrvHlpVMSetError(pThis->pDrvIns, VERR_PDM_HIF_OPEN_FAILED, RT_SRC_POS,