Lines Matching refs:pebs
406 int i, err, pebs; in ubi_resize_volume() local
443 pebs = reserved_pebs - vol->reserved_pebs; in ubi_resize_volume()
444 if (pebs > 0) { in ubi_resize_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()
457 ubi->rsvd_pebs += pebs; in ubi_resize_volume()
463 if (pebs < 0) { in ubi_resize_volume()
464 for (i = 0; i < -pebs; i++) { in ubi_resize_volume()
470 ubi->rsvd_pebs += pebs; in ubi_resize_volume()
471 ubi->avail_pebs -= pebs; in ubi_resize_volume()
483 if (pebs < 0) { in ubi_resize_volume()
509 if (pebs > 0) { in ubi_resize_volume()
511 ubi->rsvd_pebs -= pebs; in ubi_resize_volume()
512 ubi->avail_pebs += pebs; in ubi_resize_volume()