Searched refs:UnitSizeFactor (Results 1 – 3 of 3) sorted by relevance
148 erasesize based on UnitSizeFactor. So the erasesize we read from the mtd in find_boot_record()150 if (mh->UnitSizeFactor == 0) { in find_boot_record()152 } else if (mh->UnitSizeFactor < 0xfc) { in find_boot_record()154 mh->UnitSizeFactor); in find_boot_record()156 } else if (mh->UnitSizeFactor != 0xff) { in find_boot_record()158 mh->UnitSizeFactor); in find_boot_record()159 nftl->EraseSize = nftl->mbd.mtd->erasesize << (0xff - mh->UnitSizeFactor); in find_boot_record()
939 mh->UnitSizeFactor); in nftl_partscan()944 if (mh->UnitSizeFactor == 0x00) { in nftl_partscan()950 mh->UnitSizeFactor = 0xff; in nftl_partscan()954 mh->UnitSizeFactor--; in nftl_partscan()956 …arn("UnitSizeFactor=0x00 detected. Correct value is assumed to be 0x%02x.\n", mh->UnitSizeFactor); in nftl_partscan()964 if (mh->UnitSizeFactor != 0xff) { in nftl_partscan()965 this->bbt_erase_shift += (0xff - mh->UnitSizeFactor); in nftl_partscan()966 memorg->pages_per_eraseblock <<= (0xff - mh->UnitSizeFactor); in nftl_partscan()967 mtd->erasesize <<= (0xff - mh->UnitSizeFactor); in nftl_partscan()974 …err("UnitSizeFactor of 0x%02x is inconsistent with device size. Aborting.\n", mh->UnitSizeFactor); in nftl_partscan()
73 unsigned char UnitSizeFactor; member