Lines Matching full:ech
464 struct ubi_ec_hdr *ech; in scan_pool() local
468 ech = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in scan_pool()
469 if (!ech) in scan_pool()
474 kfree(ech); in scan_pool()
496 err = ubi_io_read_ec_hdr(ubi, pnum, ech, 0); in scan_pool()
509 image_seq = be32_to_cpu(ech->image_seq); in scan_pool()
513 be32_to_cpu(ech->image_seq), ubi->image_seq); in scan_pool()
520 unsigned long long ec = be64_to_cpu(ech->ec); in scan_pool()
541 new_aeb->ec = be64_to_cpu(ech->ec); in scan_pool()
567 kfree(ech); in scan_pool()
882 struct ubi_ec_hdr *ech; in ubi_scan_fastmap() local
941 ech = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in ubi_scan_fastmap()
942 if (!ech) { in ubi_scan_fastmap()
963 ret = ubi_io_read_ec_hdr(ubi, pnum, ech, 0); in ubi_scan_fastmap()
973 image_seq = be32_to_cpu(ech->image_seq); in ubi_scan_fastmap()
983 be32_to_cpu(ech->image_seq), ubi->image_seq); in ubi_scan_fastmap()
1078 kfree(ech); in ubi_scan_fastmap()
1087 kfree(ech); in ubi_scan_fastmap()