• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/Misc/

Lines Matching refs:numBlocks

343 ;	 numBlocks	- Number of allocation blocks to free up (must be > 0!)
357 u_int32_t numBlocks) // Number of contiguous blocks to deallocate
364 if (numBlocks == 0) {
372 err = BlockMarkFree(vcb, firstBlock, numBlocks);
380 vcb->freeBlocks += numBlocks;
381 if (vcb->nextAllocation == (firstBlock + numBlocks))
382 HFS_UPDATE_NEXT_ALLOCATION(vcb, (vcb->nextAllocation - numBlocks));
991 numBlocks Number of blocks to mark as allocated
998 register u_int32_t numBlocks)
1049 if (numBits > numBlocks) {
1050 numBits = numBlocks; // entire allocation is inside this one word
1059 numBlocks -= numBits; // adjust number of blocks left to allocate
1070 while (numBlocks >= kBitsPerWord) {
1097 numBlocks -= kBitsPerWord;
1107 if (numBlocks != 0) {
1108 bitMask = ~(kAllBitsSetInWord >> numBlocks); // set first numBlocks bits
1160 numBlocks Number of blocks to mark as freed
1167 register u_int32_t numBlocks)
1187 if (startingBlock + numBlocks > vcb->totalBlocks) {
1188 printf ("hfs: BlockMarkFree() trying to free non-existent blocks starting at %u (numBlock=%u) on volume %s\n", startingBlock, numBlocks, vcb->vcbVN);
1196 discard.length = (uint64_t)numBlocks * (uint64_t)vcb->blockSize;
1234 if (numBits > numBlocks) {
1235 numBits = numBlocks; // entire allocation is inside this one word
1242 numBlocks -= numBits; // adjust number of blocks left to free
1252 while (numBlocks >= kBitsPerWord) {
1277 numBlocks -= kBitsPerWord;
1287 if (numBlocks != 0) {
1288 bitMask = ~(kAllBitsSetInWord >> numBlocks); // set first numBlocks bits
1685 hfs_isallocated(struct hfsmount *hfsmp, u_long startingBlock, u_long numBlocks)
1727 if (numBits > numBlocks) {
1728 numBits = numBlocks;
1735 numBlocks -= numBits;
1743 while (numBlocks >= kBitsPerWord) {
1763 numBlocks -= kBitsPerWord;
1771 if (numBlocks != 0) {
1772 bitMask = ~(kAllBitsSetInWord >> numBlocks);