Searched refs:avail_pebs (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/mtd/ubi/ |
A D | vmt.c | 212 if (vol->reserved_pebs > ubi->avail_pebs) { in ubi_create_volume() 214 ubi->avail_pebs); in ubi_create_volume() 221 ubi->avail_pebs -= vol->reserved_pebs; in ubi_create_volume() 322 ubi->avail_pebs += vol->reserved_pebs; in ubi_create_volume() 382 ubi->avail_pebs += reserved_pebs; in ubi_remove_volume() 453 if (pebs > ubi->avail_pebs) { in ubi_resize_volume() 455 pebs, ubi->avail_pebs); in ubi_resize_volume() 463 ubi->avail_pebs -= pebs; in ubi_resize_volume() 478 ubi->avail_pebs -= pebs; in ubi_resize_volume() 519 ubi->avail_pebs += pebs; in ubi_resize_volume()
|
A D | misc.c | 96 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()
|
A D | vtbl.c | 652 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() 832 ubi->avail_pebs = ubi->good_peb_count - ubi->corr_peb_count; in ubi_read_volume_table()
|
A D | eba.c | 1664 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()
|
A D | wl.c | 1147 if (ubi->avail_pebs == 0) { 1152 ubi->avail_pebs -= 1; 1169 ubi->avail_pebs += 1; 1191 ubi->avail_pebs += 1; 1883 if (ubi->avail_pebs < reserved_pebs) { 1885 ubi->avail_pebs, reserved_pebs); 1892 ubi->avail_pebs -= reserved_pebs;
|
A D | build.c | 361 ret = sprintf(buf, "%d\n", ubi->avail_pebs); in dev_attribute_show() 779 if (ubi->avail_pebs == 0) { in autoresize() 794 old_reserved_pebs + ubi->avail_pebs); in autoresize() 1018 ubi->avail_pebs, ubi->rsvd_pebs, ubi->beb_rsvd_pebs); in ubi_attach_mtd_dev()
|
A D | ubi.h | 570 int avail_pebs; member
|
Completed in 23 milliseconds