Lines Matching refs:mapped
1073 unsigned int newblock, mapped; in mtdswap_writesect() local
1090 mapped = d->page_data[page]; in mtdswap_writesect()
1091 if (mapped <= BLOCK_MAX) { in mtdswap_writesect()
1092 eb = d->eb_data + (mapped / d->pages_per_eblk); in mtdswap_writesect()
1096 d->revmap[mapped] = PAGE_UNDEF; in mtdswap_writesect()
1197 unsigned int mapped; in mtdswap_discard() local
1202 mapped = d->page_data[page]; in mtdswap_discard()
1203 if (mapped <= BLOCK_MAX) { in mtdswap_discard()
1204 eb = d->eb_data + (mapped / d->pages_per_eblk); in mtdswap_discard()
1208 d->revmap[mapped] = PAGE_UNDEF; in mtdswap_discard()
1210 } else if (mapped == BLOCK_ERROR) { in mtdswap_discard()
1226 unsigned int i, cw = 0, cwp = 0, cwecount = 0, bb_cnt, mapped, pages; in mtdswap_show() local
1259 mapped = 0; in mtdswap_show()
1263 mapped++; in mtdswap_show()
1301 seq_printf(s, "pages mapped: %u\n", mapped); in mtdswap_show()