Lines Matching refs:ecc_stats
306 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_corrected_bits_show() local
308 return sysfs_emit(buf, "%u\n", ecc_stats->corrected); in mtd_corrected_bits_show()
316 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_ecc_failures_show() local
318 return sysfs_emit(buf, "%u\n", ecc_stats->failed); in mtd_ecc_failures_show()
326 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_bad_blocks_show() local
328 return sysfs_emit(buf, "%u\n", ecc_stats->badblocks); in mtd_bad_blocks_show()
336 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_bbt_blocks_show() local
338 return sysfs_emit(buf, "%u\n", ecc_stats->bbtblocks); in mtd_bbt_blocks_show()
1494 diff = master->ecc_stats; in mtd_update_ecc_stats()
1499 mtd->ecc_stats.failed += diff.failed; in mtd_update_ecc_stats()
1500 mtd->ecc_stats.corrected += diff.corrected; in mtd_update_ecc_stats()
1701 struct mtd_ecc_stats old_stats = master->ecc_stats; in mtd_read_oob()
2353 mtd->ecc_stats.badblocks++; in mtd_block_markbad()