Lines Matching refs:ec_hdr
434 struct ubi_ec_hdr *ec_hdr; in sync_erase() local
443 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS); in sync_erase()
444 if (!ec_hdr) in sync_erase()
465 ec_hdr->ec = cpu_to_be64(ec); in sync_erase()
467 err = ubi_io_write_ec_hdr(ubi, e->pnum, ec_hdr); in sync_erase()
478 kfree(ec_hdr); in sync_erase()
1709 struct ubi_ec_hdr *ec_hdr; local
1714 ec_hdr = kzalloc(ubi->ec_hdr_alsize, GFP_NOFS);
1715 if (!ec_hdr)
1718 err = ubi_io_read_ec_hdr(ubi, pnum, ec_hdr, 0);
1725 read_ec = be64_to_cpu(ec_hdr->ec);
1735 kfree(ec_hdr);