Home
last modified time | relevance | path

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

12

/linux/drivers/mtd/nand/raw/
H A 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()
H A 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()
H A Dfsl_ifc_nand.c241 mtd->ecc_stats.corrected += errors; in fsl_ifc_run_command()
656 mtd->ecc_stats.failed++; in check_erased_page()
658 mtd->ecc_stats.corrected += res; in check_erased_page()
688 mtd->ecc_stats.failed++; in fsl_ifc_read_page()
693 mtd->ecc_stats.failed++; in fsl_ifc_read_page()
H A 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()
H A Dmeson_nand.c571 mtd->ecc_stats.corrected += ECC_ERR_CNT(*info); in meson_nfc_ecc_correct()
578 mtd->ecc_stats.corrected += ECC_ZERO_CNT(*info); in meson_nfc_ecc_correct()
899 mtd->ecc_stats.failed++; in meson_nfc_read_page_hwecc()
917 mtd->ecc_stats.failed++; in meson_nfc_read_page_hwecc()
919 mtd->ecc_stats.corrected += ret; in meson_nfc_read_page_hwecc()
H A 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()
H A Dlpc32xx_mlc.c476 mtd->ecc_stats.failed++; in lpc32xx_read_page()
479 mtd->ecc_stats.corrected += ((mlc_isr >> 4) & 0x3) + 1; in lpc32xx_read_page()
H A Dnand_bbt.c222 mtd->ecc_stats.bbtblocks++; in read_bbt()
239 mtd->ecc_stats.badblocks++; in read_bbt()
529 mtd->ecc_stats.badblocks++; in create_bbt()
H A Darasan-nand-controller.c477 mtd->ecc_stats.corrected += bf; in anfc_read_page_hw_ecc()
487 mtd->ecc_stats.corrected += bf; in anfc_read_page_hw_ecc()
491 mtd->ecc_stats.failed++; in anfc_read_page_hw_ecc()
H A Dfsl_elbc_nand.c267 mtd->ecc_stats.corrected++; in fsl_elbc_run_command()
645 mtd->ecc_stats.failed++; in fsl_elbc_read_page()
H A Dlpc32xx_slc.c640 mtd->ecc_stats.failed++; in lpc32xx_nand_read_page_syndrome()
642 mtd->ecc_stats.corrected += stat; in lpc32xx_nand_read_page_syndrome()
H A Dstm32_fmc2_nand.c738 mtd->ecc_stats.failed++; in stm32_fmc2_nfc_read_page()
740 mtd->ecc_stats.corrected += stat; in stm32_fmc2_nfc_read_page()
1094 mtd->ecc_stats.failed++; in stm32_fmc2_nfc_seq_correct()
1096 mtd->ecc_stats.corrected += stat; in stm32_fmc2_nfc_seq_correct()
H A Dsh_flctl.c651 mtd->ecc_stats.corrected++; in execmd_read_page_sector()
657 mtd->ecc_stats.failed++; in execmd_read_page_sector()
H A Dnuvoton-ma35d1-nand-controller.c408 mtd->ecc_stats.corrected += cnt; in ma35_nfi_ecc_check()
411 mtd->ecc_stats.failed++; in ma35_nfi_ecc_check()
/linux/drivers/spi/
H A Dspi-amlogic-spifc-a4.c193 struct aml_ecc_stats ecc_stats; member
672 sfc->ecc_stats.failed = 0; in aml_sfc_check_hwecc_status()
673 sfc->ecc_stats.bitflips = 0; in aml_sfc_check_hwecc_status()
674 sfc->ecc_stats.corrected = 0; in aml_sfc_check_hwecc_status()
680 sfc->ecc_stats.corrected += per_sector_bitflips; in aml_sfc_check_hwecc_status()
724 sfc->ecc_stats.failed++; in aml_sfc_read_page_hwecc()
726 sfc->ecc_stats.bitflips = ret; in aml_sfc_read_page_hwecc()
1050 if (sfc->ecc_stats.failed) in aml_sfc_ecc_finish_io_req()
1051 mtd->ecc_stats.failed++; in aml_sfc_ecc_finish_io_req()
1053 mtd->ecc_stats.corrected += sfc->ecc_stats.corrected; in aml_sfc_ecc_finish_io_req()
[all …]
H A 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()
H A Dspi-qpic-snand.c112 struct qcom_ecc_stats ecc_stats; member
465 if (snandc->qspi->ecc_stats.failed) in qcom_spi_ecc_finish_io_req_pipelined()
466 mtd->ecc_stats.failed += snandc->qspi->ecc_stats.failed; in qcom_spi_ecc_finish_io_req_pipelined()
468 mtd->ecc_stats.corrected += snandc->qspi->ecc_stats.corrected; in qcom_spi_ecc_finish_io_req_pipelined()
470 if (snandc->qspi->ecc_stats.failed) in qcom_spi_ecc_finish_io_req_pipelined()
473 return snandc->qspi->ecc_stats.bitflips; in qcom_spi_ecc_finish_io_req_pipelined()
674 snandc->qspi->ecc_stats.failed = 0; in qcom_spi_check_error()
675 snandc->qspi->ecc_stats.corrected = 0; in qcom_spi_check_error()
716 snandc->qspi->ecc_stats.corrected += stat; in qcom_spi_check_error()
725 snandc->qspi->ecc_stats.bitflips = max_bitflips; in qcom_spi_check_error()
[all …]
/linux/drivers/mtd/
H A Dmtdcore.c316 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_corrected_bits_show() local
318 return sysfs_emit(buf, "%u\n", ecc_stats->corrected); in mtd_corrected_bits_show()
326 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_ecc_failures_show() local
328 return sysfs_emit(buf, "%u\n", ecc_stats->failed); in mtd_ecc_failures_show()
336 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_bad_blocks_show() local
338 return sysfs_emit(buf, "%u\n", ecc_stats->badblocks); in mtd_bad_blocks_show()
346 struct mtd_ecc_stats *ecc_stats = &mtd->ecc_stats; in mtd_bbt_blocks_show() local
348 return sysfs_emit(buf, "%u\n", ecc_stats->bbtblocks); in mtd_bbt_blocks_show()
1582 diff = master->ecc_stats; in mtd_update_ecc_stats()
1587 mtd->ecc_stats.failed += diff.failed; in mtd_update_ecc_stats()
[all …]
/linux/drivers/mtd/tests/
H A Dnandbiterrs.c138 memcpy(&oldstats, &mtd->ecc_stats, sizeof(oldstats)); in read_page()
142 err = mtd->ecc_stats.corrected - oldstats.corrected; in read_page()
/linux/drivers/mtd/nand/onenand/
H A 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 …]
H A Donenand_bbt.c106 mtd->ecc_stats.badblocks++; in create_bbt()
/linux/drivers/mtd/nand/
H A 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()
H A 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()
/linux/include/uapi/mtd/
H A Dmtd-abi.h138 struct mtd_read_req_ecc_stats ecc_stats; member
/linux/include/linux/mtd/
H A Dmtd.h374 struct mtd_ecc_stats ecc_stats; member

12