Lines Matching refs:pDrvIns
74 PPDMDRVINS pDrvIns;
283 PPDMDRVINS pDrvIns = PDMIBASE_2_PDMDRV(pInterface);
284 PDRVNETSNIFFER pThis = PDMINS_2_DATA(pDrvIns, PDRVNETSNIFFER);
285 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIBASE, &pDrvIns->IBase);
296 static DECLCALLBACK(void) drvNetSnifferDetach(PPDMDRVINS pDrvIns, uint32_t fFlags)
298 PDRVNETSNIFFER pThis = PDMINS_2_DATA(pDrvIns, PDRVNETSNIFFER);
300 LogFlow(("drvNetSnifferDetach: pDrvIns: %p, fFlags: %u\n", pDrvIns, fFlags));
310 static DECLCALLBACK(int) drvNetSnifferAttach(PPDMDRVINS pDrvIns, uint32_t fFlags)
312 PDRVNETSNIFFER pThis = PDMINS_2_DATA(pDrvIns, PDRVNETSNIFFER);
313 LogFlow(("drvNetSnifferAttach/#%#x: fFlags=%#x\n", pDrvIns->iInstance, fFlags));
320 int rc = PDMDrvHlpAttach(pDrvIns, fFlags, &pBaseDown);
349 static DECLCALLBACK(void) drvNetSnifferDestruct(PPDMDRVINS pDrvIns)
351 PDRVNETSNIFFER pThis = PDMINS_2_DATA(pDrvIns, PDRVNETSNIFFER);
352 PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns);
372 static DECLCALLBACK(int) drvNetSnifferConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
374 PDRVNETSNIFFER pThis = PDMINS_2_DATA(pDrvIns, PDRVNETSNIFFER);
376 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
381 pThis->pDrvIns = pDrvIns;
386 pDrvIns->IBase.pfnQueryInterface = drvNetSnifferQueryInterface;
427 if (pDrvIns->iInstance > 0)
428 RTStrPrintf(pThis->szFilename, sizeof(pThis->szFilename), "./VBox-%x-%u.pcap", RTProcSelf(), pDrvIns->iInstance);
442 pThis->pIAboveNet = PDMIBASE_QUERY_INTERFACE(pDrvIns->pUpBase, PDMINETWORKDOWN);
452 pThis->pIAboveConfig = PDMIBASE_QUERY_INTERFACE(pDrvIns->pUpBase, PDMINETWORKCONFIG);
463 rc = PDMDrvHlpAttach(pDrvIns, fFlags, &pBaseDown);
488 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS,