Home
last modified time | relevance | path

Searched refs:read_ecc (Results 1 – 16 of 16) sorted by relevance

/linux-6.3-rc2/include/linux/mtd/
A Dnand-ecc-sw-hamming.h41 int ecc_sw_hamming_correct(unsigned char *buf, unsigned char *read_ecc,
45 unsigned char *read_ecc,
72 unsigned char *read_ecc, in ecc_sw_hamming_correct() argument
81 unsigned char *read_ecc, in nand_ecc_sw_hamming_correct() argument
A Dnand-ecc-sw-bch.h40 unsigned char *read_ecc, unsigned char *calc_ecc);
56 unsigned char *read_ecc, in nand_ecc_sw_bch_correct() argument
A Drawnand.h364 int (*correct)(struct nand_chip *chip, uint8_t *dat, uint8_t *read_ecc,
1497 unsigned char *read_ecc,
1502 unsigned char *read_ecc, unsigned char *calc_ecc);
/linux-6.3-rc2/drivers/mtd/nand/
A Decc-sw-hamming.c373 int ecc_sw_hamming_correct(unsigned char *buf, unsigned char *read_ecc, 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()
455 unsigned char *read_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()
A Decc-sw-bch.c50 unsigned char *read_ecc, unsigned char *calc_ecc) in nand_ecc_sw_bch_correct() argument
57 count = bch_decode(engine_conf->bch, NULL, step_size, read_ecc, in nand_ecc_sw_bch_correct()
/linux-6.3-rc2/drivers/mtd/nand/raw/
A Dpl35x-nand-controller.c397 unsigned char *read_ecc, in pl35x_nand_correct_data() argument
404 read_ecc_lower = (read_ecc[0] | (read_ecc[1] << 8)) & in pl35x_nand_correct_data()
406 read_ecc_upper = ((read_ecc[1] >> 4) | (read_ecc[2] << 4)) & in pl35x_nand_correct_data()
451 struct nand_chip *chip, u8 *read_ecc) in pl35x_nand_read_eccbytes() argument
457 chunk++, read_ecc += chip->ecc.bytes) { in pl35x_nand_read_eccbytes()
462 pl35x_nand_ecc_reg_to_array(chip, ecc_value, read_ecc); in pl35x_nand_read_eccbytes()
470 u8 *read_ecc) in pl35x_nand_recover_data_hwecc() argument
479 chunk++, data += chip->ecc.size, read_ecc += chip->ecc.bytes) { in pl35x_nand_recover_data_hwecc()
492 stats = pl35x_nand_correct_data(nfc, data, read_ecc, calc_ecc); in pl35x_nand_recover_data_hwecc()
A Ds3c2410.c504 u_char *read_ecc, u_char *calc_ecc) in s3c2410_nand_correct_data() argument
511 pr_debug("%s(%p,%p,%p,%p)\n", __func__, mtd, dat, read_ecc, calc_ecc); in s3c2410_nand_correct_data()
513 diff0 = read_ecc[0] ^ calc_ecc[0]; in s3c2410_nand_correct_data()
514 diff1 = read_ecc[1] ^ calc_ecc[1]; in s3c2410_nand_correct_data()
515 diff2 = read_ecc[2] ^ calc_ecc[2]; in s3c2410_nand_correct_data()
518 __func__, 3, read_ecc, 3, calc_ecc, in s3c2410_nand_correct_data()
528 if (read_ecc[0] == 0xff && read_ecc[1] == 0xff && read_ecc[2] == 0xff in s3c2410_nand_correct_data()
A Dtxx9ndfmc.c188 unsigned char *read_ecc, in txx9ndfmc_correct_data() argument
196 stat = rawnand_sw_hamming_correct(chip, buf, read_ecc, in txx9ndfmc_correct_data()
202 read_ecc += 3; in txx9ndfmc_correct_data()
A Ddavinci_nand.c136 u_char *read_ecc, u_char *calc_ecc) in nand_davinci_correct_1bit() argument
138 uint32_t eccNand = read_ecc[0] | (read_ecc[1] << 8) | in nand_davinci_correct_1bit()
139 (read_ecc[2] << 16); in nand_davinci_correct_1bit()
A Domap2.c785 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()
806 read_ecc += 3; in omap_correct_data()
1214 u_char *read_ecc, u_char *calc_ecc) in omap_elm_correct_data() argument
1223 u_char *spare_ecc = read_ecc; in omap_elm_correct_data()
1283 buf, read_ecc, info); in omap_elm_correct_data()
1305 read_ecc += ecc->bytes; in omap_elm_correct_data()
A Dstm32_fmc2_nand.c515 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
1028 u8 *read_ecc, u8 *calc_ecc) in stm32_fmc2_nfc_seq_correct() argument
1049 &read_ecc[i], in stm32_fmc2_nfc_seq_correct()
1070 &read_ecc[i], in stm32_fmc2_nfc_seq_correct()
A Dfsmc_nand.c455 unsigned char *read_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
809 int bits_ecc = count_written_bits(read_ecc, chip->ecc.bytes, 8); in fsmc_bch8_correct_data()
A Dr852.c463 uint8_t *read_ecc, uint8_t *calc_ecc) in r852_ecc_correct() argument
A Dnand_base.c5697 unsigned char *read_ecc, in rawnand_sw_hamming_correct() argument
5702 return nand_ecc_sw_hamming_correct(base, buf, read_ecc, calc_ecc); in rawnand_sw_hamming_correct()
5749 unsigned char *read_ecc, unsigned char *calc_ecc) in rawnand_sw_bch_correct() argument
5753 return nand_ecc_sw_bch_correct(base, buf, read_ecc, calc_ecc); in rawnand_sw_bch_correct()
A Ddiskonchip.c760 u_char *read_ecc, u_char *isnull) in doc200x_correct_data() argument
/linux-6.3-rc2/drivers/mtd/nand/raw/ingenic/
A Dingenic_nand_drv.c171 u8 *read_ecc, u8 *calc_ecc) in ingenic_nand_ecc_correct() argument
181 return ingenic_ecc_correct(nfc->ecc, &params, dat, read_ecc); in ingenic_nand_ecc_correct()

Completed in 49 milliseconds