Searched refs:spare_cnt (Results 1 – 1 of 1) sorted by relevance
1271 unsigned int spare_cnt) in mtdswap_init() argument1279 d->spare_eblks = spare_cnt; in mtdswap_init()1339 unsigned int eblocks, eavailable, bad_blocks, spare_cnt; in mtdswap_add_mtd() local1401 spare_cnt = div_u64((uint64_t)eavailable * spare_eblocks, 100); in mtdswap_add_mtd()1403 if (spare_cnt < MIN_SPARE_EBLOCKS) in mtdswap_add_mtd()1404 spare_cnt = MIN_SPARE_EBLOCKS; in mtdswap_add_mtd()1406 if (spare_cnt > eavailable - 1) in mtdswap_add_mtd()1407 spare_cnt = eavailable - 1; in mtdswap_add_mtd()1409 swap_size = (uint64_t)(eavailable - spare_cnt) * mtd->erasesize + in mtdswap_add_mtd()1414 MTDSWAP_PREFIX, part, swap_size / 1024, spare_cnt, bad_blocks); in mtdswap_add_mtd()[all …]