Lines Matching refs:ech
455 struct ubi_ec_hdr *ech; in scan_pool() local
459 ech = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in scan_pool()
460 if (!ech) in scan_pool()
465 kfree(ech); in scan_pool()
487 err = ubi_io_read_ec_hdr(ubi, pnum, ech, 0); in scan_pool()
500 image_seq = be32_to_cpu(ech->image_seq); in scan_pool()
504 be32_to_cpu(ech->image_seq), ubi->image_seq); in scan_pool()
511 unsigned long long ec = be64_to_cpu(ech->ec); in scan_pool()
532 new_aeb->ec = be64_to_cpu(ech->ec); in scan_pool()
558 kfree(ech); in scan_pool()
860 struct ubi_ec_hdr *ech; in ubi_scan_fastmap() local
919 ech = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in ubi_scan_fastmap()
920 if (!ech) { in ubi_scan_fastmap()
941 ret = ubi_io_read_ec_hdr(ubi, pnum, ech, 0); in ubi_scan_fastmap()
951 image_seq = be32_to_cpu(ech->image_seq); in ubi_scan_fastmap()
961 be32_to_cpu(ech->image_seq), ubi->image_seq); in ubi_scan_fastmap()
1057 kfree(ech); in ubi_scan_fastmap()
1066 kfree(ech); in ubi_scan_fastmap()