Home
last modified time | relevance | path

Searched refs:ecc_stats (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v5.4/drivers/mtd/
Dmtdpart.c72 stats = part->parent->ecc_stats; in part_read()
76 mtd->ecc_stats.failed += in part_read()
77 part->parent->ecc_stats.failed - stats.failed; in part_read()
79 mtd->ecc_stats.corrected += in part_read()
80 part->parent->ecc_stats.corrected - stats.corrected; in part_read()
107 stats = part->parent->ecc_stats; in part_read_oob()
110 mtd->ecc_stats.failed += in part_read_oob()
111 part->parent->ecc_stats.failed - stats.failed; in part_read_oob()
113 mtd->ecc_stats.corrected += in part_read_oob()
114 part->parent->ecc_stats.corrected - stats.corrected; in part_read_oob()
[all …]
Dmtdconcat.c83 mtd->ecc_stats.failed++; in concat_read()
86 mtd->ecc_stats.corrected++; in concat_read()
246 mtd->ecc_stats.failed++; in concat_read_oob()
249 mtd->ecc_stats.corrected++; in concat_read_oob()
583 mtd->ecc_stats.badblocks++; in concat_block_markbad()
652 concat->mtd.ecc_stats.badblocks = subdev[0]->ecc_stats.badblocks; in mtd_concat_create()
682 concat->mtd.ecc_stats.badblocks += in mtd_concat_create()
683 subdev[i]->ecc_stats.badblocks; in mtd_concat_create()
Dmtdcore.c273 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_ecc_stats_corrected_show() local
275 return snprintf(buf, PAGE_SIZE, "%u\n", ecc_stats->corrected); in mtd_ecc_stats_corrected_show()
284 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_ecc_stats_errors_show() local
286 return snprintf(buf, PAGE_SIZE, "%u\n", ecc_stats->failed); in mtd_ecc_stats_errors_show()
294 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_badblocks_show() local
296 return snprintf(buf, PAGE_SIZE, "%u\n", ecc_stats->badblocks); in mtd_badblocks_show()
304 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_bbtblocks_show() local
306 return snprintf(buf, PAGE_SIZE, "%u\n", ecc_stats->bbtblocks); in mtd_bbtblocks_show()
/Linux-v5.4/drivers/mtd/nand/raw/
Dnand_micron.c199 mtd->ecc_stats.failed++; in micron_nand_on_die_ecc_status_4()
249 mtd->ecc_stats.corrected += nbitflips; in micron_nand_on_die_ecc_status_4()
265 mtd->ecc_stats.failed++; in micron_nand_on_die_ecc_status_8()
268 mtd->ecc_stats.corrected += 3; in micron_nand_on_die_ecc_status_8()
271 mtd->ecc_stats.corrected += 6; in micron_nand_on_die_ecc_status_8()
275 mtd->ecc_stats.corrected += 8; in micron_nand_on_die_ecc_status_8()
Dnand_toshiba.c31 mtd->ecc_stats.failed++; in toshiba_nand_benand_eccstatus()
35 mtd->ecc_stats.corrected += max_bitflips; in toshiba_nand_benand_eccstatus()
Ddenali.c413 struct mtd_ecc_stats *ecc_stats = &nand_to_mtd(chip)->ecc_stats; in denali_check_erased_page() local
426 ecc_stats->failed++; in denali_check_erased_page()
428 ecc_stats->corrected += stat; in denali_check_erased_page()
443 struct mtd_ecc_stats *ecc_stats = &nand_to_mtd(chip)->ecc_stats; in denali_hw_ecc_fixup() local
469 ecc_stats->corrected += max_bitflips; in denali_hw_ecc_fixup()
478 struct mtd_ecc_stats *ecc_stats = &nand_to_mtd(chip)->ecc_stats; in denali_sw_ecc_fixup() local
528 ecc_stats->corrected += flips_in_byte; in denali_sw_ecc_fixup()
Dmxc_nand.c733 uint16_t ecc_stats; in mxc_nand_read_page_v1() local
743 ecc_stats = get_ecc_status_v1(host); in mxc_nand_read_page_v1()
745 ecc_stats >>= 2; in mxc_nand_read_page_v1()
748 switch (ecc_stats & 0x3) { in mxc_nand_read_page_v1()
753 mtd->ecc_stats.corrected++; in mxc_nand_read_page_v1()
757 mtd->ecc_stats.failed++; in mxc_nand_read_page_v1()
807 mtd->ecc_stats.failed++; in mxc_nand_read_page_v2_v3()
809 mtd->ecc_stats.corrected += err; in mxc_nand_read_page_v2_v3()
Dnand_base.c608 mtd->ecc_stats.badblocks++; in nand_block_markbad_lowlevel()
2724 mtd->ecc_stats.failed++; in nand_read_page_swecc()
2726 mtd->ecc_stats.corrected += stat; in nand_read_page_swecc()
2835 mtd->ecc_stats.failed++; in nand_read_subpage()
2837 mtd->ecc_stats.corrected += stat; in nand_read_subpage()
2905 mtd->ecc_stats.failed++; in nand_read_page_hwecc()
2907 mtd->ecc_stats.corrected += stat; in nand_read_page_hwecc()
2975 mtd->ecc_stats.failed++; in nand_read_page_hwecc_oob_first()
2977 mtd->ecc_stats.corrected += stat; in nand_read_page_hwecc_oob_first()
3058 mtd->ecc_stats.failed++; in nand_read_page_syndrome()
[all …]
Dtango_nand.c190 mtd->ecc_stats.failed++; in check_erased_page()
192 mtd->ecc_stats.corrected += res; in check_erased_page()
218 mtd->ecc_stats.corrected += in decode_error_report()
Dfsl_ifc_nand.c240 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()
Dmeson_nand.c455 mtd->ecc_stats.corrected += ECC_ERR_CNT(*info); in meson_nfc_ecc_correct()
462 mtd->ecc_stats.corrected += ECC_ZERO_CNT(*info); in meson_nfc_ecc_correct()
792 mtd->ecc_stats.failed++; in meson_nfc_read_page_hwecc()
810 mtd->ecc_stats.failed++; in meson_nfc_read_page_hwecc()
812 mtd->ecc_stats.corrected += ret; in meson_nfc_read_page_hwecc()
Dtegra_nand.c706 mtd->ecc_stats.failed += hweight8(fail_sec_flag); in tegra_nand_read_page_hwecc()
731 mtd->ecc_stats.failed++; in tegra_nand_read_page_hwecc()
733 mtd->ecc_stats.corrected += ret; in tegra_nand_read_page_hwecc()
754 mtd->ecc_stats.corrected += max_corr_cnt * hweight8(corr_sec_flag); in tegra_nand_read_page_hwecc()
Dhisi504_nand.c531 mtd->ecc_stats.failed++; in hisi_nand_read_page_hwecc()
543 mtd->ecc_stats.corrected += stat; in hisi_nand_read_page_hwecc()
Dlpc32xx_mlc.c468 mtd->ecc_stats.failed++; in lpc32xx_read_page()
471 mtd->ecc_stats.corrected += ((mlc_isr >> 4) & 0x3) + 1; in lpc32xx_read_page()
Dnand_bbt.c222 mtd->ecc_stats.bbtblocks++; in read_bbt()
239 mtd->ecc_stats.badblocks++; in read_bbt()
500 mtd->ecc_stats.badblocks++; in create_bbt()
Dvf610_nfc.c591 mtd->ecc_stats.failed++; in vf610_nfc_read_page()
594 mtd->ecc_stats.corrected += stat; in vf610_nfc_read_page()
Dcafe_nand.c439 mtd->ecc_stats.failed++; in cafe_nand_read_page()
442 mtd->ecc_stats.corrected += n; in cafe_nand_read_page()
Dfsl_elbc_nand.c268 mtd->ecc_stats.corrected++; in fsl_elbc_run_command()
647 mtd->ecc_stats.failed++; in fsl_elbc_read_page()
Dlpc32xx_slc.c634 mtd->ecc_stats.failed++; in lpc32xx_nand_read_page_syndrome()
636 mtd->ecc_stats.corrected += stat; in lpc32xx_nand_read_page_syndrome()
Dstm32_fmc2_nand.c763 mtd->ecc_stats.failed++; in stm32_fmc2_read_page()
765 mtd->ecc_stats.corrected += stat; in stm32_fmc2_read_page()
1127 mtd->ecc_stats.failed++; in stm32_fmc2_sequencer_correct()
1129 mtd->ecc_stats.corrected += stat; in stm32_fmc2_sequencer_correct()
/Linux-v5.4/drivers/mtd/tests/
Dnandbiterrs.c138 memcpy(&oldstats, &mtd->ecc_stats, sizeof(oldstats)); in read_page()
142 err = mtd->ecc_stats.corrected - oldstats.corrected; in read_page()
/Linux-v5.4/drivers/mtd/nand/onenand/
Donenand_bbt.c106 mtd->ecc_stats.badblocks++; in create_bbt()
Donenand_base.c588 mtd->ecc_stats.failed++; in onenand_wait()
593 mtd->ecc_stats.corrected++; in onenand_wait()
1103 mtd->ecc_stats.failed--; in onenand_recover_lsb()
1148 stats = mtd->ecc_stats; in onenand_mlc_read_ops_nolock()
1205 if (mtd->ecc_stats.failed - stats.failed) in onenand_mlc_read_ops_nolock()
1209 return mtd->ecc_stats.corrected != stats.corrected ? 1 : 0; in onenand_mlc_read_ops_nolock()
1249 stats = mtd->ecc_stats; in onenand_read_ops_nolock()
1334 if (mtd->ecc_stats.failed - stats.failed) in onenand_read_ops_nolock()
1338 return mtd->ecc_stats.corrected != stats.corrected ? 1 : 0; in onenand_read_ops_nolock()
1381 stats = mtd->ecc_stats; in onenand_read_oob_nolock()
[all …]
Domap2.c278 mtd->ecc_stats.failed++; in omap2_onenand_wait()
284 mtd->ecc_stats.corrected++; in omap2_onenand_wait()
/Linux-v5.4/drivers/mtd/nand/
Dcore.c87 mtd->ecc_stats.badblocks++; in nanddev_markbad()

12