Searched refs:avail_pebs (Results 1 - 7 of 7) sorted by relevance
/drivers/mtd/ubi/ |
H A D | misc.c | 107 if (need <= 0 || ubi->avail_pebs == 0) 110 need = min_t(int, need, ubi->avail_pebs); 111 ubi->avail_pebs -= need;
|
H A D | vmt.c | 259 if (vol->reserved_pebs > ubi->avail_pebs) { 260 ubi_err("not enough PEBs, only %d available", ubi->avail_pebs); 267 ubi->avail_pebs -= vol->reserved_pebs; 382 ubi->avail_pebs += vol->reserved_pebs; 445 ubi->avail_pebs += reserved_pebs; 518 if (pebs > ubi->avail_pebs) { 520 pebs, ubi->avail_pebs); 528 ubi->avail_pebs -= pebs; 552 ubi->avail_pebs -= pebs; 577 ubi->avail_pebs [all...] |
H A D | vtbl.c | 648 if (reserved_pebs > ubi->avail_pebs) { 650 reserved_pebs, ubi->avail_pebs); 656 ubi->avail_pebs -= reserved_pebs; 826 ubi->avail_pebs = ubi->good_peb_count - ubi->corr_peb_count;
|
H A D | eba.c | 1368 if (ubi->avail_pebs < EBA_RESERVED_PEBS) { 1370 ubi->avail_pebs, EBA_RESERVED_PEBS); 1377 ubi->avail_pebs -= EBA_RESERVED_PEBS; 1383 if (ubi->avail_pebs < ubi->beb_rsvd_level) { 1385 ubi->beb_rsvd_pebs = ubi->avail_pebs; 1390 ubi->avail_pebs -= ubi->beb_rsvd_pebs;
|
H A D | build.c | 362 ret = sprintf(buf, "%d\n", ubi->avail_pebs); 823 if (ubi->avail_pebs == 0) { 838 old_reserved_pebs + ubi->avail_pebs); 1035 ubi->avail_pebs, ubi->rsvd_pebs, ubi->beb_rsvd_pebs);
|
H A D | wl.c | 1495 if (ubi->avail_pebs == 0) { 1500 ubi->avail_pebs -= 1; 1517 ubi->avail_pebs += 1; 1538 ubi->avail_pebs += 1; 1983 if (ubi->avail_pebs < reserved_pebs) { 1985 ubi->avail_pebs, reserved_pebs); 1991 ubi->avail_pebs -= reserved_pebs;
|
H A D | ubi.h | 389 * @volumes_lock: protects @volumes, @rsvd_pebs, @avail_pebs, beb_rsvd_pebs, 397 * @avail_pebs: count of available physical eraseblocks 504 int avail_pebs; member in struct:ubi_device
|
Completed in 155 milliseconds