Lines Matching refs:vidh
91 static struct ubi_vid_hdr *vidh; variable
914 err = ubi_io_read_vid_hdr(ubi, pnum, vidh, 0); in scan_peb()
952 err = check_corruption(ubi, vidh, pnum); in scan_peb()
988 vol_id = be32_to_cpu(vidh->vol_id); in scan_peb()
992 *sqnum = be64_to_cpu(vidh->sqnum); in scan_peb()
994 int lnum = be32_to_cpu(vidh->lnum); in scan_peb()
997 switch (vidh->compat) { in scan_peb()
1035 err = ubi_add_to_av(ubi, ai, pnum, ec, vidh, bitflips); in scan_peb()
1236 vidh = ubi_zalloc_vid_hdr(ubi, GFP_KERNEL); in scan_all()
1237 if (!vidh) in scan_all()
1286 ubi_free_vid_hdr(ubi, vidh); in scan_all()
1292 ubi_free_vid_hdr(ubi, vidh); in scan_all()
1345 vidh = ubi_zalloc_vid_hdr(ubi, GFP_KERNEL); in scan_fast()
1346 if (!vidh) in scan_fast()
1365 ubi_free_vid_hdr(ubi, vidh); in scan_fast()
1379 ubi_free_vid_hdr(ubi, vidh); in scan_fast()
1636 err = ubi_io_read_vid_hdr(ubi, aeb->pnum, vidh, 1); in self_check_ai()
1645 vol_type = vidh->vol_type == UBI_VID_DYNAMIC ? in self_check_ai()
1652 if (aeb->sqnum != be64_to_cpu(vidh->sqnum)) { in self_check_ai()
1657 if (av->vol_id != be32_to_cpu(vidh->vol_id)) { in self_check_ai()
1662 if (av->compat != vidh->compat) { in self_check_ai()
1663 ubi_err(ubi, "bad compat %d", vidh->compat); in self_check_ai()
1667 if (aeb->lnum != be32_to_cpu(vidh->lnum)) { in self_check_ai()
1672 if (av->used_ebs != be32_to_cpu(vidh->used_ebs)) { in self_check_ai()
1677 if (av->data_pad != be32_to_cpu(vidh->data_pad)) { in self_check_ai()
1686 if (av->highest_lnum != be32_to_cpu(vidh->lnum)) { in self_check_ai()
1691 if (av->last_data_size != be32_to_cpu(vidh->data_size)) { in self_check_ai()
1757 ubi_dump_vid_hdr(vidh); in self_check_ai()