Lines Matching refs:mdbp
936 HFSMasterDirectoryBlock *mdbp;
965 mdbp = NULL;
1050 MALLOC(mdbp, HFSMasterDirectoryBlock *, kMDBSize, M_TEMP, M_WAITOK);
1051 bcopy((char *)buf_dataptr(bp) + HFS_PRI_OFFSET(phys_blksize), mdbp, kMDBSize);
1131 if ((SWAP_BE16(mdbp->drSigWord) == kHFSSigWord) &&
1132 (mntwrapper || (SWAP_BE16(mdbp->drEmbedSigWord) != kHFSPlusSigWord))) {
1173 retval = hfs_MountHFSVolume(hfsmp, mdbp, p);
1183 if (SWAP_BE16(mdbp->drEmbedSigWord) == kHFSPlusSigWord) {
1184 embeddedOffset = SWAP_BE16(mdbp->drAlBlSt) * kHFSBlockSize;
1185 embeddedOffset += (u_int64_t)SWAP_BE16(mdbp->drEmbedExtent.startBlock) *
1186 (u_int64_t)SWAP_BE32(mdbp->drAlBlkSiz);
1220 disksize = (u_int64_t)SWAP_BE16(mdbp->drEmbedExtent.blockCount) *
1221 (u_int64_t)SWAP_BE32(mdbp->drAlBlkSiz);
1230 bcopy((char *)buf_dataptr(bp) + HFS_PRI_OFFSET(phys_blksize), mdbp, 512);
1233 vhp = (HFSPlusVolumeHeader*) mdbp;
1237 vhp = (HFSPlusVolumeHeader*) mdbp;
1277 if (hfs_early_journal_init(hfsmp, vhp, args, embeddedOffset, mdb_offset, mdbp, cred) == 0) {
1364 if (hfs_early_journal_init(hfsmp, vhp, args, embeddedOffset, mdb_offset, mdbp, cred) == 0) {
1503 FREE(mdbp, M_TEMP);
1509 if (mdbp)
1510 FREE(mdbp, M_TEMP);