Lines Matching defs:stat
3074 int stat;
3076 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]);
3077 if (stat < 0) {
3080 mtd->ecc_stats.corrected += stat;
3081 max_bitflips = max_t(unsigned int, max_bitflips, stat);
3174 int stat;
3176 stat = chip->ecc.correct(chip, p, &chip->ecc.code_buf[i],
3178 if (stat == -EBADMSG &&
3181 stat = nand_check_erased_ecc_chunk(p, chip->ecc.size,
3188 if (stat < 0) {
3191 mtd->ecc_stats.corrected += stat;
3192 max_bitflips = max_t(unsigned int, max_bitflips, stat);
3247 int stat;
3249 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]);
3250 if (stat == -EBADMSG &&
3253 stat = nand_check_erased_ecc_chunk(p, eccsize,
3259 if (stat < 0) {
3262 mtd->ecc_stats.corrected += stat;
3263 max_bitflips = max_t(unsigned int, max_bitflips, stat);
3307 int stat;
3315 stat = chip->ecc.correct(chip, p, &ecc_code[i], NULL);
3316 if (stat == -EBADMSG &&
3319 stat = nand_check_erased_ecc_chunk(p, eccsize,
3325 if (stat < 0) {
3328 mtd->ecc_stats.corrected += stat;
3329 max_bitflips = max_t(unsigned int, max_bitflips, stat);
3363 int stat;
3386 stat = chip->ecc.correct(chip, p, oob, NULL);
3399 if (stat == -EBADMSG &&
3402 stat = nand_check_erased_ecc_chunk(p, chip->ecc.size,
3409 if (stat < 0) {
3412 mtd->ecc_stats.corrected += stat;
3413 max_bitflips = max_t(unsigned int, max_bitflips, stat);