| /linux/drivers/mtd/nand/ |
| H A D | ecc-realtek.c | 164 int ret, status, bitflips; in rtl_ecc_wait_for_engine() local 182 bitflips = FIELD_GET(RTL_ECC_CORR_COUNT, status); in rtl_ecc_wait_for_engine() 188 return ret ? -EBADMSG : bitflips; in rtl_ecc_wait_for_engine() 262 int bitflips = 0; in rtl_ecc_finish_io_req() local 290 bitflips = max_t(unsigned int, bitflips, ret); in rtl_ecc_finish_io_req() 302 else if (unlikely(bitflips > 2)) in rtl_ecc_finish_io_req() 303 dev_dbg(rtlc->dev, "%d bitflips detected\n", bitflips); in rtl_ecc_finish_io_req() 305 return failure ? -EBADMSG : bitflips; in rtl_ecc_finish_io_req()
|
| 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()
|
| /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 | 560 static int meson_nfc_ecc_correct(struct nand_chip *nand, u32 *bitflips, in meson_nfc_ecc_correct() argument 572 *bitflips = max_t(u32, *bitflips, ECC_ERR_CNT(*info)); in meson_nfc_ecc_correct() 579 *bitflips = max_t(u32, *bitflips, in meson_nfc_ecc_correct() 883 u32 bitflips = 0; in meson_nfc_read_page_hwecc() local 892 ret = meson_nfc_ecc_correct(nand, &bitflips, &correct_bitmap); in meson_nfc_read_page_hwecc() 900 return bitflips; in meson_nfc_read_page_hwecc() 920 bitflips = max_t(u32, bitflips, ret); in meson_nfc_read_page_hwecc() 927 return bitflips; in meson_nfc_read_page_hwecc()
|
| H A D | nuvoton-ma35d1-nand-controller.c | 629 int bitflips = 0; in ma35_nand_read_subpage_hwecc() local 645 bitflips = ma35_nand_do_read(chip, buf + offset, data_len); in ma35_nand_read_subpage_hwecc() 653 return bitflips; in ma35_nand_read_subpage_hwecc() 661 int bitflips = 0; in ma35_nand_read_page_hwecc() local 677 bitflips = ma35_nand_do_read(chip, buf, mtd->writesize); in ma35_nand_read_page_hwecc() 685 return bitflips; in ma35_nand_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 | 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 | 3531 chip->pagecache.bitflips = ret; in nand_do_read_ops() 3574 chip->pagecache.bitflips); in nand_do_read_ops()
|
| /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 | debug.c | 34 FAIL_ACTION(bitflips, fault_bitflips_attr) in FAIL_ACTION()
|
| H A D | ubi.h | 826 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips);
|
| /linux/include/linux/mtd/ |
| H A D | nand-ecc-mtk.h | 23 u32 bitflips; member
|
| H A D | rawnand.h | 1322 unsigned int bitflips; member
|
| /linux/drivers/spi/ |
| H A D | spi-amlogic-spifc-a4.c | 176 u32 bitflips; member 674 sfc->ecc_stats.bitflips = 0; in aml_sfc_check_hwecc_status() 727 sfc->ecc_stats.bitflips = ret; in aml_sfc_read_page_hwecc() 1056 return sfc->ecc_stats.failed ? -EBADMSG : sfc->ecc_stats.bitflips; in aml_sfc_ecc_finish_io_req()
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-mtd | 167 bitflips occur. Note that if bitflip_threshold exceeds
|
| /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
|