Lines Matching refs:vidh
56 static struct ubi_vid_hdr *vidh;
259 struct ubi_vid_hdr *vidh = NULL;
292 vidh = ubi_zalloc_vid_hdr(ubi);
293 if (!vidh)
296 err = ubi_io_read_vid_hdr(ubi, pnum, vidh, 0);
310 if (!vidh->copy_flag) {
318 vid_hdr = vidh;
348 ubi_free_vid_hdr(ubi, vidh);
360 ubi_free_vid_hdr(ubi, vidh);
793 err = ubi_io_read_vid_hdr(ubi, pnum, vidh, 0);
813 vol_id = ubi32_to_cpu(vidh->vol_id);
815 int lnum = ubi32_to_cpu(vidh->lnum);
818 switch (vidh->compat) {
851 err = ubi_scan_add_used(ubi, si, pnum, ec, vidh, bitflips);
906 vidh = ubi_zalloc_vid_hdr(ubi);
907 if (!vidh)
958 ubi_free_vid_hdr(ubi, vidh);
964 ubi_free_vid_hdr(ubi, vidh);
1203 err = ubi_io_read_vid_hdr(ubi, seb->pnum, vidh, 1);
1211 vol_type = vidh->vol_type == UBI_VID_DYNAMIC ?
1218 if (seb->sqnum != ubi64_to_cpu(vidh->sqnum)) {
1223 if (sv->vol_id != ubi32_to_cpu(vidh->vol_id)) {
1228 if (sv->compat != vidh->compat) {
1229 ubi_err("bad compat %d", vidh->compat);
1233 if (seb->lnum != ubi32_to_cpu(vidh->lnum)) {
1238 if (sv->used_ebs != ubi32_to_cpu(vidh->used_ebs)) {
1243 if (sv->data_pad != ubi32_to_cpu(vidh->data_pad)) {
1248 if (seb->leb_ver != ubi32_to_cpu(vidh->leb_ver)) {
1257 if (sv->highest_lnum != ubi32_to_cpu(vidh->lnum)) {
1262 if (sv->last_data_size != ubi32_to_cpu(vidh->data_size)) {
1327 ubi_dbg_dump_vid_hdr(vidh);