Lines Matching refs:curr_erasesize
615 uint32_t max_erasesize, curr_erasesize; in mtd_concat_create() local
730 max_erasesize = curr_erasesize = subdev[0]->erasesize; in mtd_concat_create()
735 if (subdev[i]->erasesize != curr_erasesize) { in mtd_concat_create()
738 curr_erasesize = subdev[i]->erasesize; in mtd_concat_create()
739 if (curr_erasesize > max_erasesize) in mtd_concat_create()
740 max_erasesize = curr_erasesize; in mtd_concat_create()
749 curr_erasesize) { in mtd_concat_create()
751 curr_erasesize = in mtd_concat_create()
754 if (curr_erasesize > max_erasesize) in mtd_concat_create()
755 max_erasesize = curr_erasesize; in mtd_concat_create()
766 concat->mtd.erasesize = curr_erasesize; in mtd_concat_create()
796 curr_erasesize = subdev[0]->erasesize; in mtd_concat_create()
801 if (subdev[i]->erasesize != curr_erasesize) { in mtd_concat_create()
808 curr_erasesize; in mtd_concat_create()
810 do_div(tmp64, curr_erasesize); in mtd_concat_create()
814 curr_erasesize = subdev[i]->erasesize; in mtd_concat_create()
824 erasesize != curr_erasesize) { in mtd_concat_create()
827 curr_erasesize; in mtd_concat_create()
829 do_div(tmp64, curr_erasesize); in mtd_concat_create()
833 curr_erasesize = in mtd_concat_create()
840 numblocks * (uint64_t)curr_erasesize; in mtd_concat_create()
846 erase_region_p->erasesize = curr_erasesize; in mtd_concat_create()
848 do_div(tmp64, curr_erasesize); in mtd_concat_create()