Home
last modified time | relevance | path

Searched refs:ec_hdr (Results 1 – 7 of 7) sorted by relevance

/drivers/mtd/ubi/
Dio.c97 const struct ubi_ec_hdr *ec_hdr);
536 struct ubi_ec_hdr ec_hdr; in nor_erase_prepare() local
538 err1 = ubi_io_read_ec_hdr(ubi, pnum, &ec_hdr, 0); in nor_erase_prepare()
677 const struct ubi_ec_hdr *ec_hdr) in validate_ec_hdr() argument
682 ec = be64_to_cpu(ec_hdr->ec); in validate_ec_hdr()
683 vid_hdr_offset = be32_to_cpu(ec_hdr->vid_hdr_offset); in validate_ec_hdr()
684 leb_start = be32_to_cpu(ec_hdr->data_offset); in validate_ec_hdr()
686 if (ec_hdr->version != UBI_VERSION) { in validate_ec_hdr()
688 UBI_VERSION, (int)ec_hdr->version); in validate_ec_hdr()
713 ubi_dump_ec_hdr(ec_hdr); in validate_ec_hdr()
[all …]
Ddebug.c63 void ubi_dump_ec_hdr(const struct ubi_ec_hdr *ec_hdr) in ubi_dump_ec_hdr() argument
66 pr_err("\tmagic %#08x\n", be32_to_cpu(ec_hdr->magic)); in ubi_dump_ec_hdr()
67 pr_err("\tversion %d\n", (int)ec_hdr->version); in ubi_dump_ec_hdr()
68 pr_err("\tec %llu\n", (long long)be64_to_cpu(ec_hdr->ec)); in ubi_dump_ec_hdr()
69 pr_err("\tvid_hdr_offset %d\n", be32_to_cpu(ec_hdr->vid_hdr_offset)); in ubi_dump_ec_hdr()
70 pr_err("\tdata_offset %d\n", be32_to_cpu(ec_hdr->data_offset)); in ubi_dump_ec_hdr()
71 pr_err("\timage_seq %d\n", be32_to_cpu(ec_hdr->image_seq)); in ubi_dump_ec_hdr()
72 pr_err("\thdr_crc %#08x\n", be32_to_cpu(ec_hdr->hdr_crc)); in ubi_dump_ec_hdr()
75 ec_hdr, UBI_EC_HDR_SIZE, 1); in ubi_dump_ec_hdr()
Dwl.c739 struct ubi_ec_hdr *ec_hdr; in sync_erase() local
748 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS); in sync_erase()
749 if (!ec_hdr) in sync_erase()
770 ec_hdr->ec = cpu_to_be64(ec); in sync_erase()
772 err = ubi_io_write_ec_hdr(ubi, e->pnum, ec_hdr); in sync_erase()
783 kfree(ec_hdr); in sync_erase()
2050 struct ubi_ec_hdr *ec_hdr; local
2055 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS);
2056 if (!ec_hdr)
2059 err = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0);
[all …]
Dfastmap.c1297 struct ubi_ec_hdr *ec_hdr; in erase_block() local
1300 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in erase_block()
1301 if (!ec_hdr) in erase_block()
1304 ret = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0); in erase_block()
1316 ec = be64_to_cpu(ec_hdr->ec); in erase_block()
1323 ec_hdr->ec = cpu_to_be64(ec); in erase_block()
1324 ret = ubi_io_write_ec_hdr(ubi, pnum, ec_hdr); in erase_block()
1330 kfree(ec_hdr); in erase_block()
Dattach.c664 struct ubi_ec_hdr *ec_hdr; in early_erase_peb() local
675 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in early_erase_peb()
676 if (!ec_hdr) in early_erase_peb()
679 ec_hdr->ec = cpu_to_be64(ec); in early_erase_peb()
685 err = ubi_io_write_ec_hdr(ubi, pnum, ec_hdr); in early_erase_peb()
688 kfree(ec_hdr); in early_erase_peb()
Ddebug.h25 void ubi_dump_ec_hdr(const struct ubi_ec_hdr *ec_hdr);
Dubi.h830 struct ubi_ec_hdr *ec_hdr, int verbose);
832 struct ubi_ec_hdr *ec_hdr);