Lines Matching defs:sv
310 struct ubi_scan_volume *sv;
324 sv = ubi_scan_find_sv(si, UBI_LAYOUT_VOLUME_ID);
325 if (sv)
326 old_seb = ubi_scan_find_seb(sv, copy);
383 * @sv: layout volume scanning information
391 struct ubi_scan_volume *sv)
427 ubi_rb_for_each_entry(rb, seb, &sv->root, u.rb) {
554 struct ubi_scan_volume *sv;
610 sv = ubi_scan_find_sv(si, i);
611 if (!sv) {
615 if (sv->leb_count != sv->used_ebs) {
621 sv->vol_id, sv->used_ebs - sv->leb_count);
626 vol->used_ebs = sv->used_ebs;
629 vol->used_bytes += sv->last_data_size;
630 vol->last_eb_bytes = sv->last_data_size;
669 * @sv: volume scanning information
675 const struct ubi_scan_volume *sv)
679 if (sv->highest_lnum >= vol->reserved_pebs) {
683 if (sv->leb_count > vol->reserved_pebs) {
687 if (sv->vol_type != vol->vol_type) {
691 if (sv->used_ebs > vol->reserved_pebs) {
695 if (sv->data_pad != vol->data_pad) {
703 ubi_dbg_dump_sv(sv);
722 struct ubi_scan_volume *sv;
741 sv = ubi_scan_find_sv(si, i);
744 if (sv)
745 ubi_scan_rm_volume(si, sv);
752 if (!sv)
762 ubi_msg("finish volume %d removal", sv->vol_id);
763 ubi_scan_rm_volume(si, sv);
764 } else if (sv) {
765 err = check_sv(vol, sv);
786 struct ubi_scan_volume *sv;
801 sv = ubi_scan_find_sv(si, UBI_LAYOUT_VOLUME_ID);
802 if (!sv) {
820 if (sv->leb_count > UBI_LAYOUT_VOLUME_EBS) {
823 sv->leb_count);
827 ubi->vtbl = process_lvol(ubi, si, sv);