Home
last modified time | relevance | path

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

12

/linux-6.6.21/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()
Dnand_base.c594 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 …]
Dmxc_nand.c730 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()
Drenesas-nand-controller.c466 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()
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()
Dtegra_nand.c711 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()
Dmeson_nand.c543 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()
Dpl35x-nand-controller.c485 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/
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.c305 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 …]
Dmtdchar.c720 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()
Dmtdpart.c211 child->ecc_stats.bbtblocks++; in allocate_partition()
213 child->ecc_stats.badblocks++; in allocate_partition()
/linux-6.6.21/drivers/spi/
Dspi-mtk-snfi.c314 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/
Dnandbiterrs.c138 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/
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_bbt.c106 mtd->ecc_stats.badblocks++; in create_bbt()
Donenand_omap2.c278 mtd->ecc_stats.failed++; in omap2_onenand_wait()
284 mtd->ecc_stats.corrected++; in omap2_onenand_wait()
/linux-6.6.21/drivers/mtd/nand/
Decc-sw-bch.c375 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()
Decc-sw-hamming.c629 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()
Dcore.c90 mtd->ecc_stats.badblocks++; in nanddev_markbad()
/linux-6.6.21/drivers/mtd/nand/spi/
Dcore.c315 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/
Dmtd-abi.h138 struct mtd_read_req_ecc_stats ecc_stats; member
/linux-6.6.21/drivers/mtd/devices/
Ddocg3.c899 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()

12