Searched refs:avail_pebs (Results 1 - 14 of 14) sorted by relevance
/kernel/linux/linux-5.10/drivers/mtd/ubi/ |
H 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()
|
H A D | vmt.c | 206 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 in ubi_resize_volume() [all...] |
H 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() 838 ubi->avail_pebs = ubi->good_peb_count - ubi->corr_peb_count; in ubi_read_volume_table()
|
H A D | eba.c | 1673 if (ubi->avail_pebs < EBA_RESERVED_PEBS) { in ubi_eba_init() 1675 ubi->avail_pebs, EBA_RESERVED_PEBS); in ubi_eba_init() 1682 ubi->avail_pebs -= EBA_RESERVED_PEBS; in ubi_eba_init() 1688 if (ubi->avail_pebs < ubi->beb_rsvd_level) { in ubi_eba_init() 1690 ubi->beb_rsvd_pebs = ubi->avail_pebs; in ubi_eba_init() 1695 ubi->avail_pebs -= ubi->beb_rsvd_pebs; in ubi_eba_init()
|
H A D | wl.c | 1155 if (ubi->avail_pebs == 0) { 1160 ubi->avail_pebs -= 1; 1177 ubi->avail_pebs += 1; 1199 ubi->avail_pebs += 1; 1903 if (ubi->avail_pebs < reserved_pebs) { 1905 ubi->avail_pebs, reserved_pebs); 1912 ubi->avail_pebs -= reserved_pebs;
|
H A D | build.c | 357 ret = sprintf(buf, "%d\n", ubi->avail_pebs); in dev_attribute_show() 792 if (ubi->avail_pebs == 0) { in autoresize() 807 old_reserved_pebs + ubi->avail_pebs); in autoresize() 1035 ubi->avail_pebs, ubi->rsvd_pebs, ubi->beb_rsvd_pebs); in ubi_attach_mtd_dev()
|
H A D | ubi.h | 450 * @volumes_lock: protects @volumes, @rsvd_pebs, @avail_pebs, beb_rsvd_pebs, 459 * @avail_pebs: count of available physical eraseblocks 571 int avail_pebs; member
|
/kernel/linux/linux-6.6/drivers/mtd/ubi/ |
H 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()
|
H A D | vmt.c | 206 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() 446 if (pebs > ubi->avail_pebs) { in ubi_resize_volume() 448 pebs, ubi->avail_pebs); in ubi_resize_volume() 456 ubi->avail_pebs -= pebs; in ubi_resize_volume() 471 ubi->avail_pebs -= pebs; in ubi_resize_volume() 512 ubi->avail_pebs in ubi_resize_volume() [all...] |
H 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() 838 ubi->avail_pebs = ubi->good_peb_count - ubi->corr_peb_count; in ubi_read_volume_table()
|
H A D | eba.c | 1673 if (ubi->avail_pebs < EBA_RESERVED_PEBS) { in ubi_eba_init() 1675 ubi->avail_pebs, EBA_RESERVED_PEBS); in ubi_eba_init() 1682 ubi->avail_pebs -= EBA_RESERVED_PEBS; in ubi_eba_init() 1688 if (ubi->avail_pebs < ubi->beb_rsvd_level) { in ubi_eba_init() 1690 ubi->beb_rsvd_pebs = ubi->avail_pebs; in ubi_eba_init() 1695 ubi->avail_pebs -= ubi->beb_rsvd_pebs; in ubi_eba_init()
|
H A D | wl.c | 1165 if (ubi->avail_pebs == 0) { 1170 ubi->avail_pebs -= 1; 1187 ubi->avail_pebs += 1; 1209 ubi->avail_pebs += 1; 1913 if (ubi->avail_pebs < reserved_pebs) { 1915 ubi->avail_pebs, reserved_pebs); 1922 ubi->avail_pebs -= reserved_pebs;
|
H A D | build.c | 359 ret = sprintf(buf, "%d\n", ubi->avail_pebs); in dev_attribute_show() 792 if (ubi->avail_pebs == 0) { in autoresize() 807 old_reserved_pebs + ubi->avail_pebs); in autoresize() 1041 ubi->avail_pebs, ubi->rsvd_pebs, ubi->beb_rsvd_pebs); in ubi_attach_mtd_dev()
|
H A D | ubi.h | 448 * @volumes_lock: protects @volumes, @rsvd_pebs, @avail_pebs, beb_rsvd_pebs, 457 * @avail_pebs: count of available physical eraseblocks 569 int avail_pebs; member
|
Completed in 20 milliseconds