Lines Matching refs:eraseblock
81 unsigned int eraseblock; member
755 pos->eraseblock = do_div(tmp, nand->memorg.eraseblocks_per_lun); in nanddev_offs_to_pos()
756 pos->plane = pos->eraseblock % nand->memorg.planes_per_lun; in nanddev_offs_to_pos()
781 if (a->eraseblock != b->eraseblock) in nanddev_pos_cmp()
782 return a->eraseblock < b->eraseblock ? -1 : 1; in nanddev_pos_cmp()
807 ((pos->eraseblock + in nanddev_pos_to_offs()
830 (pos->eraseblock << nand->rowconv.eraseblock_addr_shift) | in nanddev_pos_to_row()
847 pos->eraseblock = 0; in nanddev_pos_next_target()
869 pos->eraseblock = 0; in nanddev_pos_next_lun()
883 if (pos->eraseblock >= nand->memorg.eraseblocks_per_lun - 1) in nanddev_pos_next_eraseblock()
886 pos->eraseblock++; in nanddev_pos_next_eraseblock()
888 pos->plane = pos->eraseblock % nand->memorg.planes_per_lun; in nanddev_pos_next_eraseblock()
1045 return pos->eraseblock + in nanddev_bbt_pos_to_entry()