• Home
  • Raw
  • Download

Lines Matching refs:vid_hdr

297 		       struct ubi_vid_hdr *vid_hdr, int ec)  in add_fastmap()  argument
305 aeb->vol_id = be32_to_cpu(vid_hdr->vol_id); in add_fastmap()
306 aeb->sqnum = be64_to_cpu(vid_hdr->sqnum); in add_fastmap()
331 const struct ubi_vid_hdr *vid_hdr, in validate_vid_hdr() argument
334 int vol_type = vid_hdr->vol_type; in validate_vid_hdr()
335 int vol_id = be32_to_cpu(vid_hdr->vol_id); in validate_vid_hdr()
336 int used_ebs = be32_to_cpu(vid_hdr->used_ebs); in validate_vid_hdr()
337 int data_pad = be32_to_cpu(vid_hdr->data_pad); in validate_vid_hdr()
378 ubi_dump_vid_hdr(vid_hdr); in validate_vid_hdr()
398 const struct ubi_vid_hdr *vid_hdr) in add_volume() argument
403 ubi_assert(vol_id == be32_to_cpu(vid_hdr->vol_id)); in add_volume()
409 av->used_ebs = be32_to_cpu(vid_hdr->used_ebs); in add_volume()
410 av->data_pad = be32_to_cpu(vid_hdr->data_pad); in add_volume()
411 av->compat = vid_hdr->compat; in add_volume()
412 av->vol_type = vid_hdr->vol_type == UBI_VID_DYNAMIC ? UBI_DYNAMIC_VOLUME in add_volume()
439 int pnum, const struct ubi_vid_hdr *vid_hdr) in ubi_compare_lebs() argument
444 unsigned long long sqnum2 = be64_to_cpu(vid_hdr->sqnum); in ubi_compare_lebs()
472 if (!vid_hdr->copy_flag) { in ubi_compare_lebs()
505 vid_hdr = ubi_get_vid_hdr(vidb); in ubi_compare_lebs()
510 len = be32_to_cpu(vid_hdr->data_size); in ubi_compare_lebs()
517 data_crc = be32_to_cpu(vid_hdr->data_crc); in ubi_compare_lebs()
564 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips) in ubi_add_to_av() argument
572 vol_id = be32_to_cpu(vid_hdr->vol_id); in ubi_add_to_av()
573 lnum = be32_to_cpu(vid_hdr->lnum); in ubi_add_to_av()
574 sqnum = be64_to_cpu(vid_hdr->sqnum); in ubi_add_to_av()
579 av = add_volume(ai, vol_id, pnum, vid_hdr); in ubi_add_to_av()
629 ubi_dump_vid_hdr(vid_hdr); in ubi_add_to_av()
637 cmp_res = ubi_compare_lebs(ubi, aeb, pnum, vid_hdr); in ubi_add_to_av()
646 err = validate_vid_hdr(ubi, vid_hdr, av, pnum); in ubi_add_to_av()
661 aeb->copy_flag = vid_hdr->copy_flag; in ubi_add_to_av()
666 be32_to_cpu(vid_hdr->data_size); in ubi_add_to_av()
684 err = validate_vid_hdr(ubi, vid_hdr, av, pnum); in ubi_add_to_av()
695 aeb->copy_flag = vid_hdr->copy_flag; in ubi_add_to_av()
700 av->last_data_size = be32_to_cpu(vid_hdr->data_size); in ubi_add_to_av()
872 static int check_corruption(struct ubi_device *ubi, struct ubi_vid_hdr *vid_hdr, in check_corruption() argument
903 ubi_dump_vid_hdr(vid_hdr); in check_corruption()