Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/mtd/nand/raw/
H A 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()
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 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()
H A Dnand_base.c594 mtd->ecc_stats.badblocks++; in nand_block_markbad_lowlevel()
3085 mtd->ecc_stats.failed++; in nand_read_page_swecc()
3087 mtd->ecc_stats.corrected += stat; in nand_read_page_swecc()
3196 mtd->ecc_stats.failed++; in nand_read_subpage()
3198 mtd->ecc_stats.corrected += stat; in nand_read_subpage()
3267 mtd->ecc_stats.failed++; in nand_read_page_hwecc()
3269 mtd->ecc_stats.corrected += stat; in nand_read_page_hwecc()
3333 mtd->ecc_stats.failed++; in nand_read_page_hwecc_oob_first()
3335 mtd->ecc_stats.corrected += stat; in nand_read_page_hwecc_oob_first()
3417 mtd->ecc_stats.failed++; in nand_read_page_syndrome()
[all …]
H A 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()
H A 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()
/openbmc/u-boot/drivers/mtd/
H A Dmtdconcat.c94 mtd->ecc_stats.failed++; in concat_read()
97 mtd->ecc_stats.corrected++; in concat_read()
263 mtd->ecc_stats.failed++; in concat_read_oob()
266 mtd->ecc_stats.corrected++; in concat_read_oob()
646 mtd->ecc_stats.badblocks++; in concat_block_markbad()
747 concat->mtd.ecc_stats.badblocks = subdev[0]->ecc_stats.badblocks; in mtd_concat_create()
791 concat->mtd.ecc_stats.badblocks += in mtd_concat_create()
792 subdev[i]->ecc_stats.badblocks; in mtd_concat_create()
H A Dmtdpart.c295 stats = mtd->parent->ecc_stats; in part_read()
299 mtd->ecc_stats.failed += in part_read()
300 mtd->parent->ecc_stats.failed - stats.failed; in part_read()
302 mtd->ecc_stats.corrected += in part_read()
303 mtd->parent->ecc_stats.corrected - stats.corrected; in part_read()
360 mtd->ecc_stats.corrected++; in part_read_oob()
362 mtd->ecc_stats.failed++; in part_read_oob()
518 mtd->ecc_stats.badblocks++; in part_block_markbad()
767 slave->ecc_stats.badblocks++; in allocate_partition()
/openbmc/linux/drivers/mtd/
H A 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()
H A 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()
1489 diff = master->ecc_stats; in mtd_update_ecc_stats()
1494 mtd->ecc_stats.failed += diff.failed; in mtd_update_ecc_stats()
[all …]
H A 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()
/openbmc/linux/drivers/spi/
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()
/openbmc/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()
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_base.c474 mtd->ecc_stats.badblocks++; in nand_block_markbad_lowlevel()
1309 mtd->ecc_stats.failed++; in nand_read_page_swecc()
1311 mtd->ecc_stats.corrected += stat; in nand_read_page_swecc()
1412 mtd->ecc_stats.failed++; in nand_read_subpage()
1414 mtd->ecc_stats.corrected += stat; in nand_read_subpage()
1470 mtd->ecc_stats.failed++; in nand_read_page_hwecc()
1472 mtd->ecc_stats.corrected += stat; in nand_read_page_hwecc()
1531 mtd->ecc_stats.failed++; in nand_read_page_hwecc_oob_first()
1533 mtd->ecc_stats.corrected += stat; in nand_read_page_hwecc_oob_first()
1595 mtd->ecc_stats.failed++; in nand_read_page_syndrome()
[all …]
H A Dfsl_ifc_nand.c319 mtd->ecc_stats.corrected += errors; in fsl_ifc_run_command()
724 mtd->ecc_stats.failed++; in check_erased_page()
726 mtd->ecc_stats.corrected += res; in check_erased_page()
749 mtd->ecc_stats.failed++; in fsl_ifc_read_page()
H A Dzynq_nand.c710 mtd->ecc_stats.failed++; in zynq_nand_read_page_hwecc()
712 mtd->ecc_stats.corrected += stat; in zynq_nand_read_page_hwecc()
752 mtd->ecc_stats.failed++; in zynq_nand_read_page_swecc()
754 mtd->ecc_stats.corrected += stat; in zynq_nand_read_page_swecc()
H A Dfsmc_nand.c384 mtd->ecc_stats.failed++; in fsmc_read_page_hwecc()
386 mtd->ecc_stats.corrected += stat; in fsmc_read_page_hwecc()
H A Dlpc32xx_nand_slc.c440 mtd->ecc_stats.failed++; in lpc32xx_read_page_hwecc()
442 mtd->ecc_stats.corrected += stat; in lpc32xx_read_page_hwecc()
/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/mtd/nand/spi/
H A 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()
/openbmc/linux/include/uapi/mtd/
H A Dmtd-abi.h138 struct mtd_read_req_ecc_stats ecc_stats; member
/openbmc/u-boot/drivers/mtd/nand/
H A Dcore.c89 mtd->ecc_stats.badblocks++; in nanddev_markbad()

123