Home | History | Annotate | Download | only in toolbox

Lines Matching defs:ecc

44     struct mtd_ecc_stats initial_ecc, last_ecc, ecc;
151 fprintf(stderr, "failed get ecc layout for %s, %s\n",
156 printf("ecc bytes: %u\n", ecclayout.eccbytes);
164 fprintf(stderr, "failed get ecc stats for %s, %s\n",
171 printf("initial ecc corrected: %u\n", initial_ecc.corrected);
172 printf("initial ecc failed: %u\n", initial_ecc.failed);
173 printf("initial ecc badblocks: %u\n", initial_ecc.badblocks);
174 printf("initial ecc bbtblocks: %u\n", initial_ecc.bbtblocks);
206 ret = ioctl(fd, ECCGETSTATS, &ecc);
208 fprintf(stderr, "failed get ecc stats for %s, %s\n",
218 if (ecc.corrected != last_ecc.corrected)
219 printf("ecc corrected, %u, at %llx\n", ecc.corrected - last_ecc.corrected, pos);
220 if (ecc.failed != last_ecc.failed)
221 printf("ecc failed, %u, at %llx\n", ecc.failed - last_ecc.failed, pos);
222 if (ecc.badblocks != last_ecc.badblocks)
223 printf("ecc badblocks, %u, at %llx\n", ecc.badblocks - last_ecc.badblocks, pos);
224 if (ecc.bbtblocks != last_ecc.bbtblocks)
225 printf("ecc bbtblocks, %u, at %llx\n", ecc.bbtblocks - last_ecc.bbtblocks, pos);
247 if (ecc.corrected != last_ecc.corrected)
248 fprintf(statusfile, "%08llx: ecc corrected\n", opos);
249 if (ecc.failed != last_ecc.failed)
250 fprintf(statusfile, "%08llx: ecc failed\n", opos);
258 last_ecc = ecc;
271 fprintf(statusfile, "total ecc corrected, %u\n", ecc.corrected - initial_ecc.corrected);
272 fprintf(statusfile, "total ecc failed, %u\n", ecc.failed - initial_ecc.failed);
273 fprintf(statusfile, "total ecc badblocks, %u\n", ecc.badblocks - initial_ecc.badblocks);
274 fprintf(statusfile, "total ecc bbtblocks, %u\n", ecc.bbtblocks - initial_ecc.bbtblocks);
277 printf("total ecc corrected, %u\n", ecc.corrected - initial_ecc.corrected);
278 printf("total ecc failed, %u\n", ecc.failed - initial_ecc.failed);
279 printf("total ecc badblocks, %u\n", ecc.badblocks - initial_ecc.badblocks);
280 printf("total ecc bbtblocks, %u\n", ecc.bbtblocks - initial_ecc.bbtblocks);