Home
last modified time | relevance | path

Searched refs:peb_count (Results 1 – 7 of 7) sorted by relevance

/linux-4.4.14/drivers/mtd/ubi/
Dio.c135 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read()
244 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write()
339 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in do_sync_erase()
572 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_sync_erase()
614 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_is_bad()
644 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_mark_bad()
739 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read_ec_hdr()
848 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write_ec_hdr()
1018 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read_vid_hdr()
1102 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write_vid_hdr()
Dattach.c1071 int max_corr, peb_count; in late_analysis() local
1073 peb_count = ubi->peb_count - ai->bad_peb_count - ai->alien_peb_count; in late_analysis()
1074 max_corr = peb_count / 20 ?: 8; in late_analysis()
1099 if (ai->empty_peb_count + ai->maybe_bad_peb_count == peb_count) { in late_analysis()
1244 for (pnum = start; pnum < ubi->peb_count; pnum++) { in scan_all()
1440 ubi->good_peb_count = ubi->peb_count - ubi->bad_peb_count; in ubi_attach()
1583 if (aeb->pnum >= ubi->peb_count) { in self_check_ai()
1585 aeb->pnum, ubi->peb_count); in self_check_ai()
1706 buf = kzalloc(ubi->peb_count, GFP_KERNEL); in self_check_ai()
1710 for (pnum = 0; pnum < ubi->peb_count; pnum++) { in self_check_ai()
[all …]
Dfastmap.c31 ret = kcalloc(ubi->peb_count, sizeof(int), GFP_KERNEL); in init_seen()
73 for (pnum = 0; pnum < ubi->peb_count; pnum++) { in self_check_seen()
95 (ubi->peb_count * sizeof(struct ubi_fm_ec)) + in ubi_calc_fm_size()
97 (ubi->peb_count * sizeof(__be32))) + in ubi_calc_fm_size()
831 if (WARN_ON(count_fastmap_pebs(ai) != ubi->peb_count - in ubi_attach_fastmap()
Dfastmap-wl.c329 ubi_assert(pnum < ubi->peb_count); in ubi_wl_put_fm_peb()
Dbuild.c649 ubi->peb_count = mtd_div_by_eb(ubi->mtd->size, ubi->mtd); in io_init()
744 ubi->max_erroneous = ubi->peb_count / 10; in io_init()
Dubi.h600 int peb_count; member
Dwl.c1179 ubi_assert(pnum < ubi->peb_count);
1514 ubi->lookuptbl = kzalloc(ubi->peb_count * sizeof(void *), GFP_KERNEL);