Searched refs:ec_hdr (Results 1 – 7 of 7) sorted by relevance
| /rk3399_rockchip-uboot/drivers/mtd/ubi/ |
| H A D | io.c | 90 const struct ubi_ec_hdr *ec_hdr); 497 struct ubi_ec_hdr ec_hdr; in nor_erase_prepare() local 516 err = ubi_io_read_ec_hdr(ubi, pnum, &ec_hdr, 0); in nor_erase_prepare() 662 const struct ubi_ec_hdr *ec_hdr) in validate_ec_hdr() argument 667 ec = be64_to_cpu(ec_hdr->ec); in validate_ec_hdr() 668 vid_hdr_offset = be32_to_cpu(ec_hdr->vid_hdr_offset); in validate_ec_hdr() 669 leb_start = be32_to_cpu(ec_hdr->data_offset); in validate_ec_hdr() 671 if (ec_hdr->version != UBI_VERSION) { in validate_ec_hdr() 673 UBI_VERSION, (int)ec_hdr->version); in validate_ec_hdr() 698 ubi_dump_ec_hdr(ec_hdr); in validate_ec_hdr() [all …]
|
| H A D | debug.c | 54 void ubi_dump_ec_hdr(const struct ubi_ec_hdr *ec_hdr) in ubi_dump_ec_hdr() argument 57 pr_err("\tmagic %#08x\n", be32_to_cpu(ec_hdr->magic)); in ubi_dump_ec_hdr() 58 pr_err("\tversion %d\n", (int)ec_hdr->version); in ubi_dump_ec_hdr() 59 pr_err("\tec %llu\n", (long long)be64_to_cpu(ec_hdr->ec)); in ubi_dump_ec_hdr() 60 pr_err("\tvid_hdr_offset %d\n", be32_to_cpu(ec_hdr->vid_hdr_offset)); in ubi_dump_ec_hdr() 61 pr_err("\tdata_offset %d\n", be32_to_cpu(ec_hdr->data_offset)); in ubi_dump_ec_hdr() 62 pr_err("\timage_seq %d\n", be32_to_cpu(ec_hdr->image_seq)); in ubi_dump_ec_hdr() 63 pr_err("\thdr_crc %#08x\n", be32_to_cpu(ec_hdr->hdr_crc)); in ubi_dump_ec_hdr() 66 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 sync_erase() local 444 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS); in sync_erase() 445 if (!ec_hdr) in sync_erase() 466 ec_hdr->ec = cpu_to_be64(ec); in sync_erase() 468 err = ubi_io_write_ec_hdr(ubi, e->pnum, ec_hdr); in sync_erase() 479 kfree(ec_hdr); in sync_erase() 1710 struct ubi_ec_hdr *ec_hdr; local 1715 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS); 1716 if (!ec_hdr) 1719 err = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0); [all …]
|
| H A D | debug.h | 13 void ubi_dump_ec_hdr(const struct ubi_ec_hdr *ec_hdr);
|
| H A D | attach.c | 662 struct ubi_ec_hdr *ec_hdr; in early_erase_peb() local 674 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in early_erase_peb() 675 if (!ec_hdr) in early_erase_peb() 678 ec_hdr->ec = cpu_to_be64(ec); in early_erase_peb() 684 err = ubi_io_write_ec_hdr(ubi, pnum, ec_hdr); in early_erase_peb() 687 kfree(ec_hdr); in early_erase_peb()
|
| H A D | fastmap.c | 1364 struct ubi_ec_hdr *ec_hdr; in erase_block() local 1367 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in erase_block() 1368 if (!ec_hdr) in erase_block() 1371 ret = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0); in erase_block() 1383 ec = be64_to_cpu(ec_hdr->ec); in erase_block() 1390 ec_hdr->ec = cpu_to_be64(ec); in erase_block() 1391 ret = ubi_io_write_ec_hdr(ubi, pnum, ec_hdr); in erase_block() 1397 kfree(ec_hdr); in erase_block()
|
| H A D | ubi.h | 891 struct ubi_ec_hdr *ec_hdr, int verbose); 893 struct ubi_ec_hdr *ec_hdr);
|