Lines Matching refs:eraseblock
76 unsigned int eraseblock; member
434 pos->eraseblock = do_div(tmp, nand->memorg.eraseblocks_per_lun); in nanddev_offs_to_pos()
435 pos->plane = pos->eraseblock % nand->memorg.planes_per_lun; in nanddev_offs_to_pos()
460 if (a->eraseblock != b->eraseblock) in nanddev_pos_cmp()
461 return a->eraseblock < b->eraseblock ? -1 : 1; in nanddev_pos_cmp()
486 ((pos->eraseblock + in nanddev_pos_to_offs()
509 (pos->eraseblock << nand->rowconv.eraseblock_addr_shift) | in nanddev_pos_to_row()
526 pos->eraseblock = 0; in nanddev_pos_next_target()
548 pos->eraseblock = 0; in nanddev_pos_next_lun()
562 if (pos->eraseblock >= nand->memorg.eraseblocks_per_lun - 1) in nanddev_pos_next_eraseblock()
565 pos->eraseblock++; in nanddev_pos_next_eraseblock()
567 pos->plane = pos->eraseblock % nand->memorg.planes_per_lun; in nanddev_pos_next_eraseblock()
714 return pos->eraseblock + in nanddev_bbt_pos_to_entry()