Lines Matching refs:sv

310 	struct ubi_scan_volume *sv;  in create_vtbl()  local
324 sv = ubi_scan_find_sv(si, UBI_LAYOUT_VOLUME_ID); in create_vtbl()
325 if (sv) in create_vtbl()
326 old_seb = ubi_scan_find_seb(sv, copy); in create_vtbl()
391 struct ubi_scan_volume *sv) in process_lvol() argument
427 ubi_rb_for_each_entry(rb, seb, &sv->root, u.rb) { in process_lvol()
552 struct ubi_scan_volume *sv; in init_volumes() local
608 sv = ubi_scan_find_sv(si, i); in init_volumes()
609 if (!sv) { in init_volumes()
621 if (sv->leb_count != sv->used_ebs) { in init_volumes()
627 sv->vol_id, sv->used_ebs - sv->leb_count); in init_volumes()
632 vol->used_ebs = sv->used_ebs; in init_volumes()
635 vol->used_bytes += sv->last_data_size; in init_volumes()
636 vol->last_eb_bytes = sv->last_data_size; in init_volumes()
685 const struct ubi_scan_volume *sv) in check_sv() argument
689 if (sv->highest_lnum >= vol->reserved_pebs) { in check_sv()
693 if (sv->leb_count > vol->reserved_pebs) { in check_sv()
697 if (sv->vol_type != vol->vol_type) { in check_sv()
701 if (sv->used_ebs > vol->reserved_pebs) { in check_sv()
705 if (sv->data_pad != vol->data_pad) { in check_sv()
713 ubi_dbg_dump_sv(sv); in check_sv()
732 struct ubi_scan_volume *sv; in check_scanning_info() local
751 sv = ubi_scan_find_sv(si, i); in check_scanning_info()
754 if (sv) in check_scanning_info()
755 ubi_scan_rm_volume(si, sv); in check_scanning_info()
762 if (!sv) in check_scanning_info()
772 ubi_msg("finish volume %d removal", sv->vol_id); in check_scanning_info()
773 ubi_scan_rm_volume(si, sv); in check_scanning_info()
774 } else if (sv) { in check_scanning_info()
775 err = check_sv(vol, sv); in check_scanning_info()
796 struct ubi_scan_volume *sv; in ubi_read_volume_table() local
811 sv = ubi_scan_find_sv(si, UBI_LAYOUT_VOLUME_ID); in ubi_read_volume_table()
812 if (!sv) { in ubi_read_volume_table()
830 if (sv->leb_count > UBI_LAYOUT_VOLUME_EBS) { in ubi_read_volume_table()
833 sv->leb_count); in ubi_read_volume_table()
837 ubi->vtbl = process_lvol(ubi, si, sv); in ubi_read_volume_table()