Searched refs:cbAligned (Results 1 - 12 of 12) sorted by relevance

/vbox/src/VBox/Runtime/r3/
H A Dallocex.cpp57 size_t cbAligned = cb;
59 cbAligned = RT_ALIGN_Z(cb, cbAlignment);
61 cbAligned = RT_ALIGN_Z(cb, sizeof(uint64_t));
62 AssertMsgReturn(cbAligned >= cb && cbAligned <= ~(size_t)0, ("cbAligned=%#zx cb=%#zx", cbAligned, cb),
73 rc = rtMemAllocEx16BitReach(cbAligned + sizeof(RTMEMHDRR3), fFlags, &pv);
75 rc = rtMemAllocEx32BitReach(cbAligned + sizeof(RTMEMHDRR3), fFlags, &pv);
81 pv = RTMemExecAlloc(cbAligned
[all...]
H A Dalloc-ef.cpp163 DECLINLINE(PRTMEMBLOCK) rtmemBlockCreate(RTMEMTYPE enmType, size_t cbUnaligned, size_t cbAligned, argument
177 pBlock->cbAligned = cbAligned;
245 (unsigned long)(pBlock->cbAligned - pBlock->cbUnaligned),
269 size_t cbBlock = RT_ALIGN_Z(pBlock->cbAligned, PAGE_SIZE) + RTALLOC_EFENCE_SIZE;
305 g_cbBlocksDelay -= RT_ALIGN_Z(pBlock->cbAligned, PAGE_SIZE) + RTALLOC_EFENCE_SIZE;
327 size_t cbAligned = RTMEM_REPLACMENT_ALIGN(cb); local
328 void *pv = rtR3MemAlloc("r-malloc", RTMEMTYPE_RTMEMALLOC, cb, cbAligned, "heap", ASMReturnAddress(), RT_SRC_POS);
338 size_t cbAligned = RTMEM_REPLACMENT_ALIGN(cb); local
339 void *pv = rtR3MemAlloc("r-calloc", RTMEMTYPE_RTMEMALLOCZ, cb, cbAligned, "hea
354 size_t cbAligned = RTMEM_REPLACMENT_ALIGN(cbNew); local
549 rtR3MemAlloc(const char *pszOp, RTMEMTYPE enmType, size_t cbUnaligned, size_t cbAligned, const char *pszTag, void *pvCaller, RT_SRC_POS_DECL) argument
860 size_t cbAligned; variable
871 size_t cbAligned; variable
957 size_t cbAligned; variable
968 size_t cbAligned; variable
[all...]
H A Dalloc.cpp155 size_t cbAligned; variable
157 cbAligned = RT_ALIGN_Z(cbUnaligned, 16);
159 cbAligned = RT_ALIGN_Z(cbUnaligned, sizeof(void *));
161 void *pv = rtR3MemAlloc("AllocVar", RTMEMTYPE_RTMEMALLOC, cbUnaligned, cbAligned, pszTag, ASMReturnAddress(), NULL, 0, NULL);
163 void *pv = RTMemAllocTag(cbAligned, pszTag);
171 size_t cbAligned; variable
173 cbAligned = RT_ALIGN_Z(cbUnaligned, 16);
175 cbAligned = RT_ALIGN_Z(cbUnaligned, sizeof(void *));
177 void *pv = rtR3MemAlloc("AllocZVar", RTMEMTYPE_RTMEMALLOCZ, cbUnaligned, cbAligned, pszTag, ASMReturnAddress(), NULL, 0, NULL);
179 void *pv = RTMemAllocZTag(cbAligned, pszTa
[all...]
H A Dalloc-ef.h176 size_t cbAligned; member in struct:RTMEMBLOCK
196 RTDECL(void *) rtR3MemAlloc(const char *pszOp, RTMEMTYPE enmType, size_t cbUnaligned, size_t cbAligned,
H A Dtest.cpp575 size_t const cbAligned = RT_ALIGN_Z(cb, PAGE_SIZE); local
577 pMem->cbAlloc = pMem->aGuards[0].cb + pMem->aGuards[1].cb + cbAligned;
583 pMem->aGuards[1].pv = (uint8_t *)pMem->pvUser + cbAligned;
/vbox/src/VBox/Runtime/r0drv/
H A Dmemobj-r0drv.cpp423 const size_t cbAligned = RT_ALIGN_Z(cb, PAGE_SIZE); local
427 AssertReturn(cb <= cbAligned, VERR_INVALID_PARAMETER);
431 return rtR0MemObjNativeAllocPage(pMemObj, cbAligned, fExecutable);
439 const size_t cbAligned = RT_ALIGN_Z(cb, PAGE_SIZE); local
443 AssertReturn(cb <= cbAligned, VERR_INVALID_PARAMETER);
447 return rtR0MemObjNativeAllocLow(pMemObj, cbAligned, fExecutable);
455 const size_t cbAligned = RT_ALIGN_Z(cb, PAGE_SIZE); local
459 AssertReturn(cb <= cbAligned, VERR_INVALID_PARAMETER);
463 return rtR0MemObjNativeAllocCont(pMemObj, cbAligned, fExecutable);
472 const size_t cbAligned local
493 const size_t cbAligned = RT_ALIGN_Z(cb + ((uintptr_t)pv & PAGE_OFFSET_MASK), PAGE_SIZE); local
513 const size_t cbAligned = RT_ALIGN_Z(cb, PAGE_SIZE); local
530 const size_t cbAligned = RT_ALIGN_Z(cb, PAGE_SIZE); local
560 const size_t cbAligned = RT_ALIGN_Z(cb, PAGE_SIZE); local
577 const size_t cbAligned = RT_ALIGN_Z(cb + (Phys & PAGE_OFFSET_MASK), PAGE_SIZE); local
598 const size_t cbAligned = RT_ALIGN_Z(cb, PAGE_SIZE); local
620 const size_t cbAligned = RT_ALIGN_Z(cb, PAGE_SIZE); local
[all...]
H A Dalloc-r0drv.cpp158 size_t cbAligned; local
160 cbAligned = RT_ALIGN_Z(cbUnaligned, 16);
162 cbAligned = RT_ALIGN_Z(cbUnaligned, sizeof(void *));
163 return RTMemAllocTag(cbAligned, pszTag);
170 size_t cbAligned; local
172 cbAligned = RT_ALIGN_Z(cbUnaligned, 16);
174 cbAligned = RT_ALIGN_Z(cbUnaligned, sizeof(void *));
175 return RTMemAllocZTag(cbAligned, pszTag);
/vbox/src/VBox/HostDrivers/Support/win/
H A DSUPR3HardenedNoCrt-win.cpp304 size_t cbAligned; variable
306 cbAligned = RT_ALIGN_Z(cbUnaligned, 16);
308 cbAligned = RT_ALIGN_Z(cbUnaligned, sizeof(void *));
309 return RTMemAllocTag(cbAligned, pszTag);
315 size_t cbAligned; variable
317 cbAligned = RT_ALIGN_Z(cbUnaligned, 16);
319 cbAligned = RT_ALIGN_Z(cbUnaligned, sizeof(void *));
320 return RTMemAllocZTag(cbAligned, pszTag);
/vbox/src/VBox/VMM/VMMR3/
H A DMMHyper.cpp434 uint32_t cbAligned = RT_ALIGN_32(cb, PAGE_SIZE); local
435 AssertReturn(cbAligned >= cb, VERR_INVALID_PARAMETER);
438 int rc = mmR3HyperMap(pVM, cbAligned, pszDesc, &GCPtr, &pLookup);
450 rc = PGMMap(pVM, GCPtr, HCPhys, cbAligned, 0);
749 const uint32_t cbAligned = RT_ALIGN_32(cb, PAGE_SIZE); local
750 AssertReturn(cbAligned >= cb, VERR_INVALID_PARAMETER);
751 if (pVM->mm.s.offHyperNextStatic + cbAligned >= pVM->mm.s.cbHyperArea) /* don't use the last page, it's a fence. */
753 AssertMsgFailed(("Out of static mapping space in the HMA! offHyperAreaGC=%x cbAligned=%x cbHyperArea=%x\n",
754 pVM->mm.s.offHyperNextStatic, cbAligned, pVM->mm.s.cbHyperArea));
769 pLookup->cb = cbAligned;
807 const uint32_t cbAligned = RT_ALIGN_32(cb, PAGE_SIZE); local
1003 uint32_t const cbAligned = RT_ALIGN_32(cb, PAGE_SIZE); local
[all...]
/vbox/src/VBox/VMM/VMMAll/
H A DMMAllHyper.cpp218 uint32_t cbAligned; local
225 cbAligned = RT_ALIGN_32(cb, MMHYPER_HEAP_ALIGN_MIN);
226 if (!cbAligned || cbAligned < cb)
236 cbAligned = RT_ALIGN_32(cb, PAGE_SIZE);
237 if (!cbAligned)
270 PMMHYPERCHUNK pChunk = mmHyperAllocChunk(pHeap, cbAligned, uAlignment);
288 ASMMemZero32(pv, cbAligned);
298 void *pv = mmHyperAllocPages(pHeap, cbAligned);
302 pStat->cbAllocated += cbAligned;
[all...]
/vbox/src/recompiler/
H A DVBoxREMWrapper.cpp1432 uint32_t cbAligned = (uint32_t)RT_ALIGN_32(cb, 32); local
1435 if (pCur->cb - pCur->off >= cbAligned)
1438 pCur->off += cbAligned;
1439 return memset(pv, 0xcc, cbAligned);
1445 AssertReturn(_64K - RT_ALIGN_Z(sizeof(*pCur), 32) > cbAligned, NULL);
1449 pCur->off = RT_ALIGN_32(sizeof(*pCur), 32) + cbAligned;
1452 return memset((uint8_t *)pCur + RT_ALIGN_Z(sizeof(*pCur), 32), 0xcc, cbAligned);
/vbox/src/VBox/Runtime/common/math/
H A Dbignum.cpp636 size_t cbAligned = RT_ALIGN_Z(cbRaw, RTBIGNUM_ELEMENT_SIZE);
637 if (RT_UNLIKELY(cbAligned >= RTBIGNUM_MAX_SIZE))
639 pBigNum->cUsed = (uint32_t)cbAligned / RTBIGNUM_ELEMENT_SIZE;

Completed in 156 milliseconds