Lines Matching full:eraseblock

22  * @pages_per_eraseblock: number of pages per eraseblock
58 * @eraseblock_addr_shift: position of the eraseblock identifier in the row
71 * @eraseblock: the eraseblock within the LUN
81 unsigned int eraseblock; member
504 * nanddev_pages_per_eraseblock() - Get the number of pages per eraseblock
507 * Return: the number of pages per eraseblock.
533 * Return: the eraseblock size.
758 pos->eraseblock = do_div(tmp, nand->memorg.eraseblocks_per_lun); in nanddev_offs_to_pos()
759 pos->plane = pos->eraseblock % nand->memorg.planes_per_lun; in nanddev_offs_to_pos()
784 if (a->eraseblock != b->eraseblock) in nanddev_pos_cmp()
785 return a->eraseblock < b->eraseblock ? -1 : 1; in nanddev_pos_cmp()
810 ((pos->eraseblock + in nanddev_pos_to_offs()
833 (pos->eraseblock << nand->rowconv.eraseblock_addr_shift) | in nanddev_pos_to_row()
850 pos->eraseblock = 0; in nanddev_pos_next_target()
872 pos->eraseblock = 0; in nanddev_pos_next_lun()
876 * nanddev_pos_next_eraseblock() - Move a position to the next eraseblock
880 * Updates @pos to point to the start of the next eraseblock. Useful when you
886 if (pos->eraseblock >= nand->memorg.eraseblocks_per_lun - 1) in nanddev_pos_next_eraseblock()
889 pos->eraseblock++; in nanddev_pos_next_eraseblock()
891 pos->plane = pos->eraseblock % nand->memorg.planes_per_lun; in nanddev_pos_next_eraseblock()
1111 * Return the BBT entry used to store information about the eraseblock pointed
1114 * Return: the BBT entry storing information about eraseblock pointed by @pos.
1119 return pos->eraseblock + in nanddev_bbt_pos_to_entry()