/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 | omap_gpmc.c | 122 uint8_t *read_ecc, uint8_t *calc_ecc) in omap_correct_data() argument 130 new_ecc = gen_true_ecc(calc_ecc); in omap_correct_data() 493 uint8_t *read_ecc, uint8_t *calc_ecc) in omap_correct_data_bch() argument 508 if (calc_ecc[i] != 0x00) in omap_correct_data_bch() 530 omap_reverse_list(calc_ecc, ecc->bytes - 1); in omap_correct_data_bch() 534 omap_reverse_list(calc_ecc, ecc->bytes); in omap_correct_data_bch() 541 err = elm_check_error(calc_ecc, bch_type, &error_count, error_loc); 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() 679 printf("%02x ", calc_ecc[i]); in omap_correct_data_bch_sw()
|
A D | davinci_nand.c | 225 u_char *read_ecc, u_char *calc_ecc) in nand_davinci_correct_data() argument 230 u_int32_t ecc_calc = calc_ecc[0] | (calc_ecc[1] << 8) | in nand_davinci_correct_data() 231 (calc_ecc[2] << 16); in nand_davinci_correct_data() 560 uint8_t *read_ecc, uint8_t *calc_ecc) in nand_davinci_4bit_correct_data() argument
|
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 409 calc_ecc_lower = (calc_ecc[0] | (calc_ecc[1] << 8)) & 0xfff; in zynq_nand_correct_data() 410 calc_ecc_upper = ((calc_ecc[1] >> 4) | (calc_ecc[2] << 4)) & 0xfff; in zynq_nand_correct_data()
|
A D | lpc32xx_nand_slc.c | 379 u_char *read_ecc, u_char *calc_ecc) in lpc32xx_correct_data() argument 384 u_char *c = calc_ecc; in lpc32xx_correct_data()
|
A D | fsmc_nand.c | 194 u_char *read_ecc, u_char *calc_ecc) in fsmc_bch8_correct_data() argument
|
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
|
/u-boot/include/linux/mtd/ |
A D | nand_bch.h | 31 u_char *calc_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 | 617 uint8_t *calc_ecc);
|
/u-boot/fs/yaffs2/ |
A D | yaffs_tagscompat.c | 163 u8 calc_ecc[3]; in yaffs_rd_chunk_nand() local 165 yaffs_ecc_calc(data, calc_ecc); in yaffs_rd_chunk_nand() 167 yaffs_ecc_correct(data, spare->ecc1, calc_ecc); in yaffs_rd_chunk_nand() 168 yaffs_ecc_calc(&data[256], calc_ecc); in yaffs_rd_chunk_nand() 171 calc_ecc); in yaffs_rd_chunk_nand()
|
/u-boot/include/linux/ |
A D | bch.h | 64 const uint8_t *recv_ecc, const uint8_t *calc_ecc,
|
/u-boot/lib/ |
A D | bch.c | 1036 const uint8_t *recv_ecc, const uint8_t *calc_ecc, in decode_bch() argument 1050 if (!calc_ecc) { in decode_bch() 1057 load_ecc8(bch, bch->ecc_buf, calc_ecc); in decode_bch()
|