Lines Matching full:ecc
46 struct mtd_ecc_stats initial_ecc, last_ecc, ecc;
153 fprintf(stderr, "failed get ecc layout for %s, %s\n",
158 printf("ecc bytes: %u\n", ecclayout.eccbytes);
166 fprintf(stderr, "failed get ecc stats for %s, %s\n",
173 printf("initial ecc corrected: %u\n", initial_ecc.corrected);
174 printf("initial ecc failed: %u\n", initial_ecc.failed);
175 printf("initial ecc badblocks: %u\n", initial_ecc.badblocks);
176 printf("initial ecc bbtblocks: %u\n", initial_ecc.bbtblocks);
208 ret = ioctl(fd, ECCGETSTATS, &ecc);
210 fprintf(stderr, "failed get ecc stats for %s, %s\n",
220 if (ecc.corrected != last_ecc.corrected)
221 printf("ecc corrected, %u, at %" PRIx64 "\n", ecc.corrected - last_ecc.corrected, pos);
222 if (ecc.failed != last_ecc.failed)
223 printf("ecc failed, %u, at %" PRIx64 "\n", ecc.failed - last_ecc.failed, pos);
224 if (ecc.badblocks != last_ecc.badblocks)
225 printf("ecc badblocks, %u, at %" PRIx64 "\n", ecc.badblocks - last_ecc.badblocks, pos);
226 if (ecc.bbtblocks != last_ecc.bbtblocks)
227 printf("ecc bbtblocks, %u, at %" PRIx64 "\n", ecc.bbtblocks - last_ecc.bbtblocks, pos);
249 if (ecc.corrected != last_ecc.corrected)
250 fprintf(statusfile, "%08" PRIx64 ": ecc corrected\n", opos);
251 if (ecc.failed != last_ecc.failed)
252 fprintf(statusfile, "%08" PRIx64 ": ecc failed\n", opos);
260 last_ecc = ecc;
273 fprintf(statusfile, "total ecc corrected, %u\n", ecc.corrected - initial_ecc.corrected);
274 fprintf(statusfile, "total ecc failed, %u\n", ecc.failed - initial_ecc.failed);
275 fprintf(statusfile, "total ecc badblocks, %u\n", ecc.badblocks - initial_ecc.badblocks);
276 fprintf(statusfile, "total ecc bbtblocks, %u\n", ecc.bbtblocks - initial_ecc.bbtblocks);
279 printf("total ecc corrected, %u\n", ecc.corrected - initial_ecc.corrected);
280 printf("total ecc failed, %u\n", ecc.failed - initial_ecc.failed);
281 printf("total ecc badblocks, %u\n", ecc.badblocks - initial_ecc.badblocks);
282 printf("total ecc bbtblocks, %u\n", ecc.bbtblocks - initial_ecc.bbtblocks);