/openbmc/u-boot/drivers/mtd/ubispl/ |
H A D | ubispl.c | 30 (ubi->peb_count * sizeof(struct ubi_fm_ec)) + in ubi_calc_fm_size() 32 (ubi->peb_count * sizeof(__be32))) + in ubi_calc_fm_size() 45 return peb >= ubi->peb_count || peb < 0; in ubi_io_is_bad() 478 if (WARN_ON(count_fastmap_pebs(ai) != ubi->peb_count - in ubi_attach_fastmap() 649 ubi->fsize_mb, ubi->peb_count); in ubi_scan_fastmap() 710 for (; pnum < ubi->peb_count; pnum++) in ipl_scan() 799 for (pnum = 0; pnum < ubi->peb_count; pnum++) { in ubi_load_block() 892 ubi->peb_count = info->peb_count; in ubispl_load_volumes() 895 fsize = info->peb_size * info->peb_count; in ubispl_load_volumes()
|
H A D | ubispl.h | 86 unsigned int peb_count; member
|
/openbmc/linux/drivers/mtd/ubi/ |
H A D | io.c | 122 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()
|
H A D | attach.c | 1210 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 …]
|
H A D | debug.c | 396 if (*pos < ubi->peb_count) in eraseblk_count_seq_start() 411 if (*pos < ubi->peb_count) in eraseblk_count_seq_next()
|
H A D | fastmap.c | 23 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() 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 D | fastmap-wl.c | 437 ubi_assert(pnum < ubi->peb_count); in ubi_wl_put_fm_peb()
|
H A D | wl.c | 1263 ubi_assert(pnum < ubi->peb_count); 1513 if (pnum < 0 || pnum >= ubi->peb_count) { 1805 ubi->lookuptbl = kcalloc(ubi->peb_count, sizeof(void *), GFP_KERNEL);
|
H A D | build.c | 622 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 D | ubi.h | 629 int peb_count; member
|
H A D | vtbl.c | 577 err = ubi_fastmap_init_checkmap(vol, ubi->peb_count); in init_volumes()
|
/openbmc/u-boot/drivers/mtd/ubi/ |
H A D | io.c | 128 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read() 237 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write() 332 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in do_sync_erase() 565 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_sync_erase() 607 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_is_bad() 637 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_mark_bad() 732 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read_ec_hdr() 841 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write_ec_hdr() 1006 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read_vid_hdr() 1090 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write_vid_hdr()
|
H A D | attach.c | 1066 int max_corr, peb_count; in late_analysis() local 1068 peb_count = ubi->peb_count - ai->bad_peb_count - ai->alien_peb_count; in late_analysis() 1069 max_corr = peb_count / 20 ?: 8; in late_analysis() 1094 if (ai->empty_peb_count + ai->maybe_bad_peb_count == peb_count) { in late_analysis() 1240 for (pnum = start; pnum < ubi->peb_count; pnum++) { in scan_all() 1436 ubi->good_peb_count = ubi->peb_count - ubi->bad_peb_count; in ubi_attach() 1579 if (aeb->pnum >= ubi->peb_count) { in self_check_ai() 1581 aeb->pnum, ubi->peb_count); in self_check_ai() 1702 buf = kzalloc(ubi->peb_count, GFP_KERNEL); in self_check_ai() 1706 for (pnum = 0; pnum < ubi->peb_count; pnum++) { in self_check_ai() [all …]
|
H A D | fastmap.c | 32 ret = kcalloc(ubi->peb_count, sizeof(int), GFP_KERNEL); in init_seen() 74 for (pnum = 0; pnum < ubi->peb_count; pnum++) { in self_check_seen() 96 (ubi->peb_count * sizeof(struct ubi_fm_ec)) + in ubi_calc_fm_size() 98 (ubi->peb_count * sizeof(__be32))) + in ubi_calc_fm_size() 839 if (WARN_ON(count_fastmap_pebs(ai) != ubi->peb_count - in ubi_attach_fastmap() 843 if (count_fastmap_pebs(ai) != ubi->peb_count - in ubi_attach_fastmap()
|
H A D | fastmap-wl.c | 334 ubi_assert(pnum < ubi->peb_count); in ubi_wl_put_fm_peb()
|
H A D | build.c | 677 ubi->peb_count = mtd_div_by_eb(ubi->mtd->size, ubi->mtd); in io_init() 772 ubi->max_erroneous = ubi->peb_count / 10; in io_init()
|
H A D | ubi.h | 600 int peb_count; member
|
H A D | wl.c | 1206 ubi_assert(pnum < ubi->peb_count); 1545 ubi->lookuptbl = kzalloc(ubi->peb_count * sizeof(void *), GFP_KERNEL);
|
/openbmc/u-boot/doc/ |
H A D | README.ubispl | 98 info.peb_count = MY_NAND_UBI_NUM_PEBS; 124 info.peb_count = flash_info.peb_count - MY_NAND_NR_SPL_PEBS;
|
/openbmc/u-boot/include/ |
H A D | ubispl.h | 64 u32 peb_count; member
|
/openbmc/u-boot/common/spl/ |
H A D | spl_ubi.c | 45 info.peb_count = CONFIG_SPL_UBI_MAX_PEBS - info.peb_offset; in spl_ubi_load_image()
|