Searched defs:pvAlloc (Results 1 - 8 of 8) sorted by relevance

/vbox/src/VBox/VMM/testcase/
H A DtstMMHyperHeap.cpp112 void *pvAlloc; member in struct:__anon16992
149 rc = MMHyperAlloc(pVM, aOps[i].cb, aOps[i].uAlignment, MM_TAG_VM, &aOps[i].pvAlloc);
155 memset(aOps[i].pvAlloc, szFill[i], aOps[i].cb);
156 if (RT_ALIGN_P(aOps[i].pvAlloc, (aOps[i].uAlignment ? aOps[i].uAlignment : 8)) != aOps[i].pvAlloc)
158 RTPrintf("Failure: MMHyperAlloc(, %#x, %#x,) -> %p, invalid alignment!\n", aOps[i].cb, aOps[i].uAlignment, aOps[i].pvAlloc);
166 if ( !aOps[i].pvAlloc
170 rc = MMHyperFree(pVM, aOps[i].pvAlloc);
173 RTPrintf("Failure: MMHyperFree(, %p,) -> %d i=%d\n", aOps[i].pvAlloc, rc, i);
184 if (pv != aOps[i].pvAlloc)
[all...]
/vbox/src/VBox/Runtime/testcase/
H A DtstRTHeapOffset.cpp72 void *pvAlloc; member in struct:TstHeapOffsetOps
107 s_aOps[i].pvAlloc = RTHeapOffsetAlloc(Heap, s_aOps[i].cb, s_aOps[i].uAlignment);
108 RTTESTI_CHECK_MSG(s_aOps[i].pvAlloc, ("RTHeapOffsetAlloc(%p, %#x, %#x,) -> NULL i=%d\n", (void *)Heap, s_aOps[i].cb, s_aOps[i].uAlignment, i));
109 if (!s_aOps[i].pvAlloc)
112 memset(s_aOps[i].pvAlloc, s_szFill[i], s_aOps[i].cb);
113 RTTESTI_CHECK_MSG(RT_ALIGN_P(s_aOps[i].pvAlloc, (s_aOps[i].uAlignment ? s_aOps[i].uAlignment : 8)) == s_aOps[i].pvAlloc,
115 if (!s_aOps[i].pvAlloc)
122 if (!s_aOps[i].pvAlloc)
124 //RTPrintf("debug: i=%d pv=%#x cb=%#zx align=%#zx cbReal=%#zx\n", i, s_aOps[i].pvAlloc,
[all...]
H A DtstRTHeapSimple.cpp69 void *pvAlloc; member in struct:TstHeapSimpleOps
104 s_aOps[i].pvAlloc = RTHeapSimpleAlloc(Heap, s_aOps[i].cb, s_aOps[i].uAlignment);
105 RTTESTI_CHECK_MSG(s_aOps[i].pvAlloc, ("RTHeapSimpleAlloc(%p, %#x, %#x,) -> NULL i=%d\n", (void *)Heap, s_aOps[i].cb, s_aOps[i].uAlignment, i));
106 if (!s_aOps[i].pvAlloc)
109 memset(s_aOps[i].pvAlloc, szFill[i], s_aOps[i].cb);
110 RTTESTI_CHECK_MSG(RT_ALIGN_P(s_aOps[i].pvAlloc, (s_aOps[i].uAlignment ? s_aOps[i].uAlignment : 8)) == s_aOps[i].pvAlloc,
112 if (!s_aOps[i].pvAlloc)
119 if (!s_aOps[i].pvAlloc)
121 //RTPrintf("debug: i=%d pv=%#x cb=%#zx align=%#zx cbReal=%#zx\n", i, s_aOps[i].pvAlloc,
[all...]
/vbox/src/VBox/Runtime/r3/posix/
H A Drtmempage-exec-mmap-heap-posix.cpp131 void *pvAlloc; member in struct:RTHEAPPAGEALLOCARGS
342 int rc = rtHeapPageAllocFromBlock(pBlock, pArgs->cPages, pArgs->fZero, &pArgs->pvAlloc);
389 Args.pvAlloc = NULL;
392 if (Args.pvAlloc)
394 *ppv = Args.pvAlloc;
/vbox/src/VBox/Runtime/r3/
H A Dtest.cpp62 void *pvAlloc; member in struct:RTTESTGUARDEDMEM
578 pMem->pvAlloc = RTMemPageAlloc(pMem->cbAlloc);
579 if (pMem->pvAlloc)
581 pMem->aGuards[0].pv = pMem->pvAlloc;
582 pMem->pvUser = (uint8_t *)pMem->pvAlloc + pMem->aGuards[0].cb;
618 RTMemPageFree(pMem->pvAlloc, pMem->cbAlloc);
676 RTMemPageFree(pMem->pvAlloc, pMem->cbAlloc);
/vbox/src/VBox/HostDrivers/Support/win/
H A DSUPHardenedVerifyProcess-win.cpp1687 PVOID pvAlloc = pvFree; local
1689 rcNt = NtAllocateVirtualMemory(hProcess, &pvAlloc, 0, &cbAlloc, MEM_COMMIT, PAGE_READWRITE);
1696 pvAlloc, cbFree, rcNt);
1702 if ( (uintptr_t)pvFree < (uintptr_t)pvAlloc
1703 || (uintptr_t)pvFree + cbFree > (uintptr_t)pvAlloc + cbFree)
/vbox/src/VBox/Devices/Storage/
H A DDevLsiLogicSCSI.cpp398 void *pvAlloc; member in struct:LSILOGICREQ
1982 RTMemPageFree(pLsiReq->pvAlloc, pLsiReq->cbAlloc);
1985 pLsiReq->pvAlloc = RTMemPageAlloc(pLsiReq->cbAlloc);
1987 if (RT_UNLIKELY(!pLsiReq->pvAlloc))
1991 return pLsiReq->pvAlloc;
2004 RTMemPageFree(pLsiReq->pvAlloc, pLsiReq->cbAlloc);
H A DDevAHCI.cpp328 void *pvAlloc; member in struct:AHCIREQ
5455 pAhciPort->pDrvBlock->pfnIoBufFree(pAhciPort->pDrvBlock, pAhciReq->pvAlloc, pAhciReq->cbAlloc);
5457 pAhciReq->pvAlloc = NULL;
5459 int rc = pAhciPort->pDrvBlock->pfnIoBufAlloc(pAhciPort->pDrvBlock, pAhciReq->cbAlloc, &pAhciReq->pvAlloc);
5461 pAhciReq->pvAlloc = NULL;
5464 if (RT_UNLIKELY(!pAhciReq->pvAlloc))
5468 return pAhciReq->pvAlloc;
5486 pAhciPort->pDrvBlock->pfnIoBufFree(pAhciPort->pDrvBlock, pAhciReq->pvAlloc, pAhciReq->cbAlloc);

Completed in 144 milliseconds