Lines Matching defs:stat
2755 int stat;
2757 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]);
2758 if (stat < 0) {
2761 mtd->ecc_stats.corrected += stat;
2762 max_bitflips = max_t(unsigned int, max_bitflips, stat);
2855 int stat;
2857 stat = chip->ecc.correct(chip, p, &chip->ecc.code_buf[i],
2859 if (stat == -EBADMSG &&
2862 stat = nand_check_erased_ecc_chunk(p, chip->ecc.size,
2869 if (stat < 0) {
2872 mtd->ecc_stats.corrected += stat;
2873 max_bitflips = max_t(unsigned int, max_bitflips, stat);
2928 int stat;
2930 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]);
2931 if (stat == -EBADMSG &&
2934 stat = nand_check_erased_ecc_chunk(p, eccsize,
2940 if (stat < 0) {
2943 mtd->ecc_stats.corrected += stat;
2944 max_bitflips = max_t(unsigned int, max_bitflips, stat);
2977 int stat;
3000 stat = chip->ecc.correct(chip, p, oob, NULL);
3013 if (stat == -EBADMSG &&
3016 stat = nand_check_erased_ecc_chunk(p, chip->ecc.size,
3023 if (stat < 0) {
3026 mtd->ecc_stats.corrected += stat;
3027 max_bitflips = max_t(unsigned int, max_bitflips, stat);