Lines Matching defs:bit
6 * Test for multi-bit error recovery on a NAND page This mostly tests the
11 * 0 - artificially inserting bit errors until the ECC fails
18 * Depending on the NAND, the first bit errors will appear after
23 * exceptionally good and not generate bit errors before that. Try
126 /* Reads page into rbuffer. Returns number of corrected bit errors (>=0)
178 /* Finds the first '1' bit in wbuffer starting at offset 'byte'
182 int bit;
185 for (bit = 7; bit >= 0; bit--) {
186 if (CBIT(wbuffer[byte], bit)) {
187 BCLR(wbuffer[byte], bit);
188 pr_info("Inserted biterror @ %u/%u\n", byte, bit);
194 pr_err("biterror: Failed to find a '1' bit\n");
198 /* Writes 'random' data to page and then introduces deliberate bit
223 pr_info("Read reported %d corrected bit errors\n", err);
237 pr_info("Successfully corrected %d bit errors per subpage\n",
254 This eventually develops bit errors (bits written as '1' will slowly become
262 /* We don't expect more than this many correctable bit errors per
265 static unsigned bitstats[MAXBITS]; /* bit error histogram. */
287 pr_info("Implausible number of bit errors corrected\n");
294 pr_info("Read reported %d corrected bit errors\n",
317 /* At this point bitstats[0] contains the number of ops with no bit
318 * errors, bitstats[1] the number of ops with 1 bit error, etc. */
321 pr_info("Page reads with %3d corrected bit errors: %d\n",
417 MODULE_DESCRIPTION("NAND bit error recovery test");