Lines Matching refs:max_beb_per1024
60 int max_beb_per1024; member
538 static int get_bad_peb_limit(const struct ubi_device *ubi, int max_beb_per1024) in get_bad_peb_limit() argument
543 if (!max_beb_per1024) { in get_bad_peb_limit()
566 limit = mult_frac(device_pebs, max_beb_per1024, 1024); in get_bad_peb_limit()
569 if (mult_frac(limit, 1024, max_beb_per1024) < device_pebs) in get_bad_peb_limit()
591 static int io_init(struct ubi_device *ubi, int max_beb_per1024) in io_init() argument
624 ubi->bad_peb_limit = get_bad_peb_limit(ubi, max_beb_per1024); in io_init()
822 int vid_hdr_offset, int max_beb_per1024) in ubi_attach_mtd_dev() argument
827 if (max_beb_per1024 < 0 || max_beb_per1024 > MAX_MTD_UBI_BEB_LIMIT) in ubi_attach_mtd_dev()
830 if (!max_beb_per1024) in ubi_attach_mtd_dev()
831 max_beb_per1024 = CONFIG_MTD_UBI_BEB_LIMIT; in ubi_attach_mtd_dev()
951 err = io_init(ubi, max_beb_per1024); in ubi_attach_mtd_dev()
1246 p->vid_hdr_offs, p->max_beb_per1024); in ubi_init()
1423 int err = kstrtoint(token, 10, &p->max_beb_per1024); in ubi_mtd_param_parse()