/vbox/src/VBox/Runtime/common/checksum/ |
H A D | crc32-zlib.cpp | 46 uInt const cbChunk = cb <= ~(uInt)0 ? (uInt)cb : ~(uInt)0; local 47 uCRC32 = crc32(uCRC32, pb, cbChunk); 48 pb += cbChunk; 49 cb -= cbChunk;
|
/vbox/src/VBox/Main/webservice/ |
H A D | split-soapC.cpp | 85 unsigned long cbChunk = cbFileIn / cChunk; local 119 uLimit += cbChunk;
|
/vbox/src/VBox/Additions/common/VBoxVideo/ |
H A D | VBVABase.cpp | 310 uint32_t cbChunk = cb; local 315 if (cbChunk >= cbHwBufferAvail) 317 LogFunc(("1) avail %d, chunk %d\n", cbHwBufferAvail, cbChunk)); 323 if (cbChunk >= cbHwBufferAvail) 336 cbChunk = cbHwBufferAvail - pVBVA->cbPartialWriteThreshold; 340 Assert(cbChunk <= cb); 341 Assert(cbChunk <= vboxHwBufferAvail (pVBVA)); 343 vboxHwBufferPlaceDataAt (pCtx, (uint8_t *)p + cbWritten, cbChunk, pVBVA->off32Free); 345 pVBVA->off32Free = (pVBVA->off32Free + cbChunk) % pVBVA->cbData; 346 pRecord->cbRecord += cbChunk; [all...] |
/vbox/src/VBox/VMM/testcase/ |
H A D | tstSSM.cpp | 303 uint32_t cbChunk = cb / 47; local 304 rc = SSMR3PutMem(pSSM, pbMem, cbChunk); 307 RTPrintf("Item02: PutMem(,%p,%#x) -> %Rrc\n", pbMem, cbChunk, rc); 310 cb -= cbChunk; 311 pbMem += cbChunk; 314 cbChunk *= 19; 315 rc = SSMR3PutMem(pSSM, pbMem, cbChunk); 318 RTPrintf("Item02: PutMem(,%p,%#x) -> %Rrc\n", pbMem, cbChunk, rc); 321 cb -= cbChunk; 322 pbMem += cbChunk; 377 uint32_t cbChunk = sizeof(achTmp); local [all...] |
/vbox/src/VBox/VMM/VMMAll/ |
H A D | MMAllHyper.cpp | 274 const uint32_t cbChunk = pChunk->offNext local 277 pStat->cbAllocated += (uint32_t)cbChunk; 278 pStat->cbCurAllocated += (uint32_t)cbChunk; 861 const uint32_t cbChunk = pChunk->offNext local 867 memset(pChunk + 1, MMHYPER_HEAP_FREE_POISON, cbChunk - sizeof(*pChunk)); 918 pStat->cbFreed += cbChunk; 919 pStat->cbCurAllocated -= cbChunk;
|
/vbox/include/VBox/ |
H A D | intnetinline.h | 218 uint32_t cbChunk = cbSeg - offSrc; local 219 if (cbChunk >= cbToRead) 225 memcpy(pbDst, (uint8_t const *)pSG->aSegs[iSeg].pv + offSrc, cbChunk); 226 pbDst += cbChunk; 227 cbToRead -= cbChunk;
|
/vbox/src/VBox/VMM/VMMR3/ |
H A D | PGMDbg.cpp | 215 size_t cbChunk = PAGE_SIZE; local 216 cbChunk -= GCPhysSrc & PAGE_OFFSET_MASK; 217 if (cbChunk > cb) 218 cbChunk = cb; 220 rc = PGMPhysSimpleReadGCPhys(pVM, pvDst, GCPhysSrc, cbChunk); 225 *pcbRead += cbChunk; 226 cb -= cbChunk; 227 GCPhysSrc += cbChunk; 228 pvDst = (uint8_t *)pvDst + cbChunk; 266 size_t cbChunk local 321 size_t cbChunk = PAGE_SIZE; local 377 size_t cbChunk = PAGE_SIZE; local [all...] |
H A D | SELM.cpp | 1218 unsigned cbChunk = PAGE_SIZE - ((RTGCUINTPTR)GCPtrLdt & PAGE_OFFSET_MASK); local 1219 if (cbChunk > cbLeft) 1220 cbChunk = cbLeft; 1221 rc = PGMPhysSimpleReadGCPtr(pVCpu, pShadowLDT, GCPtrLdt, cbChunk); 1236 PX86DESC pLDTEEnd = (PX86DESC)((uintptr_t)pShadowLDT + cbChunk) - 1; 1250 RT_BZERO(pShadowLDT, cbChunk); 1259 cbLeft -= cbChunk; 1260 GCPtrShadowLDT += cbChunk; 1261 pShadowLDT = (PX86DESC)((char *)pShadowLDT + cbChunk); 1262 GCPtrLdt += cbChunk; [all...] |
H A D | PGMPhys.cpp | 1548 * @param cbChunk The size of the PGMRAMRANGE guest mapping. 1554 uint32_t cbChunk, uint32_t iChunk, const char *pszDesc, 1597 RTGCPTR GCPtrChunkMap = pVM->pgm.s.GCPtrPrevRamRangeMapping - cbChunk; 1598 rc = PGMR3MapPT(pVM, GCPtrChunkMap, cbChunk, 0 /*fFlags*/, pgmR3PhysRamRangeRelocate, pNew, pszDescChunk); 1704 uint32_t cbChunk; local 1708 cbChunk = 16U*_1M; 1714 cbChunk = 4U*_1M; 1718 AssertRelease(RT_UOFFSETOF(PGMRAMRANGE, aPages[cPagesPerChunk]) + PAGE_SIZE * 2 <= cbChunk); 1729 rc = pgmR3PhysRegisterHighRamChunk(pVM, GCPhysChunk, cPagesInChunk, cbChunk, iChunk, pszDesc, &pPrev); 1553 pgmR3PhysRegisterHighRamChunk(PVM pVM, RTGCPHYS GCPhys, uint32_t cRamPages, uint32_t cbChunk, uint32_t iChunk, const char *pszDesc, PPGMRAMRANGE *ppPrev) argument
|
/vbox/src/VBox/Debugger/ |
H A D | DBGCCmdHlp.cpp | 594 size_t cbChunk = PAGE_SIZE; local 595 cbChunk -= (uintptr_t)Var.u.pvHCFlat & PAGE_OFFSET_MASK; 596 if (cbChunk > cbWrite) 597 cbChunk = cbWrite; 600 memcpy(Var2.u.pvHCFlat, pvBuffer, cbChunk); 604 Var.u.pvHCFlat = (uint8_t *)Var.u.pvHCFlat + cbChunk; 606 Var.u.HCPhys += cbChunk; 607 pvBuffer = (uint8_t const *)pvBuffer + cbChunk; 609 *pcbWritten += cbChunk; 610 cbWrite -= cbChunk; [all...] |
/vbox/src/VBox/Storage/ |
H A D | RAW.cpp | 149 unsigned cbChunk = (unsigned)RT_MIN(pImage->cbSize, local 153 uOff, pvBuf, cbChunk); 157 uOff += cbChunk; 303 unsigned cbChunk = (unsigned)RT_MIN(cbSize - uOff, RAW_FILL_SIZE); local 306 pvBuf, cbChunk); 313 uOff += cbChunk;
|
H A D | VDI.cpp | 715 unsigned cbChunk = (unsigned)RT_MIN(cbFill, cbBuf); local 718 pvBuf, cbChunk); 726 uOff += cbChunk;
|
H A D | VMDK.cpp | 3711 unsigned cbChunk = (unsigned)RT_MIN(cbExtent, cbBuf); local 3714 uOff, pvBuf, cbChunk); 3721 uOff += cbChunk;
|
/vbox/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/ |
H A D | VBoxMPVbva.cpp | 464 uint32_t cbChunk = cb; local 469 if (cbChunk >= cbHwBufferAvail) 471 LogFunc(("1) avail %d, chunk %d\n", cbHwBufferAvail, cbChunk)); 477 if (cbChunk >= cbHwBufferAvail) 490 cbChunk = cbHwBufferAvail - pVBVA->cbPartialWriteThreshold; 494 Assert(cbChunk <= cb); 495 Assert(cbChunk <= vboxHwBufferAvail(pCtx, pVBVA)); 497 vboxHwBufferPlaceDataAt (pCtx, (uint8_t *)p + cbWritten, cbChunk, pVBVA->off32Free); 499 pVBVA->off32Free = (pVBVA->off32Free + cbChunk) % pVBVA->cbData; 500 pRecord->cbRecord += cbChunk; [all...] |
/vbox/src/VBox/Runtime/r3/win/ |
H A D | fileio-win.cpp | 440 ULONG cbChunk = cbToReadAdj / 2; local 441 if (cbChunk > 16*_1K) 442 cbChunk = 16*_1K; 444 cbChunk = RT_ALIGN_32(cbChunk, 256); 449 ULONG cbToRead = RT_MIN(cbChunk, cbToReadAdj - cbRead); 457 && cbChunk > 8) 459 cbChunk /= 2; 527 ULONG cbChunk = cbToWriteAdj / 2; local 528 if (cbChunk > _32 [all...] |
/vbox/src/VBox/Devices/VMMDev/ |
H A D | VMMDevHGCM.cpp | 417 size_t cbChunk = PAGE_SIZE - offPage; local 419 if (cbChunk > cbRemaining) 421 cbChunk = cbRemaining; 426 pu8Dst, cbChunk); 431 cbRemaining -= cbChunk; 432 pu8Dst += cbChunk; 454 size_t cbChunk = PAGE_SIZE - offPage; local 456 if (cbChunk > cbRemaining) 458 cbChunk = cbRemaining; 463 pu8Src, cbChunk); 1444 size_t cbChunk = PAGE_SIZE - offPage; local 1624 size_t cbChunk = PAGE_SIZE - offPage; local [all...] |
/vbox/src/VBox/Runtime/common/string/ |
H A D | strcache.cpp | 597 size_t const cbChunk = RTSTRCACHE_MERGED_GROW_SIZE; AssertReturn(cbChunk > cbEntry * 2, NULL); local 598 PRTSTRCACHECHUNK pChunk = (PRTSTRCACHECHUNK)RTMemPageAlloc(cbChunk); 601 pChunk->cb = cbChunk; 604 pThis->cbChunks += cbChunk; 617 pNewFree->cbFree = cbChunk - sizeof(*pNewFree) - cbEntry; Assert(pNewFree->cbFree < cbChunk && pNewFree->cbFree > 0);
|
/vbox/src/VBox/Main/src-server/ |
H A D | ApplianceImplExport.cpp | 2251 size_t cbChunk = 0; local 2252 vrc = RTFileRead(pFile, pvTmpBuf, cbTmpSize, &cbChunk); 2253 if (RT_FAILURE(vrc) || cbChunk == 0) 2261 cbChunk, 2265 Assert(cbWritten == cbChunk);
|
/vbox/src/VBox/Runtime/common/ldr/ |
H A D | ldrPE.cpp | 2131 uint32_t cbChunk = RT_MIN(SpecialPlaces.offCksum - off, cbRead); local 2132 rtLdrPE_HashUpdate(pHashCtx, enmDigest, pbCur, cbChunk); 2133 pbCur += cbChunk; 2134 cbRead -= cbChunk; 2135 off += cbChunk; 2141 uint32_t cbChunk = RT_MIN(SpecialPlaces.offCksum + SpecialPlaces.cbCksum - off, cbRead); local 2142 pbCur += cbChunk; 2143 cbRead -= cbChunk; 2144 off += cbChunk; 2150 uint32_t cbChunk local 2160 uint32_t cbChunk = RT_MIN(SpecialPlaces.offSecDir + SpecialPlaces.cbSecDir - off, cbRead); local 2549 uint32_t cbChunk = RT_MIN(SpecialPlaces.offCksum - off, cbLeft); local 2559 uint32_t cbChunk = RT_MIN(SpecialPlaces.offCksum + SpecialPlaces.cbCksum - off, cbLeft); local 2568 uint32_t cbChunk = RT_MIN(SpecialPlaces.offSecDir - off, cbLeft); local 2578 uint32_t cbChunk = RT_MIN(SpecialPlaces.offSecDir + SpecialPlaces.cbSecDir - off, cbLeft); local [all...] |