Lines Matching refs:ec_hdr
450 struct ubi_ec_hdr *ec_hdr; in sync_erase() local
459 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS); in sync_erase()
460 if (!ec_hdr) in sync_erase()
481 ec_hdr->ec = cpu_to_be64(ec); in sync_erase()
483 err = ubi_io_write_ec_hdr(ubi, e->pnum, ec_hdr); in sync_erase()
494 kfree(ec_hdr); in sync_erase()
1944 struct ubi_ec_hdr *ec_hdr; local
1949 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS);
1950 if (!ec_hdr)
1953 err = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0);
1960 read_ec = be64_to_cpu(ec_hdr->ec);
1970 kfree(ec_hdr);