Lines Matching refs:ecc_stats
305 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_corrected_bits_show() local
307 return sysfs_emit(buf, "%u\n", ecc_stats->corrected); in mtd_corrected_bits_show()
315 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_ecc_failures_show() local
317 return sysfs_emit(buf, "%u\n", ecc_stats->failed); in mtd_ecc_failures_show()
325 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_bad_blocks_show() local
327 return sysfs_emit(buf, "%u\n", ecc_stats->badblocks); in mtd_bad_blocks_show()
335 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_bbt_blocks_show() local
337 return sysfs_emit(buf, "%u\n", ecc_stats->bbtblocks); in mtd_bbt_blocks_show()
1485 diff = master->ecc_stats; in mtd_update_ecc_stats()
1490 mtd->ecc_stats.failed += diff.failed; in mtd_update_ecc_stats()
1491 mtd->ecc_stats.corrected += diff.corrected; in mtd_update_ecc_stats()
1688 struct mtd_ecc_stats old_stats = master->ecc_stats; in mtd_read_oob()
2340 mtd->ecc_stats.badblocks++; in mtd_block_markbad()