Lines Matching refs:revmap
106 unsigned int *revmap; member
597 d->revmap[*block] = page; in mtdswap_map_free_block()
635 d->revmap[*bp] = PAGE_UNDEF; in mtdswap_write_block()
647 d->revmap[*bp] = PAGE_UNDEF; in mtdswap_write_block()
670 d->revmap[*bp] = PAGE_UNDEF; in mtdswap_write_block()
685 page = d->revmap[oldblock]; in mtdswap_move_block()
720 d->revmap[oldblock] = PAGE_UNDEF; in mtdswap_move_block()
728 d->revmap[oldblock] = PAGE_UNDEF; in mtdswap_move_block()
745 if (d->revmap[block] == PAGE_UNDEF) in mtdswap_gc_eblock()
990 vfree(d->revmap); in mtdswap_cleanup()
1046 d->revmap[mapped] = PAGE_UNDEF; in mtdswap_writesect()
1106 BUG_ON(d->revmap[realblock] == PAGE_UNDEF); in mtdswap_readsect()
1157 d->revmap[mapped] = PAGE_UNDEF; in mtdswap_discard()
1292 d->revmap = vmalloc(array_size(blocks, sizeof(int))); in mtdswap_init()
1293 if (!d->revmap) in mtdswap_init()
1305 d->revmap[i] = PAGE_UNDEF; in mtdswap_init()
1324 vfree(d->revmap); in mtdswap_init()