Home
last modified time | relevance | path

Searched refs:avail_pebs (Results 1 – 8 of 8) sorted by relevance

/external/u-boot/drivers/mtd/ubi/
Dmisc.c97 if (need <= 0 || ubi->avail_pebs == 0) in ubi_update_reserved()
100 need = min_t(int, need, ubi->avail_pebs); in ubi_update_reserved()
101 ubi->avail_pebs -= need; in ubi_update_reserved()
Dvmt.c210 if (vol->reserved_pebs > ubi->avail_pebs) { in ubi_create_volume()
212 ubi->avail_pebs); in ubi_create_volume()
219 ubi->avail_pebs -= vol->reserved_pebs; in ubi_create_volume()
333 ubi->avail_pebs += vol->reserved_pebs; in ubi_create_volume()
396 ubi->avail_pebs += reserved_pebs; in ubi_remove_volume()
469 if (pebs > ubi->avail_pebs) { in ubi_resize_volume()
471 pebs, ubi->avail_pebs); in ubi_resize_volume()
479 ubi->avail_pebs -= pebs; in ubi_resize_volume()
503 ubi->avail_pebs -= pebs; in ubi_resize_volume()
528 ubi->avail_pebs += pebs; in ubi_resize_volume()
Dvtbl.c643 if (reserved_pebs > ubi->avail_pebs) {
645 reserved_pebs, ubi->avail_pebs);
651 ubi->avail_pebs -= reserved_pebs;
822 ubi->avail_pebs = ubi->good_peb_count - ubi->corr_peb_count;
Deba.c1434 if (ubi->avail_pebs < EBA_RESERVED_PEBS) { in ubi_eba_init()
1436 ubi->avail_pebs, EBA_RESERVED_PEBS); in ubi_eba_init()
1443 ubi->avail_pebs -= EBA_RESERVED_PEBS; in ubi_eba_init()
1449 if (ubi->avail_pebs < ubi->beb_rsvd_level) { in ubi_eba_init()
1451 ubi->beb_rsvd_pebs = ubi->avail_pebs; in ubi_eba_init()
1456 ubi->avail_pebs -= ubi->beb_rsvd_pebs; in ubi_eba_init()
Dwl.c1134 if (ubi->avail_pebs == 0) {
1139 ubi->avail_pebs -= 1;
1156 ubi->avail_pebs += 1;
1178 ubi->avail_pebs += 1;
1634 if (ubi->avail_pebs < reserved_pebs) {
1636 ubi->avail_pebs, reserved_pebs);
1642 ubi->avail_pebs -= reserved_pebs;
Dbuild.c394 ret = sprintf(buf, "%d\n", ubi->avail_pebs); in dev_attribute_show()
834 if (ubi->avail_pebs == 0) { in autoresize()
849 old_reserved_pebs + ubi->avail_pebs); in autoresize()
1051 ubi->avail_pebs, ubi->rsvd_pebs, ubi->beb_rsvd_pebs); in ubi_attach_mtd_dev()
Dubi.h541 int avail_pebs; member
/external/u-boot/cmd/
Dubi.c83 ubi_msg("available PEBs: %d", ubi->avail_pebs); in display_ubi_info()
244 ubi->avail_pebs += reserved_pebs; in ubi_remove_vol()
247 i = ubi->avail_pebs >= i ? i : ubi->avail_pebs; in ubi_remove_vol()
248 ubi->avail_pebs -= i; in ubi_remove_vol()
614 size = (int64_t)ubi->avail_pebs * ubi->leb_size; in do_ubi()