Lines Matching defs:pNew

480     PDUMMYRAWPCIINS pNew = (PDUMMYRAWPCIINS)RTMemAllocZ(sizeof(*pNew));
481 if (!pNew)
484 pNew->HostPciAddress = HostDevice;
486 pNew->DevPort.u32Version = RAWPCIDEVPORT_VERSION;
487 pNew->DevPort.pfnInit = dummyPciDevInit;
488 pNew->DevPort.pfnDeinit = dummyPciDevDeinit;
489 pNew->DevPort.pfnDestroy = dummyPciDevDestroy;
490 pNew->DevPort.pfnGetRegionInfo = dummyPciDevGetRegionInfo;
491 pNew->DevPort.pfnMapRegion = dummyPciDevMapRegion;
492 pNew->DevPort.pfnUnmapRegion = dummyPciDevUnmapRegion;
493 pNew->DevPort.pfnPciCfgRead = dummyPciDevPciCfgRead;
494 pNew->DevPort.pfnPciCfgWrite = dummyPciDevPciCfgWrite;
495 pNew->DevPort.pfnRegisterIrqHandler = dummyPciDevRegisterIrqHandler;
496 pNew->DevPort.pfnUnregisterIrqHandler = dummyPciDevUnregisterIrqHandler;
497 pNew->DevPort.pfnPowerStateChange = dummyPciDevPowerStateChange;
499 pNew->DevPort.u32VersionEnd = RAWPCIDEVPORT_VERSION;
501 return &pNew->DevPort;
533 PPCIRAWDEV pNew;
535 pNew = (PPCIRAWDEV)RTMemAllocZ(sizeof(*pNew));
536 if (!pNew)
576 rc = RTSpinlockCreate(&pNew->hSpinlock, RTSPINLOCK_FLAGS_INTERRUPT_SAFE, "PciRaw");
578 rc = RTSemEventCreate(&pNew->hIrqEvent);
581 pNew->pSession = pSession;
582 pNew->pPort = pDevPort;
583 pNew->pvObj = SUPR0ObjRegister(pSession, SUPDRVOBJTYPE_RAW_PCI_DEVICE,
584 pcirawr0DevObjDestructor, pNew, NULL);
587 rc = RTHandleTableAllocWithCtx(g_State.hHtDevs, pNew, pSession, &hHandle);
590 pNew->hHandle = (PCIRAWDEVHANDLE)hHandle;
591 *pHandle = pNew->hHandle;
595 SUPR0ObjRelease(pNew->pvObj, pSession);
596 RTSpinlockDestroy(pNew->hSpinlock);
597 RTSemEventDestroy(pNew->hIrqEvent);
603 RTMemFree(pNew);