| /linux/drivers/mtd/nand/raw/ |
| H A D | nand_toshiba.c | 65 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 D | nand_micron.c | 200 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 D | mxc_nand.c | 358 unsigned int ecc_stats, max_bitflips = 0; in get_ecc_status_v1() local 363 ecc_stats = host->ecc_stats_v1; in get_ecc_status_v1() 366 switch (ecc_stats & 0x3) { in get_ecc_status_v1() 371 mtd->ecc_stats.corrected++; in get_ecc_status_v1() 375 mtd->ecc_stats.failed++; in get_ecc_status_v1() 379 ecc_stats >>= 2; in get_ecc_status_v1() 401 mtd->ecc_stats.failed++; in get_ecc_status_v2_v3() 403 mtd->ecc_stats.corrected += err; in get_ecc_status_v2_v3() 713 unsigned int ecc_stats = 0; in mxc_nand_read_page_v1() local 730 ecc_stats |= FIELD_GET(NFC_V1_V2_ECC_STATUS_RESULT_ERM, in mxc_nand_read_page_v1() [all …]
|
| H A D | denali.c | 412 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 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()
|
| H A D | tegra_nand.c | 711 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 D | meson_nand.c | 571 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 D | nand_bbt.c | 222 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 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()
|
| H A 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()
|
| H A D | vf610_nfc.c | 589 mtd->ecc_stats.failed++; in vf610_nfc_read_page() 592 mtd->ecc_stats.corrected += stat; in vf610_nfc_read_page()
|
| H A D | arasan-nand-controller.c | 477 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 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()
|
| H A D | fsl_elbc_nand.c | 267 mtd->ecc_stats.corrected++; in fsl_elbc_run_command() 645 mtd->ecc_stats.failed++; in fsl_elbc_read_page()
|
| H A D | stm32_fmc2_nand.c | 738 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()
|
| /linux/drivers/spi/ |
| H A D | spi-amlogic-spifc-a4.c | 193 struct aml_ecc_stats ecc_stats; member 673 sfc->ecc_stats.failed = 0; in aml_sfc_check_hwecc_status() 674 sfc->ecc_stats.bitflips = 0; in aml_sfc_check_hwecc_status() 675 sfc->ecc_stats.corrected = 0; in aml_sfc_check_hwecc_status() 681 sfc->ecc_stats.corrected += per_sector_bitflips; in aml_sfc_check_hwecc_status() 725 sfc->ecc_stats.failed++; in aml_sfc_read_page_hwecc() 727 sfc->ecc_stats.bitflips = ret; in aml_sfc_read_page_hwecc() 1051 if (sfc->ecc_stats.failed) in aml_sfc_ecc_finish_io_req() 1052 mtd->ecc_stats.failed++; in aml_sfc_ecc_finish_io_req() 1054 mtd->ecc_stats.corrected += sfc->ecc_stats.corrected; in aml_sfc_ecc_finish_io_req() [all …]
|
| /linux/drivers/mtd/ |
| H A D | mtdconcat.c | 83 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 D | mtdchar.c | 722 req.ecc_stats.uncorrectable_errors = 0; in mtdchar_read_ioctl() 723 req.ecc_stats.corrected_bitflips = 0; in mtdchar_read_ioctl() 724 req.ecc_stats.max_bitflips = 0; in mtdchar_read_ioctl() 775 req.ecc_stats.uncorrectable_errors += in mtdchar_read_ioctl() 777 req.ecc_stats.corrected_bitflips += stats.corrected_bitflips; in mtdchar_read_ioctl() 778 req.ecc_stats.max_bitflips = in mtdchar_read_ioctl() 779 max(req.ecc_stats.max_bitflips, stats.max_bitflips); in mtdchar_read_ioctl() 805 if (req.ecc_stats.uncorrectable_errors > 0) in mtdchar_read_ioctl() 807 else if (req.ecc_stats.corrected_bitflips > 0) in mtdchar_read_ioctl() 1179 if (copy_to_user(argp, &mtd->ecc_stats, in mtdchar_ioctl()
|
| /linux/drivers/mtd/tests/ |
| H A 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/drivers/mtd/nand/ |
| H A D | ecc-sw-bch.c | 375 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 D | ecc-realtek.c | 287 mtd->ecc_stats.failed++; in rtl_ecc_finish_io_req() 289 mtd->ecc_stats.corrected += ret; in rtl_ecc_finish_io_req()
|
| H A D | ecc-sw-hamming.c | 629 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 D | mtd-abi.h | 138 struct mtd_read_req_ecc_stats ecc_stats; member
|
| /linux/drivers/mtd/nand/onenand/ |
| H A D | onenand_bbt.c | 106 mtd->ecc_stats.badblocks++; in create_bbt()
|
| /linux/drivers/mtd/devices/ |
| H A D | docg3.c | 899 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()
|