Lines Matching refs:ech
415 struct ubi_ec_hdr *ech; in scan_pool() local
419 ech = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in scan_pool()
420 if (!ech) in scan_pool()
425 kfree(ech); in scan_pool()
449 err = ubi_io_read_ec_hdr(ubi, pnum, ech, 0); in scan_pool()
462 image_seq = be32_to_cpu(ech->image_seq); in scan_pool()
466 be32_to_cpu(ech->image_seq), ubi->image_seq); in scan_pool()
473 unsigned long long ec = be64_to_cpu(ech->ec); in scan_pool()
488 new_aeb = ubi_alloc_aeb(ai, pnum, be64_to_cpu(ech->ec)); in scan_pool()
518 kfree(ech); in scan_pool()
865 struct ubi_ec_hdr *ech; in ubi_scan_fastmap() local
940 ech = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in ubi_scan_fastmap()
941 if (!ech) { in ubi_scan_fastmap()
971 ret = ubi_io_read_ec_hdr(ubi, pnum, ech, 0); in ubi_scan_fastmap()
981 image_seq = be32_to_cpu(ech->image_seq); in ubi_scan_fastmap()
991 be32_to_cpu(ech->image_seq), ubi->image_seq); in ubi_scan_fastmap()
1087 kfree(ech); in ubi_scan_fastmap()
1096 kfree(ech); in ubi_scan_fastmap()