Searched refs:peb_count (Results 1 – 12 of 12) sorted by relevance
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()
86 unsigned int peb_count; member
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()
1066 int max_corr, peb_count; in late_analysis() local1068 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 …]
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()
334 ubi_assert(pnum < ubi->peb_count); in ubi_wl_put_fm_peb()
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()
600 int peb_count; member
1206 ubi_assert(pnum < ubi->peb_count);1545 ubi->lookuptbl = kzalloc(ubi->peb_count * sizeof(void *), GFP_KERNEL);
98 info.peb_count = MY_NAND_UBI_NUM_PEBS;124 info.peb_count = flash_info.peb_count - MY_NAND_NR_SPL_PEBS;
64 u32 peb_count; member
45 info.peb_count = CONFIG_SPL_UBI_MAX_PEBS - info.peb_offset; in spl_ubi_load_image()