Home
last modified time | relevance | path

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

/drivers/mtd/ubi/
Dio.c84 const struct ubi_ec_hdr *ec_hdr);
455 struct ubi_ec_hdr ec_hdr; in nor_erase_prepare() local
475 err = ubi_io_read_ec_hdr(ubi, pnum, &ec_hdr, 0); in nor_erase_prepare()
631 const struct ubi_ec_hdr *ec_hdr) in validate_ec_hdr() argument
636 ec = be64_to_cpu(ec_hdr->ec); in validate_ec_hdr()
637 vid_hdr_offset = be32_to_cpu(ec_hdr->vid_hdr_offset); in validate_ec_hdr()
638 leb_start = be32_to_cpu(ec_hdr->data_offset); in validate_ec_hdr()
640 if (ec_hdr->version != UBI_VERSION) { in validate_ec_hdr()
642 UBI_VERSION, (int)ec_hdr->version); in validate_ec_hdr()
667 ubi_dump_ec_hdr(ec_hdr); in validate_ec_hdr()
[all …]
Ddebug.c51 void ubi_dump_ec_hdr(const struct ubi_ec_hdr *ec_hdr) in ubi_dump_ec_hdr() argument
54 pr_err("\tmagic %#08x\n", be32_to_cpu(ec_hdr->magic)); in ubi_dump_ec_hdr()
55 pr_err("\tversion %d\n", (int)ec_hdr->version); in ubi_dump_ec_hdr()
56 pr_err("\tec %llu\n", (long long)be64_to_cpu(ec_hdr->ec)); in ubi_dump_ec_hdr()
57 pr_err("\tvid_hdr_offset %d\n", be32_to_cpu(ec_hdr->vid_hdr_offset)); in ubi_dump_ec_hdr()
58 pr_err("\tdata_offset %d\n", be32_to_cpu(ec_hdr->data_offset)); in ubi_dump_ec_hdr()
59 pr_err("\timage_seq %d\n", be32_to_cpu(ec_hdr->image_seq)); in ubi_dump_ec_hdr()
60 pr_err("\thdr_crc %#08x\n", be32_to_cpu(ec_hdr->hdr_crc)); in ubi_dump_ec_hdr()
63 ec_hdr, UBI_EC_HDR_SIZE, 1); in ubi_dump_ec_hdr()
Dwl.c442 struct ubi_ec_hdr *ec_hdr; in sync_erase() local
451 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS); in sync_erase()
452 if (!ec_hdr) in sync_erase()
473 ec_hdr->ec = cpu_to_be64(ec); in sync_erase()
475 err = ubi_io_write_ec_hdr(ubi, e->pnum, ec_hdr); in sync_erase()
486 kfree(ec_hdr); in sync_erase()
1993 struct ubi_ec_hdr *ec_hdr; local
1998 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS);
1999 if (!ec_hdr)
2002 err = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0);
[all …]
Dfastmap.c1402 struct ubi_ec_hdr *ec_hdr; in erase_block() local
1405 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in erase_block()
1406 if (!ec_hdr) in erase_block()
1409 ret = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0); in erase_block()
1421 ec = be64_to_cpu(ec_hdr->ec); in erase_block()
1428 ec_hdr->ec = cpu_to_be64(ec); in erase_block()
1429 ret = ubi_io_write_ec_hdr(ubi, pnum, ec_hdr); in erase_block()
1435 kfree(ec_hdr); in erase_block()
Dattach.c775 struct ubi_ec_hdr *ec_hdr; in early_erase_peb() local
787 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in early_erase_peb()
788 if (!ec_hdr) in early_erase_peb()
791 ec_hdr->ec = cpu_to_be64(ec); in early_erase_peb()
797 err = ubi_io_write_ec_hdr(ubi, pnum, ec_hdr); in early_erase_peb()
800 kfree(ec_hdr); in early_erase_peb()
Ddebug.h12 void ubi_dump_ec_hdr(const struct ubi_ec_hdr *ec_hdr);
Dubi.h930 struct ubi_ec_hdr *ec_hdr, int verbose);
932 struct ubi_ec_hdr *ec_hdr);