Searched refs:ec_hdr (Results 1 – 6 of 6) sorted by relevance
| /linux/drivers/mtd/ubi/ |
| H A D | io.c | 84 const struct ubi_ec_hdr *ec_hdr); 467 struct ubi_ec_hdr ec_hdr; in nor_erase_prepare() local 487 err = ubi_io_read_ec_hdr(ubi, pnum, &ec_hdr, 0); in nor_erase_prepare() 646 const struct ubi_ec_hdr *ec_hdr) in validate_ec_hdr() argument 651 ec = be64_to_cpu(ec_hdr->ec); in validate_ec_hdr() 652 vid_hdr_offset = be32_to_cpu(ec_hdr->vid_hdr_offset); in validate_ec_hdr() 653 leb_start = be32_to_cpu(ec_hdr->data_offset); in validate_ec_hdr() 655 if (ec_hdr->version != UBI_VERSION) { in validate_ec_hdr() 657 UBI_VERSION, (int)ec_hdr->version); in validate_ec_hdr() 682 ubi_dump_ec_hdr(ec_hdr); in validate_ec_hdr() [all …]
|
| H A D | debug.c | 81 void ubi_dump_ec_hdr(const struct ubi_ec_hdr *ec_hdr) in ubi_dump_ec_hdr() argument 84 pr_err("\tmagic %#08x\n", be32_to_cpu(ec_hdr->magic)); in ubi_dump_ec_hdr() 85 pr_err("\tversion %d\n", (int)ec_hdr->version); in ubi_dump_ec_hdr() 86 pr_err("\tec %llu\n", (long long)be64_to_cpu(ec_hdr->ec)); in ubi_dump_ec_hdr() 87 pr_err("\tvid_hdr_offset %d\n", be32_to_cpu(ec_hdr->vid_hdr_offset)); in ubi_dump_ec_hdr() 88 pr_err("\tdata_offset %d\n", be32_to_cpu(ec_hdr->data_offset)); in ubi_dump_ec_hdr() 89 pr_err("\timage_seq %d\n", be32_to_cpu(ec_hdr->image_seq)); in ubi_dump_ec_hdr() 90 pr_err("\thdr_crc %#08x\n", be32_to_cpu(ec_hdr->hdr_crc)); in ubi_dump_ec_hdr() 93 ec_hdr, UBI_EC_HDR_SIZE, 1); in ubi_dump_ec_hdr()
|
| H A D | wl.c | 435 struct ubi_ec_hdr *ec_hdr; in ubi_sync_erase() local 444 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS); in ubi_sync_erase() 445 if (!ec_hdr) in ubi_sync_erase() 466 ec_hdr->ec = cpu_to_be64(ec); in ubi_sync_erase() 468 err = ubi_io_write_ec_hdr(ubi, e->pnum, ec_hdr); in ubi_sync_erase() 479 kfree(ec_hdr); in ubi_sync_erase() 1994 struct ubi_ec_hdr *ec_hdr; local 1999 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS); 2000 if (!ec_hdr) 2003 err = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0); [all …]
|
| H A D | attach.c | 775 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()
|
| H A D | debug.h | 12 void ubi_dump_ec_hdr(const struct ubi_ec_hdr *ec_hdr);
|
| H A D | ubi.h | 948 struct ubi_ec_hdr *ec_hdr, int verbose); 950 struct ubi_ec_hdr *ec_hdr);
|