Home
last modified time | relevance | path

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

/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()
576 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_sync_erase()
618 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_is_bad()
648 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_mark_bad()
743 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read_ec_hdr()
852 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write_ec_hdr()
1022 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read_vid_hdr()
1106 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write_vid_hdr()
Dattach.c1222 int max_corr, peb_count; in late_analysis() local
1224 peb_count = ubi->peb_count - ai->bad_peb_count - ai->alien_peb_count; in late_analysis()
1225 max_corr = peb_count / 20 ?: 8; in late_analysis()
1250 if (ai->empty_peb_count + ai->maybe_bad_peb_count == peb_count) { in late_analysis()
1404 for (pnum = start; pnum < ubi->peb_count; pnum++) { in scan_all()
1607 ubi->good_peb_count = ubi->peb_count - ubi->bad_peb_count; in ubi_attach()
1752 if (aeb->pnum >= ubi->peb_count) { in self_check_ai()
1754 aeb->pnum, ubi->peb_count); in self_check_ai()
1875 buf = kzalloc(ubi->peb_count, GFP_KERNEL); in self_check_ai()
1879 for (pnum = 0; pnum < ubi->peb_count; pnum++) { in self_check_ai()
[all …]
Dfastmap.c32 ret = kcalloc(BITS_TO_LONGS(ubi->peb_count), sizeof(unsigned long), in init_seen()
75 for (pnum = 0; pnum < ubi->peb_count; pnum++) { in self_check_seen()
97 (ubi->peb_count * sizeof(struct ubi_fm_ec)) + in ubi_calc_fm_size()
99 (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()
Ddebug.c411 if (*pos < ubi->peb_count) in eraseblk_count_seq_start()
428 if (*pos < ubi->peb_count) in eraseblk_count_seq_next()
Dfastmap-wl.c331 ubi_assert(pnum < ubi->peb_count); in ubi_wl_put_fm_peb()
Dbuild.c606 ubi->peb_count = mtd_div_by_eb(ubi->mtd->size, ubi->mtd); in io_init()
701 ubi->max_erroneous = ubi->peb_count / 10; in io_init()
Dwl.c1222 ubi_assert(pnum < ubi->peb_count);
1595 ubi->lookuptbl = kzalloc(ubi->peb_count * sizeof(void *), GFP_KERNEL);
Dvtbl.c587 err = ubi_fastmap_init_checkmap(vol, ubi->peb_count); in init_volumes()
Dubi.h636 int peb_count; member