Home
last modified time | relevance | path

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

12

/linux/drivers/mtd/nand/raw/
H A Dnand_toshiba.c54 unsigned int max_bitflips = 0; in toshiba_nand_benand_eccstatus() local
68 max_bitflips = max(max_bitflips, bitflips); in toshiba_nand_benand_eccstatus()
72 return max_bitflips; in toshiba_nand_benand_eccstatus()
88 max_bitflips = mtd->bitflip_threshold; in toshiba_nand_benand_eccstatus()
89 mtd->ecc_stats.corrected += max_bitflips; in toshiba_nand_benand_eccstatus()
92 return max_bitflips; in toshiba_nand_benand_eccstatus()
H A Dnand_micron.c194 unsigned int step, max_bitflips = 0; in micron_nand_on_die_ecc_status_4() local
268 max_bitflips = max(nbitflips, max_bitflips); in micron_nand_on_die_ecc_status_4()
272 return max_bitflips; in micron_nand_on_die_ecc_status_4()
310 int ret, max_bitflips = 0; in micron_nand_read_page_on_die_ecc() local
356 max_bitflips = micron_nand_on_die_ecc_status_4(chip, status, in micron_nand_read_page_on_die_ecc()
360 max_bitflips = micron_nand_on_die_ecc_status_8(chip, status); in micron_nand_read_page_on_die_ecc()
365 return ret ? ret : max_bitflips; in micron_nand_read_page_on_die_ecc()
H A Ddenali.c409 unsigned int max_bitflips) in denali_check_erased_page() argument
428 max_bitflips = max_t(unsigned int, max_bitflips, stat); in denali_check_erased_page()
435 return max_bitflips; in denali_check_erased_page()
445 unsigned int max_bitflips; in denali_hw_ecc_fixup() local
460 max_bitflips = FIELD_GET(ECC_COR_INFO__MAX_ERRORS, ecc_cor); in denali_hw_ecc_fixup()
468 ecc_stats->corrected += max_bitflips; in denali_hw_ecc_fixup()
470 return max_bitflips; in denali_hw_ecc_fixup()
480 unsigned int max_bitflips = 0; in denali_sw_ecc_fixup() local
530 max_bitflips = max(max_bitflips, bitflips); in denali_sw_ecc_fixup()
544 return max_bitflips; in denali_sw_ecc_fixup()
H A Dsunxi_nand.c747 unsigned int *max_bitflips, int ret) in sunxi_nfc_hw_ecc_update_stats() argument
755 *max_bitflips = max_t(unsigned int, *max_bitflips, ret); in sunxi_nfc_hw_ecc_update_stats()
799 unsigned int *max_bitflips, in sunxi_nfc_hw_ecc_read_chunk() argument
871 sunxi_nfc_hw_ecc_update_stats(nand, max_bitflips, ret); in sunxi_nfc_hw_ecc_read_chunk()
910 unsigned int max_bitflips = 0; in sunxi_nfc_hw_ecc_read_chunks_dma() local
983 sunxi_nfc_hw_ecc_update_stats(nand, &max_bitflips, ret); in sunxi_nfc_hw_ecc_read_chunks_dma()
1018 sunxi_nfc_hw_ecc_update_stats(nand, &max_bitflips, ret); in sunxi_nfc_hw_ecc_read_chunks_dma()
1027 return max_bitflips; in sunxi_nfc_hw_ecc_read_chunks_dma()
1096 unsigned int max_bitflips = 0; in sunxi_nfc_hw_ecc_read_page() local
1114 &cur_off, &max_bitflips, in sunxi_nfc_hw_ecc_read_page()
[all …]
H A Dmarvell_nand.c956 unsigned int *max_bitflips) in marvell_nfc_check_empty_chunk() argument
982 *max_bitflips = max_t(unsigned int, *max_bitflips, bf); in marvell_nfc_check_empty_chunk()
993 unsigned int *max_bitflips) in marvell_nfc_hw_ecc_check_bitflips() argument
1028 *max_bitflips = max_t(unsigned int, *max_bitflips, bf); in marvell_nfc_hw_ecc_check_bitflips()
1100 int max_bitflips = 0, ret; in marvell_nfc_hw_ecc_hmg_read_page() local
1107 ret = marvell_nfc_hw_ecc_check_bitflips(chip, &max_bitflips); in marvell_nfc_hw_ecc_hmg_read_page()
1111 return max_bitflips; in marvell_nfc_hw_ecc_hmg_read_page()
1124 &max_bitflips); in marvell_nfc_hw_ecc_hmg_read_page()
1127 return max_bitflips; in marvell_nfc_hw_ecc_hmg_read_page()
1378 int max_bitflips = 0; in marvell_nfc_hw_ecc_bch_read_page() local
[all …]
H A Dnand_base.c3084 unsigned int max_bitflips = 0; in nand_read_page_swecc() local
3107 max_bitflips = max_t(unsigned int, max_bitflips, stat); in nand_read_page_swecc()
3110 return max_bitflips; in nand_read_page_swecc()
3131 unsigned int max_bitflips = 0; in nand_read_subpage() local
3218 max_bitflips = max_t(unsigned int, max_bitflips, stat); in nand_read_subpage()
3221 return max_bitflips; in nand_read_subpage()
3243 unsigned int max_bitflips = 0; in nand_read_page_hwecc() local
3289 max_bitflips = max_t(unsigned int, max_bitflips, stat); in nand_read_page_hwecc()
3292 return max_bitflips; in nand_read_page_hwecc()
3315 unsigned int max_bitflips = 0; in nand_read_page_hwecc_oob_first() local
[all …]
H A Dhisi504_nand.c523 int max_bitflips = 0, stat = 0, stat_max = 0, status_ecc; in hisi_nand_read_page_hwecc() local
544 max_bitflips = max_t(int, max_bitflips, stat_max); in hisi_nand_read_page_hwecc()
548 return max_bitflips; in hisi_nand_read_page_hwecc()
H A Dmxc_nand.c358 unsigned int ecc_stats, max_bitflips = 0; in get_ecc_status_v1() local
372 max_bitflips = 1; in get_ecc_status_v1()
382 return max_bitflips; in get_ecc_status_v1()
390 unsigned int max_bitflips = 0; in get_ecc_status_v2_v3() local
404 max_bitflips = max_t(unsigned int, max_bitflips, err); in get_ecc_status_v2_v3()
410 return max_bitflips; in get_ecc_status_v2_v3()
H A Dfsl_ifc_nand.c53 unsigned int max_bitflips; /* Saved during READ0 cmd */ member
209 nctrl->max_bitflips = 0; in fsl_ifc_run_command()
241 nctrl->max_bitflips = max_t(unsigned int, in fsl_ifc_run_command()
242 nctrl->max_bitflips, in fsl_ifc_run_command()
689 return nctrl->max_bitflips; in fsl_ifc_read_page()
H A Drockchip-nand-controller.c766 int max_bitflips = 0, bch_st, ecc_fail = 0; in rk_nfc_read_page_hwecc() local
844 max_bitflips = max_t(u32, max_bitflips, cnt); in rk_nfc_read_page_hwecc()
848 max_bitflips = max_t(u32, max_bitflips, cnt); in rk_nfc_read_page_hwecc()
867 return max_bitflips; in rk_nfc_read_page_hwecc()
H A Dcafe_nand.c375 unsigned int max_bitflips = 0; in cafe_nand_read_page() local
443 max_bitflips = max_t(unsigned int, max_bitflips, n); in cafe_nand_read_page()
447 return max_bitflips; in cafe_nand_read_page()
H A Dfsl_elbc_nand.c63 unsigned int max_bitflips; /* Saved during READ0 cmd */ member
249 elbc_fcm_ctrl->max_bitflips = 0; in fsl_elbc_run_command()
268 elbc_fcm_ctrl->max_bitflips = 1; in fsl_elbc_run_command()
647 return elbc_fcm_ctrl->max_bitflips; in fsl_elbc_read_page()
H A Darasan-nand-controller.c399 unsigned int max_bitflips = 0; in anfc_read_page_hw_ecc() local
478 max_bitflips = max_t(unsigned int, max_bitflips, bf); in anfc_read_page_hw_ecc()
488 max_bitflips = max_t(unsigned int, max_bitflips, bf); in anfc_read_page_hw_ecc()
H A Drenesas-nand-controller.c414 unsigned int max_bitflips = 0; in rnandc_read_page_hw_ecc() local
469 max_bitflips = max_t(unsigned int, max_bitflips, bf); in rnandc_read_page_hw_ecc()
509 unsigned int max_bitflips = 0, i; in rnandc_read_subpage_hw_ecc() local
563 max_bitflips = max_t(unsigned int, max_bitflips, bf); in rnandc_read_subpage_hw_ecc()
H A Dstm32_fmc2_nand.c705 unsigned int max_bitflips = 0; in stm32_fmc2_nfc_read_page() local
740 max_bitflips = max_t(unsigned int, max_bitflips, stat); in stm32_fmc2_nfc_read_page()
753 return max_bitflips; in stm32_fmc2_nfc_read_page()
1055 unsigned int max_bitflips = 0; in stm32_fmc2_nfc_seq_correct() local
1096 max_bitflips = max_t(unsigned int, max_bitflips, stat); in stm32_fmc2_nfc_seq_correct()
1100 return max_bitflips; in stm32_fmc2_nfc_seq_correct()
H A Dfsmc_nand.c723 unsigned int max_bitflips = 0; in fsmc_read_page_hwecc() local
762 max_bitflips = max_t(unsigned int, max_bitflips, stat); in fsmc_read_page_hwecc()
766 return max_bitflips; in fsmc_read_page_hwecc()
H A Dpl35x-nand-controller.c471 unsigned int max_bitflips = 0, chunk; in pl35x_nand_recover_data_hwecc() local
495 max_bitflips = max_t(unsigned int, max_bitflips, stats); in pl35x_nand_recover_data_hwecc()
499 return max_bitflips; in pl35x_nand_recover_data_hwecc()
H A Dtegra_nand.c695 int bit, max_bitflips = 0; in tegra_nand_read_page_hwecc() local
739 max_bitflips = max(ret, max_bitflips); in tegra_nand_read_page_hwecc()
743 return max_t(unsigned int, max_corr_cnt, max_bitflips); in tegra_nand_read_page_hwecc()
/linux/drivers/mtd/nand/
H A Decc-sw-bch.c339 unsigned int max_bitflips = 0; in nand_ecc_sw_bch_finish_io_req() local
378 max_bitflips = max_t(unsigned int, max_bitflips, stat); in nand_ecc_sw_bch_finish_io_req()
384 return max_bitflips; in nand_ecc_sw_bch_finish_io_req()
H A Decc-sw-hamming.c593 unsigned int max_bitflips = 0; in nand_ecc_sw_hamming_finish_io_req() local
632 max_bitflips = max_t(unsigned int, max_bitflips, stat); in nand_ecc_sw_hamming_finish_io_req()
638 return max_bitflips; in nand_ecc_sw_hamming_finish_io_req()
/linux/drivers/mtd/nand/spi/
H A Dcore.c670 unsigned int *max_bitflips) in spinand_mtd_regular_page_read() argument
697 *max_bitflips = max_t(unsigned int, *max_bitflips, ret); in spinand_mtd_regular_page_read()
712 unsigned int *max_bitflips) in spinand_mtd_continuous_page_read() argument
766 *max_bitflips = max_t(unsigned int, *max_bitflips, ret); in spinand_mtd_continuous_page_read()
834 unsigned int max_bitflips = 0; in spinand_mtd_read() local
842 ret = spinand_mtd_continuous_page_read(mtd, from, ops, &max_bitflips); in spinand_mtd_read()
844 ret = spinand_mtd_regular_page_read(mtd, from, ops, &max_bitflips); in spinand_mtd_read()
855 return ret ? ret : max_bitflips; in spinand_mtd_read()
/linux/drivers/mtd/nand/raw/gpmi-nand/
H A Dgpmi-nand.c1432 unsigned int max_bitflips = 0; in gpmi_count_bitflips() local
1503 max_bitflips = max_t(unsigned int, max_bitflips, in gpmi_count_bitflips()
1514 max_bitflips = max_t(unsigned int, max_bitflips, *status); in gpmi_count_bitflips()
1517 return max_bitflips; in gpmi_count_bitflips()
1548 unsigned int max_bitflips; in gpmi_ecc_read_page() local
1558 max_bitflips = gpmi_count_bitflips(chip, buf, 0, in gpmi_ecc_read_page()
1580 return max_bitflips; in gpmi_ecc_read_page()
1591 unsigned int max_bitflips; in gpmi_ecc_read_subpage() local
1675 max_bitflips = gpmi_count_bitflips(chip, buf, first, last, meta); in gpmi_ecc_read_subpage()
1677 return max_bitflips; in gpmi_ecc_read_subpage()
/linux/include/uapi/mtd/
H A Dmtd-abi.h110 __u32 max_bitflips; member
/linux/drivers/mtd/
H A Dmtdcore.c1644 int max_bitflips = 0; in mtd_io_emulated_slc() local
1677 max_bitflips = max(max_bitflips, ret); in mtd_io_emulated_slc()
1685 max_bitflips = max(max_bitflips, ret); in mtd_io_emulated_slc()
1695 return max_bitflips; in mtd_io_emulated_slc()
1737 ops->stats->max_bitflips = ret_code; in mtd_read_oob()
H A Dmtdchar.c722 req.ecc_stats.max_bitflips = 0; 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()

12