Searched refs:avail_pebs (Results 1 – 7 of 7) sorted by relevance
| /linux-4.4.14/drivers/mtd/ubi/ |
| D | misc.c | 109 if (need <= 0 || ubi->avail_pebs == 0) in ubi_update_reserved() 112 need = min_t(int, need, ubi->avail_pebs); in ubi_update_reserved() 113 ubi->avail_pebs -= need; in ubi_update_reserved()
|
| D | vmt.c | 215 if (vol->reserved_pebs > ubi->avail_pebs) { in ubi_create_volume() 217 ubi->avail_pebs); in ubi_create_volume() 224 ubi->avail_pebs -= vol->reserved_pebs; in ubi_create_volume() 336 ubi->avail_pebs += vol->reserved_pebs; in ubi_create_volume() 399 ubi->avail_pebs += reserved_pebs; in ubi_remove_volume() 472 if (pebs > ubi->avail_pebs) { in ubi_resize_volume() 474 pebs, ubi->avail_pebs); in ubi_resize_volume() 482 ubi->avail_pebs -= pebs; in ubi_resize_volume() 506 ubi->avail_pebs -= pebs; in ubi_resize_volume() 531 ubi->avail_pebs += pebs; in ubi_resize_volume()
|
| D | vtbl.c | 646 if (reserved_pebs > ubi->avail_pebs) { in init_volumes() 648 reserved_pebs, ubi->avail_pebs); in init_volumes() 655 ubi->avail_pebs -= reserved_pebs; in init_volumes() 826 ubi->avail_pebs = ubi->good_peb_count - ubi->corr_peb_count; in ubi_read_volume_table()
|
| D | eba.c | 1457 if (ubi->avail_pebs < EBA_RESERVED_PEBS) { in ubi_eba_init() 1459 ubi->avail_pebs, EBA_RESERVED_PEBS); in ubi_eba_init() 1466 ubi->avail_pebs -= EBA_RESERVED_PEBS; in ubi_eba_init() 1472 if (ubi->avail_pebs < ubi->beb_rsvd_level) { in ubi_eba_init() 1474 ubi->beb_rsvd_pebs = ubi->avail_pebs; in ubi_eba_init() 1479 ubi->avail_pebs -= ubi->beb_rsvd_pebs; in ubi_eba_init()
|
| D | wl.c | 1088 if (ubi->avail_pebs == 0) { 1093 ubi->avail_pebs -= 1; 1110 ubi->avail_pebs += 1; 1132 ubi->avail_pebs += 1; 1603 if (ubi->avail_pebs < reserved_pebs) { 1605 ubi->avail_pebs, reserved_pebs); 1612 ubi->avail_pebs -= reserved_pebs;
|
| D | build.c | 369 ret = sprintf(buf, "%d\n", ubi->avail_pebs); in dev_attribute_show() 806 if (ubi->avail_pebs == 0) { in autoresize() 821 old_reserved_pebs + ubi->avail_pebs); in autoresize() 1023 ubi->avail_pebs, ubi->rsvd_pebs, ubi->beb_rsvd_pebs); in ubi_attach_mtd_dev()
|
| D | ubi.h | 542 int avail_pebs; member
|