Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/mtd/nand/raw/
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()
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()
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()
Dsunxi_nand.c759 unsigned int *max_bitflips, int ret) in sunxi_nfc_hw_ecc_update_stats() argument
767 *max_bitflips = max_t(unsigned int, *max_bitflips, ret); in sunxi_nfc_hw_ecc_update_stats()
811 unsigned int *max_bitflips, in sunxi_nfc_hw_ecc_read_chunk() argument
883 sunxi_nfc_hw_ecc_update_stats(nand, max_bitflips, ret); in sunxi_nfc_hw_ecc_read_chunk()
922 unsigned int max_bitflips = 0; in sunxi_nfc_hw_ecc_read_chunks_dma() local
995 sunxi_nfc_hw_ecc_update_stats(nand, &max_bitflips, ret); in sunxi_nfc_hw_ecc_read_chunks_dma()
1030 sunxi_nfc_hw_ecc_update_stats(nand, &max_bitflips, ret); in sunxi_nfc_hw_ecc_read_chunks_dma()
1039 return max_bitflips; in sunxi_nfc_hw_ecc_read_chunks_dma()
1108 unsigned int max_bitflips = 0; in sunxi_nfc_hw_ecc_read_page() local
1126 &cur_off, &max_bitflips, in sunxi_nfc_hw_ecc_read_page()
[all …]
Dnand_base.c2954 unsigned int max_bitflips = 0; in nand_read_page_swecc() local
2977 max_bitflips = max_t(unsigned int, max_bitflips, stat); in nand_read_page_swecc()
2980 return max_bitflips; in nand_read_page_swecc()
3001 unsigned int max_bitflips = 0; in nand_read_subpage() local
3088 max_bitflips = max_t(unsigned int, max_bitflips, stat); in nand_read_subpage()
3091 return max_bitflips; in nand_read_subpage()
3113 unsigned int max_bitflips = 0; in nand_read_page_hwecc() local
3159 max_bitflips = max_t(unsigned int, max_bitflips, stat); in nand_read_page_hwecc()
3162 return max_bitflips; in nand_read_page_hwecc()
3185 unsigned int max_bitflips = 0; in nand_read_page_hwecc_oob_first() local
[all …]
Dmarvell_nand.c948 unsigned int *max_bitflips) in marvell_nfc_check_empty_chunk() argument
974 *max_bitflips = max_t(unsigned int, *max_bitflips, bf); in marvell_nfc_check_empty_chunk()
985 unsigned int *max_bitflips) in marvell_nfc_hw_ecc_check_bitflips() argument
1020 *max_bitflips = max_t(unsigned int, *max_bitflips, bf); in marvell_nfc_hw_ecc_check_bitflips()
1092 int max_bitflips = 0, ret; in marvell_nfc_hw_ecc_hmg_read_page() local
1099 ret = marvell_nfc_hw_ecc_check_bitflips(chip, &max_bitflips); in marvell_nfc_hw_ecc_hmg_read_page()
1103 return max_bitflips; in marvell_nfc_hw_ecc_hmg_read_page()
1116 &max_bitflips); in marvell_nfc_hw_ecc_hmg_read_page()
1119 return max_bitflips; in marvell_nfc_hw_ecc_hmg_read_page()
1358 int max_bitflips = 0; in marvell_nfc_hw_ecc_bch_read_page() local
[all …]
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()
Dfsl_ifc_nand.c52 unsigned int max_bitflips; /* Saved during READ0 cmd */ member
208 nctrl->max_bitflips = 0; in fsl_ifc_run_command()
240 nctrl->max_bitflips = max_t(unsigned int, in fsl_ifc_run_command()
241 nctrl->max_bitflips, in fsl_ifc_run_command()
688 return nctrl->max_bitflips; in fsl_ifc_read_page()
Drockchip-nand-controller.c763 int max_bitflips = 0, bch_st, ecc_fail = 0; in rk_nfc_read_page_hwecc() local
836 max_bitflips = max_t(u32, max_bitflips, cnt); in rk_nfc_read_page_hwecc()
840 max_bitflips = max_t(u32, max_bitflips, cnt); in rk_nfc_read_page_hwecc()
859 return max_bitflips; in rk_nfc_read_page_hwecc()
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()
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()
Dstm32_fmc2_nand.c688 unsigned int max_bitflips = 0; in stm32_fmc2_nfc_read_page() local
723 max_bitflips = max_t(unsigned int, max_bitflips, stat); in stm32_fmc2_nfc_read_page()
736 return max_bitflips; in stm32_fmc2_nfc_read_page()
1038 unsigned int max_bitflips = 0; in stm32_fmc2_nfc_seq_correct() local
1079 max_bitflips = max_t(unsigned int, max_bitflips, stat); in stm32_fmc2_nfc_seq_correct()
1083 return max_bitflips; in stm32_fmc2_nfc_seq_correct()
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()
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()
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()
Dqcom_nandc.c1816 int page, unsigned int max_bitflips) in check_for_erased_page() argument
1862 max_bitflips = max_t(unsigned int, max_bitflips, ret); in check_for_erased_page()
1866 return max_bitflips; in check_for_erased_page()
1880 unsigned int max_bitflips = 0, uncorrectable_cws = 0; in parse_read_errors() local
1952 max_bitflips = max(max_bitflips, stat); in parse_read_errors()
1965 return max_bitflips; in parse_read_errors()
1969 max_bitflips); in parse_read_errors()
Dpl35x-nand-controller.c473 unsigned int max_bitflips = 0, chunk; in pl35x_nand_recover_data_hwecc() local
497 max_bitflips = max_t(unsigned int, max_bitflips, stats); in pl35x_nand_recover_data_hwecc()
501 return max_bitflips; in pl35x_nand_recover_data_hwecc()
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-6.1.9/drivers/mtd/nand/
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()
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-6.1.9/drivers/mtd/nand/raw/gpmi-nand/
Dgpmi-nand.c1417 unsigned int max_bitflips = 0; in gpmi_count_bitflips() local
1488 max_bitflips = max_t(unsigned int, max_bitflips, in gpmi_count_bitflips()
1499 max_bitflips = max_t(unsigned int, max_bitflips, *status); in gpmi_count_bitflips()
1502 return max_bitflips; in gpmi_count_bitflips()
1533 unsigned int max_bitflips; in gpmi_ecc_read_page() local
1543 max_bitflips = gpmi_count_bitflips(chip, buf, 0, in gpmi_ecc_read_page()
1565 return max_bitflips; in gpmi_ecc_read_page()
1576 unsigned int max_bitflips; in gpmi_ecc_read_subpage() local
1660 max_bitflips = gpmi_count_bitflips(chip, buf, first, last, meta); in gpmi_ecc_read_subpage()
1662 return max_bitflips; in gpmi_ecc_read_subpage()
/linux-6.1.9/include/uapi/mtd/
Dmtd-abi.h110 __u32 max_bitflips; member
/linux-6.1.9/drivers/mtd/
Dmtdcore.c1587 int max_bitflips = 0; in mtd_io_emulated_slc() local
1620 max_bitflips = max(max_bitflips, ret); in mtd_io_emulated_slc()
1628 max_bitflips = max(max_bitflips, ret); in mtd_io_emulated_slc()
1638 return max_bitflips; in mtd_io_emulated_slc()
1680 ops->stats->max_bitflips = ret_code; in mtd_read_oob()
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()
/linux-6.1.9/drivers/mtd/nand/spi/
Dcore.c639 unsigned int max_bitflips = 0; in spinand_mtd_read() local
667 max_bitflips = max_t(unsigned int, max_bitflips, ret); in spinand_mtd_read()
686 return ret ? ret : max_bitflips; in spinand_mtd_read()

12