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

/linux-master/drivers/mtd/ubi/
H A Dio.c122 ubi_assert(pnum >= 0 && pnum < ubi->peb_count);
243 ubi_assert(pnum >= 0 && pnum < ubi->peb_count);
325 ubi_assert(pnum >= 0 && pnum < ubi->peb_count);
539 ubi_assert(pnum >= 0 && pnum < ubi->peb_count);
588 ubi_assert(pnum >= 0 && pnum < ubi->peb_count);
618 ubi_assert(pnum >= 0 && pnum < ubi->peb_count);
713 ubi_assert(pnum >= 0 && pnum < ubi->peb_count);
851 ubi_assert(pnum >= 0 && pnum < ubi->peb_count);
1019 ubi_assert(pnum >= 0 && pnum < ubi->peb_count);
1132 ubi_assert(pnum >= 0 && pnum < ubi->peb_count);
[all...]
H A Dattach.c1210 int max_corr, peb_count; local
1212 peb_count = ubi->peb_count - ai->bad_peb_count - ai->alien_peb_count;
1213 max_corr = peb_count / 20 ?: 8;
1238 if (ai->empty_peb_count + ai->maybe_bad_peb_count == peb_count) {
1392 for (pnum = start; pnum < ubi->peb_count; pnum++) {
1595 ubi->good_peb_count = ubi->peb_count - ubi->bad_peb_count;
1740 if (aeb->pnum >= ubi->peb_count) {
1742 aeb->pnum, ubi->peb_count);
1863 buf = kzalloc(ubi->peb_count, GFP_KERNE
[all...]
H A Ddebug.c484 if (*pos < ubi->peb_count)
499 if (*pos < ubi->peb_count)
H A Dfastmap.c23 ret = bitmap_zalloc(ubi->peb_count, GFP_NOFS);
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++) {
87 (ubi->peb_count * sizeof(struct ubi_fm_ec)) +
91 (ubi->peb_count * sizeof(__be32));
790 if (WARN_ON(count_fastmap_pebs(ai) != ubi->peb_count -
H A Dfastmap-wl.c488 ubi_assert(pnum < ubi->peb_count);
H A Dwl.c1268 ubi_assert(pnum < ubi->peb_count);
1518 if (pnum < 0 || pnum >= ubi->peb_count) {
1810 ubi->lookuptbl = kcalloc(ubi->peb_count, sizeof(void *), GFP_KERNEL);
H A Dvtbl.c572 * We use ubi->peb_count and not vol->reserved_pebs because
577 err = ubi_fastmap_init_checkmap(vol, ubi->peb_count);
H A Dubi.h521 * @peb_count: count of physical eraseblocks on the MTD device
629 int peb_count; member in struct:ubi_device
H A Dbuild.c628 ubi->peb_count = mtd_div_by_eb(ubi->mtd->size, ubi->mtd);
736 ubi->max_erroneous = ubi->peb_count / 10;

Completed in 260 milliseconds