Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/mtd/ubi/
Dio.c122 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read()
231 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write()
313 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in do_sync_erase()
527 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_sync_erase()
576 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_is_bad()
606 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_mark_bad()
701 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read_ec_hdr()
810 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write_ec_hdr()
975 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read_vid_hdr()
1059 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write_vid_hdr()
Dattach.c1210 int max_corr, peb_count; in late_analysis() local
1212 peb_count = ubi->peb_count - ai->bad_peb_count - ai->alien_peb_count; in late_analysis()
1213 max_corr = peb_count / 20 ?: 8; in late_analysis()
1238 if (ai->empty_peb_count + ai->maybe_bad_peb_count == peb_count) { in late_analysis()
1392 for (pnum = start; pnum < ubi->peb_count; pnum++) { in scan_all()
1595 ubi->good_peb_count = ubi->peb_count - ubi->bad_peb_count; in ubi_attach()
1740 if (aeb->pnum >= ubi->peb_count) { in self_check_ai()
1742 aeb->pnum, ubi->peb_count); in self_check_ai()
1863 buf = kzalloc(ubi->peb_count, GFP_KERNEL); in self_check_ai()
1867 for (pnum = 0; pnum < ubi->peb_count; pnum++) { in self_check_ai()
[all …]
Ddebug.c396 if (*pos < ubi->peb_count) in eraseblk_count_seq_start()
411 if (*pos < ubi->peb_count) in eraseblk_count_seq_next()
Dfastmap.c23 ret = bitmap_zalloc(ubi->peb_count, GFP_KERNEL); in init_seen()
65 for (pnum = 0; pnum < ubi->peb_count; pnum++) { in self_check_seen()
87 (ubi->peb_count * sizeof(struct ubi_fm_ec)) + in ubi_calc_fm_size()
89 (ubi->peb_count * sizeof(__be32))) + in ubi_calc_fm_size()
789 if (WARN_ON(count_fastmap_pebs(ai) != ubi->peb_count - in ubi_attach_fastmap()
Dfastmap-wl.c422 ubi_assert(pnum < ubi->peb_count); in ubi_wl_put_fm_peb()
Dwl.c1249 ubi_assert(pnum < ubi->peb_count);
1487 if (pnum < 0 || pnum >= ubi->peb_count) {
1779 ubi->lookuptbl = kcalloc(ubi->peb_count, sizeof(void *), GFP_KERNEL);
Dbuild.c620 ubi->peb_count = mtd_div_by_eb(ubi->mtd->size, ubi->mtd); in io_init()
713 ubi->max_erroneous = ubi->peb_count / 10; in io_init()
Dvtbl.c577 err = ubi_fastmap_init_checkmap(vol, ubi->peb_count); in init_volumes()
Dubi.h629 int peb_count; member