Home
last modified time | relevance | path

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

/linux/drivers/mtd/ubi/
H A 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()
H A Dvmt.c233 if (vol->reserved_pebs > ubi->avail_pebs) { in ubi_create_volume()
235 ubi->avail_pebs); in ubi_create_volume()
242 ubi->avail_pebs -= vol->reserved_pebs; in ubi_create_volume()
343 ubi->avail_pebs += vol->reserved_pebs; in ubi_create_volume()
416 ubi->avail_pebs += reserved_pebs; in ubi_remove_volume()
488 if (pebs > ubi->avail_pebs) { in ubi_resize_volume()
490 pebs, ubi->avail_pebs); in ubi_resize_volume()
499 ubi->avail_pebs -= pebs; in ubi_resize_volume()
516 ubi->avail_pebs -= pebs; in ubi_resize_volume()
560 ubi->avail_pebs += pebs; in ubi_resize_volume()
H A 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()
H A Deba.c1678 if (ubi->avail_pebs < EBA_RESERVED_PEBS) { in ubi_eba_init()
1680 ubi->avail_pebs, EBA_RESERVED_PEBS); in ubi_eba_init()
1687 ubi->avail_pebs -= EBA_RESERVED_PEBS; in ubi_eba_init()
1693 if (ubi->avail_pebs < ubi->beb_rsvd_level) { in ubi_eba_init()
1695 ubi->beb_rsvd_pebs = ubi->avail_pebs; in ubi_eba_init()
1700 ubi->avail_pebs -= ubi->beb_rsvd_pebs; in ubi_eba_init()