Searched refs:ec_hdr (Results 1 – 7 of 7) sorted by relevance
/Linux-v4.19/drivers/mtd/ubi/ |
D | io.c | 97 const struct ubi_ec_hdr *ec_hdr); 468 struct ubi_ec_hdr ec_hdr; in nor_erase_prepare() local 488 err = ubi_io_read_ec_hdr(ubi, pnum, &ec_hdr, 0); in nor_erase_prepare() 637 const struct ubi_ec_hdr *ec_hdr) in validate_ec_hdr() argument 642 ec = be64_to_cpu(ec_hdr->ec); in validate_ec_hdr() 643 vid_hdr_offset = be32_to_cpu(ec_hdr->vid_hdr_offset); in validate_ec_hdr() 644 leb_start = be32_to_cpu(ec_hdr->data_offset); in validate_ec_hdr() 646 if (ec_hdr->version != UBI_VERSION) { in validate_ec_hdr() 648 UBI_VERSION, (int)ec_hdr->version); in validate_ec_hdr() 673 ubi_dump_ec_hdr(ec_hdr); in validate_ec_hdr() [all …]
|
D | debug.c | 64 void ubi_dump_ec_hdr(const struct ubi_ec_hdr *ec_hdr) in ubi_dump_ec_hdr() argument 67 pr_err("\tmagic %#08x\n", be32_to_cpu(ec_hdr->magic)); in ubi_dump_ec_hdr() 68 pr_err("\tversion %d\n", (int)ec_hdr->version); in ubi_dump_ec_hdr() 69 pr_err("\tec %llu\n", (long long)be64_to_cpu(ec_hdr->ec)); in ubi_dump_ec_hdr() 70 pr_err("\tvid_hdr_offset %d\n", be32_to_cpu(ec_hdr->vid_hdr_offset)); in ubi_dump_ec_hdr() 71 pr_err("\tdata_offset %d\n", be32_to_cpu(ec_hdr->data_offset)); in ubi_dump_ec_hdr() 72 pr_err("\timage_seq %d\n", be32_to_cpu(ec_hdr->image_seq)); in ubi_dump_ec_hdr() 73 pr_err("\thdr_crc %#08x\n", be32_to_cpu(ec_hdr->hdr_crc)); in ubi_dump_ec_hdr() 76 ec_hdr, UBI_EC_HDR_SIZE, 1); in ubi_dump_ec_hdr()
|
D | wl.c | 442 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() 1786 struct ubi_ec_hdr *ec_hdr; local 1791 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS); 1792 if (!ec_hdr) 1795 err = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0); [all …]
|
D | debug.h | 25 void ubi_dump_ec_hdr(const struct ubi_ec_hdr *ec_hdr);
|
D | fastmap.c | 1400 struct ubi_ec_hdr *ec_hdr; in erase_block() local 1403 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in erase_block() 1404 if (!ec_hdr) in erase_block() 1407 ret = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0); in erase_block() 1419 ec = be64_to_cpu(ec_hdr->ec); in erase_block() 1426 ec_hdr->ec = cpu_to_be64(ec); in erase_block() 1427 ret = ubi_io_write_ec_hdr(ubi, pnum, ec_hdr); in erase_block() 1433 kfree(ec_hdr); in erase_block()
|
D | attach.c | 788 struct ubi_ec_hdr *ec_hdr; in early_erase_peb() local 800 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in early_erase_peb() 801 if (!ec_hdr) in early_erase_peb() 804 ec_hdr->ec = cpu_to_be64(ec); in early_erase_peb() 810 err = ubi_io_write_ec_hdr(ubi, pnum, ec_hdr); in early_erase_peb() 813 kfree(ec_hdr); in early_erase_peb()
|
D | ubi.h | 942 struct ubi_ec_hdr *ec_hdr, int verbose); 944 struct ubi_ec_hdr *ec_hdr);
|