/linux-5.19.10/include/linux/mtd/ |
D | nand-ecc-sw-hamming.h | 42 unsigned char *calc_ecc, unsigned int step_size, 46 unsigned char *calc_ecc); 73 unsigned char *calc_ecc, in ecc_sw_hamming_correct() argument 82 unsigned char *calc_ecc) in nand_ecc_sw_hamming_correct() argument
|
D | nand-ecc-sw-bch.h | 40 unsigned char *read_ecc, unsigned char *calc_ecc); 57 unsigned char *calc_ecc) in nand_ecc_sw_bch_correct() argument
|
D | rawnand.h | 363 uint8_t *calc_ecc); 1477 unsigned char *calc_ecc); 1481 unsigned char *read_ecc, unsigned char *calc_ecc);
|
/linux-5.19.10/drivers/mtd/tests/ |
D | mtd_nandecctest.c | 123 unsigned char calc_ecc[3]; in no_bit_error_verify() local 126 ecc_sw_hamming_calculate(error_data, size, calc_ecc, sm_order); in no_bit_error_verify() 127 ret = ecc_sw_hamming_correct(error_data, error_ecc, calc_ecc, size, in no_bit_error_verify() 153 unsigned char calc_ecc[3]; in single_bit_error_correct() local 156 ecc_sw_hamming_calculate(error_data, size, calc_ecc, sm_order); in single_bit_error_correct() 157 ret = ecc_sw_hamming_correct(error_data, error_ecc, calc_ecc, size, in single_bit_error_correct() 190 unsigned char calc_ecc[3]; in double_bit_error_detect() local 193 ecc_sw_hamming_calculate(error_data, size, calc_ecc, sm_order); in double_bit_error_detect() 194 ret = ecc_sw_hamming_correct(error_data, error_ecc, calc_ecc, size, in double_bit_error_detect()
|
/linux-5.19.10/drivers/mtd/nand/ |
D | ecc-sw-hamming.c | 374 unsigned char *calc_ecc, unsigned int step_size, in ecc_sw_hamming_correct() argument 387 b0 = read_ecc[0] ^ calc_ecc[0]; in ecc_sw_hamming_correct() 388 b1 = read_ecc[1] ^ calc_ecc[1]; in ecc_sw_hamming_correct() 390 b0 = read_ecc[1] ^ calc_ecc[1]; in ecc_sw_hamming_correct() 391 b1 = read_ecc[0] ^ calc_ecc[0]; in ecc_sw_hamming_correct() 394 b2 = read_ecc[2] ^ calc_ecc[2]; in ecc_sw_hamming_correct() 456 unsigned char *calc_ecc) in nand_ecc_sw_hamming_correct() argument 462 return ecc_sw_hamming_correct(buf, read_ecc, calc_ecc, step_size, in nand_ecc_sw_hamming_correct()
|
D | ecc-sw-bch.c | 50 unsigned char *read_ecc, unsigned char *calc_ecc) in nand_ecc_sw_bch_correct() argument 58 calc_ecc, NULL, errloc); in nand_ecc_sw_bch_correct()
|
/linux-5.19.10/drivers/mtd/nand/raw/ingenic/ |
D | jz4740_ecc.c | 45 static void jz4740_ecc_reset(struct ingenic_ecc *ecc, bool calc_ecc) in jz4740_ecc_reset() argument 57 if (calc_ecc) /* calculate ECC from data */ in jz4740_ecc_reset()
|
D | jz4725b_bch.c | 73 struct ingenic_ecc_params *params, bool calc_ecc) in jz4725b_bch_reset() argument 89 if (calc_ecc) /* calculate ECC from data */ in jz4725b_bch_reset()
|
D | ingenic_nand_drv.c | 171 u8 *read_ecc, u8 *calc_ecc) in ingenic_nand_ecc_correct() argument
|
/linux-5.19.10/drivers/mtd/nand/raw/ |
D | pl35x-nand-controller.c | 398 unsigned char *calc_ecc) in pl35x_nand_correct_data() argument 409 calc_ecc_lower = (calc_ecc[0] | (calc_ecc[1] << 8)) & in pl35x_nand_correct_data() 411 calc_ecc_upper = ((calc_ecc[1] >> 4) | (calc_ecc[2] << 4)) & in pl35x_nand_correct_data() 474 u8 calc_ecc[3]; in pl35x_nand_recover_data_hwecc() local 491 pl35x_nand_ecc_reg_to_array(chip, ecc_value, calc_ecc); in pl35x_nand_recover_data_hwecc() 492 stats = pl35x_nand_correct_data(nfc, data, read_ecc, calc_ecc); in pl35x_nand_recover_data_hwecc()
|
D | txx9ndfmc.c | 189 unsigned char *calc_ecc) in txx9ndfmc_correct_data() argument 197 calc_ecc); in txx9ndfmc_correct_data() 203 calc_ecc += 3; in txx9ndfmc_correct_data()
|
D | tmio_nand.c | 290 unsigned char *calc_ecc) in tmio_nand_correct_data() argument 295 r0 = rawnand_sw_hamming_correct(chip, buf, read_ecc, calc_ecc); in tmio_nand_correct_data() 299 calc_ecc + 3); in tmio_nand_correct_data()
|
D | s3c2410.c | 508 u_char *read_ecc, u_char *calc_ecc) in s3c2410_nand_correct_data() argument 515 pr_debug("%s(%p,%p,%p,%p)\n", __func__, mtd, dat, read_ecc, calc_ecc); in s3c2410_nand_correct_data() 517 diff0 = read_ecc[0] ^ calc_ecc[0]; in s3c2410_nand_correct_data() 518 diff1 = read_ecc[1] ^ calc_ecc[1]; in s3c2410_nand_correct_data() 519 diff2 = read_ecc[2] ^ calc_ecc[2]; in s3c2410_nand_correct_data() 522 __func__, 3, read_ecc, 3, calc_ecc, in s3c2410_nand_correct_data()
|
D | davinci_nand.c | 136 u_char *read_ecc, u_char *calc_ecc) in nand_davinci_correct_1bit() argument 140 uint32_t eccCalc = calc_ecc[0] | (calc_ecc[1] << 8) | in nand_davinci_correct_1bit() 141 (calc_ecc[2] << 16); in nand_davinci_correct_1bit()
|
D | omap2.c | 785 u_char *read_ecc, u_char *calc_ecc) in omap_correct_data() argument 799 if (memcmp(read_ecc, calc_ecc, 3) != 0) { in omap_correct_data() 800 ret = omap_compare_ecc(read_ecc, calc_ecc, dat); in omap_correct_data() 807 calc_ecc += 3; in omap_correct_data() 1214 u_char *read_ecc, u_char *calc_ecc) in omap_elm_correct_data() argument 1222 u_char *ecc_vec = calc_ecc; in omap_elm_correct_data() 1262 if (calc_ecc[j] != 0) { in omap_elm_correct_data() 1269 if (memcmp(calc_ecc, erased_ecc_vec, in omap_elm_correct_data() 1304 calc_ecc += ecc->bytes; in omap_elm_correct_data()
|
D | stm32_fmc2_nand.c | 515 u8 *read_ecc, u8 *calc_ecc) in stm32_fmc2_nfc_ham_correct() argument 522 b0 = read_ecc[0] ^ calc_ecc[0]; in stm32_fmc2_nfc_ham_correct() 523 b1 = read_ecc[1] ^ calc_ecc[1]; in stm32_fmc2_nfc_ham_correct() 524 b2 = read_ecc[2] ^ calc_ecc[2]; in stm32_fmc2_nfc_ham_correct() 657 u8 *read_ecc, u8 *calc_ecc) in stm32_fmc2_nfc_bch_correct() argument 1026 u8 *read_ecc, u8 *calc_ecc) in stm32_fmc2_nfc_seq_correct() argument 1045 &calc_ecc[i]); in stm32_fmc2_nfc_seq_correct() 1048 &calc_ecc[i]); in stm32_fmc2_nfc_seq_correct()
|
D | fsmc_nand.c | 456 unsigned char *calc_ecc) in fsmc_correct_ecc1() argument 460 return ecc_sw_hamming_correct(buf, read_ecc, calc_ecc, in fsmc_correct_ecc1() 780 u8 *read_ecc, u8 *calc_ecc) in fsmc_bch8_correct_data() argument
|
D | diskonchip.c | 765 uint8_t calc_ecc[6]; in doc200x_correct_data() local 787 calc_ecc[i] = ReadDOC_(docptr, DoC_Mplus_ECCSyndrome0 + i); in doc200x_correct_data() 789 calc_ecc[i] = ReadDOC_(docptr, DoC_ECCSyndrome0 + i); in doc200x_correct_data() 792 ret = doc_ecc_decode(doc->rs_decoder, dat, calc_ecc); in doc200x_correct_data()
|
D | r852.c | 463 uint8_t *read_ecc, uint8_t *calc_ecc) in r852_ecc_correct() argument
|
D | nand_base.c | 5552 unsigned char *calc_ecc) in rawnand_sw_hamming_correct() argument 5556 return nand_ecc_sw_hamming_correct(base, buf, read_ecc, calc_ecc); in rawnand_sw_hamming_correct() 5603 unsigned char *read_ecc, unsigned char *calc_ecc) in rawnand_sw_bch_correct() argument 5607 return nand_ecc_sw_bch_correct(base, buf, read_ecc, calc_ecc); in rawnand_sw_bch_correct()
|
/linux-5.19.10/include/linux/ |
D | bch.h | 67 const uint8_t *recv_ecc, const uint8_t *calc_ecc,
|
/linux-5.19.10/drivers/edac/ |
D | armada_xp_edac.c | 128 uint32_t data_h, data_l, recv_ecc, calc_ecc, addr; in axp_mc_check() local 137 calc_ecc = readl(drvdata->base + SDRAM_ERR_CALC_ECC_REG); in axp_mc_check() 190 row_val = (calc_ecc & SDRAM_ERR_CALC_ECC_ROW_MASK) >> SDRAM_ERR_CALC_ECC_ROW_OFFSET; in axp_mc_check() 192 syndrome_val = (recv_ecc ^ calc_ecc) & 0xff; in axp_mc_check()
|
/linux-5.19.10/lib/ |
D | bch.c | 1054 const uint8_t *recv_ecc, const uint8_t *calc_ecc, in bch_decode() argument 1068 if (!calc_ecc) { in bch_decode() 1075 load_ecc8(bch, bch->ecc_buf, calc_ecc); in bch_decode()
|