Lines Matching refs:ecc

46     struct mtd_ecc_stats initial_ecc, last_ecc, ecc;  in nandread_main()  local
208 ret = ioctl(fd, ECCGETSTATS, &ecc); in nandread_main()
220 if (ecc.corrected != last_ecc.corrected) in nandread_main()
221 printf("ecc corrected, %u, at %" PRIx64 "\n", ecc.corrected - last_ecc.corrected, pos); in nandread_main()
222 if (ecc.failed != last_ecc.failed) in nandread_main()
223 printf("ecc failed, %u, at %" PRIx64 "\n", ecc.failed - last_ecc.failed, pos); in nandread_main()
224 if (ecc.badblocks != last_ecc.badblocks) in nandread_main()
225 printf("ecc badblocks, %u, at %" PRIx64 "\n", ecc.badblocks - last_ecc.badblocks, pos); in nandread_main()
226 if (ecc.bbtblocks != last_ecc.bbtblocks) in nandread_main()
227 printf("ecc bbtblocks, %u, at %" PRIx64 "\n", ecc.bbtblocks - last_ecc.bbtblocks, pos); in nandread_main()
249 if (ecc.corrected != last_ecc.corrected) in nandread_main()
251 if (ecc.failed != last_ecc.failed) in nandread_main()
260 last_ecc = ecc; in nandread_main()
273 fprintf(statusfile, "total ecc corrected, %u\n", ecc.corrected - initial_ecc.corrected); in nandread_main()
274 fprintf(statusfile, "total ecc failed, %u\n", ecc.failed - initial_ecc.failed); in nandread_main()
275 fprintf(statusfile, "total ecc badblocks, %u\n", ecc.badblocks - initial_ecc.badblocks); in nandread_main()
276 fprintf(statusfile, "total ecc bbtblocks, %u\n", ecc.bbtblocks - initial_ecc.bbtblocks); in nandread_main()
279 printf("total ecc corrected, %u\n", ecc.corrected - initial_ecc.corrected); in nandread_main()
280 printf("total ecc failed, %u\n", ecc.failed - initial_ecc.failed); in nandread_main()
281 printf("total ecc badblocks, %u\n", ecc.badblocks - initial_ecc.badblocks); in nandread_main()
282 printf("total ecc bbtblocks, %u\n", ecc.bbtblocks - initial_ecc.bbtblocks); in nandread_main()