/openbmc/linux/drivers/mtd/ubi/ |
H A D | io.c | 84 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 …]
|
H A D | debug.c | 51 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()
|
H A 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() 2000 struct ubi_ec_hdr *ec_hdr; local 2005 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS); 2006 if (!ec_hdr) 2009 err = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0); [all …]
|
H A D | fastmap.c | 1403 struct ubi_ec_hdr *ec_hdr; in erase_block() local 1406 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in erase_block() 1407 if (!ec_hdr) in erase_block() 1410 ret = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0); in erase_block() 1422 ec = be64_to_cpu(ec_hdr->ec); in erase_block() 1429 ec_hdr->ec = cpu_to_be64(ec); in erase_block() 1430 ret = ubi_io_write_ec_hdr(ubi, pnum, ec_hdr); in erase_block() 1436 kfree(ec_hdr); in erase_block()
|
H A D | debug.h | 12 void ubi_dump_ec_hdr(const struct ubi_ec_hdr *ec_hdr);
|
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 | ubi.h | 930 struct ubi_ec_hdr *ec_hdr, int verbose); 932 struct ubi_ec_hdr *ec_hdr);
|
/openbmc/u-boot/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 | 53 void ubi_dump_ec_hdr(const struct ubi_ec_hdr *ec_hdr) in ubi_dump_ec_hdr() argument 56 pr_err("\tmagic %#08x\n", be32_to_cpu(ec_hdr->magic)); in ubi_dump_ec_hdr() 57 pr_err("\tversion %d\n", (int)ec_hdr->version); in ubi_dump_ec_hdr() 58 pr_err("\tec %llu\n", (long long)be64_to_cpu(ec_hdr->ec)); in ubi_dump_ec_hdr() 59 pr_err("\tvid_hdr_offset %d\n", be32_to_cpu(ec_hdr->vid_hdr_offset)); in ubi_dump_ec_hdr() 60 pr_err("\tdata_offset %d\n", be32_to_cpu(ec_hdr->data_offset)); in ubi_dump_ec_hdr() 61 pr_err("\timage_seq %d\n", be32_to_cpu(ec_hdr->image_seq)); in ubi_dump_ec_hdr() 62 pr_err("\thdr_crc %#08x\n", be32_to_cpu(ec_hdr->hdr_crc)); in ubi_dump_ec_hdr() 65 ec_hdr, UBI_EC_HDR_SIZE, 1); in ubi_dump_ec_hdr()
|
H A D | wl.c | 434 struct ubi_ec_hdr *ec_hdr; in sync_erase() local 443 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS); in sync_erase() 444 if (!ec_hdr) in sync_erase() 465 ec_hdr->ec = cpu_to_be64(ec); in sync_erase() 467 err = ubi_io_write_ec_hdr(ubi, e->pnum, ec_hdr); in sync_erase() 478 kfree(ec_hdr); in sync_erase() 1709 struct ubi_ec_hdr *ec_hdr; local 1714 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS); 1715 if (!ec_hdr) 1718 err = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0); [all …]
|
H A D | fastmap.c | 1363 struct ubi_ec_hdr *ec_hdr; in erase_block() local 1366 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in erase_block() 1367 if (!ec_hdr) in erase_block() 1370 ret = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0); in erase_block() 1382 ec = be64_to_cpu(ec_hdr->ec); in erase_block() 1389 ec_hdr->ec = cpu_to_be64(ec); in erase_block() 1390 ret = ubi_io_write_ec_hdr(ubi, pnum, ec_hdr); in erase_block() 1396 kfree(ec_hdr); in erase_block()
|
H A D | attach.c | 661 struct ubi_ec_hdr *ec_hdr; in early_erase_peb() local 673 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in early_erase_peb() 674 if (!ec_hdr) in early_erase_peb() 677 ec_hdr->ec = cpu_to_be64(ec); in early_erase_peb() 683 err = ubi_io_write_ec_hdr(ubi, pnum, ec_hdr); in early_erase_peb() 686 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 | 890 struct ubi_ec_hdr *ec_hdr, int verbose); 892 struct ubi_ec_hdr *ec_hdr);
|