Home
last modified time | relevance | path

Searched refs:peb_count (Results 1 - 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/drivers/mtd/ubi/
H A 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()
569 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_is_bad()
599 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_mark_bad()
694 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read_ec_hdr()
803 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write_ec_hdr()
973 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read_vid_hdr()
1057 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write_vid_hdr()
[all...]
H A 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_KERNE in self_check_ai()
[all...]
H A Ddebug.c396 if (*pos < ubi->peb_count) in eraseblk_count_seq_start()
411 if (*pos < ubi->peb_count) in eraseblk_count_seq_next()
H A Dfastmap.c23 ret = kcalloc(BITS_TO_LONGS(ubi->peb_count), sizeof(unsigned long), in init_seen()
33 * @seen: integer array of @ubi->peb_count size
44 * @seen: integer array of @ubi->peb_count size
57 * @seen: integer array of @ubi->peb_count size
66 for (pnum = 0; pnum < ubi->peb_count; pnum++) { in self_check_seen()
88 (ubi->peb_count * sizeof(struct ubi_fm_ec)) + in ubi_calc_fm_size()
90 (ubi->peb_count * sizeof(__be32))) + in ubi_calc_fm_size()
790 if (WARN_ON(count_fastmap_pebs(ai) != ubi->peb_count - in ubi_attach_fastmap()
H A Dfastmap-wl.c372 ubi_assert(pnum < ubi->peb_count); in ubi_wl_put_fm_peb()
H A Dbuild.c620 ubi->peb_count = mtd_div_by_eb(ubi->mtd->size, ubi->mtd); in io_init()
730 ubi->max_erroneous = ubi->peb_count / 10; in io_init()
H A Dwl.c1246 ubi_assert(pnum < ubi->peb_count);
1496 if (pnum < 0 || pnum >= ubi->peb_count) {
1788 ubi->lookuptbl = kcalloc(ubi->peb_count, sizeof(void *), GFP_KERNEL);
H A Dubi.h525 * @peb_count: count of physical eraseblocks on the MTD device
631 int peb_count; member
H A Dvtbl.c572 * We use ubi->peb_count and not vol->reserved_pebs because in init_volumes()
577 err = ubi_fastmap_init_checkmap(vol, ubi->peb_count); in init_volumes()
/kernel/linux/linux-6.6/drivers/mtd/ubi/
H A 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()
[all...]
H A 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_KERNE in self_check_ai()
[all...]
H A Ddebug.c396 if (*pos < ubi->peb_count) in eraseblk_count_seq_start()
411 if (*pos < ubi->peb_count) in eraseblk_count_seq_next()
H A Dfastmap.c23 ret = bitmap_zalloc(ubi->peb_count, GFP_KERNEL); in init_seen()
32 * @seen: integer array of @ubi->peb_count size
43 * @seen: integer array of @ubi->peb_count size
56 * @seen: integer array of @ubi->peb_count size
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()
91 (ubi->peb_count * sizeof(__be32)); in ubi_calc_fm_size()
790 if (WARN_ON(count_fastmap_pebs(ai) != ubi->peb_count - in ubi_attach_fastmap()
H A Dfastmap-wl.c424 ubi_assert(pnum < ubi->peb_count); in ubi_wl_put_fm_peb()
H A Dbuild.c622 ubi->peb_count = mtd_div_by_eb(ubi->mtd->size, ubi->mtd); in io_init()
730 ubi->max_erroneous = ubi->peb_count / 10; in io_init()
H A Dwl.c1256 ubi_assert(pnum < ubi->peb_count);
1506 if (pnum < 0 || pnum >= ubi->peb_count) {
1798 ubi->lookuptbl = kcalloc(ubi->peb_count, sizeof(void *), GFP_KERNEL);
H A Dubi.h523 * @peb_count: count of physical eraseblocks on the MTD device
629 int peb_count; member
H A Dvtbl.c572 * We use ubi->peb_count and not vol->reserved_pebs because in init_volumes()
577 err = ubi_fastmap_init_checkmap(vol, ubi->peb_count); in init_volumes()

Completed in 34 milliseconds