/vbox/src/VBox/Main/src-server/darwin/ |
H A D | NetIf-darwin.cpp | 78 PNETIFINFO pNew = (PNETIFINFO)RTMemAllocZ(RT_OFFSETOF(NETIFINFO, szName[cbNameLen])); 79 pNew->MACAddress = pEtherNICs->Mac; 80 pNew->enmMediumType = NETIF_T_ETHERNET; 81 pNew->Uuid = pEtherNICs->Uuid; 82 Assert(sizeof(pNew->szShortName) > sizeof(pEtherNICs->szBSDName)); 83 memcpy(pNew->szShortName, pEtherNICs->szBSDName, sizeof(pEtherNICs->szBSDName)); 84 pNew->szShortName[sizeof(pEtherNICs->szBSDName)] = '\0'; 85 memcpy(pNew->szName, pEtherNICs->szName, cbNameLen); 88 RTStrCopy(IfReq.ifr_name, sizeof(IfReq.ifr_name), pNew->szShortName); 92 pNew 344 PNETIFINFO pNew = (PNETIFINFO)RTMemAllocZ(RT_OFFSETOF(NETIFINFO, szName[cbNameLen])); local [all...] |
H A D | iokit.cpp | 1382 PDARWINDVD pNew = (PDARWINDVD)RTMemAlloc(RT_OFFSETOF(DARWINDVD, szName[cbName])); local 1383 if (pNew) 1385 pNew->pNext = NULL; 1386 memcpy(pNew->szName, szName, cbName); 1388 pTail = pTail->pNext = pNew; 1390 pTail = pHead = pNew; 1610 PDARWINETHERNIC pNew = (PDARWINETHERNIC)RTMemAlloc(RT_OFFSETOF(DARWINETHERNIC, szName[cchName + 1])); local 1611 if (pNew) 1613 strncpy(pNew->szBSDName, szBSDName, sizeof(pNew [all...] |
/vbox/src/VBox/Runtime/common/misc/ |
H A D | term.cpp | 104 PRTTERMCALLBACKREC pNew; local 118 pNew = (PRTTERMCALLBACKREC)RTMemAlloc(sizeof(*pNew)); 119 if (!pNew) 121 pNew->pfnCallback = pfnCallback; 122 pNew->pvUser = pvUser; 131 pNew->pNext = g_pCallbackHead; 132 g_pCallbackHead = pNew; 137 RTMemFree(pNew);
|
/vbox/src/VBox/HostDrivers/VBoxPci/ |
H A D | VBoxPci.c | 457 PVBOXRAWPCIINS pNew = (PVBOXRAWPCIINS)RTMemAllocZ(sizeof(*pNew)); local 458 if (!pNew) 461 pNew->pGlobals = pGlobals; 462 pNew->hSpinlock = NIL_RTSPINLOCK; 463 pNew->cRefs = 1; 464 pNew->pNext = NULL; 465 pNew->HostPciAddress = u32HostAddress; 466 pNew->pVmCtx = pVmCtx; 468 pNew [all...] |
/vbox/src/VBox/HostDrivers/VBoxUSB/ |
H A D | VBoxUSBFilterMgr.cpp | 206 PVBOXUSBFILTER pNew = (PVBOXUSBFILTER)RTMemAlloc(sizeof(*pNew)); 207 if (!pNew) 209 memcpy(&pNew->Core, pFilter, sizeof(pNew->Core)); 210 pNew->Owner = Owner; 211 pNew->uId = (uintptr_t)pNew; 212 pNew->pNext = NULL; 214 *puId = pNew [all...] |
/vbox/src/VBox/Runtime/r0drv/ |
H A D | mpnotification-r0drv.c | 164 PRTMPNOTIFYREG pNew; local 184 pNew = (PRTMPNOTIFYREG)RTMemAlloc(sizeof(*pNew)); 185 if (!pNew) 188 pNew->pNext = NULL; 189 pNew->pfnCallback = pfnCallback; 190 pNew->pvUser = pvUser; 191 memset(&pNew->bmDone[0], 0xff, sizeof(pNew->bmDone)); 197 g_pRTMpCallbackHead = pNew; [all...] |
H A D | powernotification-r0drv.c | 160 PRTPOWERNOTIFYREG pNew; local 180 pNew = (PRTPOWERNOTIFYREG)RTMemAlloc(sizeof(*pNew)); 181 if (!pNew) 184 pNew->pNext = NULL; 185 pNew->pfnCallback = pfnCallback; 186 pNew->pvUser = pvUser; 187 memset(&pNew->bmDone[0], 0xff, sizeof(pNew->bmDone)); 193 g_pRTPowerCallbackHead = pNew; [all...] |
H A D | memobj-r0drv.cpp | 59 PRTR0MEMOBJINTERNAL pNew; local 63 cbSelf = sizeof(*pNew); 64 Assert(cbSelf >= sizeof(*pNew)); 71 pNew = (PRTR0MEMOBJINTERNAL)RTMemAllocZ(cbSelf); 72 if (pNew) 74 pNew->u32Magic = RTR0MEMOBJ_MAGIC; 75 pNew->cbSelf = (uint32_t)cbSelf; 76 pNew->enmType = enmType; 77 pNew->fFlags = 0; 78 pNew 652 PRTR0MEMOBJINTERNAL pNew; local 711 PRTR0MEMOBJINTERNAL pNew; local [all...] |
/vbox/src/VBox/HostDrivers/VBoxNetFlt/ |
H A D | VBoxNetFlt.c | 991 PVBOXNETFLTINS pNew = (PVBOXNETFLTINS)RTMemAllocZ(RT_OFFSETOF(VBOXNETFLTINS, szName[cchName + 1])); local 992 if (!pNew) 994 pNew->pNext = NULL; 995 pNew->MyPort.u32Version = INTNETTRUNKIFPORT_VERSION; 996 pNew->MyPort.pfnRetain = vboxNetFltPortRetain; 997 pNew->MyPort.pfnRelease = vboxNetFltPortRelease; 998 pNew->MyPort.pfnDisconnectAndRelease= vboxNetFltPortDisconnectAndRelease; 999 pNew->MyPort.pfnSetState = vboxNetFltPortSetState; 1000 pNew->MyPort.pfnWaitForIdle = vboxNetFltPortWaitForIdle; 1001 pNew [all...] |
/vbox/src/VBox/Main/src-server/freebsd/ |
H A D | NetIf-freebsd.cpp | 238 PNETIFINFO pNew = (PNETIFINFO)RTMemAllocZ(RT_OFFSETOF(NETIFINFO, szName[cbNameLen])); local 239 if (!pNew) 244 memcpy(pNew->MACAddress.au8, LLADDR(pSdl), sizeof(pNew->MACAddress.au8)); 245 pNew->enmMediumType = NETIF_T_ETHERNET; 246 Assert(sizeof(pNew->szShortName) >= cbNameLen); 247 strlcpy(pNew->szShortName, pSdl->sdl_data, cbNameLen); 248 strlcpy(pNew->szName, pSdl->sdl_data, cbNameLen); 252 memcpy(&uuid, pNew->szShortName, RT_MIN(cbNameLen, sizeof(uuid))); 255 memcpy(uuid.Gen.au8Node, pNew [all...] |
/vbox/src/libs/xpcom18a4/python/src/ |
H A D | PyIEnumerator.cpp | 158 nsISupports *pNew; local 159 r = pI->CurrentItem(&pNew); 166 r = pNew->QueryInterface(iid, (void **)&temp); 167 pNew->Release(); 171 pNew = temp; 173 fetched[n_fetched] = pNew;
|
H A D | PyISimpleEnumerator.cpp | 152 nsISupports *pNew; local 153 r = pI->GetNext(&pNew); 158 r = pNew->QueryInterface(iid, (void **)&temp); 159 pNew->Release(); 163 pNew = temp; 165 fetched[n_fetched] = pNew;
|
/vbox/src/VBox/VMM/VMMR3/ |
H A D | PGMHandler.cpp | 345 PPGMVIRTHANDLER pNew; local 346 int rc = MMHyperAlloc(pVM, RT_OFFSETOF(PGMVIRTHANDLER, aPhysToVirt[cPages]), 0, MM_TAG_PGM_HANDLERS, (void **)&pNew); /** @todo r=bird: incorrect member name PhysToVirt? */ 350 pNew->Core.Key = GCPtr; 351 pNew->Core.KeyLast = GCPtrLast; 353 pNew->enmType = enmType; 354 pNew->pfnInvalidateR3 = pfnInvalidateR3; 355 pNew->pfnHandlerRC = pfnHandlerRC; 356 pNew->pfnHandlerR3 = pfnHandlerR3; 357 pNew->pszDesc = pszDesc; 358 pNew [all...] |
H A D | PGMMap.cpp | 126 PPGMMAPPING pNew; local 129 rc = MMHyperAlloc( pVM, RT_OFFSETOF(PGMMAPPING, aPTs[cPTs]), 0, MM_TAG_PGM_MAPPINGS, (void **)&pNew); 131 rc = MMR3HyperAllocOnceNoRel(pVM, RT_OFFSETOF(PGMMAPPING, aPTs[cPTs]), 0, MM_TAG_PGM_MAPPINGS, (void **)&pNew); 134 pNew->GCPtr = GCPtr; 135 pNew->GCPtrLast = GCPtrLast; 136 pNew->cb = cb; 137 pNew->pfnRelocate = pfnRelocate; 138 pNew->pvUser = pvUser; 139 pNew->pszDesc = pszDesc; 140 pNew [all...] |
H A D | PDMDriver.cpp | 681 PPDMDRVINS pNew; local 683 rc = MMHyperAlloc(pVM, cb, 64, MM_TAG_PDM_DRIVER, (void **)&pNew); 685 rc = MMR3HeapAllocZEx(pVM, MM_TAG_PDM_DRIVER, cb, (void **)&pNew); 686 if (pNew) 691 pNew->u32Version = PDM_DRVINS_VERSION; 692 pNew->iInstance = pDrv->iNextInstance; 693 pNew->Internal.s.pUp = pDrvAbove ? pDrvAbove : NULL; 694 //pNew->Internal.s.pDown = NULL; 695 pNew->Internal.s.pLun = pLun; 696 pNew [all...] |
H A D | PGMPhys.cpp | 794 * @param pNew Pointer to the new list entry. 797 static void pgmR3PhysLinkRamRange(PVM pVM, PPGMRAMRANGE pNew, PPGMRAMRANGE pPrev) argument 799 AssertMsg(pNew->pszDesc, ("%RGp-%RGp\n", pNew->GCPhys, pNew->GCPhysLast)); 800 Assert((pNew->fFlags & PGM_RAM_RANGE_FLAGS_FLOATING) || pNew->pSelfR0 == MMHyperCCToR0(pVM, pNew)); 801 Assert((pNew->fFlags & PGM_RAM_RANGE_FLAGS_FLOATING) || pNew 1470 pgmR3PhysInitAndLinkRamRange(PVM pVM, PPGMRAMRANGE pNew, RTGCPHYS GCPhys, RTGCPHYS GCPhysLast, RTRCPTR RCPtrNew, RTR0PTR R0PtrNew, const char *pszDesc, PPGMRAMRANGE pPrev) argument 1591 PPGMRAMRANGE pNew = (PPGMRAMRANGE)pvChunk; local 1744 PPGMRAMRANGE pNew; local 2244 PPGMRAMRANGE pNew; local 2567 PPGMMMIO2RANGE pNew; local 3814 PPGMPAGE pNew = PGMROMPROT_IS_ROM(pRomPage->enmProt) ? &pRomPage->Shadow : &pRomPage->Virgin; local [all...] |
/vbox/src/VBox/Devices/Bus/ |
H A D | SrvPciRawR0.cpp | 480 PDUMMYRAWPCIINS pNew = (PDUMMYRAWPCIINS)RTMemAllocZ(sizeof(*pNew)); local 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 533 PPCIRAWDEV pNew; local [all...] |
/vbox/src/VBox/GuestHost/OpenGL/util/ |
H A D | sortarray.cpp | 102 uint64_t *pNew; local 104 pNew = (uint64_t*)RTMemRealloc(pArray->pElements, cNewBufferSize * sizeof (pArray->pElements[0])); 106 pNew = (uint64_t*)RTMemAlloc(cNewBufferSize * sizeof (pArray->pElements[0])); 107 if (!pNew) 113 pArray->pElements = pNew; 345 uint64_t *pNew = (uint64_t*)RTMemAlloc(cNewBufferSize * sizeof (pResult->pElements[0])); local 346 if (!pNew) 352 pResult->pElements = pNew;
|
/vbox/src/VBox/Runtime/common/alloc/ |
H A D | heapoffset.cpp | 582 PRTHEAPOFFSETFREE pNew = (PRTHEAPOFFSETFREE)((uintptr_t)&pFree->Core + cb + sizeof(RTHEAPOFFSETBLOCK)); local 584 pNew->Core.offSelf = RTHEAPOFF_TO_OFF(pHeapInt, pNew); 585 pNew->Core.offNext = pFree->Core.offNext; 587 RTHEAPOFF_TO_PTR(pHeapInt, pFree->Core.offNext, PRTHEAPOFFSETBLOCK)->offPrev = pNew->Core.offSelf; 588 pNew->Core.offPrev = RTHEAPOFF_TO_OFF(pHeapInt, pFree); 589 pNew->Core.fFlags = RTHEAPOFFSETBLOCK_FLAGS_MAGIC | RTHEAPOFFSETBLOCK_FLAGS_FREE; 591 pNew->offNext = pFree->offNext; 592 if (pNew->offNext) 593 RTHEAPOFF_TO_PTR(pHeapInt, pNew [all...] |
H A D | heapsimple.cpp | 574 PRTHEAPSIMPLEFREE pNew = (PRTHEAPSIMPLEFREE)((uintptr_t)&pFree->Core + cb + sizeof(RTHEAPSIMPLEBLOCK)); local 576 pNew->Core.pNext = pFree->Core.pNext; 578 pFree->Core.pNext->pPrev = &pNew->Core; 579 pNew->Core.pPrev = &pFree->Core; 580 pNew->Core.pHeap = pHeapInt; 581 pNew->Core.fFlags = RTHEAPSIMPLEBLOCK_FLAGS_MAGIC | RTHEAPSIMPLEBLOCK_FLAGS_FREE; 583 pNew->pNext = pFree->pNext; 584 if (pNew->pNext) 585 pNew->pNext->pPrev = pNew; [all...] |
/vbox/src/VBox/HostDrivers/VBoxNetAdp/ |
H A D | VBoxNetAdp.c | 828 static int vboxNetAdpSlotCreate(PVBOXNETADPGLOBALS pGlobals, unsigned uUnit, PVBOXNETADP pNew) argument 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 [all...] |
/vbox/src/VBox/VMM/VMMAll/ |
H A D | MMAllHyper.cpp | 490 PMMHYPERCHUNKFREE pNew = (PMMHYPERCHUNKFREE)((char *)&pFree->core + off); local 491 *pNew = *pFree; 492 pNew->cb -= off; 493 if (pNew->core.offNext) 495 pNew->core.offNext -= off; 496 PMMHYPERCHUNK pNext = (PMMHYPERCHUNK)((char *)pNew + pNew->core.offNext); 497 MMHYPERCHUNK_SET_OFFPREV(pNext, -(int32_t)pNew->core.offNext); 500 pNew->core.offPrev = -off; 501 MMHYPERCHUNK_SET_TYPE(pNew, MMHYPERCHUNK_FLAGS_FRE [all...] |
H A D | PDMAllQueue.cpp | 51 PPDMQUEUEITEMCORE pNew; local 62 pNew = pQueue->aFreeItems[i].CTX_SUFF(pItem); 65 return pNew;
|
H A D | PGMAllHandler.cpp | 141 PPGMPHYSHANDLER pNew; variable 142 int rc = MMHyperAlloc(pVM, sizeof(*pNew), 0, MM_TAG_PGM_HANDLERS, (void **)&pNew); 146 pNew->Core.Key = GCPhys; 147 pNew->Core.KeyLast = GCPhysLast; 148 pNew->enmType = enmType; 149 pNew->cPages = (GCPhysLast - (GCPhys & X86_PTE_PAE_PG_MASK) + PAGE_SIZE) >> PAGE_SHIFT; 150 pNew->cAliasedPages = 0; 151 pNew->cTmpOffPages = 0; 152 pNew [all...] |
/vbox/src/VBox/Main/src-all/ |
H A D | DisplayPNGUtil.cpp | 48 void *pNew = RTMemRealloc(pCtx->pu8PNG, cbNew); local 49 if (!pNew) 55 pCtx->pu8PNG = (uint8_t *)pNew;
|