Lines Matching refs:pNew
828 static int vboxNetAdpSlotCreate(PVBOXNETADPGLOBALS pGlobals, unsigned uUnit, PVBOXNETADP pNew)
832 pNew->MyPort.u32Version = INTNETTRUNKIFPORT_VERSION;
833 pNew->MyPort.pfnRetain = vboxNetAdpPortRetain;
834 pNew->MyPort.pfnRelease = vboxNetAdpPortRelease;
835 pNew->MyPort.pfnDisconnectAndRelease= vboxNetAdpPortDisconnectAndRelease;
836 pNew->MyPort.pfnSetState = vboxNetAdpPortSetState;
837 pNew->MyPort.pfnWaitForIdle = vboxNetAdpPortWaitForIdle;
838 pNew->MyPort.pfnXmit = vboxNetAdpPortXmit;
839 pNew->MyPort.u32VersionEnd = INTNETTRUNKIFPORT_VERSION;
840 pNew->pSwitchPort = NULL;
841 pNew->pGlobals = pGlobals;
842 pNew->hSpinlock = NIL_RTSPINLOCK;
843 pNew->enmState = kVBoxNetAdpState_Invalid;
844 pNew->cRefs = 0;
845 pNew->cBusy = 0;
846 pNew->hEventIdle = NIL_RTSEMEVENT;
848 rc = RTSpinlockCreate(&pNew->hSpinlock, RTSPINLOCK_FLAGS_INTERRUPT_SAFE, "VBoxNetAdptSlotCreate");
851 rc = RTSemEventCreate(&pNew->hEventIdle);
854 rc = vboxNetAdpOsInit(pNew);
859 RTSemEventDestroy(pNew->hEventIdle);
860 pNew->hEventIdle = NIL_RTSEMEVENT;
862 RTSpinlockDestroy(pNew->hSpinlock);
863 pNew->hSpinlock = NIL_RTSPINLOCK;