Lines Matching refs:ech
957 struct ubi_ec_hdr *ech = ai->ech; in scan_peb() local
974 err = ubi_io_read_ec_hdr(ubi, pnum, ech, 0); in scan_peb()
1012 if (ech->version != UBI_VERSION) { in scan_peb()
1014 UBI_VERSION, (int)ech->version); in scan_peb()
1018 ec = be64_to_cpu(ech->ec); in scan_peb()
1029 ubi_dump_ec_hdr(ech); in scan_peb()
1044 image_seq = be32_to_cpu(ech->image_seq); in scan_peb()
1050 ubi_dump_ec_hdr(ech); in scan_peb()
1396 ai->ech = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in scan_all()
1397 if (!ai->ech) in scan_all()
1451 kfree(ai->ech); in scan_all()
1458 kfree(ai->ech); in scan_all()
1510 scan_ai->ech = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); in scan_fast()
1511 if (!scan_ai->ech) in scan_fast()
1528 kfree(scan_ai->ech); in scan_fast()
1550 kfree(scan_ai->ech); in scan_fast()