Lines Matching refs:ecc_stats
273 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_ecc_stats_corrected_show() local
275 return snprintf(buf, PAGE_SIZE, "%u\n", ecc_stats->corrected); in mtd_ecc_stats_corrected_show()
284 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_ecc_stats_errors_show() local
286 return snprintf(buf, PAGE_SIZE, "%u\n", ecc_stats->failed); in mtd_ecc_stats_errors_show()
294 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_badblocks_show() local
296 return snprintf(buf, PAGE_SIZE, "%u\n", ecc_stats->badblocks); in mtd_badblocks_show()
304 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_bbtblocks_show() local
306 return snprintf(buf, PAGE_SIZE, "%u\n", ecc_stats->bbtblocks); in mtd_bbtblocks_show()
1192 diff = master->ecc_stats; in mtd_update_ecc_stats()
1197 mtd->ecc_stats.failed += diff.failed; in mtd_update_ecc_stats()
1198 mtd->ecc_stats.corrected += diff.corrected; in mtd_update_ecc_stats()
1395 struct mtd_ecc_stats old_stats = master->ecc_stats; in mtd_read_oob()
2030 mtd->ecc_stats.badblocks++; in mtd_block_markbad()