Lines Matching refs:mh
44 struct NFTLMediaHeader *mh = &nftl->MediaHdr; in find_boot_record() local
133 if (memcmp(mh, buf, sizeof(struct NFTLMediaHeader))) { in find_boot_record()
155 memcpy(mh, buf, sizeof(struct NFTLMediaHeader)); in find_boot_record()
162 if (mh->UnitSizeFactor == 0) { in find_boot_record()
164 } else if (mh->UnitSizeFactor < 0xfc) { in find_boot_record()
166 mh->UnitSizeFactor); in find_boot_record()
168 } else if (mh->UnitSizeFactor != 0xff) { in find_boot_record()
170 mh->UnitSizeFactor); in find_boot_record()
171 nftl->EraseSize = nftl->mbd.mtd->erasesize << (0xff - mh->UnitSizeFactor); in find_boot_record()
175 nftl->nb_boot_blocks = le16_to_cpu(mh->FirstPhysicalEUN); in find_boot_record()
183 nftl->numvunits = le32_to_cpu(mh->FormattedSize) / nftl->EraseSize; in find_boot_record()
195 nftl->nb_blocks = le16_to_cpu(mh->NumEraseUnits) + le16_to_cpu(mh->FirstPhysicalEUN); in find_boot_record()