Home
last modified time | relevance | path

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

/Linux-v5.4/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 …]
/Linux-v5.4/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.h826 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips);
/Linux-v5.4/drivers/mtd/nand/raw/
Dmtk_ecc.c216 u32 bitflips = 0; in mtk_ecc_get_stats() local
233 bitflips = max_t(u32, bitflips, err); in mtk_ecc_get_stats()
236 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.c182 int i, res, meta_len, bitflips = 0; in check_erased_page() local
194 bitflips = max(res, bitflips); in check_erased_page()
199 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.c480 unsigned int bitflips = 0; in denali_sw_ecc_fixup() local
503 bitflips = 0; in denali_sw_ecc_fixup()
529 bitflips += flips_in_byte; in denali_sw_ecc_fixup()
531 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)");
1391 if (bitflips && prandom_u32() < (1 << 22)) { in do_bit_flips()
1393 if (bitflips > 1) in do_bit_flips()
1394 flips = (prandom_u32() % (int) bitflips) + 1; in do_bit_flips()
Dmtk_nand.c906 return stats.bitflips; in mtk_nfc_update_ecc_stats()
918 int bitflips = 0; in mtk_nfc_read_subpage() local
984 bitflips = -EIO; in mtk_nfc_read_subpage()
987 bitflips = rc < 0 ? -ETIMEDOUT : in mtk_nfc_read_subpage()
1004 return bitflips; in mtk_nfc_read_subpage()
Dnand_base.c2469 int bitflips = 0; in nand_check_erased_buf() local
2475 bitflips += BITS_PER_BYTE - weight; in nand_check_erased_buf()
2476 if (unlikely(bitflips > bitflips_threshold)) in nand_check_erased_buf()
2486 bitflips += BITS_PER_LONG - weight; in nand_check_erased_buf()
2487 if (unlikely(bitflips > bitflips_threshold)) in nand_check_erased_buf()
2493 bitflips += BITS_PER_BYTE - weight; in nand_check_erased_buf()
2494 if (unlikely(bitflips > bitflips_threshold)) in nand_check_erased_buf()
2498 return bitflips; in nand_check_erased_buf()
3229 chip->pagecache.bitflips = ret; in nand_do_read_ops()
3272 chip->pagecache.bitflips); in nand_do_read_ops()
/Linux-v5.4/drivers/mtd/nand/raw/brcmnand/
Dbrcmnand.c1792 int bitflips = 0; in brcmstb_nand_verify_erased_page() local
1816 bitflips = max(bitflips, ret); in brcmstb_nand_verify_erased_page()
1819 return bitflips; in brcmstb_nand_verify_erased_page()
/Linux-v5.4/Documentation/ABI/testing/
Dsysfs-class-mtd167 bitflips occur. Note that if bitflip_threshold exceeds
/Linux-v5.4/include/linux/mtd/
Drawnand.h1100 unsigned int bitflips; member
/Linux-v5.4/Documentation/driver-api/mtd/
Dnand_ecc.rst753 For correction not much gain could be obtained (as bitflips are rare). Then