Lines Matching full:ech
405 struct ubi_ec_hdr *ech; in scan_pool() local
409 ech = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in scan_pool()
410 if (!ech) in scan_pool()
415 kfree(ech); in scan_pool()
439 err = ubi_io_read_ec_hdr(ubi, pnum, ech, 0); in scan_pool()
452 image_seq = be32_to_cpu(ech->image_seq); in scan_pool()
456 be32_to_cpu(ech->image_seq), ubi->image_seq); in scan_pool()
463 unsigned long long ec = be64_to_cpu(ech->ec); in scan_pool()
480 new_aeb = ubi_alloc_aeb(ai, pnum, be64_to_cpu(ech->ec)); in scan_pool()
510 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()