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