/kernel/linux/linux-5.10/include/linux/platform_data/ |
H A D | elm.h | 36 void elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc, 42 elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc, in elm_decode_bch_error_page() argument
|
/kernel/linux/linux-6.6/include/linux/platform_data/ |
H A D | elm.h | 36 void elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc, 42 elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc, in elm_decode_bch_error_page() argument
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
H A D | omap2.c | 1141 const u_char *dat, u_char *ecc_calc, int i) in _omap_calculate_ecc_bch() 1151 ecc_code = ecc_calc; in _omap_calculate_ecc_bch() 1232 ecc_calc[j] ^= bch4_polynomial[j]; in _omap_calculate_ecc_bch() 1236 ecc_calc[eccbytes - 1] = 0x0; in _omap_calculate_ecc_bch() 1243 ecc_calc[j] ^= bch8_polynomial[j]; in _omap_calculate_ecc_bch() 1247 ecc_calc[eccbytes - 1] = 0x0; in _omap_calculate_ecc_bch() 1269 const u_char *dat, u_char *ecc_calc) in omap_calculate_ecc_bch_sw() 1271 return _omap_calculate_ecc_bch(nand_to_mtd(chip), dat, ecc_calc, 0); in omap_calculate_ecc_bch_sw() 1283 const u_char *dat, u_char *ecc_calc) in omap_calculate_ecc_bch_multi() 1292 ret = _omap_calculate_ecc_bch(mtd, dat, ecc_calc, in omap_calculate_ecc_bch_multi() 1140 _omap_calculate_ecc_bch(struct mtd_info *mtd, const u_char *dat, u_char *ecc_calc, int i) _omap_calculate_ecc_bch() argument 1268 omap_calculate_ecc_bch_sw(struct nand_chip *chip, const u_char *dat, u_char *ecc_calc) omap_calculate_ecc_bch_sw() argument 1282 omap_calculate_ecc_bch_multi(struct mtd_info *mtd, const u_char *dat, u_char *ecc_calc) omap_calculate_ecc_bch_multi() argument 1528 uint8_t *ecc_calc = chip->ecc.calc_buf; omap_write_page_bch() local 1568 u8 *ecc_calc = chip->ecc.calc_buf; omap_write_subpage_bch() local 1636 uint8_t *ecc_calc = chip->ecc.calc_buf; omap_read_page_bch() local [all...] |
H A D | nand_base.c | 2737 uint8_t *ecc_calc = chip->ecc.calc_buf; in nand_read_page_swecc() local 2744 chip->ecc.calculate(chip, p, &ecc_calc[i]); in nand_read_page_swecc() 2757 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_swecc() 2896 uint8_t *ecc_calc = chip->ecc.calc_buf; in nand_read_page_hwecc() local 2911 chip->ecc.calculate(chip, p, &ecc_calc[i]); in nand_read_page_hwecc() 2930 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_hwecc() 3708 uint8_t *ecc_calc = chip->ecc.calc_buf; in nand_write_page_swecc() local 3713 chip->ecc.calculate(chip, p, &ecc_calc[i]); in nand_write_page_swecc() 3715 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc, chip->oob_poi, 0, in nand_write_page_swecc() 3737 uint8_t *ecc_calc in nand_write_page_hwecc() local 3782 uint8_t *ecc_calc = chip->ecc.calc_buf; nand_write_subpage_hwecc() local [all...] |
H A D | omap_elm.c | 330 * @ecc_calc: calculated ECC bytes from GPMC 336 void elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc, in elm_decode_bch_error_page() argument 348 elm_load_syndrome(info, err_vec, ecc_calc); in elm_decode_bch_error_page()
|
H A D | fsmc_nand.c | 702 u8 *ecc_calc = chip->ecc.calc_buf; in fsmc_read_page_hwecc() local 744 chip->ecc.calculate(chip, p, &ecc_calc[i]); in fsmc_read_page_hwecc() 746 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]); in fsmc_read_page_hwecc()
|
H A D | stm32_fmc2_nand.c | 682 u8 *ecc_calc = chip->ecc.calc_buf; in stm32_fmc2_nfc_read_page() local 707 stat = chip->ecc.correct(chip, p, ecc_code, ecc_calc); in stm32_fmc2_nfc_read_page() 1085 u8 *ecc_calc = chip->ecc.calc_buf; in stm32_fmc2_nfc_seq_read_page() local 1126 return chip->ecc.correct(chip, buf, ecc_code, ecc_calc); in stm32_fmc2_nfc_seq_read_page()
|
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/ |
H A D | omap2.c | 995 * @ecc_calc: The ecc_code buffer 1002 const u_char *dat, u_char *ecc_calc, int i) in _omap_calculate_ecc_bch() 1012 ecc_code = ecc_calc; in _omap_calculate_ecc_bch() 1093 ecc_calc[j] ^= bch4_polynomial[j]; in _omap_calculate_ecc_bch() 1097 ecc_calc[eccbytes - 1] = 0x0; in _omap_calculate_ecc_bch() 1104 ecc_calc[j] ^= bch8_polynomial[j]; in _omap_calculate_ecc_bch() 1108 ecc_calc[eccbytes - 1] = 0x0; in _omap_calculate_ecc_bch() 1123 * @ecc_calc: Buffer storing the calculated ECC bytes 1130 const u_char *dat, u_char *ecc_calc) in omap_calculate_ecc_bch_sw() 1132 return _omap_calculate_ecc_bch(nand_to_mtd(chip), dat, ecc_calc, in omap_calculate_ecc_bch_sw() 1001 _omap_calculate_ecc_bch(struct mtd_info *mtd, const u_char *dat, u_char *ecc_calc, int i) _omap_calculate_ecc_bch() argument 1129 omap_calculate_ecc_bch_sw(struct nand_chip *chip, const u_char *dat, u_char *ecc_calc) omap_calculate_ecc_bch_sw() argument 1143 omap_calculate_ecc_bch_multi(struct mtd_info *mtd, const u_char *dat, u_char *ecc_calc) omap_calculate_ecc_bch_multi() argument 1389 uint8_t *ecc_calc = chip->ecc.calc_buf; omap_write_page_bch() local 1443 u8 *ecc_calc = chip->ecc.calc_buf; omap_write_subpage_bch() local 1524 uint8_t *ecc_calc = chip->ecc.calc_buf; omap_read_page_bch() local [all...] |
H A D | nand_base.c | 3056 uint8_t *ecc_calc = chip->ecc.calc_buf; in nand_read_page_swecc() local 3063 chip->ecc.calculate(chip, p, &ecc_calc[i]); in nand_read_page_swecc() 3076 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_swecc() 3215 uint8_t *ecc_calc = chip->ecc.calc_buf; in nand_read_page_hwecc() local 3230 chip->ecc.calculate(chip, p, &ecc_calc[i]); in nand_read_page_hwecc() 3249 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_hwecc() 4158 uint8_t *ecc_calc = chip->ecc.calc_buf; in nand_write_page_swecc() local 4163 chip->ecc.calculate(chip, p, &ecc_calc[i]); in nand_write_page_swecc() 4165 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc, chip->oob_poi, 0, in nand_write_page_swecc() 4187 uint8_t *ecc_calc in nand_write_page_hwecc() local 4232 uint8_t *ecc_calc = chip->ecc.calc_buf; nand_write_subpage_hwecc() local [all...] |
H A D | omap_elm.c | 331 * @ecc_calc: calculated ECC bytes from GPMC 337 void elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc, in elm_decode_bch_error_page() argument 349 elm_load_syndrome(info, err_vec, ecc_calc); in elm_decode_bch_error_page()
|
H A D | fsmc_nand.c | 713 u8 *ecc_calc = chip->ecc.calc_buf; in fsmc_read_page_hwecc() local 755 chip->ecc.calculate(chip, p, &ecc_calc[i]); in fsmc_read_page_hwecc() 757 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]); in fsmc_read_page_hwecc()
|
H A D | stm32_fmc2_nand.c | 686 u8 *ecc_calc = chip->ecc.calc_buf; in stm32_fmc2_nfc_read_page() local 711 stat = chip->ecc.correct(chip, p, ecc_code, ecc_calc); in stm32_fmc2_nfc_read_page() 1091 u8 *ecc_calc = chip->ecc.calc_buf; in stm32_fmc2_nfc_seq_read_page() local 1132 return chip->ecc.correct(chip, buf, ecc_code, ecc_calc); in stm32_fmc2_nfc_seq_read_page()
|