/vbox/src/VBox/Runtime/r3/linux/ |
H A D | mp-linux.cpp | 53 int cMax = sysconf(_SC_NPROCESSORS_CONF); 54 Assert(cMax >= 1); 55 return cMax; 60 int cMax = 1; local 63 cMax = iCpu + 1; 64 ASMAtomicUoWriteU32((uint32_t volatile *)&s_cMax, cMax); 65 return cMax; 167 RTCPUID cMax = rtMpLinuxMaxCpus(); local 168 for (RTCPUID idCpu = 0; idCpu < cMax; idCpu++) 185 RTCPUID cMax local 216 RTCPUID cMax = rtMpLinuxMaxCpus(); local 234 RTCPUID cMax = rtMpLinuxMaxCpus(); local [all...] |
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstHandleTable.cpp | 59 static int tstHandleTableTest1(uint32_t uBase, uint32_t cMax, uint32_t cDelta, uint32_t cUnitsPerDot, bool fCallbacks, uint32_t fFlags) argument 68 RTPrintf(", %#x, %#x,,)...\n", uBase, cMax); 71 rc = RTHandleTableCreateEx(&hHT, fFlags, uBase, cMax, 100 if (i < cMax) 309 uint32_t cMax; member in struct:TSTHTTEST2ARGS 317 uint32_t const cMax = ((PTSTHTTEST2ARGS)pvUser)->cMax; local 318 uint32_t *pah = (uint32_t *)RTMemAllocZ(sizeof(uint32_t) * cMax); 321 RTPrintf("tstHandleTable: FAILURE (%d) - failed to allocate %zu bytes\n", __LINE__, sizeof(uint32_t) * cMax); 328 for (uint32_t i = 0; i < cMax; 371 tstHandleTableTest2(uint32_t uBase, uint32_t cMax, uint32_t cThreads) argument 461 uint32_t cMax = 0; local [all...] |
H A D | tstRTAvl.cpp | 298 * @param cMax The max number of operations (exclusive). 302 DECLINLINE(void) ProgressPrintf(unsigned cMax, const char *pszFormat, ...) argument 304 if (cMax < 10000) 318 * @param cMax The max number of operations (exclusive). 320 DECLINLINE(void) Progress(unsigned iCur, unsigned cMax) argument 322 if (cMax < 10000) 324 if (!(iCur % (cMax / 20))) 329 static int avlogcphys(unsigned cMax) argument 334 if (cMax >= 10000) 335 RTTestISubF("oGCPhys(%d): linear left", cMax); 537 avlogcphysRand(unsigned cMax, unsigned cMax2) argument [all...] |
/vbox/src/VBox/Runtime/r3/posix/ |
H A D | RTMpGetCount-posix.cpp | 48 int cMax = sysconf(_SC_NPROCESSORS_MAX); local 49 cCpusSC = RT_MAX(cCpusSC, cMax);
|
/vbox/src/VBox/Runtime/common/misc/ |
H A D | handletable.cpp | 46 RTDECL(int) RTHandleTableCreateEx(PRTHANDLETABLE phHandleTable, uint32_t fFlags, uint32_t uBase, uint32_t cMax, argument 62 AssertReturn(cMax > 0, VERR_INVALID_PARAMETER); 63 AssertReturn(UINT32_MAX - cMax >= uBase, VERR_INVALID_PARAMETER); 66 * Adjust the cMax value so it is a multiple of the 2nd level tables. 68 if (cMax >= UINT32_MAX - RTHT_LEVEL2_ENTRIES) 69 cMax = UINT32_MAX - RTHT_LEVEL2_ENTRIES + 1; 70 cMax = ((cMax + RTHT_LEVEL2_ENTRIES - 1) / RTHT_LEVEL2_ENTRIES) * RTHT_LEVEL2_ENTRIES; 72 cLevel1 = cMax / RTHT_LEVEL2_ENTRIES; 73 Assert(cLevel1 * RTHT_LEVEL2_ENTRIES == cMax); [all...] |
H A D | handletablectx.cpp | 94 else if (pThis->cCur >= pThis->cMax) 112 if (cLevel1 > pThis->cMax / RTHT_LEVEL2_ENTRIES) 113 cLevel1 = pThis->cMax / RTHT_LEVEL2_ENTRIES; 114 Assert(!cLevel1 || pThis->cMax / RTHT_LEVEL2_ENTRIES >= RTHT_LEVEL1_DYN_ALLOC_THRESHOLD); 171 && pThis->cCur < pThis->cMax)
|
H A D | handletablesimple.cpp | 90 else if (pThis->cCur >= pThis->cMax) 104 if (cLevel1 > pThis->cMax / RTHT_LEVEL2_ENTRIES) 105 cLevel1 = pThis->cMax / RTHT_LEVEL2_ENTRIES; 106 Assert(!cLevel1 || pThis->cMax / RTHT_LEVEL2_ENTRIES >= RTHT_LEVEL1_DYN_ALLOC_THRESHOLD); 161 && pThis->cCur < pThis->cMax)
|
H A D | handletable.h | 139 uint32_t cMax; member in struct:RTHANDLETABLEINT
|
/vbox/src/VBox/Runtime/r3/freebsd/ |
H A D | mp-freebsd.cpp | 114 RTCPUID cMax = rtMpFreeBsdMaxCpus(); local 115 for (RTCPUID idCpu = 0; idCpu < cMax; idCpu++) 131 RTCPUID cMax = rtMpFreeBsdMaxCpus(); local 132 for (RTCPUID idCpu = 0; idCpu < cMax; idCpu++)
|
/vbox/src/VBox/Runtime/r3/darwin/ |
H A D | mp-darwin.cpp | 167 RTCPUID cMax = rtMpDarwinMaxLogicalCpus(); 168 for (RTCPUID idCpu = 0; idCpu < cMax; idCpu++) 194 RTCPUID cMax = rtMpDarwinMaxLogicalCpus(); 195 for (RTCPUID idCpu = 0; idCpu < cMax; idCpu++)
|
/vbox/src/VBox/HostServices/SharedFolders/testcase/ |
H A D | tstShflCase.cpp | 157 int cMax; local 170 cMax = RT_ELEMENTS(pszDirListC); 174 cMax = RT_ELEMENTS(pszDirListTestdir); 178 cMax = RT_ELEMENTS(pszDirListSUBDIR); 184 for (int i=0;i<cMax;i++)
|
/vbox/include/iprt/ |
H A D | handletable.h | 118 * @param cMax The max number of handles. When exceeded the RTHandleTableAlloc 126 RTDECL(int) RTHandleTableCreateEx(PRTHANDLETABLE phHandleTable, uint32_t fFlags, uint32_t uBase, uint32_t cMax,
|
/vbox/src/VBox/ValidationKit/testmanager/core/ |
H A D | schedgroup.py | 728 def getTestCasesForGroup(self, idSchedGroup, cMax = None): 734 May raise exception on DB error or if the result exceeds cMax. 751 if cMax is not None and self._oDb.getRowCount() > cMax: 753 % (idSchedGroup, cMax, self._oDb.getRowCount(),)); 763 def getTestCaseArgsForGroup(self, idSchedGroup, cMax = None): 769 May raise exception on DB error or if the result exceeds cMax. 790 if cMax is not None and self._oDb.getRowCount() > cMax: 792 % (idSchedGroup, cMax, sel [all...] |
H A D | testcase.py | 1317 def getTestCasePreReqIds(self, idTestCase, tsEffective = None, cMax = None): 1320 May raise exception on database error or if the result exceeds cMax. 1339 if cMax is not None and self._oDb.getRowCount() > cMax: 1341 % (idTestCase, cMax, self._oDb.getRowCount(),));
|
H A D | schedulerbase.py | 73 self.aoTestCases = SchedGroupLogic(oDb).getTestCasesForGroup(idSchedGroup, cMax = 4096); 78 oTestCase.aidPreReqs = oTestCaseLogic.getTestCasePreReqIds(oTestCase.idTestCase, cMax = 4096); 83 self.aoArgsVariations = SchedGroupLogic(oDb).getTestCaseArgsForGroup(idSchedGroup, cMax = 65536);
|
/vbox/src/VBox/VMM/testcase/ |
H A D | tstMicro.cpp | 293 uint64_t cMax = 0; local 305 if (cMax < u64) 306 cMax = u64; 315 PrintResultInstr(pTst, enmTest, rc, cMin, cAvg, cMax);
|
/vbox/src/VBox/Runtime/common/alloc/ |
H A D | memcache.cpp | 120 uint32_t cMax; member in struct:RTMEMCACHEINT 214 pThis->cMax = cMaxObjects; 305 uint32_t const cObjects = RT_MIN(pThis->cPerPage, pThis->cMax - pThis->cTotal); 399 if ( (uint32_t)(cTotal + -cNewFree) > pThis->cMax 440 Assert((uint32_t)iObj < pThis->cMax);
|
/vbox/src/VBox/Devices/Graphics/testcase/ |
H A D | dump-vmwgfx.c | 508 uint32_t cMax = cbFifo / sizeof(uint32_t); local 512 if (cMax >= 4)
|
/vbox/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/ |
H A D | UIGMachinePreview.cpp | 404 int cMax = 30; local 412 while ((r.height() > m_vRect.height() || r.width() > m_vRect.width()) && cMax-- != 0);
|
/vbox/src/VBox/Additions/common/VBoxGuest/ |
H A D | VBoxGuest.cpp | 2480 * @param cMax Max valid usage value. 2483 static void vbgdBitUsageTrackerCheckMask(PCVBOXGUESTBITUSAGETRACER pTracker, uint32_t cMax, const char *pszWhat) argument 2493 AssertMsg(pTracker->acPerBitUsage[iBit] <= cMax, 2494 ("%s: acPerBitUsage[%u]=%#x cMax=%#x\n", pszWhat, iBit, pTracker->acPerBitUsage[iBit], cMax)); 2510 * @param cMax The max valid usage value for assertions. 2514 uint32_t cMax, const char *pszWhat) 2528 AssertMsg(pTracker->acPerBitUsage[iBit] <= cMax, 2529 ("%s: acPerBitUsage[%u]=%#x cMax=%#x\n", pszWhat, iBit, pTracker->acPerBitUsage[iBit], cMax)); 2513 vbgdBitUsageTrackerChange(PVBOXGUESTBITUSAGETRACER pTracker, uint32_t fChanged, uint32_t fPrevious, uint32_t cMax, const char *pszWhat) argument [all...] |
/vbox/src/VBox/Devices/Audio/ |
H A D | DrvHostCoreAudio.cpp | 155 Float64 cMax = -1; local 166 if (pRange[a].mMaximum > cMax) 167 cMax = pRange[a].mMaximum; 170 if (cMax == -1) 171 cMax = cMin; 172 cReqSize = cMax;
|
H A D | coreaudio.c | 268 Float64 cMax = -1; local 322 if (pRange[a].mMaximum > cMax) 323 cMax = pRange[a].mMaximum; 326 if (cMax == -1) 327 cMax = cMin; 328 cReqSize = cMax;
|
/vbox/src/VBox/VMM/tools/ |
H A D | VBoxCpuReport.cpp | 3066 static int reportMsr_GenRangeFunctionEx(VBCPUREPMSR const *paMsrs, uint32_t cMsrs, uint32_t cMax, const char *pszRdWrFnName, argument 3071 Assert(cMax > iRange); 3072 cMax -= iRange; 3083 if (cMax > cMsrs) 3084 cMax = cMsrs; 3086 while ( cRegs < cMax 3145 static int reportMsr_GenRangeFunction(VBCPUREPMSR const *paMsrs, uint32_t cMsrs, uint32_t cMax, const char *pszRdWrFnName, argument 3148 return reportMsr_GenRangeFunctionEx(paMsrs, cMsrs, cMax, pszRdWrFnName, paMsrs[0].uMsr, false /*fEarlyEndOk*/, false /*fNoIgnMask*/, 3947 * @param cMax The max number of MSRs (not counters). 3951 static int reportMsr_AmdGenPerfMixedRange(VBCPUREPMSR const *paMsrs, uint32_t cMsrs, uint32_t cMax, uint32_ argument [all...] |
/vbox/src/VBox/Devices/USB/ |
H A D | DevOHCI.cpp | 1427 int cMax = 100; local 1454 Assert(cMax-- > 0); NOREF(cMax); 1475 int cMax = 100; local 1502 Assert(cMax-- > 0); NOREF(cMax); 1888 uint32_t cMax = 256; local 1891 && cMax-- > 0) 1907 Log(("ohciUnlinkIsocTdInList: TdAddr=%#010RX32 wasn't found in the list!!! (cMax=%d)\n", TdAddr, cMax)); 1920 uint32_t cMax = 256; local [all...] |
H A D | VUSBDevice.cpp | 1604 uint8_t cMax = 0; local 1608 if (pDev->pDescCache->paConfigs[i].Core.bNumInterfaces > cMax) 1609 cMax = pDev->pDescCache->paConfigs[i].Core.bNumInterfaces; 1612 return cMax;
|