Lines Matching refs:pages_per_eblk
110 unsigned int pages_per_eblk; member
507 unsigned int maxweight = d->pages_per_eblk; in mtdswap_store_eb()
570 if (old_eb == NULL || d->curr_write_pos >= d->pages_per_eblk) { in mtdswap_map_free_block()
593 *block = (d->curr_write - d->eb_data) * d->pages_per_eblk + in mtdswap_map_free_block()
605 return TREE_COUNT(d, CLEAN) * d->pages_per_eblk + in mtdswap_free_page_cnt()
606 d->pages_per_eblk - d->curr_write_pos; in mtdswap_free_page_cnt()
611 return mtdswap_free_page_cnt(d) > d->pages_per_eblk; in mtdswap_enough_free_pages()
630 eb = d->eb_data + (*bp / d->pages_per_eblk); in mtdswap_write_block()
693 oldeb = d->eb_data + oldblock / d->pages_per_eblk; in mtdswap_move_block()
721 eb = d->eb_data + oldblock / d->pages_per_eblk; in mtdswap_move_block()
738 eblk_base = (eb - d->eb_data) * d->pages_per_eblk; in mtdswap_gc_eblock()
740 for (i = 0; i < d->pages_per_eblk; i++) { in mtdswap_gc_eblock()
891 mtd_pages = d->pages_per_eblk * PAGE_SIZE / mtd->writesize; in mtdswap_eblk_passes()
1042 eb = d->eb_data + (mapped / d->pages_per_eblk); in mtdswap_writesect()
1105 eb = d->eb_data + (realblock / d->pages_per_eblk); in mtdswap_readsect()
1153 eb = d->eb_data + (mapped / d->pages_per_eblk); in mtdswap_discard()
1234 cwp, d->pages_per_eblk - cwp, cwecount); in mtdswap_show()
1280 d->pages_per_eblk = mtd->erasesize >> PAGE_SHIFT; in mtdswap_init()
1283 blocks = eblocks * d->pages_per_eblk; in mtdswap_init()