Searched refs:beb_rsvd_pebs (Results 1 – 6 of 6) sorted by relevance
79 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() local120 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()
94 int need = ubi->beb_rsvd_level - ubi->beb_rsvd_pebs; in ubi_update_reserved()102 ubi->beb_rsvd_pebs += need; in ubi_update_reserved()
1493 if (ubi->beb_rsvd_pebs > min) in print_rsvd_warning()1498 ubi->beb_rsvd_pebs, ubi->beb_rsvd_level); in print_rsvd_warning()1681 ubi->beb_rsvd_pebs = ubi->avail_pebs; in ubi_eba_init()1684 ubi->beb_rsvd_pebs = ubi->beb_rsvd_level; in ubi_eba_init()1686 ubi->avail_pebs -= ubi->beb_rsvd_pebs; in ubi_eba_init()1687 ubi->rsvd_pebs += ubi->beb_rsvd_pebs; in ubi_eba_init()
1157 if (ubi->beb_rsvd_pebs == 0) {1174 if (ubi->beb_rsvd_pebs > 0) {1183 ubi->beb_rsvd_pebs -= 1;1190 else if (ubi->beb_rsvd_pebs)1192 ubi->beb_rsvd_pebs);
366 ret = sprintf(buf, "%d\n", ubi->beb_rsvd_pebs); in dev_attribute_show()1016 ubi->avail_pebs, ubi->rsvd_pebs, ubi->beb_rsvd_pebs); in ubi_attach_mtd_dev()
570 int beb_rsvd_pebs; member