Home
last modified time | relevance | path

Searched refs:pages_per_eblk (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.6/drivers/mtd/
Dmtdswap.c110 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()
[all …]