Lines Matching refs:ech
465 struct ubi_ec_hdr *ech; in scan_pool() local
469 ech = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in scan_pool()
470 if (!ech) in scan_pool()
475 kfree(ech); in scan_pool()
497 err = ubi_io_read_ec_hdr(ubi, pnum, ech, 0); in scan_pool()
510 image_seq = be32_to_cpu(ech->image_seq); in scan_pool()
514 be32_to_cpu(ech->image_seq), ubi->image_seq); in scan_pool()
521 unsigned long long ec = be64_to_cpu(ech->ec); in scan_pool()
542 new_aeb->ec = be64_to_cpu(ech->ec); in scan_pool()
568 kfree(ech); in scan_pool()
883 struct ubi_ec_hdr *ech; in ubi_scan_fastmap() local
942 ech = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in ubi_scan_fastmap()
943 if (!ech) { in ubi_scan_fastmap()
964 ret = ubi_io_read_ec_hdr(ubi, pnum, ech, 0); in ubi_scan_fastmap()
974 image_seq = be32_to_cpu(ech->image_seq); in ubi_scan_fastmap()
984 be32_to_cpu(ech->image_seq), ubi->image_seq); in ubi_scan_fastmap()
1079 kfree(ech); in ubi_scan_fastmap()
1088 kfree(ech); in ubi_scan_fastmap()