Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/mtd/ubi/
Dmisc.c96 if (need <= 0 || ubi->avail_pebs == 0) in ubi_update_reserved()
99 need = min_t(int, need, ubi->avail_pebs); in ubi_update_reserved()
100 ubi->avail_pebs -= need; in ubi_update_reserved()
Dvmt.c206 if (vol->reserved_pebs > ubi->avail_pebs) { in ubi_create_volume()
208 ubi->avail_pebs); in ubi_create_volume()
215 ubi->avail_pebs -= vol->reserved_pebs; in ubi_create_volume()
315 ubi->avail_pebs += vol->reserved_pebs; in ubi_create_volume()
375 ubi->avail_pebs += reserved_pebs; in ubi_remove_volume()
447 if (pebs > ubi->avail_pebs) { in ubi_resize_volume()
449 pebs, ubi->avail_pebs); in ubi_resize_volume()
458 ubi->avail_pebs -= pebs; in ubi_resize_volume()
475 ubi->avail_pebs -= pebs; in ubi_resize_volume()
519 ubi->avail_pebs += pebs; in ubi_resize_volume()
Dvtbl.c652 if (reserved_pebs > ubi->avail_pebs) { in init_volumes()
654 reserved_pebs, ubi->avail_pebs); in init_volumes()
661 ubi->avail_pebs -= reserved_pebs; in init_volumes()
838 ubi->avail_pebs = ubi->good_peb_count - ubi->corr_peb_count; in ubi_read_volume_table()
Deba.c1664 if (ubi->avail_pebs < EBA_RESERVED_PEBS) { in ubi_eba_init()
1666 ubi->avail_pebs, EBA_RESERVED_PEBS); in ubi_eba_init()
1673 ubi->avail_pebs -= EBA_RESERVED_PEBS; in ubi_eba_init()
1679 if (ubi->avail_pebs < ubi->beb_rsvd_level) { in ubi_eba_init()
1681 ubi->beb_rsvd_pebs = ubi->avail_pebs; in ubi_eba_init()
1686 ubi->avail_pebs -= ubi->beb_rsvd_pebs; in ubi_eba_init()
Dwl.c1149 if (ubi->avail_pebs == 0) {
1154 ubi->avail_pebs -= 1;
1171 ubi->avail_pebs += 1;
1193 ubi->avail_pebs += 1;
1885 if (ubi->avail_pebs < reserved_pebs) {
1887 ubi->avail_pebs, reserved_pebs);
1894 ubi->avail_pebs -= reserved_pebs;
Dbuild.c357 ret = sprintf(buf, "%d\n", ubi->avail_pebs); in dev_attribute_show()
776 if (ubi->avail_pebs == 0) { in autoresize()
791 old_reserved_pebs + ubi->avail_pebs); in autoresize()
1019 ubi->avail_pebs, ubi->rsvd_pebs, ubi->beb_rsvd_pebs); in ubi_attach_mtd_dev()
Dubi.h571 int avail_pebs; member