Home
last modified time | relevance | path

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

/u-boot/drivers/mtd/ubi/
A Dio.c500 struct ubi_ec_hdr ec_hdr; in nor_erase_prepare() local
670 ec = be64_to_cpu(ec_hdr->ec); in validate_ec_hdr()
701 ubi_dump_ec_hdr(ec_hdr); in validate_ec_hdr()
783 ubi_dump_ec_hdr(ec_hdr); in ubi_io_read_ec_hdr()
797 ubi_dump_ec_hdr(ec_hdr); in ubi_io_read_ec_hdr()
838 struct ubi_ec_hdr *ec_hdr) in ubi_io_write_ec_hdr() argument
1175 ubi_dump_ec_hdr(ec_hdr); in self_check_ec_hdr()
1192 struct ubi_ec_hdr *ec_hdr; in self_check_peb_ec_hdr() local
1198 if (!ec_hdr) in self_check_peb_ec_hdr()
1211 ubi_dump_ec_hdr(ec_hdr); in self_check_peb_ec_hdr()
[all …]
A Ddebug.c55 void ubi_dump_ec_hdr(const struct ubi_ec_hdr *ec_hdr) in ubi_dump_ec_hdr() argument
58 pr_err("\tmagic %#08x\n", be32_to_cpu(ec_hdr->magic)); in ubi_dump_ec_hdr()
59 pr_err("\tversion %d\n", (int)ec_hdr->version); in ubi_dump_ec_hdr()
60 pr_err("\tec %llu\n", (long long)be64_to_cpu(ec_hdr->ec)); in ubi_dump_ec_hdr()
61 pr_err("\tvid_hdr_offset %d\n", be32_to_cpu(ec_hdr->vid_hdr_offset)); in ubi_dump_ec_hdr()
62 pr_err("\tdata_offset %d\n", be32_to_cpu(ec_hdr->data_offset)); in ubi_dump_ec_hdr()
63 pr_err("\timage_seq %d\n", be32_to_cpu(ec_hdr->image_seq)); in ubi_dump_ec_hdr()
64 pr_err("\thdr_crc %#08x\n", be32_to_cpu(ec_hdr->hdr_crc)); in ubi_dump_ec_hdr()
67 ec_hdr, UBI_EC_HDR_SIZE, 1); in ubi_dump_ec_hdr()
A Dwl.c436 struct ubi_ec_hdr *ec_hdr; in sync_erase() local
445 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS); in sync_erase()
446 if (!ec_hdr) in sync_erase()
467 ec_hdr->ec = cpu_to_be64(ec); in sync_erase()
469 err = ubi_io_write_ec_hdr(ubi, e->pnum, ec_hdr); in sync_erase()
480 kfree(ec_hdr); in sync_erase()
1711 struct ubi_ec_hdr *ec_hdr; local
1716 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS);
1717 if (!ec_hdr)
1727 read_ec = be64_to_cpu(ec_hdr->ec);
[all …]
A Ddebug.h12 void ubi_dump_ec_hdr(const struct ubi_ec_hdr *ec_hdr);
A Dattach.c665 struct ubi_ec_hdr *ec_hdr; in early_erase_peb() local
677 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in early_erase_peb()
678 if (!ec_hdr) in early_erase_peb()
681 ec_hdr->ec = cpu_to_be64(ec); in early_erase_peb()
687 err = ubi_io_write_ec_hdr(ubi, pnum, ec_hdr); in early_erase_peb()
690 kfree(ec_hdr); in early_erase_peb()
A Dfastmap.c1368 struct ubi_ec_hdr *ec_hdr; in erase_block() local
1371 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in erase_block()
1372 if (!ec_hdr) in erase_block()
1375 ret = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0); in erase_block()
1387 ec = be64_to_cpu(ec_hdr->ec); in erase_block()
1394 ec_hdr->ec = cpu_to_be64(ec); in erase_block()
1395 ret = ubi_io_write_ec_hdr(ubi, pnum, ec_hdr); in erase_block()
1401 kfree(ec_hdr); in erase_block()
A Dubi.h894 struct ubi_ec_hdr *ec_hdr, int verbose);
896 struct ubi_ec_hdr *ec_hdr);

Completed in 17 milliseconds