Home
last modified time | relevance | path

Searched refs:calc_ecc (Results 1 – 21 of 21) sorted by relevance

/kernel/linux/linux-5.10/drivers/mtd/tests/
Dmtd_nandecctest.c122 unsigned char calc_ecc[3]; in no_bit_error_verify() local
125 __nand_calculate_ecc(error_data, size, calc_ecc, in no_bit_error_verify()
127 ret = __nand_correct_data(error_data, error_ecc, calc_ecc, size, in no_bit_error_verify()
152 unsigned char calc_ecc[3]; in single_bit_error_correct() local
155 __nand_calculate_ecc(error_data, size, calc_ecc, in single_bit_error_correct()
157 ret = __nand_correct_data(error_data, error_ecc, calc_ecc, size, in single_bit_error_correct()
189 unsigned char calc_ecc[3]; in double_bit_error_detect() local
192 __nand_calculate_ecc(error_data, size, calc_ecc, in double_bit_error_detect()
194 ret = __nand_correct_data(error_data, error_ecc, calc_ecc, size, in double_bit_error_detect()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
Dnand_ecc.c391 unsigned char *read_ecc, unsigned char *calc_ecc, in __nand_correct_data() argument
405 b0 = read_ecc[0] ^ calc_ecc[0]; in __nand_correct_data()
406 b1 = read_ecc[1] ^ calc_ecc[1]; in __nand_correct_data()
408 b0 = read_ecc[1] ^ calc_ecc[1]; in __nand_correct_data()
409 b1 = read_ecc[0] ^ calc_ecc[0]; in __nand_correct_data()
412 b2 = read_ecc[2] ^ calc_ecc[2]; in __nand_correct_data()
473 unsigned char *read_ecc, unsigned char *calc_ecc) in nand_correct_data() argument
477 return __nand_correct_data(buf, read_ecc, calc_ecc, chip->ecc.size, in nand_correct_data()
Dnand_bch.c64 unsigned char *read_ecc, unsigned char *calc_ecc) in nand_bch_correct_data() argument
70 count = bch_decode(nbc->bch, NULL, chip->ecc.size, read_ecc, calc_ecc, in nand_bch_correct_data()
Dtmio_nand.c291 unsigned char *calc_ecc) in tmio_nand_correct_data() argument
296 r0 = __nand_correct_data(buf, read_ecc, calc_ecc, 256, false); in tmio_nand_correct_data()
299 r1 = __nand_correct_data(buf + 256, read_ecc + 3, calc_ecc + 3, 256, in tmio_nand_correct_data()
Dtxx9ndfmc.c190 unsigned char *calc_ecc) in txx9ndfmc_correct_data() argument
197 stat = __nand_correct_data(buf, read_ecc, calc_ecc, 256, in txx9ndfmc_correct_data()
204 calc_ecc += 3; in txx9ndfmc_correct_data()
Ds3c2410.c507 u_char *read_ecc, u_char *calc_ecc) in s3c2410_nand_correct_data() argument
514 pr_debug("%s(%p,%p,%p,%p)\n", __func__, mtd, dat, read_ecc, calc_ecc); in s3c2410_nand_correct_data()
516 diff0 = read_ecc[0] ^ calc_ecc[0]; in s3c2410_nand_correct_data()
517 diff1 = read_ecc[1] ^ calc_ecc[1]; in s3c2410_nand_correct_data()
518 diff2 = read_ecc[2] ^ calc_ecc[2]; in s3c2410_nand_correct_data()
521 __func__, 3, read_ecc, 3, calc_ecc, in s3c2410_nand_correct_data()
Ddavinci_nand.c136 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()
Domap2.c880 u_char *read_ecc, u_char *calc_ecc) in omap_correct_data() argument
894 if (memcmp(read_ecc, calc_ecc, 3) != 0) { in omap_correct_data()
895 ret = omap_compare_ecc(read_ecc, calc_ecc, dat); in omap_correct_data()
902 calc_ecc += 3; in omap_correct_data()
1353 u_char *read_ecc, u_char *calc_ecc) in omap_elm_correct_data() argument
1361 u_char *ecc_vec = calc_ecc; in omap_elm_correct_data()
1401 if (calc_ecc[j] != 0) { in omap_elm_correct_data()
1408 if (memcmp(calc_ecc, erased_ecc_vec, in omap_elm_correct_data()
1443 calc_ecc += ecc->bytes; in omap_elm_correct_data()
Dstm32_fmc2_nand.c513 u8 *read_ecc, u8 *calc_ecc) in stm32_fmc2_nfc_ham_correct() argument
520 b0 = read_ecc[0] ^ calc_ecc[0]; in stm32_fmc2_nfc_ham_correct()
521 b1 = read_ecc[1] ^ calc_ecc[1]; in stm32_fmc2_nfc_ham_correct()
522 b2 = read_ecc[2] ^ calc_ecc[2]; in stm32_fmc2_nfc_ham_correct()
653 u8 *read_ecc, u8 *calc_ecc) in stm32_fmc2_nfc_bch_correct() argument
1022 u8 *read_ecc, u8 *calc_ecc) in stm32_fmc2_nfc_seq_correct() argument
1041 &calc_ecc[i]); in stm32_fmc2_nfc_seq_correct()
1044 &calc_ecc[i]); in stm32_fmc2_nfc_seq_correct()
Ddiskonchip.c765 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()
Dr852.c463 uint8_t *read_ecc, uint8_t *calc_ecc) in r852_ecc_correct() argument
Dfsmc_nand.c769 u8 *read_ecc, u8 *calc_ecc) in fsmc_bch8_correct_data() argument
/kernel/linux/linux-5.10/include/linux/mtd/
Dnand_ecc.h30 int __nand_correct_data(u_char *dat, u_char *read_ecc, u_char *calc_ecc,
37 u_char *calc_ecc);
Dnand_bch.h29 u_char *read_ecc, u_char *calc_ecc);
52 unsigned char *read_ecc, unsigned char *calc_ecc) in nand_bch_correct_data() argument
Drawnand.h365 uint8_t *calc_ecc);
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ingenic/
Djz4740_ecc.c45 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()
Djz4725b_bch.c73 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()
Dingenic_nand_drv.c170 u8 *read_ecc, u8 *calc_ecc) in ingenic_nand_ecc_correct() argument
/kernel/linux/linux-5.10/include/linux/
Dbch.h67 const uint8_t *recv_ecc, const uint8_t *calc_ecc,
/kernel/linux/linux-5.10/drivers/edac/
Darmada_xp_edac.c128 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()
/kernel/linux/linux-5.10/lib/
Dbch.c1054 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()