Searched refs:SWAP_BE32 (Results 1 - 21 of 21) sorted by relevance

/macosx-10.9.5/hfs-226.1.1/newfs_hfs/
H A Dhfs_endian.c61 src->drCrDate = SWAP_BE32 (src->drCrDate);
62 src->drLsMod = SWAP_BE32 (src->drLsMod);
68 src->drAlBlkSiz = SWAP_BE32 (src->drAlBlkSiz);
69 src->drClpSiz = SWAP_BE32 (src->drClpSiz);
71 src->drNxtCNID = SWAP_BE32 (src->drNxtCNID);
76 src->drVolBkUp = SWAP_BE32 (src->drVolBkUp);
78 src->drWrCnt = SWAP_BE32 (src->drWrCnt);
79 src->drXTClpSiz = SWAP_BE32 (src->drXTClpSiz);
80 src->drCTClpSiz = SWAP_BE32 (src->drCTClpSiz);
82 src->drFilCnt = SWAP_BE32 (sr
[all...]
H A Dhfs_endian.h42 #define SWAP_BE32(__a) (__a) macro
56 #define SWAP_BE32(__a) OSSwapBigToHostInt32 (__a) macro
H A Dmakehfs.c279 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_BE3
[all...]
/macosx-10.9.5/hfs-226.1.1/mount_hfs/
H A Dhfs_endian.h40 #define SWAP_BE32(__a) (__a) macro
49 #define SWAP_BE32(__a) OSSwapBigToHostInt32 (__a) macro
H A Dmount_hfs.c299 volume_create_time = SWAP_BE32 (mdbPtr->drCrDate);
304 volume_create_time = SWAP_BE32 (volHdrPtr->createDate);
787 encoding = GET_HFS_TEXT_ENCODING(SWAP_BE32(mdbp->drFndrInfo[4]));
/macosx-10.9.5/hfs-226.1.1/fsck_hfs/dfalib/
H A Dhfs_endian.c70 src->clumpSize = SWAP_BE32 (src->clumpSize);
71 src->totalBlocks = SWAP_BE32 (src->totalBlocks);
74 src->extents[i].startBlock = SWAP_BE32 (src->extents[i].startBlock);
75 src->extents[i].blockCount = SWAP_BE32 (src->extents[i].blockCount);
92 src->drCrDate = SWAP_BE32 (src->drCrDate);
93 src->drLsMod = SWAP_BE32 (src->drLsMod);
99 src->drAlBlkSiz = SWAP_BE32 (src->drAlBlkSiz);
100 src->drClpSiz = SWAP_BE32 (src->drClpSiz);
102 src->drNxtCNID = SWAP_BE32 (src->drNxtCNID);
107 src->drVolBkUp = SWAP_BE32 (sr
[all...]
H A Dhfs_endian.h40 #define SWAP_BE32(__a) OSSwapBigToHostInt32 (__a) macro
H A DSAllocate.c552 currentWord = SWAP_BE32(*buffer);
585 currentWord = SWAP_BE32(*buffer);
622 *buffer = SWAP_BE32(currentWord); // update value in bitmap
641 currentWord = SWAP_BE32(*buffer);
644 *buffer = SWAP_BE32(currentWord); // update the last change
738 if ((*currentWord & SWAP_BE32(bitMask)) != 0) {
744 *currentWord |= SWAP_BE32(bitMask); // set the bits in the bitmap
781 *currentWord = SWAP_BE32(bitMask);
812 if ((*currentWord & SWAP_BE32(bitMask)) != 0) {
818 *currentWord |= SWAP_BE32(bitMas
[all...]
H A DVolumeBitmapCheck.c426 if (SWAP_BE32(*currentWord) & bitMask) {
432 *currentWord |= SWAP_BE32(bitMask); /* set the bits in the bitmap */
458 if (SWAP_BE32(*currentWord) & bitMask) {
464 *currentWord |= SWAP_BE32(bitMask); /* set the bits in the bitmap */
488 if (SWAP_BE32(*currentWord) & bitMask) {
494 *currentWord |= SWAP_BE32(bitMask); /* set the bits in the bitmap */
580 if ((SWAP_BE32(*currentWord) & bitMask) != bitMask) {
586 *currentWord &= SWAP_BE32(~bitMask); /* clear the bits in the bitmap */
612 if ((SWAP_BE32(*currentWord) & bitMask) != bitMask) {
618 *currentWord &= SWAP_BE32(~bitMas
[all...]
/macosx-10.9.5/xnu-2422.115.4/bsd/hfs/
H A Dhfs_endian.c71 src->clumpSize = SWAP_BE32 (src->clumpSize);
72 src->totalBlocks = SWAP_BE32 (src->totalBlocks);
75 src->extents[i].startBlock = SWAP_BE32 (src->extents[i].startBlock);
76 src->extents[i].blockCount = SWAP_BE32 (src->extents[i].blockCount);
117 srcDesc->fLink = SWAP_BE32 (srcDesc->fLink);
118 srcDesc->bLink = SWAP_BE32 (srcDesc->bLink);
253 srcHead->rootNode = SWAP_BE32 (srcHead->rootNode);
254 srcHead->leafRecords = SWAP_BE32 (srcHead->leafRecords);
255 srcHead->firstLeafNode = SWAP_BE32 (srcHead->firstLeafNode);
256 srcHead->lastLeafNode = SWAP_BE32 (srcHea
[all...]
H A Dhfs_endian.h49 #define SWAP_BE32(__a) OSSwapBigToHostInt32 (__a) macro
H A Dhfs_vfsutils.c112 if (SWAP_BE32(mdb->drAlBlkSiz) == 0 ||
113 (SWAP_BE32(mdb->drAlBlkSiz) & 0x01FF) != 0)
128 vcb->hfs_itime = to_bsd_time(LocalToUTC(SWAP_BE32(mdb->drCrDate)));
129 vcb->localCreateDate = SWAP_BE32 (mdb->drCrDate);
130 vcb->vcbLsMod = to_bsd_time(LocalToUTC(SWAP_BE32(mdb->drLsMod)));
137 vcb->blockSize = SWAP_BE32 (mdb->drAlBlkSiz);
138 vcb->vcbClpSiz = SWAP_BE32 (mdb->drClpSiz);
140 vcb->vcbNxtCNID = SWAP_BE32 (mdb->drNxtCNID);
142 vcb->vcbVolBkUp = to_bsd_time(LocalToUTC(SWAP_BE32(mdb->drVolBkUp)));
143 vcb->vcbWrCnt = SWAP_BE32 (md
[all...]
H A Dhfs_hotfiles.c206 (SWAP_BE32 (hotfileinfo.magic) == HFC_MAGIC) &&
207 (SWAP_BE32 (hotfileinfo.timeleft) > 0) &&
208 (SWAP_BE32 (hotfileinfo.timebase) > 0)) {
209 hfsmp->hfc_maxfiles = SWAP_BE32 (hotfileinfo.maxfilecnt);
210 hfsmp->hfc_timebase = SWAP_BE32 (hotfileinfo.timebase);
211 hfsmp->hfc_timeout = SWAP_BE32 (hotfileinfo.timeleft) + tv.tv_sec ;
218 hfsmp->vcbVN, SWAP_BE32 (hotfileinfo.timeleft));
477 hotfileinfo.magic = SWAP_BE32 (HFC_MAGIC);
478 hotfileinfo.version = SWAP_BE32 (HFC_VERSION);
479 hotfileinfo.duration = SWAP_BE32 (HFC_DEFAULT_DURATIO
[all...]
H A Dhfs_vfsops.c896 SWAP_BE32(vhp->blockSize) != vcb->blockSize) {
901 vcb->vcbLsMod = to_bsd_time(SWAP_BE32(vhp->modifyDate));
902 vcb->vcbAtrb = SWAP_BE32 (vhp->attributes);
903 vcb->vcbJinfoBlock = SWAP_BE32(vhp->journalInfoBlock);
904 vcb->vcbClpSiz = SWAP_BE32 (vhp->rsrcClumpSize);
905 vcb->vcbNxtCNID = SWAP_BE32 (vhp->nextCatalogID);
906 vcb->vcbVolBkUp = to_bsd_time(SWAP_BE32(vhp->backupDate));
907 vcb->vcbWrCnt = SWAP_BE32 (vhp->writeCount);
908 vcb->vcbFilCnt = SWAP_BE32 (vhp->fileCount);
909 vcb->vcbDirCnt = SWAP_BE32 (vh
[all...]
H A Dhfs_search.c459 type = SWAP_BE32(recp->userInfo.fdType);
460 creator = SWAP_BE32(recp->userInfo.fdCreator);
717 if ((SWAP_BE32(filep->userInfo.fdType) == kHardLinkFileType) &&
718 (SWAP_BE32(filep->userInfo.fdCreator) == kHFSPlusCreator)) {
723 } else if ((SWAP_BE32(filep->userInfo.fdType) == kHFSAliasType) &&
724 (SWAP_BE32(filep->userInfo.fdCreator) == kHFSAliasCreator) &&
H A Dhfs_catalog.c944 if ((SWAP_BE32(recp->hfsPlusFile.userInfo.fdType) == kHardLinkFileType) &&
945 (SWAP_BE32(recp->hfsPlusFile.userInfo.fdCreator) == kHFSPlusCreator)) {
948 (SWAP_BE32(recp->hfsPlusFile.userInfo.fdType) == kHFSAliasType) &&
949 (SWAP_BE32(recp->hfsPlusFile.userInfo.fdCreator) == kHFSAliasCreator)) {
1971 (SWAP_BE32(file->userInfo.fdType) == kHFSAliasType) &&
1972 (SWAP_BE32(file->userInfo.fdCreator) == kHFSAliasCreator);
2900 if ((SWAP_BE32(rec->hfsPlusFile.userInfo.fdType) == kHardLinkFileType) &&
2901 (SWAP_BE32(rec->hfsPlusFile.userInfo.fdCreator) == kHFSPlusCreator)) {
2904 (SWAP_BE32(rec->hfsPlusFile.userInfo.fdType) == kHFSAliasType) &&
2905 (SWAP_BE32(re
[all...]
H A Dhfs_link.c105 fip->fdType = SWAP_BE32 (kHFSAliasType);
106 fip->fdCreator = SWAP_BE32 (kHFSAliasCreator);
109 fip->fdType = SWAP_BE32 (kHardLinkFileType);
110 fip->fdCreator = SWAP_BE32 (kHFSPlusCreator);
H A Dhfs_xattr.c759 if (fip->fdType == SWAP_BE32(kHardLinkFileType)) {
H A Dhfs_vnops.c5933 fip->fdType = SWAP_BE32(kSymLinkFileType);
5934 fip->fdCreator = SWAP_BE32(kSymLinkCreator);
/macosx-10.9.5/hfs-226.1.1/hfs_util/
H A Dhfsutil_jnl.c206 #define SWAP_BE32(x) ntohl(x) macro
305 (u_int64_t)SWAP_BE32(mdbp->drAlBlkSiz);
723 mdbp->drAlBlkSiz = SWAP_BE32(mdbp->drAlBlkSiz);
780 if ((SWAP_BE32(vhp->attributes) & kHFSVolumeJournaledMask) == 0) {
792 (off_t)((unsigned int)SWAP_BE32(vhp->journalInfoBlock))*(off_t)((unsigned int)SWAP_BE32(vhp->blockSize)));
801 myjib->flags = SWAP_BE32(myjib->flags);
1023 embeddedOffset += (u_int64_t)SWAP_BE16(mdbp->drEmbedExtent.startBlock) * (u_int64_t)SWAP_BE32(mdbp->drAlBlkSiz);
1040 disksize = (u_int64_t)SWAP_BE16(mdbp->drEmbedExtent.blockCount) * (u_int64_t)SWAP_BE32(mdbp->drAlBlkSiz);
1068 if ((SWAP_BE32(vh
[all...]
/macosx-10.9.5/xnu-2422.115.4/bsd/hfs/hfscommon/Misc/
H A DVolumeAllocation.c1929 currentWord = SWAP_BE32 (*buffer);
1991 currentWord = SWAP_BE32 (*buffer);
2095 currentWord = SWAP_BE32 (*buffer);
2340 if ((*currentWord & SWAP_BE32 (bitMask)) != 0) {
2344 *currentWord |= SWAP_BE32 (bitMask); // set the bits in the bitmap
2382 *currentWord = SWAP_BE32 (bitMask);
2416 if ((*currentWord & SWAP_BE32 (bitMask)) != 0) {
2420 *currentWord |= SWAP_BE32 (bitMask); // set the bits in the bitmap
2644 if (*currentWord & SWAP_BE32(bitMask))
2667 (*currentWord & SWAP_BE32 (bitMas
[all...]

Completed in 369 milliseconds