Searched refs:avail_pebs (Results 1 – 15 of 15) sorted by relevance
| /OK3568_Linux_fs/u-boot/drivers/mtd/ubi/ |
| H A D | misc.c | 98 if (need <= 0 || ubi->avail_pebs == 0) in ubi_update_reserved() 101 need = min_t(int, need, ubi->avail_pebs); in ubi_update_reserved() 102 ubi->avail_pebs -= need; in ubi_update_reserved()
|
| H A D | vmt.c | 211 if (vol->reserved_pebs > ubi->avail_pebs) { in ubi_create_volume() 213 ubi->avail_pebs); in ubi_create_volume() 220 ubi->avail_pebs -= vol->reserved_pebs; in ubi_create_volume() 334 ubi->avail_pebs += vol->reserved_pebs; in ubi_create_volume() 397 ubi->avail_pebs += reserved_pebs; in ubi_remove_volume() 470 if (pebs > ubi->avail_pebs) { in ubi_resize_volume() 472 pebs, ubi->avail_pebs); in ubi_resize_volume() 480 ubi->avail_pebs -= pebs; in ubi_resize_volume() 504 ubi->avail_pebs -= pebs; in ubi_resize_volume() 529 ubi->avail_pebs += pebs; in ubi_resize_volume()
|
| H A D | vtbl.c | 644 if (reserved_pebs > ubi->avail_pebs) { 646 reserved_pebs, ubi->avail_pebs); 652 ubi->avail_pebs -= reserved_pebs; 823 ubi->avail_pebs = ubi->good_peb_count - ubi->corr_peb_count;
|
| H A D | eba.c | 1435 if (ubi->avail_pebs < EBA_RESERVED_PEBS) { in ubi_eba_init() 1437 ubi->avail_pebs, EBA_RESERVED_PEBS); in ubi_eba_init() 1444 ubi->avail_pebs -= EBA_RESERVED_PEBS; in ubi_eba_init() 1450 if (ubi->avail_pebs < ubi->beb_rsvd_level) { in ubi_eba_init() 1452 ubi->beb_rsvd_pebs = ubi->avail_pebs; in ubi_eba_init() 1457 ubi->avail_pebs -= ubi->beb_rsvd_pebs; in ubi_eba_init()
|
| H A D | wl.c | 1135 if (ubi->avail_pebs == 0) { 1140 ubi->avail_pebs -= 1; 1157 ubi->avail_pebs += 1; 1179 ubi->avail_pebs += 1; 1635 if (ubi->avail_pebs < reserved_pebs) { 1637 ubi->avail_pebs, reserved_pebs); 1643 ubi->avail_pebs -= reserved_pebs;
|
| H A D | build.c | 395 ret = sprintf(buf, "%d\n", ubi->avail_pebs); in dev_attribute_show() 835 if (ubi->avail_pebs == 0) { in autoresize() 850 old_reserved_pebs + ubi->avail_pebs); in autoresize() 1052 ubi->avail_pebs, ubi->rsvd_pebs, ubi->beb_rsvd_pebs); in ubi_attach_mtd_dev()
|
| H A D | ubi.h | 542 int avail_pebs; member
|
| /OK3568_Linux_fs/kernel/drivers/mtd/ubi/ |
| 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 += pebs; in ubi_resize_volume()
|
| 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 | 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()
|
| H 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()
|
| H A D | wl.c | 1149 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;
|
| H A D | build.c | 357 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() 1012 ubi->avail_pebs, ubi->rsvd_pebs, ubi->beb_rsvd_pebs); in ubi_attach_mtd_dev()
|
| H A D | ubi.h | 571 int avail_pebs; member
|
| /OK3568_Linux_fs/u-boot/cmd/ |
| H A D | ubi.c | 83 ubi_msg("available PEBs: %d", ubi->avail_pebs); in display_ubi_info() 244 ubi->avail_pebs += reserved_pebs; in ubi_remove_vol() 247 i = ubi->avail_pebs >= i ? i : ubi->avail_pebs; in ubi_remove_vol() 248 ubi->avail_pebs -= i; in ubi_remove_vol() 609 size = (int64_t)ubi->avail_pebs * ubi->leb_size; in do_ubi()
|