/vbox/src/VBox/VMM/testcase/ |
H A D | tstHelp.h | 88 if (RT_ALIGN_Z(sizeof(type), (align)) != sizeof(type)) \ 95 (unsigned)RT_ALIGN_Z(sizeof(type), align) - (unsigned)sizeof(type), \ 96 (unsigned)RT_ALIGN_Z(sizeof(type), align) - (unsigned)sizeof(type)); \ 111 (int)sizeof(p->member.padding), (int)sizeof(p->member.s), (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \ 114 else if (RT_ALIGN_Z(sizeof(p->member.padding), (align)) != sizeof(p->member.padding)) \ 117 (int)sizeof(p->member.padding), (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \ 132 (int)sizeof(p->padding), (int)sizeof(p->s), (int)RT_ALIGN_Z(sizeof(p->s), 64)); \
|
H A D | tstVMStructSize.cpp | 87 (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \ 101 (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \ 125 (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \ 138 (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \ 151 (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \ 164 (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \
|
/vbox/src/VBox/Runtime/common/asn1/ |
H A D | asn1-default-allocator.cpp | 47 return RT_ALIGN_Z(cb, 64); 49 return RT_ALIGN_Z(cb, 32); 51 return RT_ALIGN_Z(cb, 16);
|
/vbox/src/VBox/Runtime/r3/win/ |
H A D | alloc-win.cpp | 52 cb = RT_ALIGN_Z(cb, 32); 60 cbProt = RT_ALIGN_Z(cbProt, PAGE_SIZE); 83 void *pv = VirtualAlloc(NULL, RT_ALIGN_Z(cb, PAGE_SIZE), MEM_COMMIT, PAGE_READWRITE); 85 void *pv = _aligned_malloc(RT_ALIGN_Z(cb, PAGE_SIZE), PAGE_SIZE); 95 void *pv = VirtualAlloc(NULL, RT_ALIGN_Z(cb, PAGE_SIZE), MEM_COMMIT, PAGE_READWRITE); 97 void *pv = _aligned_malloc(RT_ALIGN_Z(cb, PAGE_SIZE), PAGE_SIZE); 101 memset(pv, 0, RT_ALIGN_Z(cb, PAGE_SIZE));
|
H A D | allocex-win.cpp | 81 cbAlloc = RT_ALIGN_Z(cbAlloc, PAGE_SIZE); 91 cbAlloc = RT_ALIGN_Z(cbAlloc, PAGE_SIZE);
|
/vbox/src/VBox/Devices/testcase/ |
H A D | tstDeviceStructSize.cpp | 178 if (RT_ALIGN_Z(sizeof(type), (align)) != sizeof(type)) \ 185 (unsigned)RT_ALIGN_Z(sizeof(type), align) - (unsigned)sizeof(type), \ 186 (unsigned)RT_ALIGN_Z(sizeof(type), align) - (unsigned)sizeof(type)); \ 201 (int)sizeof(p->member.padding), (int)sizeof(p->member.s), (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \ 204 else if (RT_ALIGN_Z(sizeof(p->member.padding), (align)) != sizeof(p->member.padding)) \ 207 (int)sizeof(p->member.padding), (int)RT_ALIGN_Z(sizeof(p->member.s), (align))); \ 222 (int)sizeof(p->padding), (int)sizeof(p->s), (int)RT_ALIGN_Z(sizeof(p->s), 32)); \
|
/vbox/src/VBox/Runtime/common/err/ |
H A D | errinfo-alloc.cpp | 53 cbMsg = RT_ALIGN_Z(cbMsg, 256);
|
/vbox/src/VBox/Runtime/generic/ |
H A D | memsafer-generic.cpp | 72 cb = RT_ALIGN_Z(cb, RTMEMSAFER_ALIGN); 92 cb = RT_ALIGN_Z(cb, RTMEMSAFER_ALIGN); 120 size_t cbUser = RT_ALIGN_Z(cb, RTMEMSAFER_ALIGN); 153 RTMemWipeThoroughly(pv, RT_ALIGN_Z(cb, RTMEMSAFER_ALIGN), 3);
|
/vbox/src/VBox/Runtime/r3/posix/ |
H A D | rtmempage-exec-mmap-posix.cpp | 64 cb = RT_ALIGN_Z(cb, PAGE_SIZE); 101 cb = RT_ALIGN_Z(cb, PAGE_SIZE);
|
/vbox/src/VBox/Runtime/r3/ |
H A D | alloc-ef.cpp | 61 # define RTMEM_REPLACMENT_ALIGN(a_cb) ((a_cb) >= 16 ? RT_ALIGN_Z(a_cb, 16) \ 62 : (a_cb) >= sizeof(uintptr_t) ? RT_ALIGN_Z(a_cb, sizeof(uintptr_t)) : (a_cb)) 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; 555 if ( RT_ALIGN_Z(RTALLOC_EFENCE_SIZE, PAGE_SIZE) != RTALLOC_EFENCE_SIZE 575 cbAligned = RT_ALIGN_Z(cbAligned, RTALLOC_EFENCE_ALIGNMENT); 593 size_t cbBlock = RT_ALIGN_Z(cbAligned, PAGE_SIZE) + RTALLOC_EFENCE_SIZE; 684 RT_ALIGN_Z(pBlock->cbAligned, PAGE_SIZE) - pBlock->cbUnaligned, 694 RT_ALIGN_Z(pBlock->cbAligned, PAGE_SIZE) - pBlock->cbAligned, 728 size_t cbBlock = RT_ALIGN_Z(pBloc [all...] |
H A D | allocex.cpp | 59 cbAligned = RT_ALIGN_Z(cb, cbAlignment); 61 cbAligned = RT_ALIGN_Z(cb, sizeof(uint64_t));
|
H A D | alloc.cpp | 157 cbAligned = RT_ALIGN_Z(cbUnaligned, 16); 159 cbAligned = RT_ALIGN_Z(cbUnaligned, sizeof(void *)); 173 cbAligned = RT_ALIGN_Z(cbUnaligned, 16); 175 cbAligned = RT_ALIGN_Z(cbUnaligned, sizeof(void *));
|
/vbox/src/VBox/Runtime/common/string/ |
H A D | ministring.cpp | 79 size_t cbAlloc = RT_ALIGN_Z(pThis->m_cbAllocated, IPRT_MINISTRING_APPEND_ALIGNMENT); 82 cbAlloc = RT_ALIGN_Z(cchBoth + 1, IPRT_MINISTRING_APPEND_ALIGNMENT); 113 reserve(RT_ALIGN_Z(cchBoth + 1, IPRT_MINISTRING_APPEND_ALIGNMENT)); 137 reserve(RT_ALIGN_Z(cchBoth + 1, IPRT_MINISTRING_APPEND_ALIGNMENT)); 159 reserve(RT_ALIGN_Z(m_cch + 2, IPRT_MINISTRING_APPEND_ALIGNMENT)); 188 reserve(RT_ALIGN_Z(m_cch + 6 + 1, IPRT_MINISTRING_APPEND_ALIGNMENT));
|
H A D | straprintf.cpp | 101 cbAdded = RT_ALIGN_Z(cbChars, _4K);
|
/vbox/src/VBox/Runtime/r0drv/darwin/ |
H A D | alloc-r0drv-darwin.cpp | 138 cb = RT_ALIGN_Z(cb, PAGE_SIZE); 168 cb = RT_ALIGN_Z(cb, PAGE_SIZE);
|
/vbox/src/VBox/Runtime/r0drv/haiku/ |
H A D | alloc-r0drv-haiku.c | 89 cb = RT_ALIGN_Z(cb, PAGE_SIZE);
|
/vbox/src/VBox/Runtime/r0drv/nt/ |
H A D | alloc-r0drv-nt.cpp | 95 cb = RT_ALIGN_Z(cb, PAGE_SIZE);
|
/vbox/src/VBox/Runtime/r0drv/os2/ |
H A D | alloc-r0drv-os2.cpp | 84 cb = RT_ALIGN_Z(cb, PAGE_SIZE); /* -> page aligned result. */
|
/vbox/src/VBox/Runtime/r0drv/ |
H A D | memobj-r0drv.cpp | 66 AssertMsg(RT_ALIGN_Z(cb, PAGE_SIZE) == cb, ("%#zx\n", cb)); 249 AssertMsg(RT_ALIGN_Z(pMem->cb, PAGE_SIZE) == pMem->cb, ("%#zx\n", pMem->cb)); 423 const size_t cbAligned = RT_ALIGN_Z(cb, PAGE_SIZE); 439 const size_t cbAligned = RT_ALIGN_Z(cb, PAGE_SIZE); 455 const size_t cbAligned = RT_ALIGN_Z(cb, PAGE_SIZE); 472 const size_t cbAligned = RT_ALIGN_Z(cb + (R3Ptr & PAGE_OFFSET_MASK), PAGE_SIZE); 493 const size_t cbAligned = RT_ALIGN_Z(cb + ((uintptr_t)pv & PAGE_OFFSET_MASK), PAGE_SIZE); 513 const size_t cbAligned = RT_ALIGN_Z(cb, PAGE_SIZE); 530 const size_t cbAligned = RT_ALIGN_Z(cb, PAGE_SIZE); 560 const size_t cbAligned = RT_ALIGN_Z(c [all...] |
H A D | alloc-r0drv.cpp | 160 cbAligned = RT_ALIGN_Z(cbUnaligned, 16); 162 cbAligned = RT_ALIGN_Z(cbUnaligned, sizeof(void *)); 172 cbAligned = RT_ALIGN_Z(cbUnaligned, 16); 174 cbAligned = RT_ALIGN_Z(cbUnaligned, sizeof(void *));
|
/vbox/src/VBox/HostDrivers/Support/win/ |
H A D | SUPR3HardenedNoCrt-win.cpp | 306 cbAligned = RT_ALIGN_Z(cbUnaligned, 16); 308 cbAligned = RT_ALIGN_Z(cbUnaligned, sizeof(void *)); 317 cbAligned = RT_ALIGN_Z(cbUnaligned, 16); 319 cbAligned = RT_ALIGN_Z(cbUnaligned, sizeof(void *));
|
/vbox/src/VBox/HostDrivers/Support/testcase/ |
H A D | tstPin.cpp | 139 pv = SUPR3ContAlloc(RT_ALIGN_Z(15003, PAGE_SIZE) >> PAGE_SHIFT, NIL_RTR0PTR, &HCPhys); 146 pv = SUPR3ContAlloc(RT_ALIGN_Z(12999, PAGE_SIZE) >> PAGE_SHIFT, NIL_RTR0PTR, &HCPhys); 152 rc = SUPR3ContFree(pv, RT_ALIGN_Z(12999, PAGE_SIZE) >> PAGE_SHIFT);
|
/vbox/src/VBox/Runtime/common/log/ |
H A D | tracebuf.cpp | 301 + RT_ALIGN_Z(sizeof(RTTRACEBUFINT), RTTRACEBUF_ALIGNMENT) 302 + RT_ALIGN_Z(sizeof(RTTRACEBUFVOLATILE), RTTRACEBUF_ALIGNMENT); 338 size_t const cbHdr = RT_ALIGN_Z(sizeof(RTTRACEBUFINT), RTTRACEBUF_ALIGNMENT) 339 + RT_ALIGN_Z(sizeof(RTTRACEBUFVOLATILE), RTTRACEBUF_ALIGNMENT); 383 + RT_ALIGN_Z(sizeof(RTTRACEBUFVOLATILE), RTTRACEBUF_ALIGNMENT) 402 pThis->offEntries = offVolatile + RT_ALIGN_Z(sizeof(RTTRACEBUFVOLATILE), RTTRACEBUF_ALIGNMENT);
|
/vbox/src/VBox/Runtime/r0drv/linux/ |
H A D | alloc-r0drv-linux.c | 162 size_t const cbAlloc = RT_ALIGN_Z(sizeof(RTMEMLNXHDREX) + cb, PAGE_SIZE); 396 cb = RT_ALIGN_Z(cb, PAGE_SIZE); 465 cb = RT_ALIGN_Z(cb, PAGE_SIZE);
|
/vbox/src/VBox/Additions/solaris/Virtio/ |
H A D | VirtioRing-solaris.c | 59 size_t cbAlign = RT_ALIGN_Z(cb, Align);
|