Home | History | Annotate | Download | only in toolbox

Lines Matching defs:ecc

45     struct mtd_ecc_stats initial_ecc, last_ecc, ecc;
152 fprintf(stderr, "failed get ecc layout for %s, %s\n",
157 printf("ecc bytes: %u\n", ecclayout.eccbytes);
165 fprintf(stderr, "failed get ecc stats for %s, %s\n",
172 printf("initial ecc corrected: %u\n", initial_ecc.corrected);
173 printf("initial ecc failed: %u\n", initial_ecc.failed);
174 printf("initial ecc badblocks: %u\n", initial_ecc.badblocks);
175 printf("initial ecc bbtblocks: %u\n", initial_ecc.bbtblocks);
207 ret = ioctl(fd, ECCGETSTATS, &ecc);
209 fprintf(stderr, "failed get ecc stats for %s, %s\n",
219 if (ecc.corrected != last_ecc.corrected)
220 printf("ecc corrected, %u, at %llx\n", ecc.corrected - last_ecc.corrected, pos);
221 if (ecc.failed != last_ecc.failed)
222 printf("ecc failed, %u, at %llx\n", ecc.failed - last_ecc.failed, pos);
223 if (ecc.badblocks != last_ecc.badblocks)
224 printf("ecc badblocks, %u, at %llx\n", ecc.badblocks - last_ecc.badblocks, pos);
225 if (ecc.bbtblocks != last_ecc.bbtblocks)
226 printf("ecc bbtblocks, %u, at %llx\n", ecc.bbtblocks - last_ecc.bbtblocks, pos);
248 if (ecc.corrected != last_ecc.corrected)
249 fprintf(statusfile, "%08llx: ecc corrected\n", opos);
250 if (ecc.failed != last_ecc.failed)
251 fprintf(statusfile, "%08llx: ecc failed\n", opos);
259 last_ecc = ecc;
272 fprintf(statusfile, "total ecc corrected, %u\n", ecc.corrected - initial_ecc.corrected);
273 fprintf(statusfile, "total ecc failed, %u\n", ecc.failed - initial_ecc.failed);
274 fprintf(statusfile, "total ecc badblocks, %u\n", ecc.badblocks - initial_ecc.badblocks);
275 fprintf(statusfile, "total ecc bbtblocks, %u\n", ecc.bbtblocks - initial_ecc.bbtblocks);
278 printf("total ecc corrected, %u\n", ecc.corrected - initial_ecc.corrected);
279 printf("total ecc failed, %u\n", ecc.failed - initial_ecc.failed);
280 printf("total ecc badblocks, %u\n", ecc.badblocks - initial_ecc.badblocks);
281 printf("total ecc bbtblocks, %u\n", ecc.bbtblocks - initial_ecc.bbtblocks);