Lines Matching refs:read_err
728 int err, read_err; in ubi_io_read_ec_hdr() local
734 read_err = ubi_io_read(ubi, ec_hdr, pnum, 0, UBI_EC_HDR_SIZE); in ubi_io_read_ec_hdr()
735 if (read_err) { in ubi_io_read_ec_hdr()
736 if (read_err != UBI_IO_BITFLIPS && !mtd_is_eccerr(read_err)) in ubi_io_read_ec_hdr()
737 return read_err; in ubi_io_read_ec_hdr()
752 if (mtd_is_eccerr(read_err)) in ubi_io_read_ec_hdr()
767 if (!read_err) in ubi_io_read_ec_hdr()
799 if (!read_err) in ubi_io_read_ec_hdr()
816 return read_err ? UBI_IO_BITFLIPS : 0; in ubi_io_read_ec_hdr()
1001 int err, read_err; in ubi_io_read_vid_hdr() local
1009 read_err = ubi_io_read(ubi, p, pnum, ubi->vid_hdr_aloffset, in ubi_io_read_vid_hdr()
1011 if (read_err && read_err != UBI_IO_BITFLIPS && !mtd_is_eccerr(read_err)) in ubi_io_read_vid_hdr()
1012 return read_err; in ubi_io_read_vid_hdr()
1016 if (mtd_is_eccerr(read_err)) in ubi_io_read_vid_hdr()
1025 if (!read_err) in ubi_io_read_vid_hdr()
1052 if (!read_err) in ubi_io_read_vid_hdr()
1064 return read_err ? UBI_IO_BITFLIPS : 0; in ubi_io_read_vid_hdr()