Lines Matching defs:pChunk
1005 PVBOXDTVMEMCHUNK pChunk;
1012 pChunk = pThis->apChunks[iChunk];
1013 if (pChunk->cCurFree > 0)
1015 int iBit = ASMBitFirstClear(pChunk->bm, VBOXDTVMEMCHUNK_BITS);
1020 ASMBitSet(pChunk->bm, iBit);
1021 pChunk->cCurFree--;
1024 uint32_t iRet = (uint32_t)iBit + pChunk->iFirst + pThis->uBase;
1047 pChunk = (PVBOXDTVMEMCHUNK)RTMemAllocZ(sizeof(*pChunk));
1048 if (!pChunk)
1051 pChunk->iFirst = iFirstBit;
1052 pChunk->cCurFree = cFreeBits;
1059 ASMBitSet(pChunk->bm, iBit);
1072 pThis->apChunks[cChunks] = pChunk;
1073 pThis->cCurFree += pChunk->cCurFree;
1079 RTMemFree(pChunk);
1112 PVBOXDTVMEMCHUNK pChunk = pThis->apChunks[iChunk];
1113 uint32_t iBit = uMem - pChunk->iFirst;
1115 AssertReturnVoidStmt(ASMBitTestAndClear(pChunk->bm, iBit), RTSpinlockRelease(pThis->hSpinlock));
1117 pChunk->cCurFree++;