Lines Matching full:av
355 * @av: layout volume attaching information
363 struct ubi_ainf_volume *av) in process_lvol() argument
399 ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) { in process_lvol()
525 struct ubi_ainf_volume *av; in init_volumes() local
594 av = ubi_find_av(ai, i); in init_volumes()
595 if (!av || !av->leb_count) { in init_volumes()
607 if (av->leb_count != av->used_ebs) { in init_volumes()
613 av->vol_id, av->used_ebs - av->leb_count); in init_volumes()
618 vol->used_ebs = av->used_ebs; in init_volumes()
621 vol->used_bytes += av->last_data_size; in init_volumes()
622 vol->last_eb_bytes = av->last_data_size; in init_volumes()
669 * @av: volume attaching information
675 const struct ubi_ainf_volume *av) in check_av() argument
679 if (av->highest_lnum >= vol->reserved_pebs) { in check_av()
683 if (av->leb_count > vol->reserved_pebs) { in check_av()
687 if (av->vol_type != vol->vol_type) { in check_av()
691 if (av->used_ebs > vol->reserved_pebs) { in check_av()
695 if (av->data_pad != vol->data_pad) { in check_av()
703 ubi_dump_av(av); in check_av()
722 struct ubi_ainf_volume *av; in check_attaching_info() local
741 av = ubi_find_av(ai, i); in check_attaching_info()
744 if (av) in check_attaching_info()
745 ubi_remove_av(ai, av); in check_attaching_info()
752 if (!av) in check_attaching_info()
762 ubi_msg(ubi, "finish volume %d removal", av->vol_id); in check_attaching_info()
763 ubi_remove_av(ai, av); in check_attaching_info()
764 } else if (av) { in check_attaching_info()
765 err = check_av(vol, av); in check_attaching_info()
786 struct ubi_ainf_volume *av; in ubi_read_volume_table() local
807 av = ubi_find_av(ai, UBI_LAYOUT_VOLUME_ID); in ubi_read_volume_table()
808 if (!av) { in ubi_read_volume_table()
826 if (av->leb_count > UBI_LAYOUT_VOLUME_EBS) { in ubi_read_volume_table()
829 av->leb_count); in ubi_read_volume_table()
833 ubi->vtbl = process_lvol(ubi, ai, av); in ubi_read_volume_table()