Lines Matching refs:read_err
697 int err, read_err; in ubi_io_read_ec_hdr() local
703 read_err = ubi_io_read(ubi, ec_hdr, pnum, 0, UBI_EC_HDR_SIZE); in ubi_io_read_ec_hdr()
704 if (read_err) { in ubi_io_read_ec_hdr()
705 if (read_err != UBI_IO_BITFLIPS && !mtd_is_eccerr(read_err)) in ubi_io_read_ec_hdr()
706 return read_err; in ubi_io_read_ec_hdr()
721 if (mtd_is_eccerr(read_err)) in ubi_io_read_ec_hdr()
736 if (!read_err) in ubi_io_read_ec_hdr()
768 if (!read_err) in ubi_io_read_ec_hdr()
785 return read_err ? UBI_IO_BITFLIPS : 0; in ubi_io_read_ec_hdr()
969 int err, read_err; in ubi_io_read_vid_hdr() local
977 read_err = ubi_io_read(ubi, p, pnum, ubi->vid_hdr_aloffset, in ubi_io_read_vid_hdr()
979 if (read_err && read_err != UBI_IO_BITFLIPS && !mtd_is_eccerr(read_err)) in ubi_io_read_vid_hdr()
980 return read_err; in ubi_io_read_vid_hdr()
984 if (mtd_is_eccerr(read_err)) in ubi_io_read_vid_hdr()
993 if (!read_err) in ubi_io_read_vid_hdr()
1020 if (!read_err) in ubi_io_read_vid_hdr()
1032 return read_err ? UBI_IO_BITFLIPS : 0; in ubi_io_read_vid_hdr()