Home
last modified time | relevance | path

Searched refs:beb_rsvd_pebs (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/drivers/mtd/ubi/
H A Dfastmap-wl.c79 if (!ubi->free.rb_node || (ubi->free_count - ubi->beb_rsvd_pebs < 1)) in ubi_wl_get_fm_peb()
115 int beb_rsvd_pebs; in has_enough_free_count() local
120 beb_rsvd_pebs = is_wl_pool ? ubi->beb_rsvd_pebs : 0; in has_enough_free_count()
124 return ubi->free_count - beb_rsvd_pebs > fm_used; in has_enough_free_count()
H A Dmisc.c94 int need = ubi->beb_rsvd_level - ubi->beb_rsvd_pebs; in ubi_update_reserved()
102 ubi->beb_rsvd_pebs += need; in ubi_update_reserved()
H A Deba.c1502 if (ubi->beb_rsvd_pebs > min) in print_rsvd_warning()
1507 ubi->beb_rsvd_pebs, ubi->beb_rsvd_level); in print_rsvd_warning()
1690 ubi->beb_rsvd_pebs = ubi->avail_pebs; in ubi_eba_init()
1693 ubi->beb_rsvd_pebs = ubi->beb_rsvd_level; in ubi_eba_init()
1695 ubi->avail_pebs -= ubi->beb_rsvd_pebs; in ubi_eba_init()
1696 ubi->rsvd_pebs += ubi->beb_rsvd_pebs; in ubi_eba_init()
H A Dwl.c1164 if (ubi->beb_rsvd_pebs == 0) {
1181 if (ubi->beb_rsvd_pebs > 0) {
1190 ubi->beb_rsvd_pebs -= 1;
1197 else if (ubi->beb_rsvd_pebs)
1199 ubi->beb_rsvd_pebs);
H A Dbuild.c367 ret = sprintf(buf, "%d\n", ubi->beb_rsvd_pebs); in dev_attribute_show()
1041 ubi->avail_pebs, ubi->rsvd_pebs, ubi->beb_rsvd_pebs); in ubi_attach_mtd_dev()
H A Dubi.h570 int beb_rsvd_pebs; member
/openbmc/u-boot/drivers/mtd/ubi/
H A Dmisc.c95 int need = ubi->beb_rsvd_level - ubi->beb_rsvd_pebs; in ubi_update_reserved()
103 ubi->beb_rsvd_pebs += need; in ubi_update_reserved()
H A Dfastmap-wl.c92 if (!ubi->free.rb_node || (ubi->free_count - ubi->beb_rsvd_pebs < 1)) in ubi_wl_get_fm_peb()
149 (ubi->free_count - ubi->beb_rsvd_pebs < 5)) in ubi_refill_pools()
H A Deba.c1269 if (ubi->beb_rsvd_pebs > min) in print_rsvd_warning()
1274 ubi->beb_rsvd_pebs, ubi->beb_rsvd_level); in print_rsvd_warning()
1451 ubi->beb_rsvd_pebs = ubi->avail_pebs; in ubi_eba_init()
1454 ubi->beb_rsvd_pebs = ubi->beb_rsvd_level; in ubi_eba_init()
1456 ubi->avail_pebs -= ubi->beb_rsvd_pebs; in ubi_eba_init()
1457 ubi->rsvd_pebs += ubi->beb_rsvd_pebs; in ubi_eba_init()
H A Dwl.c1133 if (ubi->beb_rsvd_pebs == 0) {
1150 if (ubi->beb_rsvd_pebs > 0) {
1159 ubi->beb_rsvd_pebs -= 1;
1166 else if (ubi->beb_rsvd_pebs)
1168 ubi->beb_rsvd_pebs);
H A Dbuild.c402 ret = sprintf(buf, "%d\n", ubi->beb_rsvd_pebs); in dev_attribute_show()
1051 ubi->avail_pebs, ubi->rsvd_pebs, ubi->beb_rsvd_pebs); in ubi_attach_mtd_dev()
H A Dubi.h542 int beb_rsvd_pebs; member
/openbmc/u-boot/cmd/
H A Dubi.c70 ubi->beb_rsvd_pebs); in display_ubi_info()
228 i = ubi->beb_rsvd_level - ubi->beb_rsvd_pebs; in ubi_remove_vol()
233 ubi->beb_rsvd_pebs += i; in ubi_remove_vol()