• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/hfs-285/newfs_hfs/

Lines Matching refs:SWAP_BE32

279 			tmp.key.fileID = SWAP_BE32(fileID);
280 tmp.key.startBlock = SWAP_BE32(blocksTotal);
283 tmp.record[i].startBlock = SWAP_BE32(blocksTotal + bcount + startBlock);
284 tmp.record[i].blockCount = SWAP_BE32(n);
1050 bthp->rootNode = SWAP_BE32(1);
1051 bthp->firstLeafNode = SWAP_BE32(1);
1052 bthp->lastLeafNode = SWAP_BE32(1);
1053 bthp->leafRecords = SWAP_BE32(numOverflowExtents);
1063 bthp->totalNodes = SWAP_BE32 (fileSize / nodeSize);
1064 bthp->freeNodes = SWAP_BE32 (SWAP_BE32 (bthp->totalNodes) - (numOverflowExtents ? 2 : 1)); /* header */
1065 bthp->clumpSize = SWAP_BE32 (fileSize);
1067 bthp->attributes |= SWAP_BE32 (kBTBigKeysMask);
1085 if (SWAP_BE32 (bthp->totalNodes) > nodeBitsInHeader) {
1088 ndp->fLink = SWAP_BE32 (SWAP_BE32 (bthp->lastLeafNode) + 1);
1093 *mapNodes = (SWAP_BE32 (bthp->totalNodes) - nodeBitsInHeader +
1095 bthp->freeNodes = SWAP_BE32 (SWAP_BE32 (bthp->freeNodes) - *mapNodes);
1104 temp = SWAP_BE32 (bthp->totalNodes) - SWAP_BE32 (bthp->freeNodes);
1119 if (SWAP_BE32(left->key.fileID) != SWAP_BE32(right->key.fileID)) {
1120 return (SWAP_BE32(left->key.fileID) > SWAP_BE32(right->key.fileID)) ? 1 : -1;
1123 if (SWAP_BE32(left->key.startBlock) != SWAP_BE32(right->key.startBlock)) {
1124 return (SWAP_BE32(left->key.startBlock) > SWAP_BE32(right->key.startBlock)) ? 1 : -1;
1147 *bytesUsed = (SWAP_BE32 (bthp->totalNodes) - SWAP_BE32 (bthp->freeNodes) - *mapNodes) * nodeSize;
1209 bthp->rootNode = SWAP_BE32(1);
1210 bthp->firstLeafNode = SWAP_BE32(1);
1211 bthp->lastLeafNode = SWAP_BE32(1);
1212 bthp->leafRecords = SWAP_BE32(1);
1223 bthp->totalNodes = SWAP_BE32 (fileSize / nodeSize);
1226 bthp->freeNodes = SWAP_BE32 (SWAP_BE32 (bthp->totalNodes) - 2);
1230 bthp->freeNodes = SWAP_BE32 (SWAP_BE32 (bthp->totalNodes) - 1);
1232 bthp->clumpSize = SWAP_BE32 (fileSize);
1234 bthp->attributes |= SWAP_BE32 (kBTBigKeysMask | kBTVariableIndexKeysMask);
1252 if (SWAP_BE32 (bthp->totalNodes) > nodeBitsInHeader) {
1255 ndp->fLink = SWAP_BE32 (SWAP_BE32 (bthp->lastLeafNode) + 1);
1260 *mapNodes = (SWAP_BE32 (bthp->totalNodes) - nodeBitsInHeader +
1262 bthp->freeNodes = SWAP_BE32 (SWAP_BE32 (bthp->freeNodes) - *mapNodes);
1271 temp = SWAP_BE32 (bthp->totalNodes) - SWAP_BE32 (bthp->freeNodes);
1303 attrKey->fileID = SWAP_BE32(1);
1323 attrData->recordType = SWAP_BE32(kHFSPlusAttrInlineData);
1324 attrData->attrSize = SWAP_BE32(sizeof(ea));
1333 *bytesUsed = (SWAP_BE32 (bthp->totalNodes) - SWAP_BE32 (bthp->freeNodes) - *mapNodes) * nodeSize;
1429 jibp->flags = SWAP_BE32(jibp->flags);
1435 jibp->flags = SWAP_BE32(jibp->flags);
1502 bthp->rootNode = SWAP_BE32 (1);
1503 bthp->firstLeafNode = SWAP_BE32 (1);
1504 bthp->lastLeafNode = SWAP_BE32 (1);
1505 bthp->leafRecords = SWAP_BE32 (dp->journaledHFS ? 6 : 2);
1507 bthp->totalNodes = SWAP_BE32 (fileSize / nodeSize);
1508 bthp->freeNodes = SWAP_BE32 (SWAP_BE32 (bthp->totalNodes) - 2); /* header and root */
1509 bthp->clumpSize = SWAP_BE32 (fileSize);
1512 bthp->attributes |= SWAP_BE32 (kBTVariableIndexKeysMask + kBTBigKeysMask);
1534 if (SWAP_BE32 (bthp->totalNodes) > nodeBitsInHeader) {
1537 ndp->fLink = SWAP_BE32 (SWAP_BE32 (bthp->lastLeafNode) + 1);
1542 *mapNodes = (SWAP_BE32 (bthp->totalNodes) - nodeBitsInHeader +
1544 bthp->freeNodes = SWAP_BE32 (SWAP_BE32 (bthp->freeNodes) - *mapNodes);
1552 temp = SWAP_BE32 (bthp->totalNodes) - SWAP_BE32 (bthp->freeNodes);
1563 *bytesUsed = (SWAP_BE32 (bthp->totalNodes) - SWAP_BE32 (bthp->freeNodes) - *mapNodes) * nodeSize;
1625 ckp->parentID = SWAP_BE32 (kHFSRootParentID);
1634 cdp->valence = SWAP_BE32 (dp->journaledHFS ? 2 : 0);
1635 cdp->folderID = SWAP_BE32 (kHFSRootFolderID);
1636 cdp->createDate = SWAP_BE32 (dp->createDate);
1637 cdp->contentModDate = SWAP_BE32 (dp->createDate);
1638 cdp->textEncoding = SWAP_BE32 (dp->encodingHint);
1640 cdp->bsdInfo.ownerID = SWAP_BE32 (dp->owner);
1641 cdp->bsdInfo.groupID = SWAP_BE32 (dp->group);
1652 tkp->parentID = SWAP_BE32 (kHFSRootFolderID);
1659 ctp->parentID = SWAP_BE32 (kHFSRootParentID);
1681 ckp->parentID = SWAP_BE32 (kHFSRootFolderID);
1687 cfp->fileID = SWAP_BE32 (dp->nextFreeFileID);
1688 cfp->createDate = SWAP_BE32 (dp->createDate + 1);
1689 cfp->contentModDate = SWAP_BE32 (dp->createDate + 1);
1694 cfp->bsdInfo.special.linkCount = SWAP_BE32(1);
1695 cfp->userInfo.fdType = SWAP_BE32 (kJournalFileType);
1696 cfp->userInfo.fdCreator = SWAP_BE32 (kHFSPlusCreator);
1699 cfp->dataFork.totalBlocks = SWAP_BE32 ((dp->journalSize+dp->blockSize-1) / dp->blockSize);
1705 cfp->dataFork.extents[0].startBlock = SWAP_BE32 (journalBlock);
1719 ckp->parentID = SWAP_BE32 (kHFSRootFolderID);
1725 cfp->fileID = SWAP_BE32 (dp->nextFreeFileID + 1);
1726 cfp->createDate = SWAP_BE32 (dp->createDate);
1727 cfp->contentModDate = SWAP_BE32 (dp->createDate);
1732 cfp->bsdInfo.special.linkCount = SWAP_BE32(1);
1733 cfp->userInfo.fdType = SWAP_BE32 (kJournalFileType);
1734 cfp->userInfo.fdCreator = SWAP_BE32 (kHFSPlusCreator);
1737 cfp->dataFork.totalBlocks = SWAP_BE32(1);
1739 cfp->dataFork.extents[0].startBlock = SWAP_BE32 (header->journalInfoBlock);
1749 tkp->parentID = SWAP_BE32 (dp->nextFreeFileID);
1755 ctp->parentID = SWAP_BE32 (kHFSRootFolderID);
1764 tkp->parentID = SWAP_BE32 (dp->nextFreeFileID + 1);
1770 ctp->parentID = SWAP_BE32 (kHFSRootFolderID);
1812 nd->fLink = SWAP_BE32 (++firstMapNode); /* point to next map node */