Lines Matching refs:ech
457 struct ubi_ec_hdr *ech; in scan_pool() local
461 ech = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in scan_pool()
462 if (!ech) in scan_pool()
467 kfree(ech); in scan_pool()
489 err = ubi_io_read_ec_hdr(ubi, pnum, ech, 0); in scan_pool()
502 image_seq = be32_to_cpu(ech->image_seq); in scan_pool()
506 be32_to_cpu(ech->image_seq), ubi->image_seq); in scan_pool()
513 unsigned long long ec = be64_to_cpu(ech->ec); in scan_pool()
534 new_aeb->ec = be64_to_cpu(ech->ec); in scan_pool()
560 kfree(ech); in scan_pool()
867 struct ubi_ec_hdr *ech; in ubi_scan_fastmap() local
926 ech = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in ubi_scan_fastmap()
927 if (!ech) { in ubi_scan_fastmap()
948 ret = ubi_io_read_ec_hdr(ubi, pnum, ech, 0); in ubi_scan_fastmap()
958 image_seq = be32_to_cpu(ech->image_seq); in ubi_scan_fastmap()
968 be32_to_cpu(ech->image_seq), ubi->image_seq); in ubi_scan_fastmap()
1064 kfree(ech); in ubi_scan_fastmap()
1073 kfree(ech); in ubi_scan_fastmap()