Home
last modified time | relevance | path

Searched refs:bitflips (Results 1 – 17 of 17) sorted by relevance

/kernel/linux/linux-5.10/drivers/mtd/tests/
Doobtest.c122 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/
Dnand_toshiba.c60 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()
Dmtk_ecc.c217 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()
Dmeson_nand.c444 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()
Dmtk_ecc.h23 u32 bitflips; member
Dtango_nand.c203 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()
Dfsl_ifc_nand.c644 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()
Ddenali.c479 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()
Dnandsim.c94 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()
Dmtk_nand.c937 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()
Dnand_base.c2463 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/
Dattach.c441 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 …]
Dubi.h828 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips);
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/brcmnand/
Dbrcmnand.c2102 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/
Dsysfs-class-mtd167 bitflips occur. Note that if bitflip_threshold exceeds
/kernel/linux/linux-5.10/include/linux/mtd/
Drawnand.h1252 unsigned int bitflips; member
/kernel/linux/linux-5.10/Documentation/driver-api/mtd/
Dnand_ecc.rst753 For correction not much gain could be obtained (as bitflips are rare). Then