/kernel/linux/linux-5.10/drivers/mtd/tests/ |
D | oobtest.c | 122 size_t bitflips = 0; in memcmpshowoffset() local 130 bitflips += hweight8(res); in memcmpshowoffset() 134 return bitflips; in memcmpshowoffset() 150 size_t bitflips = 0; in memffshow() local 158 bitflips += hweight8(res); in memffshow() 162 return bitflips; in memffshow() 171 size_t bitflips; in verify_eraseblock() local 194 bitflips = memcmpshow(addr, readbuf, in verify_eraseblock() 197 if (bitflips > bitflip_limit) { in verify_eraseblock() 205 } else if (bitflips) { in verify_eraseblock() [all …]
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
D | nand_toshiba.c | 60 unsigned int i, bitflips = 0; in toshiba_nand_benand_eccstatus() local 63 bitflips = ecc_status[i] & TOSHIBA_NAND_ECC_STATUS_MASK; in toshiba_nand_benand_eccstatus() 64 if (bitflips == TOSHIBA_NAND_ECC_STATUS_UNCORR) { in toshiba_nand_benand_eccstatus() 67 mtd->ecc_stats.corrected += bitflips; in toshiba_nand_benand_eccstatus() 68 max_bitflips = max(max_bitflips, bitflips); in toshiba_nand_benand_eccstatus()
|
D | mtk_ecc.c | 217 u32 bitflips = 0; in mtk_ecc_get_stats() local 234 bitflips = max_t(u32, bitflips, err); in mtk_ecc_get_stats() 237 stats->bitflips = bitflips; in mtk_ecc_get_stats()
|
D | meson_nand.c | 444 static int meson_nfc_ecc_correct(struct nand_chip *nand, u32 *bitflips, in meson_nfc_ecc_correct() argument 456 *bitflips = max_t(u32, *bitflips, ECC_ERR_CNT(*info)); in meson_nfc_ecc_correct() 463 *bitflips = max_t(u32, *bitflips, in meson_nfc_ecc_correct() 776 u32 bitflips = 0; in meson_nfc_read_page_hwecc() local 785 ret = meson_nfc_ecc_correct(nand, &bitflips, &correct_bitmap); in meson_nfc_read_page_hwecc() 793 return bitflips; in meson_nfc_read_page_hwecc() 813 bitflips = max_t(u32, bitflips, ret); in meson_nfc_read_page_hwecc() 820 return bitflips; in meson_nfc_read_page_hwecc()
|
D | mtk_ecc.h | 23 u32 bitflips; member
|
D | tango_nand.c | 203 int i, res, meta_len, bitflips = 0; in check_erased_page() local 215 bitflips = max(res, bitflips); in check_erased_page() 220 return bitflips; in check_erased_page()
|
D | fsl_ifc_nand.c | 644 int i, res, bitflips = 0; in check_erased_page() local 659 bitflips = max(res, bitflips); in check_erased_page() 664 return bitflips; in check_erased_page()
|
D | denali.c | 479 unsigned int bitflips = 0; in denali_sw_ecc_fixup() local 502 bitflips = 0; in denali_sw_ecc_fixup() 528 bitflips += flips_in_byte; in denali_sw_ecc_fixup() 530 max_bitflips = max(max_bitflips, bitflips); in denali_sw_ecc_fixup()
|
D | nandsim.c | 94 static unsigned int bitflips = 0; variable 126 module_param(bitflips, uint, 0400); 156 MODULE_PARM_DESC(bitflips, "Maximum number of random bit flips per page (zero by default)"); 1410 if (bitflips && prandom_u32() < (1 << 22)) { in ns_do_bit_flips() 1412 if (bitflips > 1) in ns_do_bit_flips() 1413 flips = (prandom_u32() % (int) bitflips) + 1; in ns_do_bit_flips()
|
D | mtk_nand.c | 937 return stats.bitflips; in mtk_nfc_update_ecc_stats() 949 int bitflips = 0; in mtk_nfc_read_subpage() local 1016 bitflips = -EIO; in mtk_nfc_read_subpage() 1019 bitflips = rc < 0 ? -ETIMEDOUT : in mtk_nfc_read_subpage() 1036 return bitflips; in mtk_nfc_read_subpage()
|
D | nand_base.c | 2463 int bitflips = 0; in nand_check_erased_buf() local 2469 bitflips += BITS_PER_BYTE - weight; in nand_check_erased_buf() 2470 if (unlikely(bitflips > bitflips_threshold)) in nand_check_erased_buf() 2480 bitflips += BITS_PER_LONG - weight; in nand_check_erased_buf() 2481 if (unlikely(bitflips > bitflips_threshold)) in nand_check_erased_buf() 2487 bitflips += BITS_PER_BYTE - weight; in nand_check_erased_buf() 2488 if (unlikely(bitflips > bitflips_threshold)) in nand_check_erased_buf() 2492 return bitflips; in nand_check_erased_buf() 3198 chip->pagecache.bitflips = ret; in nand_do_read_ops() 3241 chip->pagecache.bitflips); in nand_do_read_ops()
|
/kernel/linux/linux-5.10/drivers/mtd/ubi/ |
D | attach.c | 441 int len, err, second_is_newer, bitflips = 0, corrupted = 0; in ubi_compare_lebs() local 483 return bitflips << 1; in ubi_compare_lebs() 494 bitflips = 1; in ubi_compare_lebs() 523 bitflips = 0; in ubi_compare_lebs() 527 bitflips |= !!err; in ubi_compare_lebs() 538 return second_is_newer | (bitflips << 1) | (corrupted << 2); in ubi_compare_lebs() 564 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips) in ubi_add_to_av() argument 577 pnum, vol_id, lnum, ec, sqnum, bitflips); in ubi_add_to_av() 660 aeb->scrub = ((cmp_res & 2) || bitflips); in ubi_add_to_av() 694 aeb->scrub = bitflips; in ubi_add_to_av() [all …]
|
D | ubi.h | 828 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips);
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/brcmnand/ |
D | brcmnand.c | 2102 int bitflips = 0; in brcmstb_nand_verify_erased_page() local 2129 bitflips = max(bitflips, ret); in brcmstb_nand_verify_erased_page() 2132 return bitflips; in brcmstb_nand_verify_erased_page()
|
/kernel/linux/linux-5.10/Documentation/ABI/testing/ |
D | sysfs-class-mtd | 167 bitflips occur. Note that if bitflip_threshold exceeds
|
/kernel/linux/linux-5.10/include/linux/mtd/ |
D | rawnand.h | 1252 unsigned int bitflips; member
|
/kernel/linux/linux-5.10/Documentation/driver-api/mtd/ |
D | nand_ecc.rst | 753 For correction not much gain could be obtained (as bitflips are rare). Then
|