Home
last modified time | relevance | path

Searched refs:vid_hdr (Results 1 – 8 of 8) sorted by relevance

/external/u-boot/drivers/mtd/ubi/
Deba.c368 struct ubi_vid_hdr *vid_hdr; in ubi_eba_read_leb() local
398 vid_hdr = ubi_zalloc_vid_hdr(ubi, GFP_NOFS); in ubi_eba_read_leb()
399 if (!vid_hdr) { in ubi_eba_read_leb()
404 err = ubi_io_read_vid_hdr(ubi, pnum, vid_hdr, 1); in ubi_eba_read_leb()
429 ubi_assert(lnum < be32_to_cpu(vid_hdr->used_ebs)); in ubi_eba_read_leb()
430 ubi_assert(len == be32_to_cpu(vid_hdr->data_size)); in ubi_eba_read_leb()
432 crc = be32_to_cpu(vid_hdr->data_crc); in ubi_eba_read_leb()
433 ubi_free_vid_hdr(ubi, vid_hdr); in ubi_eba_read_leb()
470 ubi_free_vid_hdr(ubi, vid_hdr); in ubi_eba_read_leb()
554 struct ubi_vid_hdr *vid_hdr; in recover_peb() local
[all …]
Dio.c93 const struct ubi_vid_hdr *vid_hdr);
506 struct ubi_vid_hdr vid_hdr; in nor_erase_prepare() local
524 err = ubi_io_read_vid_hdr(ubi, pnum, &vid_hdr, 0); in nor_erase_prepare()
871 const struct ubi_vid_hdr *vid_hdr) in validate_vid_hdr() argument
873 int vol_type = vid_hdr->vol_type; in validate_vid_hdr()
874 int copy_flag = vid_hdr->copy_flag; in validate_vid_hdr()
875 int vol_id = be32_to_cpu(vid_hdr->vol_id); in validate_vid_hdr()
876 int lnum = be32_to_cpu(vid_hdr->lnum); in validate_vid_hdr()
877 int compat = vid_hdr->compat; in validate_vid_hdr()
878 int data_size = be32_to_cpu(vid_hdr->data_size); in validate_vid_hdr()
[all …]
Dattach.c188 const struct ubi_vid_hdr *vid_hdr, in validate_vid_hdr() argument
191 int vol_type = vid_hdr->vol_type; in validate_vid_hdr()
192 int vol_id = be32_to_cpu(vid_hdr->vol_id); in validate_vid_hdr()
193 int used_ebs = be32_to_cpu(vid_hdr->used_ebs); in validate_vid_hdr()
194 int data_pad = be32_to_cpu(vid_hdr->data_pad); in validate_vid_hdr()
235 ubi_dump_vid_hdr(vid_hdr); in validate_vid_hdr()
255 const struct ubi_vid_hdr *vid_hdr) in add_volume() argument
260 ubi_assert(vol_id == be32_to_cpu(vid_hdr->vol_id)); in add_volume()
284 av->used_ebs = be32_to_cpu(vid_hdr->used_ebs); in add_volume()
285 av->data_pad = be32_to_cpu(vid_hdr->data_pad); in add_volume()
[all …]
Ddebug.c72 void ubi_dump_vid_hdr(const struct ubi_vid_hdr *vid_hdr) in ubi_dump_vid_hdr() argument
75 pr_err("\tmagic %08x\n", be32_to_cpu(vid_hdr->magic)); in ubi_dump_vid_hdr()
76 pr_err("\tversion %d\n", (int)vid_hdr->version); in ubi_dump_vid_hdr()
77 pr_err("\tvol_type %d\n", (int)vid_hdr->vol_type); in ubi_dump_vid_hdr()
78 pr_err("\tcopy_flag %d\n", (int)vid_hdr->copy_flag); in ubi_dump_vid_hdr()
79 pr_err("\tcompat %d\n", (int)vid_hdr->compat); in ubi_dump_vid_hdr()
80 pr_err("\tvol_id %d\n", be32_to_cpu(vid_hdr->vol_id)); in ubi_dump_vid_hdr()
81 pr_err("\tlnum %d\n", be32_to_cpu(vid_hdr->lnum)); in ubi_dump_vid_hdr()
82 pr_err("\tdata_size %d\n", be32_to_cpu(vid_hdr->data_size)); in ubi_dump_vid_hdr()
83 pr_err("\tused_ebs %d\n", be32_to_cpu(vid_hdr->used_ebs)); in ubi_dump_vid_hdr()
[all …]
Dvtbl.c299 struct ubi_vid_hdr *vid_hdr; local
304 vid_hdr = ubi_zalloc_vid_hdr(ubi, GFP_KERNEL);
305 if (!vid_hdr)
315 vid_hdr->vol_type = UBI_LAYOUT_VOLUME_TYPE;
316 vid_hdr->vol_id = cpu_to_be32(UBI_LAYOUT_VOLUME_ID);
317 vid_hdr->compat = UBI_LAYOUT_VOLUME_COMPAT;
318 vid_hdr->data_size = vid_hdr->used_ebs =
319 vid_hdr->data_pad = cpu_to_be32(0);
320 vid_hdr->lnum = cpu_to_be32(copy);
321 vid_hdr->sqnum = cpu_to_be64(++ai->max_sqnum);
[all …]
Dubi.h786 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips);
859 struct ubi_vid_hdr *vid_hdr);
894 struct ubi_vid_hdr *vid_hdr, int verbose);
896 struct ubi_vid_hdr *vid_hdr);
919 int pnum, const struct ubi_vid_hdr *vid_hdr);
1028 void *vid_hdr; in ubi_zalloc_vid_hdr() local
1030 vid_hdr = kzalloc(ubi->vid_hdr_alsize, gfp_flags); in ubi_zalloc_vid_hdr()
1031 if (!vid_hdr) in ubi_zalloc_vid_hdr()
1038 return vid_hdr + ubi->vid_hdr_shift; in ubi_zalloc_vid_hdr()
1047 struct ubi_vid_hdr *vid_hdr) in ubi_free_vid_hdr() argument
[all …]
Dwl.c679 struct ubi_vid_hdr *vid_hdr; local
685 vid_hdr = ubi_zalloc_vid_hdr(ubi, GFP_NOFS);
686 if (!vid_hdr)
782 err = ubi_io_read_vid_hdr(ubi, e1->pnum, vid_hdr, 0);
815 vol_id = be32_to_cpu(vid_hdr->vol_id);
816 lnum = be32_to_cpu(vid_hdr->lnum);
818 err = ubi_eba_copy_leb(ubi, e1->pnum, e2->pnum, vid_hdr);
872 ubi_free_vid_hdr(ubi, vid_hdr);
933 ubi_free_vid_hdr(ubi, vid_hdr);
953 ubi_free_vid_hdr(ubi, vid_hdr);
[all …]
Ddebug.h13 void ubi_dump_vid_hdr(const struct ubi_vid_hdr *vid_hdr);