Lines Matching defs:bitflips
2445 * @bitflips_threshold: maximum number of bitflips
2449 * The bitflips_threshold specify the maximum number of bitflips before
2453 * testing the whole buffer if the number of bitflips exceed the
2456 * Returns a positive number of bitflips less than or equal to
2457 * bitflips_threshold, or -ERROR_CODE for bitflips in excess of the
2463 int bitflips = 0;
2469 bitflips += BITS_PER_BYTE - weight;
2470 if (unlikely(bitflips > bitflips_threshold))
2480 bitflips += BITS_PER_LONG - weight;
2481 if (unlikely(bitflips > bitflips_threshold))
2487 bitflips += BITS_PER_BYTE - weight;
2488 if (unlikely(bitflips > bitflips_threshold))
2492 return bitflips;
2504 * @bitflips_threshold: maximum number of bitflips
2509 * The bitflips_threshold specify the maximum number of bitflips before
2514 * different from the NAND page size. When fixing bitflips, ECC engines will
2516 * expect you to return the maximum number of bitflips for the whole page.
2520 * 2/ When checking for bitflips in erased pages you should not only check
2530 * Returns a positive number of bitflips less than or equal to
2531 * bitflips_threshold, or -ERROR_CODE for bitflips in excess of the
2861 /* check for empty pages with bitflips */
2933 /* check for empty pages with bitflips */
3015 /* check for empty pages with bitflips */
3080 * when there are too many bitflips in a page (i.e., ECC error). After setting
3169 * the read methods return max bitflips per ecc step.
3198 chip->pagecache.bitflips = ret;
3241 chip->pagecache.bitflips);