/openbmc/linux/drivers/mtd/tests/ |
H A 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 …]
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A 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()
|
H A D | meson_nand.c | 532 static int meson_nfc_ecc_correct(struct nand_chip *nand, u32 *bitflips, in meson_nfc_ecc_correct() argument 544 *bitflips = max_t(u32, *bitflips, ECC_ERR_CNT(*info)); in meson_nfc_ecc_correct() 551 *bitflips = max_t(u32, *bitflips, in meson_nfc_ecc_correct() 869 u32 bitflips = 0; in meson_nfc_read_page_hwecc() local 878 ret = meson_nfc_ecc_correct(nand, &bitflips, &correct_bitmap); in meson_nfc_read_page_hwecc() 886 return bitflips; in meson_nfc_read_page_hwecc() 906 bitflips = max_t(u32, bitflips, ret); in meson_nfc_read_page_hwecc() 913 return bitflips; in meson_nfc_read_page_hwecc()
|
H A 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()
|
H A D | nandsim.c | 93 static unsigned int bitflips = 0; variable 125 module_param(bitflips, uint, 0400); 155 MODULE_PARM_DESC(bitflips, "Maximum number of random bit flips per page (zero by default)"); 1405 if (bitflips && get_random_u16() < (1 << 6)) { in ns_do_bit_flips() 1407 if (bitflips > 1) in ns_do_bit_flips() 1408 flips = get_random_u32_inclusive(1, bitflips); in ns_do_bit_flips()
|
H A 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()
|
H A D | mtk_nand.c | 936 return stats.bitflips; in mtk_nfc_update_ecc_stats() 948 int bitflips = 0; in mtk_nfc_read_subpage() local 1015 bitflips = -EIO; in mtk_nfc_read_subpage() 1018 bitflips = rc < 0 ? -ETIMEDOUT : in mtk_nfc_read_subpage() 1035 return bitflips; in mtk_nfc_read_subpage()
|
H A D | nand_base.c | 2789 int bitflips = 0; in nand_check_erased_buf() local 2795 bitflips += BITS_PER_BYTE - weight; in nand_check_erased_buf() 2796 if (unlikely(bitflips > bitflips_threshold)) in nand_check_erased_buf() 2806 bitflips += BITS_PER_LONG - weight; in nand_check_erased_buf() 2807 if (unlikely(bitflips > bitflips_threshold)) in nand_check_erased_buf() 2813 bitflips += BITS_PER_BYTE - weight; in nand_check_erased_buf() 2814 if (unlikely(bitflips > bitflips_threshold)) in nand_check_erased_buf() 2818 return bitflips; in nand_check_erased_buf() 3646 chip->pagecache.bitflips = ret; in nand_do_read_ops() 3689 chip->pagecache.bitflips); in nand_do_read_ops()
|
/openbmc/u-boot/drivers/mtd/ubi/ |
H A D | attach.c | 322 int len, err, second_is_newer, bitflips = 0, corrupted = 0; in ubi_compare_lebs() local 364 return bitflips << 1; in ubi_compare_lebs() 375 bitflips = 1; in ubi_compare_lebs() 404 bitflips = 0; in ubi_compare_lebs() 408 bitflips |= !!err; in ubi_compare_lebs() 419 return second_is_newer | (bitflips << 1) | (corrupted << 2); in ubi_compare_lebs() 445 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips) in ubi_add_to_av() argument 458 pnum, vol_id, lnum, ec, sqnum, bitflips); in ubi_add_to_av() 541 aeb->scrub = ((cmp_res & 2) || bitflips); in ubi_add_to_av() 577 aeb->scrub = bitflips; in ubi_add_to_av() [all …]
|
H A D | ubi.h | 786 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips);
|
/openbmc/linux/drivers/mtd/ubi/ |
H A 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 …]
|
H A D | ubi.h | 826 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips);
|
/openbmc/linux/drivers/mtd/nand/ |
H A D | ecc-mtk.c | 224 u32 bitflips = 0; in mtk_ecc_get_stats() local 241 bitflips = max_t(u32, bitflips, err); in mtk_ecc_get_stats() 244 stats->bitflips = bitflips; in mtk_ecc_get_stats()
|
/openbmc/linux/include/linux/mtd/ |
H A D | nand-ecc-mtk.h | 23 u32 bitflips; member
|
H A D | rawnand.h | 1309 unsigned int bitflips; member
|
/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | fsl_ifc_nand.c | 713 int i, res, bitflips; in check_erased_page() local 717 bitflips = 0; in check_erased_page() 728 bitflips = max(res, bitflips); in check_erased_page() 733 return bitflips; in check_erased_page()
|
H A D | denali.c | 385 unsigned int bitflips = 0; in denali_sw_ecc_fixup() local 408 bitflips = 0; in denali_sw_ecc_fixup() 434 bitflips += flips_in_byte; in denali_sw_ecc_fixup() 436 max_bitflips = max(max_bitflips, bitflips); in denali_sw_ecc_fixup()
|
H A D | nand_base.c | 1105 int bitflips = 0; in nand_check_erased_buf() local 1111 bitflips += BITS_PER_BYTE - weight; in nand_check_erased_buf() 1112 if (unlikely(bitflips > bitflips_threshold)) in nand_check_erased_buf() 1118 bitflips += 32 - weight; in nand_check_erased_buf() 1119 if (unlikely(bitflips > bitflips_threshold)) in nand_check_erased_buf() 1125 bitflips += BITS_PER_BYTE - weight; in nand_check_erased_buf() 1126 if (unlikely(bitflips > bitflips_threshold)) in nand_check_erased_buf() 1130 return bitflips; in nand_check_erased_buf()
|
/openbmc/u-boot/board/sunxi/ |
H A D | README.nand | 23 bitflips. The U-Boot build system, when configured for the NAND (with
|
/openbmc/linux/drivers/mtd/nand/raw/brcmnand/ |
H A D | brcmnand.c | 2216 int bitflips = 0; in brcmstb_nand_verify_erased_page() local 2243 bitflips = max(bitflips, ret); in brcmstb_nand_verify_erased_page() 2246 return bitflips; in brcmstb_nand_verify_erased_page()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-mtk-snfi.c | 776 return snf->ecc_stats.failed ? -EBADMSG : snf->ecc_stats.bitflips; in mtk_snand_ecc_finish_io_req() 1009 snf->ecc_stats.bitflips = 0; in mtk_snand_read_page_cache()
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-mtd | 167 bitflips occur. Note that if bitflip_threshold exceeds
|
/openbmc/linux/Documentation/driver-api/mtd/ |
H A D | nand_ecc.rst | 753 For correction not much gain could be obtained (as bitflips are rare). Then
|