Searched full:vid_hdr (Results 1 – 9 of 9) sorted by relevance
| /linux/drivers/mtd/ubi/ |
| H A D | eba.c | 498 struct ubi_vid_hdr *vid_hdr; in check_mapping() local 543 vid_hdr = ubi_get_vid_hdr(vidb); in check_mapping() 544 found_vol_id = be32_to_cpu(vid_hdr->vol_id); in check_mapping() 545 found_lnum = be32_to_cpu(vid_hdr->lnum); in check_mapping() 596 struct ubi_vid_hdr *vid_hdr; in ubi_eba_read_leb() local 638 vid_hdr = ubi_get_vid_hdr(vidb); in ubi_eba_read_leb() 682 ubi_assert(lnum < be32_to_cpu(vid_hdr->used_ebs)); in ubi_eba_read_leb() 683 ubi_assert(len == be32_to_cpu(vid_hdr->data_size)); in ubi_eba_read_leb() 685 crc = be32_to_cpu(vid_hdr->data_crc); in ubi_eba_read_leb() 807 struct ubi_vid_hdr *vid_hdr; in try_recover_peb() local [all …]
|
| H A D | io.c | 87 const struct ubi_vid_hdr *vid_hdr); 477 struct ubi_vid_hdr vid_hdr; in nor_erase_prepare() local 495 ubi_init_vid_buf(ubi, &vidb, &vid_hdr); in nor_erase_prepare() 496 ubi_assert(&vid_hdr == ubi_get_vid_hdr(&vidb)); in nor_erase_prepare() 883 * @vid_hdr: the volume identifier header to check 886 * @vid_hdr. Returns zero if the VID header is OK and %1 if not. 889 const struct ubi_vid_hdr *vid_hdr) in validate_vid_hdr() argument 891 int vol_type = vid_hdr->vol_type; in validate_vid_hdr() 892 int copy_flag = vid_hdr->copy_flag; in validate_vid_hdr() 893 int vol_id = be32_to_cpu(vid_hdr->vol_id); in validate_vid_hdr() [all …]
|
| H A D | attach.c | 287 * @vid_hdr: the volume identifier header 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() 318 * @vid_hdr: the volume identifier header to check 322 * This function checks that data stored in @vid_hdr is consistent. Returns 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() [all …]
|
| H A D | debug.c | 98 * @vid_hdr: the volume identifier header to dump 100 void ubi_dump_vid_hdr(const struct ubi_vid_hdr *vid_hdr) in ubi_dump_vid_hdr() argument 103 pr_err("\tmagic %08x\n", be32_to_cpu(vid_hdr->magic)); in ubi_dump_vid_hdr() 104 pr_err("\tversion %d\n", (int)vid_hdr->version); in ubi_dump_vid_hdr() 105 pr_err("\tvol_type %d\n", (int)vid_hdr->vol_type); in ubi_dump_vid_hdr() 106 pr_err("\tcopy_flag %d\n", (int)vid_hdr->copy_flag); in ubi_dump_vid_hdr() 107 pr_err("\tcompat %d\n", (int)vid_hdr->compat); in ubi_dump_vid_hdr() 108 pr_err("\tvol_id %d\n", be32_to_cpu(vid_hdr->vol_id)); in ubi_dump_vid_hdr() 109 pr_err("\tlnum %d\n", be32_to_cpu(vid_hdr->lnum)); in ubi_dump_vid_hdr() 110 pr_err("\tdata_size %d\n", be32_to_cpu(vid_hdr->data_size)); in ubi_dump_vid_hdr() [all …]
|
| H A D | vtbl.c | 290 struct ubi_vid_hdr *vid_hdr; in create_vtbl() local 299 vid_hdr = ubi_get_vid_hdr(vidb); in create_vtbl() 308 vid_hdr->vol_type = UBI_LAYOUT_VOLUME_TYPE; in create_vtbl() 309 vid_hdr->vol_id = cpu_to_be32(UBI_LAYOUT_VOLUME_ID); in create_vtbl() 310 vid_hdr->compat = UBI_LAYOUT_VOLUME_COMPAT; in create_vtbl() 311 vid_hdr->data_size = vid_hdr->used_ebs = in create_vtbl() 312 vid_hdr->data_pad = cpu_to_be32(0); in create_vtbl() 313 vid_hdr->lnum = cpu_to_be32(copy); in create_vtbl() 314 vid_hdr->sqnum = cpu_to_be64(++ai->max_sqnum); in create_vtbl() 330 err = ubi_add_to_av(ubi, ai, new_aeb->pnum, new_aeb->ec, vid_hdr, 0); in create_vtbl()
|
| H A D | debug.h | 13 void ubi_dump_vid_hdr(const struct ubi_vid_hdr *vid_hdr);
|
| H A D | wl.c | 647 struct ubi_vid_hdr *vid_hdr; local 658 vid_hdr = ubi_get_vid_hdr(vidb); 812 vol_id = be32_to_cpu(vid_hdr->vol_id); 813 lnum = be32_to_cpu(vid_hdr->lnum);
|
| H A D | ubi.h | 844 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips); 981 int pnum, const struct ubi_vid_hdr *vid_hdr);
|
| H A D | fastmap.c | 1339 ubi_err(ubi, "unable to write vid_hdr to fastmap SB!"); in ubi_write_fastmap() 1360 ubi_err(ubi, "unable to write vid_hdr to PEB %i!", in ubi_write_fastmap()
|