Lines Matching refs:pebs
407 int i, err, pebs; in ubi_resize_volume() local
445 pebs = reserved_pebs - vol->reserved_pebs; in ubi_resize_volume()
446 if (pebs > 0) { in ubi_resize_volume()
448 if (pebs > ubi->avail_pebs) { in ubi_resize_volume()
450 pebs, ubi->avail_pebs); in ubi_resize_volume()
459 ubi->avail_pebs -= pebs; in ubi_resize_volume()
460 ubi->rsvd_pebs += pebs; in ubi_resize_volume()
468 if (pebs < 0) { in ubi_resize_volume()
469 for (i = 0; i < -pebs; i++) { in ubi_resize_volume()
475 ubi->rsvd_pebs += pebs; in ubi_resize_volume()
476 ubi->avail_pebs -= pebs; in ubi_resize_volume()
490 if (pebs < 0) { in ubi_resize_volume()
517 vol->reserved_pebs = reserved_pebs - pebs; in ubi_resize_volume()
518 if (pebs > 0) { in ubi_resize_volume()
519 ubi->rsvd_pebs -= pebs; in ubi_resize_volume()
520 ubi->avail_pebs += pebs; in ubi_resize_volume()