/openbmc/u-boot/fs/yaffs2/ |
H 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 …]
|
H A D | yaffs_ecc.h | 36 int yaffs_ecc_correct(unsigned char *data, unsigned char *read_ecc, 42 struct yaffs_ecc_other *read_ecc,
|
/openbmc/linux/include/linux/mtd/ |
H A D | nand-ecc-sw-hamming.h | 41 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
|
H A D | nand-ecc-sw-bch.h | 40 unsigned char *read_ecc, unsigned char *calc_ecc); 56 unsigned char *read_ecc, in nand_ecc_sw_bch_correct() argument
|
H A D | rawnand.h | 366 int (*correct)(struct nand_chip *chip, uint8_t *dat, uint8_t *read_ecc, 1501 unsigned char *read_ecc, 1506 unsigned char *read_ecc, unsigned char *calc_ecc);
|
/openbmc/u-boot/drivers/mtd/nand/raw/ |
H 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()
|
H A D | davinci_nand.c | 223 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()
|
H A D | omap_gpmc.c | 121 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()
|
H A D | nand_bch.c | 68 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()
|
H A D | zynq_nand.c | 379 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()
|
H 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()
|
H A D | lpc32xx_nand_slc.c | 377 u_char *read_ecc, u_char *calc_ecc) in lpc32xx_correct_data() argument 381 u_char *r = read_ecc; in lpc32xx_correct_data()
|
H A D | mxc_nand.c | 659 u_char *read_ecc, u_char *calc_ecc) argument 698 u_char *read_ecc, u_char *calc_ecc) argument
|
/openbmc/u-boot/include/linux/mtd/ |
H 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
|
H 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);
|
/openbmc/linux/drivers/mtd/nand/ |
H A D | ecc-sw-hamming.c | 373 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()
|
H A D | ecc-sw-bch.c | 50 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()
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | pl35x-nand-controller.c | 395 unsigned char *read_ecc, in pl35x_nand_correct_data() argument 402 read_ecc_lower = (read_ecc[0] | (read_ecc[1] << 8)) & in pl35x_nand_correct_data() 404 read_ecc_upper = ((read_ecc[1] >> 4) | (read_ecc[2] << 4)) & in pl35x_nand_correct_data() 449 struct nand_chip *chip, u8 *read_ecc) in pl35x_nand_read_eccbytes() argument 455 chunk++, read_ecc += chip->ecc.bytes) { in pl35x_nand_read_eccbytes() 460 pl35x_nand_ecc_reg_to_array(chip, ecc_value, read_ecc); in pl35x_nand_read_eccbytes() 468 u8 *read_ecc) in pl35x_nand_recover_data_hwecc() argument 477 chunk++, data += chip->ecc.size, read_ecc += chip->ecc.bytes) { in pl35x_nand_recover_data_hwecc() 490 stats = pl35x_nand_correct_data(nfc, data, read_ecc, calc_ecc); in pl35x_nand_recover_data_hwecc()
|
H A D | s3c2410.c | 503 u_char *read_ecc, u_char *calc_ecc) in s3c2410_nand_correct_data() argument 510 pr_debug("%s(%p,%p,%p,%p)\n", __func__, mtd, dat, read_ecc, calc_ecc); in s3c2410_nand_correct_data() 512 diff0 = read_ecc[0] ^ calc_ecc[0]; in s3c2410_nand_correct_data() 513 diff1 = read_ecc[1] ^ calc_ecc[1]; in s3c2410_nand_correct_data() 514 diff2 = read_ecc[2] ^ calc_ecc[2]; in s3c2410_nand_correct_data() 517 __func__, 3, read_ecc, 3, calc_ecc, in s3c2410_nand_correct_data() 527 if (read_ecc[0] == 0xff && read_ecc[1] == 0xff && read_ecc[2] == 0xff in s3c2410_nand_correct_data()
|
H A D | txx9ndfmc.c | 188 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()
|
H A D | davinci_nand.c | 135 u_char *read_ecc, u_char *calc_ecc) in nand_davinci_correct_1bit() argument 137 uint32_t eccNand = read_ecc[0] | (read_ecc[1] << 8) | in nand_davinci_correct_1bit() 138 (read_ecc[2] << 16); in nand_davinci_correct_1bit()
|
H A 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 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()
|
H A 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() 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()
|
H A D | fsmc_nand.c | 455 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()
|
/openbmc/linux/drivers/mtd/nand/raw/ingenic/ |
H A D | ingenic_nand_drv.c | 170 u8 *read_ecc, u8 *calc_ecc) in ingenic_nand_ecc_correct() argument 180 return ingenic_ecc_correct(nfc->ecc, ¶ms, dat, read_ecc); in ingenic_nand_ecc_correct()
|