/linux-6.6.21/drivers/mtd/nand/raw/ |
D | nand_toshiba.c | 65 mtd->ecc_stats.failed++; in toshiba_nand_benand_eccstatus() 67 mtd->ecc_stats.corrected += bitflips; in toshiba_nand_benand_eccstatus() 85 mtd->ecc_stats.failed++; in toshiba_nand_benand_eccstatus() 89 mtd->ecc_stats.corrected += max_bitflips; in toshiba_nand_benand_eccstatus()
|
D | nand_micron.c | 200 mtd->ecc_stats.failed++; in micron_nand_on_die_ecc_status_4() 269 mtd->ecc_stats.corrected += nbitflips; in micron_nand_on_die_ecc_status_4() 285 mtd->ecc_stats.failed++; in micron_nand_on_die_ecc_status_8() 288 mtd->ecc_stats.corrected += 3; in micron_nand_on_die_ecc_status_8() 291 mtd->ecc_stats.corrected += 6; in micron_nand_on_die_ecc_status_8() 295 mtd->ecc_stats.corrected += 8; in micron_nand_on_die_ecc_status_8()
|
D | denali.c | 412 struct mtd_ecc_stats *ecc_stats = &nand_to_mtd(chip)->ecc_stats; in denali_check_erased_page() local 425 ecc_stats->failed++; in denali_check_erased_page() 427 ecc_stats->corrected += stat; in denali_check_erased_page() 442 struct mtd_ecc_stats *ecc_stats = &nand_to_mtd(chip)->ecc_stats; in denali_hw_ecc_fixup() local 468 ecc_stats->corrected += max_bitflips; in denali_hw_ecc_fixup() 477 struct mtd_ecc_stats *ecc_stats = &nand_to_mtd(chip)->ecc_stats; in denali_sw_ecc_fixup() local 527 ecc_stats->corrected += flips_in_byte; in denali_sw_ecc_fixup()
|
D | nand_base.c | 594 mtd->ecc_stats.badblocks++; in nand_block_markbad_lowlevel() 3078 mtd->ecc_stats.failed++; in nand_read_page_swecc() 3080 mtd->ecc_stats.corrected += stat; in nand_read_page_swecc() 3189 mtd->ecc_stats.failed++; in nand_read_subpage() 3191 mtd->ecc_stats.corrected += stat; in nand_read_subpage() 3260 mtd->ecc_stats.failed++; in nand_read_page_hwecc() 3262 mtd->ecc_stats.corrected += stat; in nand_read_page_hwecc() 3326 mtd->ecc_stats.failed++; in nand_read_page_hwecc_oob_first() 3328 mtd->ecc_stats.corrected += stat; in nand_read_page_hwecc_oob_first() 3410 mtd->ecc_stats.failed++; in nand_read_page_syndrome() [all …]
|
D | mxc_nand.c | 730 uint16_t ecc_stats; in mxc_nand_read_page_v1() local 740 ecc_stats = get_ecc_status_v1(host); in mxc_nand_read_page_v1() 742 ecc_stats >>= 2; in mxc_nand_read_page_v1() 745 switch (ecc_stats & 0x3) { in mxc_nand_read_page_v1() 750 mtd->ecc_stats.corrected++; in mxc_nand_read_page_v1() 754 mtd->ecc_stats.failed++; in mxc_nand_read_page_v1() 804 mtd->ecc_stats.failed++; in mxc_nand_read_page_v2_v3() 806 mtd->ecc_stats.corrected += err; in mxc_nand_read_page_v2_v3()
|
D | renesas-nand-controller.c | 466 mtd->ecc_stats.failed++; in rnandc_read_page_hw_ecc() 468 mtd->ecc_stats.corrected += bf; in rnandc_read_page_hw_ecc() 479 mtd->ecc_stats.corrected += bf; in rnandc_read_page_hw_ecc() 560 mtd->ecc_stats.failed++; in rnandc_read_subpage_hw_ecc() 562 mtd->ecc_stats.corrected += bf; in rnandc_read_subpage_hw_ecc() 573 mtd->ecc_stats.corrected += bf; in rnandc_read_subpage_hw_ecc()
|
D | fsl_ifc_nand.c | 240 mtd->ecc_stats.corrected += errors; in fsl_ifc_run_command() 655 mtd->ecc_stats.failed++; in check_erased_page() 657 mtd->ecc_stats.corrected += res; in check_erased_page() 687 mtd->ecc_stats.failed++; in fsl_ifc_read_page()
|
D | tegra_nand.c | 711 mtd->ecc_stats.failed += hweight8(fail_sec_flag); in tegra_nand_read_page_hwecc() 736 mtd->ecc_stats.failed++; in tegra_nand_read_page_hwecc() 738 mtd->ecc_stats.corrected += ret; in tegra_nand_read_page_hwecc() 759 mtd->ecc_stats.corrected += max_corr_cnt * hweight8(corr_sec_flag); in tegra_nand_read_page_hwecc()
|
D | meson_nand.c | 543 mtd->ecc_stats.corrected += ECC_ERR_CNT(*info); in meson_nfc_ecc_correct() 550 mtd->ecc_stats.corrected += ECC_ZERO_CNT(*info); in meson_nfc_ecc_correct() 885 mtd->ecc_stats.failed++; in meson_nfc_read_page_hwecc() 903 mtd->ecc_stats.failed++; in meson_nfc_read_page_hwecc() 905 mtd->ecc_stats.corrected += ret; in meson_nfc_read_page_hwecc()
|
D | pl35x-nand-controller.c | 485 mtd->ecc_stats.failed++; in pl35x_nand_recover_data_hwecc() 492 mtd->ecc_stats.failed++; in pl35x_nand_recover_data_hwecc() 494 mtd->ecc_stats.corrected += stats; in pl35x_nand_recover_data_hwecc()
|
/linux-6.6.21/drivers/mtd/ |
D | mtdconcat.c | 83 mtd->ecc_stats.failed++; in concat_read() 86 mtd->ecc_stats.corrected++; in concat_read() 287 mtd->ecc_stats.failed++; in concat_read_oob() 290 mtd->ecc_stats.corrected++; in concat_read_oob() 624 mtd->ecc_stats.badblocks++; in concat_block_markbad() 702 concat->mtd.ecc_stats.badblocks = subdev[0]->ecc_stats.badblocks; in mtd_concat_create() 733 concat->mtd.ecc_stats.badblocks += in mtd_concat_create() 734 subdev[i]->ecc_stats.badblocks; in mtd_concat_create()
|
D | mtdcore.c | 305 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_corrected_bits_show() local 307 return sysfs_emit(buf, "%u\n", ecc_stats->corrected); in mtd_corrected_bits_show() 315 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_ecc_failures_show() local 317 return sysfs_emit(buf, "%u\n", ecc_stats->failed); in mtd_ecc_failures_show() 325 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_bad_blocks_show() local 327 return sysfs_emit(buf, "%u\n", ecc_stats->badblocks); in mtd_bad_blocks_show() 335 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_bbt_blocks_show() local 337 return sysfs_emit(buf, "%u\n", ecc_stats->bbtblocks); in mtd_bbt_blocks_show() 1485 diff = master->ecc_stats; in mtd_update_ecc_stats() 1490 mtd->ecc_stats.failed += diff.failed; in mtd_update_ecc_stats() [all …]
|
D | mtdchar.c | 720 req.ecc_stats.uncorrectable_errors = 0; in mtdchar_read_ioctl() 721 req.ecc_stats.corrected_bitflips = 0; in mtdchar_read_ioctl() 722 req.ecc_stats.max_bitflips = 0; in mtdchar_read_ioctl() 773 req.ecc_stats.uncorrectable_errors += in mtdchar_read_ioctl() 775 req.ecc_stats.corrected_bitflips += stats.corrected_bitflips; in mtdchar_read_ioctl() 776 req.ecc_stats.max_bitflips = in mtdchar_read_ioctl() 777 max(req.ecc_stats.max_bitflips, stats.max_bitflips); in mtdchar_read_ioctl() 803 if (req.ecc_stats.uncorrectable_errors > 0) in mtdchar_read_ioctl() 805 else if (req.ecc_stats.corrected_bitflips > 0) in mtdchar_read_ioctl() 1177 if (copy_to_user(argp, &mtd->ecc_stats, in mtdchar_ioctl()
|
D | mtdpart.c | 211 child->ecc_stats.bbtblocks++; in allocate_partition() 213 child->ecc_stats.badblocks++; in allocate_partition()
|
/linux-6.6.21/drivers/spi/ |
D | spi-mtk-snfi.c | 314 struct mtk_ecc_stats ecc_stats; member 773 if (snf->ecc_stats.failed) in mtk_snand_ecc_finish_io_req() 774 mtd->ecc_stats.failed += snf->ecc_stats.failed; in mtk_snand_ecc_finish_io_req() 775 mtd->ecc_stats.corrected += snf->ecc_stats.corrected; in mtk_snand_ecc_finish_io_req() 776 return snf->ecc_stats.failed ? -EBADMSG : snf->ecc_stats.bitflips; in mtk_snand_ecc_finish_io_req() 992 mtk_ecc_get_stats(snf->ecc, &snf->ecc_stats, in mtk_snand_read_page_cache() 1009 snf->ecc_stats.bitflips = 0; in mtk_snand_read_page_cache() 1010 snf->ecc_stats.failed = 0; in mtk_snand_read_page_cache() 1011 snf->ecc_stats.corrected = 0; in mtk_snand_read_page_cache()
|
/linux-6.6.21/drivers/mtd/tests/ |
D | nandbiterrs.c | 138 memcpy(&oldstats, &mtd->ecc_stats, sizeof(oldstats)); in read_page() 142 err = mtd->ecc_stats.corrected - oldstats.corrected; in read_page()
|
/linux-6.6.21/drivers/mtd/nand/onenand/ |
D | onenand_base.c | 588 mtd->ecc_stats.failed++; in onenand_wait() 593 mtd->ecc_stats.corrected++; in onenand_wait() 1098 mtd->ecc_stats.failed--; in onenand_recover_lsb() 1143 stats = mtd->ecc_stats; in onenand_mlc_read_ops_nolock() 1200 if (mtd->ecc_stats.failed - stats.failed) in onenand_mlc_read_ops_nolock() 1204 return mtd->ecc_stats.corrected != stats.corrected ? 1 : 0; in onenand_mlc_read_ops_nolock() 1244 stats = mtd->ecc_stats; in onenand_read_ops_nolock() 1329 if (mtd->ecc_stats.failed - stats.failed) in onenand_read_ops_nolock() 1333 return mtd->ecc_stats.corrected != stats.corrected ? 1 : 0; in onenand_read_ops_nolock() 1376 stats = mtd->ecc_stats; in onenand_read_oob_nolock() [all …]
|
D | onenand_bbt.c | 106 mtd->ecc_stats.badblocks++; in create_bbt()
|
D | onenand_omap2.c | 278 mtd->ecc_stats.failed++; in omap2_onenand_wait() 284 mtd->ecc_stats.corrected++; in omap2_onenand_wait()
|
/linux-6.6.21/drivers/mtd/nand/ |
D | ecc-sw-bch.c | 375 mtd->ecc_stats.failed++; in nand_ecc_sw_bch_finish_io_req() 377 mtd->ecc_stats.corrected += stat; in nand_ecc_sw_bch_finish_io_req()
|
D | ecc-sw-hamming.c | 629 mtd->ecc_stats.failed++; in nand_ecc_sw_hamming_finish_io_req() 631 mtd->ecc_stats.corrected += stat; in nand_ecc_sw_hamming_finish_io_req()
|
D | core.c | 90 mtd->ecc_stats.badblocks++; in nanddev_markbad()
|
/linux-6.6.21/drivers/mtd/nand/spi/ |
D | core.c | 315 mtd->ecc_stats.failed++; in spinand_ondie_ecc_finish_io_req() 317 mtd->ecc_stats.corrected += ret; in spinand_ondie_ecc_finish_io_req() 650 old_stats = mtd->ecc_stats; in spinand_mtd_read() 676 mtd->ecc_stats.failed - old_stats.failed; in spinand_mtd_read() 678 mtd->ecc_stats.corrected - old_stats.corrected; in spinand_mtd_read()
|
/linux-6.6.21/include/uapi/mtd/ |
D | mtd-abi.h | 138 struct mtd_read_req_ecc_stats ecc_stats; member
|
/linux-6.6.21/drivers/mtd/devices/ |
D | docg3.c | 899 old_stats = mtd->ecc_stats; in doc_read_oob() 949 mtd->ecc_stats.failed++; in doc_read_oob() 953 mtd->ecc_stats.corrected += ret; in doc_read_oob() 973 mtd->ecc_stats.failed - old_stats.failed; in doc_read_oob() 975 mtd->ecc_stats.corrected - old_stats.corrected; in doc_read_oob()
|