Lines Matching refs:ec_hdr
435 struct ubi_ec_hdr *ec_hdr; in sync_erase() local
444 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS); in sync_erase()
445 if (!ec_hdr) in sync_erase()
466 ec_hdr->ec = cpu_to_be64(ec); in sync_erase()
468 err = ubi_io_write_ec_hdr(ubi, e->pnum, ec_hdr); in sync_erase()
479 kfree(ec_hdr); in sync_erase()
1710 struct ubi_ec_hdr *ec_hdr; local
1715 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS);
1716 if (!ec_hdr)
1719 err = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0);
1726 read_ec = be64_to_cpu(ec_hdr->ec);
1736 kfree(ec_hdr);