Lines Matching defs:sv
265 struct ubi_scan_volume *sv;
279 sv = ubi_scan_find_sv(si, UBI_LAYOUT_VOL_ID);
280 if (sv)
281 old_seb = ubi_scan_find_seb(sv, copy);
338 * @sv: layout volume scanning information
346 struct ubi_scan_volume *sv)
382 ubi_rb_for_each_entry(rb, seb, &sv->root, u.rb) {
497 struct ubi_scan_volume *sv;
539 sv = ubi_scan_find_sv(si, i);
540 if (!sv) {
544 if (sv->leb_count != sv->used_ebs) {
550 sv->vol_id, sv->used_ebs - sv->leb_count);
555 vol->used_ebs = sv->used_ebs;
557 vol->used_bytes += sv->last_data_size;
558 vol->last_eb_bytes = sv->last_data_size;
594 * @sv: volume scanning information
600 const struct ubi_scan_volume *sv)
602 if (sv->highest_lnum >= vol->reserved_pebs) {
606 if (sv->leb_count > vol->reserved_pebs) {
610 if (sv->vol_type != vol->vol_type) {
614 if (sv->used_ebs > vol->reserved_pebs) {
618 if (sv->data_pad != vol->data_pad) {
626 ubi_dbg_dump_sv(sv);
645 struct ubi_scan_volume *sv;
665 sv = ubi_scan_find_sv(si, i);
668 if (sv)
669 ubi_scan_rm_volume(si, sv);
676 if (!sv)
686 ubi_msg("finish volume %d removal", sv->vol_id);
687 ubi_scan_rm_volume(si, sv);
688 } else if (sv) {
689 err = check_sv(vol, sv);
711 struct ubi_scan_volume *sv;
726 sv = ubi_scan_find_sv(si, UBI_LAYOUT_VOL_ID);
727 if (!sv) {
745 if (sv->leb_count > UBI_LAYOUT_VOLUME_EBS) {
748 sv->leb_count);
752 ubi->vtbl = process_lvol(ubi, si, sv);