ec_hdr            775 drivers/mtd/ubi/attach.c 	struct ubi_ec_hdr *ec_hdr;
ec_hdr            787 drivers/mtd/ubi/attach.c 	ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL);
ec_hdr            788 drivers/mtd/ubi/attach.c 	if (!ec_hdr)
ec_hdr            791 drivers/mtd/ubi/attach.c 	ec_hdr->ec = cpu_to_be64(ec);
ec_hdr            797 drivers/mtd/ubi/attach.c 	err = ubi_io_write_ec_hdr(ubi, pnum, ec_hdr);
ec_hdr            800 drivers/mtd/ubi/attach.c 	kfree(ec_hdr);
ec_hdr             51 drivers/mtd/ubi/debug.c void ubi_dump_ec_hdr(const struct ubi_ec_hdr *ec_hdr)
ec_hdr             54 drivers/mtd/ubi/debug.c 	pr_err("\tmagic          %#08x\n", be32_to_cpu(ec_hdr->magic));
ec_hdr             55 drivers/mtd/ubi/debug.c 	pr_err("\tversion        %d\n", (int)ec_hdr->version);
ec_hdr             56 drivers/mtd/ubi/debug.c 	pr_err("\tec             %llu\n", (long long)be64_to_cpu(ec_hdr->ec));
ec_hdr             57 drivers/mtd/ubi/debug.c 	pr_err("\tvid_hdr_offset %d\n", be32_to_cpu(ec_hdr->vid_hdr_offset));
ec_hdr             58 drivers/mtd/ubi/debug.c 	pr_err("\tdata_offset    %d\n", be32_to_cpu(ec_hdr->data_offset));
ec_hdr             59 drivers/mtd/ubi/debug.c 	pr_err("\timage_seq      %d\n", be32_to_cpu(ec_hdr->image_seq));
ec_hdr             60 drivers/mtd/ubi/debug.c 	pr_err("\thdr_crc        %#08x\n", be32_to_cpu(ec_hdr->hdr_crc));
ec_hdr             63 drivers/mtd/ubi/debug.c 		       ec_hdr, UBI_EC_HDR_SIZE, 1);
ec_hdr             12 drivers/mtd/ubi/debug.h void ubi_dump_ec_hdr(const struct ubi_ec_hdr *ec_hdr);
ec_hdr           1394 drivers/mtd/ubi/fastmap.c 	struct ubi_ec_hdr *ec_hdr;
ec_hdr           1397 drivers/mtd/ubi/fastmap.c 	ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL);
ec_hdr           1398 drivers/mtd/ubi/fastmap.c 	if (!ec_hdr)
ec_hdr           1401 drivers/mtd/ubi/fastmap.c 	ret = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0);
ec_hdr           1413 drivers/mtd/ubi/fastmap.c 	ec = be64_to_cpu(ec_hdr->ec);
ec_hdr           1420 drivers/mtd/ubi/fastmap.c 	ec_hdr->ec = cpu_to_be64(ec);
ec_hdr           1421 drivers/mtd/ubi/fastmap.c 	ret = ubi_io_write_ec_hdr(ubi, pnum, ec_hdr);
ec_hdr           1427 drivers/mtd/ubi/fastmap.c 	kfree(ec_hdr);
ec_hdr             84 drivers/mtd/ubi/io.c 			     const struct ubi_ec_hdr *ec_hdr);
ec_hdr            455 drivers/mtd/ubi/io.c 	struct ubi_ec_hdr ec_hdr;
ec_hdr            475 drivers/mtd/ubi/io.c 	err = ubi_io_read_ec_hdr(ubi, pnum, &ec_hdr, 0);
ec_hdr            624 drivers/mtd/ubi/io.c 			   const struct ubi_ec_hdr *ec_hdr)
ec_hdr            629 drivers/mtd/ubi/io.c 	ec = be64_to_cpu(ec_hdr->ec);
ec_hdr            630 drivers/mtd/ubi/io.c 	vid_hdr_offset = be32_to_cpu(ec_hdr->vid_hdr_offset);
ec_hdr            631 drivers/mtd/ubi/io.c 	leb_start = be32_to_cpu(ec_hdr->data_offset);
ec_hdr            633 drivers/mtd/ubi/io.c 	if (ec_hdr->version != UBI_VERSION) {
ec_hdr            635 drivers/mtd/ubi/io.c 			UBI_VERSION, (int)ec_hdr->version);
ec_hdr            660 drivers/mtd/ubi/io.c 	ubi_dump_ec_hdr(ec_hdr);
ec_hdr            688 drivers/mtd/ubi/io.c 		       struct ubi_ec_hdr *ec_hdr, int verbose)
ec_hdr            696 drivers/mtd/ubi/io.c 	read_err = ubi_io_read(ubi, ec_hdr, pnum, 0, UBI_EC_HDR_SIZE);
ec_hdr            712 drivers/mtd/ubi/io.c 	magic = be32_to_cpu(ec_hdr->magic);
ec_hdr            722 drivers/mtd/ubi/io.c 		if (ubi_check_pattern(ec_hdr, 0xFF, UBI_EC_HDR_SIZE)) {
ec_hdr            742 drivers/mtd/ubi/io.c 			ubi_dump_ec_hdr(ec_hdr);
ec_hdr            749 drivers/mtd/ubi/io.c 	crc = crc32(UBI_CRC32_INIT, ec_hdr, UBI_EC_HDR_SIZE_CRC);
ec_hdr            750 drivers/mtd/ubi/io.c 	hdr_crc = be32_to_cpu(ec_hdr->hdr_crc);
ec_hdr            756 drivers/mtd/ubi/io.c 			ubi_dump_ec_hdr(ec_hdr);
ec_hdr            768 drivers/mtd/ubi/io.c 	err = validate_ec_hdr(ubi, ec_hdr);
ec_hdr            797 drivers/mtd/ubi/io.c 			struct ubi_ec_hdr *ec_hdr)
ec_hdr            805 drivers/mtd/ubi/io.c 	ec_hdr->magic = cpu_to_be32(UBI_EC_HDR_MAGIC);
ec_hdr            806 drivers/mtd/ubi/io.c 	ec_hdr->version = UBI_VERSION;
ec_hdr            807 drivers/mtd/ubi/io.c 	ec_hdr->vid_hdr_offset = cpu_to_be32(ubi->vid_hdr_offset);
ec_hdr            808 drivers/mtd/ubi/io.c 	ec_hdr->data_offset = cpu_to_be32(ubi->leb_start);
ec_hdr            809 drivers/mtd/ubi/io.c 	ec_hdr->image_seq = cpu_to_be32(ubi->image_seq);
ec_hdr            810 drivers/mtd/ubi/io.c 	crc = crc32(UBI_CRC32_INIT, ec_hdr, UBI_EC_HDR_SIZE_CRC);
ec_hdr            811 drivers/mtd/ubi/io.c 	ec_hdr->hdr_crc = cpu_to_be32(crc);
ec_hdr            813 drivers/mtd/ubi/io.c 	err = self_check_ec_hdr(ubi, pnum, ec_hdr);
ec_hdr            820 drivers/mtd/ubi/io.c 	err = ubi_io_write(ubi, ec_hdr, pnum, 0, ubi->ec_hdr_alsize);
ec_hdr           1114 drivers/mtd/ubi/io.c 			     const struct ubi_ec_hdr *ec_hdr)
ec_hdr           1122 drivers/mtd/ubi/io.c 	magic = be32_to_cpu(ec_hdr->magic);
ec_hdr           1129 drivers/mtd/ubi/io.c 	err = validate_ec_hdr(ubi, ec_hdr);
ec_hdr           1138 drivers/mtd/ubi/io.c 	ubi_dump_ec_hdr(ec_hdr);
ec_hdr           1155 drivers/mtd/ubi/io.c 	struct ubi_ec_hdr *ec_hdr;
ec_hdr           1160 drivers/mtd/ubi/io.c 	ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS);
ec_hdr           1161 drivers/mtd/ubi/io.c 	if (!ec_hdr)
ec_hdr           1164 drivers/mtd/ubi/io.c 	err = ubi_io_read(ubi, ec_hdr, pnum, 0, UBI_EC_HDR_SIZE);
ec_hdr           1168 drivers/mtd/ubi/io.c 	crc = crc32(UBI_CRC32_INIT, ec_hdr, UBI_EC_HDR_SIZE_CRC);
ec_hdr           1169 drivers/mtd/ubi/io.c 	hdr_crc = be32_to_cpu(ec_hdr->hdr_crc);
ec_hdr           1174 drivers/mtd/ubi/io.c 		ubi_dump_ec_hdr(ec_hdr);
ec_hdr           1180 drivers/mtd/ubi/io.c 	err = self_check_ec_hdr(ubi, pnum, ec_hdr);
ec_hdr           1183 drivers/mtd/ubi/io.c 	kfree(ec_hdr);
ec_hdr            930 drivers/mtd/ubi/ubi.h 		       struct ubi_ec_hdr *ec_hdr, int verbose);
ec_hdr            932 drivers/mtd/ubi/ubi.h 			struct ubi_ec_hdr *ec_hdr);
ec_hdr            450 drivers/mtd/ubi/wl.c 	struct ubi_ec_hdr *ec_hdr;
ec_hdr            459 drivers/mtd/ubi/wl.c 	ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS);
ec_hdr            460 drivers/mtd/ubi/wl.c 	if (!ec_hdr)
ec_hdr            481 drivers/mtd/ubi/wl.c 	ec_hdr->ec = cpu_to_be64(ec);
ec_hdr            483 drivers/mtd/ubi/wl.c 	err = ubi_io_write_ec_hdr(ubi, e->pnum, ec_hdr);
ec_hdr            494 drivers/mtd/ubi/wl.c 	kfree(ec_hdr);
ec_hdr           1944 drivers/mtd/ubi/wl.c 	struct ubi_ec_hdr *ec_hdr;
ec_hdr           1949 drivers/mtd/ubi/wl.c 	ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS);
ec_hdr           1950 drivers/mtd/ubi/wl.c 	if (!ec_hdr)
ec_hdr           1953 drivers/mtd/ubi/wl.c 	err = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0);
ec_hdr           1960 drivers/mtd/ubi/wl.c 	read_ec = be64_to_cpu(ec_hdr->ec);
ec_hdr           1970 drivers/mtd/ubi/wl.c 	kfree(ec_hdr);