Lines Matching refs:ecc_stats
275 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_corrected_bits_show() local
277 return sysfs_emit(buf, "%u\n", ecc_stats->corrected); in mtd_corrected_bits_show()
285 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_ecc_failures_show() local
287 return sysfs_emit(buf, "%u\n", ecc_stats->failed); in mtd_ecc_failures_show()
295 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_bad_blocks_show() local
297 return sysfs_emit(buf, "%u\n", ecc_stats->badblocks); in mtd_bad_blocks_show()
305 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_bbt_blocks_show() local
307 return sysfs_emit(buf, "%u\n", ecc_stats->bbtblocks); in mtd_bbt_blocks_show()
1437 diff = master->ecc_stats; in mtd_update_ecc_stats()
1442 mtd->ecc_stats.failed += diff.failed; in mtd_update_ecc_stats()
1443 mtd->ecc_stats.corrected += diff.corrected; in mtd_update_ecc_stats()
1640 struct mtd_ecc_stats old_stats = master->ecc_stats; in mtd_read_oob()
2292 mtd->ecc_stats.badblocks++; in mtd_block_markbad()