Lines Matching refs:mapped
1023 unsigned int newblock, mapped; in mtdswap_writesect() local
1040 mapped = d->page_data[page]; in mtdswap_writesect()
1041 if (mapped <= BLOCK_MAX) { in mtdswap_writesect()
1042 eb = d->eb_data + (mapped / d->pages_per_eblk); in mtdswap_writesect()
1046 d->revmap[mapped] = PAGE_UNDEF; in mtdswap_writesect()
1146 unsigned int mapped; in mtdswap_discard() local
1151 mapped = d->page_data[page]; in mtdswap_discard()
1152 if (mapped <= BLOCK_MAX) { in mtdswap_discard()
1153 eb = d->eb_data + (mapped / d->pages_per_eblk); in mtdswap_discard()
1157 d->revmap[mapped] = PAGE_UNDEF; in mtdswap_discard()
1159 } else if (mapped == BLOCK_ERROR) { in mtdswap_discard()
1175 unsigned int i, cw = 0, cwp = 0, cwecount = 0, bb_cnt, mapped, pages; in mtdswap_show() local
1207 mapped = 0; in mtdswap_show()
1211 mapped++; in mtdswap_show()
1249 seq_printf(s, "pages mapped: %u\n", mapped); in mtdswap_show()