Searched refs:mtd_div_by_eb (Results 1 – 4 of 4) sorted by relevance
623 device_pebs = mtd_div_by_eb(device_size, ubi->mtd); in get_bad_peb_limit()677 ubi->peb_count = mtd_div_by_eb(ubi->mtd->size, ubi->mtd); in io_init()958 ubi->fm_pool.max_size = min(((int)mtd_div_by_eb(ubi->mtd->size, in ubi_attach_mtd_dev()968 if (!ubi->fm_disabled && (int)mtd_div_by_eb(ubi->mtd->size, ubi->mtd) in ubi_attach_mtd_dev()
1407 if ((int)mtd_div_by_eb(ubi->mtd->size, ubi->mtd) <= UBI_FM_MAX_START) { in ubi_attach()
413 static inline uint32_t mtd_div_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_eb() function
484 slave->offset = (mtd_div_by_eb(cur_offset, master) + 1) * master->erasesize; in allocate_partition()