Searched refs:eblocks (Results 1 – 1 of 1) sorted by relevance
1270 static int mtdswap_init(struct mtdswap_dev *d, unsigned int eblocks, in mtdswap_init() argument1278 d->eblks = eblocks; in mtdswap_init()1283 blocks = eblocks * d->pages_per_eblk; in mtdswap_init()1339 unsigned int eblocks, eavailable, bad_blocks, spare_cnt; in mtdswap_add_mtd() local1389 eblocks = mtd_div_by_eb(use_size, mtd); in mtdswap_add_mtd()1390 use_size = (uint64_t)eblocks * mtd->erasesize; in mtdswap_add_mtd()1392 eavailable = eblocks - bad_blocks; in mtdswap_add_mtd()1437 if (mtdswap_init(d, eblocks, spare_cnt) < 0) in mtdswap_add_mtd()