Lines Matching refs:read_err
735 int err, read_err; in ubi_io_read_ec_hdr() local
741 read_err = ubi_io_read(ubi, ec_hdr, pnum, 0, UBI_EC_HDR_SIZE); in ubi_io_read_ec_hdr()
742 if (read_err) { in ubi_io_read_ec_hdr()
743 if (read_err != UBI_IO_BITFLIPS && !mtd_is_eccerr(read_err)) in ubi_io_read_ec_hdr()
744 return read_err; in ubi_io_read_ec_hdr()
759 if (mtd_is_eccerr(read_err)) in ubi_io_read_ec_hdr()
774 if (!read_err) in ubi_io_read_ec_hdr()
806 if (!read_err) in ubi_io_read_ec_hdr()
823 return read_err ? UBI_IO_BITFLIPS : 0; in ubi_io_read_ec_hdr()
1013 int err, read_err; in ubi_io_read_vid_hdr() local
1021 read_err = ubi_io_read(ubi, p, pnum, ubi->vid_hdr_aloffset, in ubi_io_read_vid_hdr()
1023 if (read_err && read_err != UBI_IO_BITFLIPS && !mtd_is_eccerr(read_err)) in ubi_io_read_vid_hdr()
1024 return read_err; in ubi_io_read_vid_hdr()
1028 if (mtd_is_eccerr(read_err)) in ubi_io_read_vid_hdr()
1037 if (!read_err) in ubi_io_read_vid_hdr()
1064 if (!read_err) in ubi_io_read_vid_hdr()
1076 return read_err ? UBI_IO_BITFLIPS : 0; in ubi_io_read_vid_hdr()