Lines Matching refs:vh
468 struct ubi_vid_hdr *vh; in scan_pool() local
477 vh = ubi_zalloc_vid_hdr(ubi, GFP_KERNEL); in scan_pool()
478 if (!vh) { in scan_pool()
523 err = ubi_io_read_vid_hdr(ubi, pnum, vh, 0); in scan_pool()
548 new_aeb->lnum = be32_to_cpu(vh->lnum); in scan_pool()
549 new_aeb->sqnum = be64_to_cpu(vh->sqnum); in scan_pool()
550 new_aeb->copy_flag = vh->copy_flag; in scan_pool()
556 err = process_pool_aeb(ubi, ai, vh, new_aeb); in scan_pool()
571 ubi_free_vid_hdr(ubi, vh); in scan_pool()
886 struct ubi_vid_hdr *vh; in ubi_scan_fastmap() local
952 vh = ubi_zalloc_vid_hdr(ubi, GFP_KERNEL); in ubi_scan_fastmap()
953 if (!vh) { in ubi_scan_fastmap()
993 ret = ubi_io_read_vid_hdr(ubi, pnum, vh, 0); in ubi_scan_fastmap()
1001 if (be32_to_cpu(vh->vol_id) != UBI_FM_SB_VOLUME_ID) { in ubi_scan_fastmap()
1003 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
1009 if (be32_to_cpu(vh->vol_id) != UBI_FM_DATA_VOLUME_ID) { in ubi_scan_fastmap()
1011 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
1018 if (sqnum < be64_to_cpu(vh->sqnum)) in ubi_scan_fastmap()
1019 sqnum = be64_to_cpu(vh->sqnum); in ubi_scan_fastmap()
1082 ubi_free_vid_hdr(ubi, vh); in ubi_scan_fastmap()
1091 ubi_free_vid_hdr(ubi, vh); in ubi_scan_fastmap()
1422 struct ubi_vid_hdr *vh = NULL; in invalidate_fastmap() local
1434 vh = new_fm_vhdr(ubi, UBI_FM_SB_VOLUME_ID); in invalidate_fastmap()
1435 if (!vh) in invalidate_fastmap()
1447 vh->sqnum = cpu_to_be64(ubi_next_sqnum(ubi)); in invalidate_fastmap()
1448 ret = ubi_io_write_vid_hdr(ubi, e->pnum, vh); in invalidate_fastmap()
1460 ubi_free_vid_hdr(ubi, vh); in invalidate_fastmap()