Lines Matching refs:reserved_pebs
160 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; in vtbl_check() local
168 reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); in vtbl_check()
184 if (reserved_pebs == 0) { in vtbl_check()
193 if (reserved_pebs < 0 || alignment < 0 || data_pad < 0 || in vtbl_check()
227 if (reserved_pebs > ubi->good_peb_count) { in vtbl_check()
229 reserved_pebs, ubi->good_peb_count); in vtbl_check()
524 int i, err, reserved_pebs = 0; in init_volumes() local
531 if (be32_to_cpu(vtbl[i].reserved_pebs) == 0) in init_volumes()
538 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); in init_volumes()
569 reserved_pebs += vol->reserved_pebs; in init_volumes()
586 vol->used_ebs = vol->reserved_pebs; in init_volumes()
630 vol->reserved_pebs = UBI_LAYOUT_VOLUME_EBS; in init_volumes()
636 vol->used_ebs = vol->reserved_pebs; in init_volumes()
637 vol->last_eb_bytes = vol->reserved_pebs; in init_volumes()
645 reserved_pebs += vol->reserved_pebs; in init_volumes()
652 if (reserved_pebs > ubi->avail_pebs) { in init_volumes()
654 reserved_pebs, ubi->avail_pebs); in init_volumes()
660 ubi->rsvd_pebs += reserved_pebs; in init_volumes()
661 ubi->avail_pebs -= reserved_pebs; in init_volumes()
679 if (av->highest_lnum >= vol->reserved_pebs) { in check_av()
683 if (av->leb_count > vol->reserved_pebs) { in check_av()
691 if (av->used_ebs > vol->reserved_pebs) { in check_av()
749 if (vol->reserved_pebs == 0) { in check_attaching_info()