Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
Dnand_toshiba.c65 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()
Dnand_micron.c200 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()
Ddenali.c412 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()
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.c550 mtd->ecc_stats.badblocks++; in nand_block_markbad_lowlevel()
2758 mtd->ecc_stats.failed++; in nand_read_page_swecc()
2760 mtd->ecc_stats.corrected += stat; in nand_read_page_swecc()
2869 mtd->ecc_stats.failed++; in nand_read_subpage()
2871 mtd->ecc_stats.corrected += stat; in nand_read_subpage()
2940 mtd->ecc_stats.failed++; in nand_read_page_hwecc()
2942 mtd->ecc_stats.corrected += stat; in nand_read_page_hwecc()
3023 mtd->ecc_stats.failed++; in nand_read_page_syndrome()
3025 mtd->ecc_stats.corrected += stat; in nand_read_page_syndrome()
3143 struct mtd_ecc_stats ecc_stats = mtd->ecc_stats; in nand_do_read_ops() local
[all …]
Dtango_nand.c211 mtd->ecc_stats.failed++; in check_erased_page()
213 mtd->ecc_stats.corrected += res; in check_erased_page()
239 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.c708 mtd->ecc_stats.failed += hweight8(fail_sec_flag); in tegra_nand_read_page_hwecc()
733 mtd->ecc_stats.failed++; in tegra_nand_read_page_hwecc()
735 mtd->ecc_stats.corrected += ret; in tegra_nand_read_page_hwecc()
756 mtd->ecc_stats.corrected += max_corr_cnt * hweight8(corr_sec_flag); in tegra_nand_read_page_hwecc()
Darasan-nand-controller.c413 mtd->ecc_stats.corrected += bf; in anfc_read_page_hw_ecc()
423 mtd->ecc_stats.corrected += bf; in anfc_read_page_hw_ecc()
427 mtd->ecc_stats.failed++; in anfc_read_page_hw_ecc()
Ddavinci_nand.c432 mtd->ecc_stats.failed++; in nand_davinci_read_page_hwecc_oob_first()
434 mtd->ecc_stats.corrected += stat; in nand_davinci_read_page_hwecc_oob_first()
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()
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()
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.c588 mtd->ecc_stats.failed++; in vf610_nfc_read_page()
591 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()
646 mtd->ecc_stats.failed++; in fsl_elbc_read_page()
/kernel/linux/linux-5.10/drivers/mtd/
Dmtdconcat.c83 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()
Dmtdcore.c308 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_ecc_stats_corrected_show() local
310 return snprintf(buf, PAGE_SIZE, "%u\n", ecc_stats->corrected); in mtd_ecc_stats_corrected_show()
319 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_ecc_stats_errors_show() local
321 return snprintf(buf, PAGE_SIZE, "%u\n", ecc_stats->failed); in mtd_ecc_stats_errors_show()
329 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_badblocks_show() local
331 return snprintf(buf, PAGE_SIZE, "%u\n", ecc_stats->badblocks); in mtd_badblocks_show()
339 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_bbtblocks_show() local
341 return snprintf(buf, PAGE_SIZE, "%u\n", ecc_stats->bbtblocks); in mtd_bbtblocks_show()
1234 diff = master->ecc_stats; in mtd_update_ecc_stats()
1239 mtd->ecc_stats.failed += diff.failed; in mtd_update_ecc_stats()
[all …]
Dmtdpart.c204 child->ecc_stats.bbtblocks++; in allocate_partition()
206 child->ecc_stats.badblocks++; in allocate_partition()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
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 …]
Donenand_omap2.c278 mtd->ecc_stats.failed++; in omap2_onenand_wait()
284 mtd->ecc_stats.corrected++; in omap2_onenand_wait()
/kernel/linux/linux-5.10/drivers/mtd/nand/
Dcore.c87 mtd->ecc_stats.badblocks++; in nanddev_markbad()

12