Lines Matching refs:vidh
946 struct ubi_vid_hdr *vidh = ubi_get_vid_hdr(vidb); in scan_peb() local
1097 err = check_corruption(ubi, vidh, pnum); in scan_peb()
1133 vol_id = be32_to_cpu(vidh->vol_id); in scan_peb()
1135 int lnum = be32_to_cpu(vidh->lnum); in scan_peb()
1138 switch (vidh->compat) { in scan_peb()
1176 err = add_fastmap(ai, pnum, vidh, ec); in scan_peb()
1178 err = ubi_add_to_av(ubi, ai, pnum, ec, vidh, bitflips); in scan_peb()
1661 struct ubi_vid_hdr *vidh = ubi_get_vid_hdr(vidb); in self_check_ai() local
1806 vol_type = vidh->vol_type == UBI_VID_DYNAMIC ? in self_check_ai()
1813 if (aeb->sqnum != be64_to_cpu(vidh->sqnum)) { in self_check_ai()
1818 if (av->vol_id != be32_to_cpu(vidh->vol_id)) { in self_check_ai()
1823 if (av->compat != vidh->compat) { in self_check_ai()
1824 ubi_err(ubi, "bad compat %d", vidh->compat); in self_check_ai()
1828 if (aeb->lnum != be32_to_cpu(vidh->lnum)) { in self_check_ai()
1833 if (av->used_ebs != be32_to_cpu(vidh->used_ebs)) { in self_check_ai()
1838 if (av->data_pad != be32_to_cpu(vidh->data_pad)) { in self_check_ai()
1847 if (av->highest_lnum != be32_to_cpu(vidh->lnum)) { in self_check_ai()
1852 if (av->last_data_size != be32_to_cpu(vidh->data_size)) { in self_check_ai()
1918 ubi_dump_vid_hdr(vidh); in self_check_ai()