Home
last modified time | relevance | path

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

/external/u-boot/fs/yaffs2/
Dyaffs_ecc.c135 int yaffs_ecc_correct(unsigned char *data, unsigned char *read_ecc, in yaffs_ecc_correct() argument
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()
[all …]
Dyaffs_ecc.h36 int yaffs_ecc_correct(unsigned char *data, unsigned char *read_ecc,
42 struct yaffs_ecc_other *read_ecc,
/external/u-boot/drivers/mtd/nand/
Dnand_ecc.c134 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()
Ddavinci_nand.c223 u_char *read_ecc, u_char *calc_ecc) in nand_davinci_correct_data() argument
226 u_int32_t ecc_nand = read_ecc[0] | (read_ecc[1] << 8) | in nand_davinci_correct_data()
227 (read_ecc[2] << 16); in nand_davinci_correct_data()
558 uint8_t *read_ecc, uint8_t *calc_ecc) in nand_davinci_4bit_correct_data() argument
573 if (read_ecc[i] != 0xFF) in nand_davinci_4bit_correct_data()
580 ecc16 = (unsigned short *)&read_ecc[0]; in nand_davinci_4bit_correct_data()
Domap_gpmc.c121 uint8_t *read_ecc, uint8_t *calc_ecc) in omap_correct_data() argument
128 orig_ecc = gen_true_ecc(read_ecc); in omap_correct_data()
492 uint8_t *read_ecc, uint8_t *calc_ecc) in omap_correct_data_bch() argument
516 if (read_ecc[i] != 0xff) in omap_correct_data_bch()
563 read_ecc[byte_pos - SECTOR_BYTES] ^= 1 << bit_pos; in omap_correct_data_bch()
650 u_char *read_ecc, u_char *calc_ecc) in omap_correct_data_bch_sw() argument
659 read_ecc, calc_ecc, NULL, errloc); in omap_correct_data_bch_sw()
674 printf("%02x ", read_ecc[i]); in omap_correct_data_bch_sw()
Dnand_bch.c68 unsigned char *read_ecc, unsigned char *calc_ecc) in nand_bch_correct_data() argument
75 count = decode_bch(nbc->bch, NULL, chip->ecc.size, read_ecc, calc_ecc, in nand_bch_correct_data()
Dzynq_nand.c379 unsigned char *read_ecc, unsigned char *calc_ecc) in zynq_nand_correct_data() argument
387 read_ecc_lower = (read_ecc[0] | (read_ecc[1] << 8)) & 0xfff; in zynq_nand_correct_data()
388 read_ecc_upper = ((read_ecc[1] >> 4) | (read_ecc[2] << 4)) & 0xfff; in zynq_nand_correct_data()
Dfsmc_nand.c194 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()
Dlpc32xx_nand_slc.c385 u_char *read_ecc, u_char *calc_ecc) in lpc32xx_correct_data() argument
389 u_char *r = read_ecc; in lpc32xx_correct_data()
Dmxc_nand.c659 u_char *read_ecc, u_char *calc_ecc) argument
698 u_char *read_ecc, u_char *calc_ecc) argument
Datmel_nand.c1080 u_char *read_ecc, u_char *isnull) in atmel_nand_correct() argument
/external/u-boot/include/linux/mtd/
Dnand_bch.h30 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
Dnand_ecc.h25 int nand_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc);
Drawnand.h599 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,