/u-boot/fs/yaffs2/ |
A D | yaffs_ecc.c | 140 d0 = read_ecc[0] ^ test_ecc[0]; in yaffs_ecc_correct() 141 d1 = read_ecc[1] ^ test_ecc[1]; in yaffs_ecc_correct() 142 d2 = read_ecc[2] ^ test_ecc[2]; in yaffs_ecc_correct() 189 read_ecc[0] = test_ecc[0]; in yaffs_ecc_correct() 190 read_ecc[1] = test_ecc[1]; in yaffs_ecc_correct() 191 read_ecc[2] = test_ecc[2]; in yaffs_ecc_correct() 232 struct yaffs_ecc_other *read_ecc, in yaffs_ecc_correct_other() argument 240 delta_col = read_ecc->col_parity ^ test_ecc->col_parity; in yaffs_ecc_correct_other() 241 delta_line = read_ecc->line_parity ^ test_ecc->line_parity; in yaffs_ecc_correct_other() 243 read_ecc->line_parity_prime ^ test_ecc->line_parity_prime; in yaffs_ecc_correct_other() [all …]
|
A D | yaffs_ecc.h | 36 int yaffs_ecc_correct(unsigned char *data, unsigned char *read_ecc, 42 struct yaffs_ecc_other *read_ecc,
|
/u-boot/drivers/mtd/nand/raw/ |
A D | nand_ecc.c | 134 u_char *read_ecc, u_char *calc_ecc) in nand_correct_data() argument 138 s1 = calc_ecc[0] ^ read_ecc[0]; in nand_correct_data() 139 s0 = calc_ecc[1] ^ read_ecc[1]; in nand_correct_data() 140 s2 = calc_ecc[2] ^ read_ecc[2]; in nand_correct_data()
|
A D | davinci_nand.c | 225 u_char *read_ecc, u_char *calc_ecc) in nand_davinci_correct_data() argument 228 u_int32_t ecc_nand = read_ecc[0] | (read_ecc[1] << 8) | in nand_davinci_correct_data() 229 (read_ecc[2] << 16); in nand_davinci_correct_data() 560 uint8_t *read_ecc, uint8_t *calc_ecc) in nand_davinci_4bit_correct_data() argument 575 if (read_ecc[i] != 0xFF) in nand_davinci_4bit_correct_data() 582 ecc16 = (unsigned short *)&read_ecc[0]; in nand_davinci_4bit_correct_data()
|
A D | omap_gpmc.c | 122 uint8_t *read_ecc, uint8_t *calc_ecc) in omap_correct_data() argument 129 orig_ecc = gen_true_ecc(read_ecc); in omap_correct_data() 493 uint8_t *read_ecc, uint8_t *calc_ecc) in omap_correct_data_bch() argument 517 if (read_ecc[i] != 0xff) in omap_correct_data_bch() 564 read_ecc[byte_pos - SECTOR_BYTES] ^= 1 << bit_pos; in omap_correct_data_bch() 651 u_char *read_ecc, u_char *calc_ecc) in omap_correct_data_bch_sw() argument 660 read_ecc, calc_ecc, NULL, errloc); in omap_correct_data_bch_sw() 675 printf("%02x ", read_ecc[i]); in omap_correct_data_bch_sw()
|
A D | nand_bch.c | 70 unsigned char *read_ecc, unsigned char *calc_ecc) in nand_bch_correct_data() argument 77 count = decode_bch(nbc->bch, NULL, chip->ecc.size, read_ecc, calc_ecc, in nand_bch_correct_data()
|
A D | stm32_fmc2_nand.c | 346 u8 *read_ecc, u8 *calc_ecc) in stm32_fmc2_nfc_ham_correct() argument 353 b0 = read_ecc[0] ^ calc_ecc[0]; in stm32_fmc2_nfc_ham_correct() 354 b1 = read_ecc[1] ^ calc_ecc[1]; in stm32_fmc2_nfc_ham_correct() 355 b2 = read_ecc[2] ^ calc_ecc[2]; in stm32_fmc2_nfc_ham_correct() 450 u8 *read_ecc, u8 *calc_ecc) in stm32_fmc2_nfc_bch_correct() argument
|
A D | zynq_nand.c | 398 unsigned char *read_ecc, unsigned char *calc_ecc) in zynq_nand_correct_data() argument 406 read_ecc_lower = (read_ecc[0] | (read_ecc[1] << 8)) & 0xfff; in zynq_nand_correct_data() 407 read_ecc_upper = ((read_ecc[1] >> 4) | (read_ecc[2] << 4)) & 0xfff; in zynq_nand_correct_data()
|
A D | fsmc_nand.c | 194 u_char *read_ecc, u_char *calc_ecc) in fsmc_bch8_correct_data() argument 221 int bits_ecc = count_written_bits(read_ecc, 13, 8); in fsmc_bch8_correct_data()
|
A D | lpc32xx_nand_slc.c | 379 u_char *read_ecc, u_char *calc_ecc) in lpc32xx_correct_data() argument 383 u_char *r = read_ecc; in lpc32xx_correct_data()
|
A D | mxc_nand.c | 661 u_char *read_ecc, u_char *calc_ecc) argument 700 u_char *read_ecc, u_char *calc_ecc) argument
|
A D | octeontx_nand.c | 1525 u_char *read_ecc, u_char *isnull) in octeontx_nand_bch_correct() argument 1552 memcpy(data_buffer + nand->ecc.size, read_ecc, nand->ecc.bytes); in octeontx_nand_bch_correct()
|
A D | atmel_nand.c | 1097 u_char *read_ecc, u_char *isnull) in atmel_nand_correct() argument
|
/u-boot/include/linux/mtd/ |
A D | nand_bch.h | 30 int nand_bch_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, 54 unsigned char *read_ecc, unsigned char *calc_ecc) in nand_bch_correct_data() argument
|
A D | nand_ecc.h | 25 int nand_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc);
|
A D | rawnand.h | 616 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,
|