/vbox/include/VBox/ |
H A D | param.h | 41 #define VBOX_MAX_ALLOC_PAGE_COUNT (256U * _1M / PAGE_SIZE) 62 #define MM_HYPER_AREA_MAX_SIZE (40U * _1M) /**< @todo Readjust when floating RAMRANGEs have been implemented. Used to be 20 * _1MB */ 86 #define MM_RAM_HOLE_SIZE_DEFAULT (512U * _1M)
|
/vbox/src/VBox/ValidationKit/utils/cpu/ |
H A D | cpu-alloc-all-mem.cpp | 96 size_t const cbOneStart = 64 * _1M; 97 size_t const cbOneMin = 4 * _1M; 99 size_t const cbOneStart = 16 * _1M; 100 size_t const cbOneMin = 4 * _1M; 155 uint32_t cMBPerSec = (uint32_t)(cbTotal / ((double)cNsElapsed / RT_NS_1SEC) / _1M); 191 uint32_t cMBPerSec = (uint32_t)(cbTotal / ((double)cNsElapsed / RT_NS_1SEC) / _1M);
|
H A D | cpu-numa.cpp | 80 const uint32_t cbTestSet = _1M * 32; 113 / _1M /* MB */ ); 139 / _1M /* MB */ ); 155 / _1M /* MB */ );
|
/vbox/src/VBox/Runtime/common/log/ |
H A D | tracedefault.cpp | 27 if (cRefs >= _1M)
|
/vbox/src/VBox/Frontends/VirtualBox/src/runtime/ |
H A D | UIMultiScreenLayout.cpp | 231 quint64 availBits = machine.GetVRAMSize() * _1M * 8; 238 msgCenter().cannotSwitchScreenInSeamless((((usedBits + 7) / 8 + _1M - 1) / _1M) * _1M); 240 fSuccess = msgCenter().cannotSwitchScreenInFullscreen((((usedBits + 7) / 8 + _1M - 1) / _1M) * _1M); 306 _1M * 8; /* current cache per screen - may be changed in future */
|
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstFile.cpp | 73 rc = RTFileSetSize(File, _2G + _1M); 88 else if (cb != _2G + _1M) 90 RTPrintf("RTFileGetSize return %RX64 bytes, expected %RX64.\n", cb, _2G + _1M); 162 rc = RTFileSeek(File, _2G + _1M, RTFILE_SEEK_BEGIN, NULL); 165 RTPrintf("Failed to seek to _2G + _1M in file #1. rc=%Rrc\n", rc); 171 if (offFile != _2G + _1M) 173 RTPrintf("RTFileTell -> %#llx, expected %#llx (#2)\n", offFile, _2G + _1M); 261 if (offFile != _2G + _1M + sizeof(szTestBuf)) /* assuming tail write was ok. */ 263 RTPrintf("RTFileTell -> %#RX64, expected %#RX64 (#4)\n", offFile, _2G + _1M + sizeof(szTestBuf));
|
H A D | tstTSC.cpp | 312 if (i > _1M) 396 else if (cHz > _1M) 398 cHz += _1M / 20; 399 RTPrintf(" %RU64.%RU64 MHz", cHz / _1M, (cHz % _1M) / (_1M / 10));
|
H A D | tstRTSystemQueryOsInfo.cpp | 71 cbTotal, cbTotal / _1K, cbTotal / _1M); 76 cbAvailable, cbAvailable / _1K, cbAvailable / _1M);
|
H A D | tstRTTime.cpp | 60 for (i = 0; i < 100*_1M; i++) 80 if (!(i & (_1M*2 - 1)))
|
H A D | tstRTMemWipe.cpp | 48 size_t cbAlloc = RTRandS32Ex(1, _1M) * sizeof(uint8_t);
|
H A D | tstRTZip.cpp | 53 size_t cbDst = RT_MAX(cbSrc * 8, _1M);
|
H A D | tstTime-2.cpp | 53 #define NUMBER_OF_CALLS (100*_1M)
|
H A D | tstRTMemSafer.cpp | 88 size_t cbAlloc = RTRandS32Ex(1, _1M) * sizeof(uint8_t);
|
/vbox/src/VBox/Runtime/generic/ |
H A D | RTEnvDupEx-generic.cpp | 68 if (cbBuf >= 64 * _1M)
|
H A D | RTDirCreateUniqueNumbered-generic.cpp | 72 cMaxTries = 100 * _1M;
|
/vbox/src/VBox/VMM/testcase/ |
H A D | tstSSM.cpp | 50 # define TSTSSM_ITEM_SIZE (512*_1M) 52 # define TSTSSM_ITEM_SIZE (5*_1M) 62 uint8_t gabBigMem[_1M]; 64 uint8_t gabBigMem[8*_1M]; 533 uint32_t cb = 512*_1M; 590 if (cb != 512*_1M) 592 RTPrintf("Item04: loaded size doesn't match the real thing. %#x != %#x\n", cb, 512*_1M); 605 RTPrintf("Item04: SSMR3GetMem(,,%#x) -> %Rrc offset %#x\n", PAGE_SIZE, rc, 512*_1M - cb); 610 RTPrintf("Item04: compare failed. mem offset=%#x\n", 512*_1M - cb); 725 rc = SSMR3RegisterInternal(pVM, "SSM Testcase Data Item no.2 (rand mem)", 2, 0, _1M * [all...] |
H A D | tstPDMAsyncCompletionStress.cpp | 55 #define TEST_PATTERN_SIZE (100*_1M) 57 #define FILE_SIZE_MIN (100 * _1M) 59 #define FILE_SIZE_MAX (10000UL * _1M) 67 #define TASK_TRANSFER_SIZE_MAX (10*_1M) 72 #define TEST_PATTERN_SIZE (10*_1M) 74 #define FILE_SIZE_MIN (100 * _1M) 76 #define FILE_SIZE_MAX (1000UL * _1M) 84 #define TASK_TRANSFER_SIZE_MAX (_1M)
|
/vbox/src/VBox/Runtime/common/checksum/ |
H A D | RTSha1Digest.cpp | 68 size_t cbRead = RT_MIN(cbBuf - cbReadTotal, _1M); 136 size_t cbBuf = _1M;
|
H A D | RTSha256Digest.cpp | 67 size_t cbRead = RT_MIN(cbBuf - cbReadTotal, _1M); 139 size_t cbBuf = _1M;
|
/vbox/src/VBox/Frontends/VirtualBox/src/runtime/seamless/ |
H A D | UIMachineLogicSeamless.cpp | 70 quint64 availBits = machine().GetVRAMSize() /* VRAM */ * _1M /* MiB to bytes */ * 8 /* to bits */; 75 (((usedBits + 7) / 8 + _1M - 1) / _1M) * _1M);
|
/vbox/src/VBox/Runtime/r3/ |
H A D | alloc-ef.h | 83 #define RTALLOC_EFENCE_FREE_DELAYED (20 * _1M)
|
/vbox/src/VBox/Frontends/VBoxBalloonCtrl/ |
H A D | VBoxModBallooning.cpp | 123 uint64_t cbSafety = (uint64_t)g_ulMemoryBalloonSafetyMB * _1M; 130 else if ((uint64_t)(-lBalloonDelta) > (cbHostRamAvail - cbSafety) / _1M) 131 lBalloonDelta = -(long)((cbHostRamAvail - cbSafety) / _1M);
|
/vbox/src/VBox/Storage/testcase/ |
H A D | tstVDSnap.cpp | 155 uint8_t *pbBuf = (uint8_t *)RTMemAlloc(_1M); 167 size_t cbToRead = RT_MIN(cbRead, _1M); 426 Test.cbTestPattern = 10 * _1M;
|
H A D | tstVDShareable.cpp | 142 rc = tstVDCreateShareDelete("VDI", "tmpVDCreate.vdi", 10 * _1M,
|
/vbox/src/VBox/Frontends/VirtualBox/src/widgets/ |
H A D | VBoxGuestRAMSlider.cpp | 77 mMaxRAM = RT_MIN (RT_ALIGN (fullSize, _1G / _1M), sys.GetMaxGuestRAM());
|