| /Linux-v5.4/drivers/mtd/ |
| D | mtdpart.c | 72 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 …]
|
| D | mtdconcat.c | 83 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()
|
| D | mtdcore.c | 273 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/ |
| D | nand_micron.c | 199 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()
|
| D | nand_toshiba.c | 31 mtd->ecc_stats.failed++; in toshiba_nand_benand_eccstatus() 35 mtd->ecc_stats.corrected += max_bitflips; in toshiba_nand_benand_eccstatus()
|
| D | denali.c | 413 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()
|
| D | mxc_nand.c | 733 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()
|
| D | nand_base.c | 608 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 …]
|
| D | tango_nand.c | 190 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()
|
| D | fsl_ifc_nand.c | 240 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()
|
| D | meson_nand.c | 455 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()
|
| D | tegra_nand.c | 706 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()
|
| D | hisi504_nand.c | 531 mtd->ecc_stats.failed++; in hisi_nand_read_page_hwecc() 543 mtd->ecc_stats.corrected += stat; in hisi_nand_read_page_hwecc()
|
| D | lpc32xx_mlc.c | 468 mtd->ecc_stats.failed++; in lpc32xx_read_page() 471 mtd->ecc_stats.corrected += ((mlc_isr >> 4) & 0x3) + 1; in lpc32xx_read_page()
|
| D | nand_bbt.c | 222 mtd->ecc_stats.bbtblocks++; in read_bbt() 239 mtd->ecc_stats.badblocks++; in read_bbt() 500 mtd->ecc_stats.badblocks++; in create_bbt()
|
| D | vf610_nfc.c | 591 mtd->ecc_stats.failed++; in vf610_nfc_read_page() 594 mtd->ecc_stats.corrected += stat; in vf610_nfc_read_page()
|
| D | cafe_nand.c | 439 mtd->ecc_stats.failed++; in cafe_nand_read_page() 442 mtd->ecc_stats.corrected += n; in cafe_nand_read_page()
|
| D | fsl_elbc_nand.c | 268 mtd->ecc_stats.corrected++; in fsl_elbc_run_command() 647 mtd->ecc_stats.failed++; in fsl_elbc_read_page()
|
| D | lpc32xx_slc.c | 634 mtd->ecc_stats.failed++; in lpc32xx_nand_read_page_syndrome() 636 mtd->ecc_stats.corrected += stat; in lpc32xx_nand_read_page_syndrome()
|
| D | stm32_fmc2_nand.c | 763 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/ |
| D | nandbiterrs.c | 138 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/ |
| D | onenand_bbt.c | 106 mtd->ecc_stats.badblocks++; in create_bbt()
|
| D | onenand_base.c | 588 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 …]
|
| D | omap2.c | 278 mtd->ecc_stats.failed++; in omap2_onenand_wait() 284 mtd->ecc_stats.corrected++; in omap2_onenand_wait()
|
| /Linux-v5.4/drivers/mtd/nand/ |
| D | core.c | 87 mtd->ecc_stats.badblocks++; in nanddev_markbad()
|