/linux-3.4.99/drivers/mtd/nand/ |
D | nand_ecc.c | 444 unsigned char *read_ecc, unsigned char *calc_ecc, in __nand_correct_data() argument 458 b0 = read_ecc[0] ^ calc_ecc[0]; in __nand_correct_data() 459 b1 = read_ecc[1] ^ calc_ecc[1]; in __nand_correct_data() 461 b0 = read_ecc[1] ^ calc_ecc[1]; in __nand_correct_data() 462 b1 = read_ecc[0] ^ calc_ecc[0]; in __nand_correct_data() 464 b2 = read_ecc[2] ^ calc_ecc[2]; in __nand_correct_data() 525 unsigned char *read_ecc, unsigned char *calc_ecc) in nand_correct_data() argument 527 return __nand_correct_data(buf, read_ecc, calc_ecc, in nand_correct_data()
|
D | bf5xx_nand.c | 227 u_char *read_ecc, u_char *calc_ecc) in bf5xx_nand_correct_data_256() argument 237 stored = read_ecc[0] | (read_ecc[1] << 8) | (read_ecc[2] << 16); in bf5xx_nand_correct_data_256() 306 u_char *read_ecc, u_char *calc_ecc) in bf5xx_nand_correct_data() argument 311 ret = bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc); in bf5xx_nand_correct_data() 316 read_ecc += 3; in bf5xx_nand_correct_data() 318 ret |= bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc); in bf5xx_nand_correct_data()
|
D | s3c2410.c | 454 u_char *read_ecc, u_char *calc_ecc) in s3c2410_nand_correct_data() argument 460 pr_debug("%s(%p,%p,%p,%p)\n", __func__, mtd, dat, read_ecc, calc_ecc); in s3c2410_nand_correct_data() 462 diff0 = read_ecc[0] ^ calc_ecc[0]; in s3c2410_nand_correct_data() 463 diff1 = read_ecc[1] ^ calc_ecc[1]; in s3c2410_nand_correct_data() 464 diff2 = read_ecc[2] ^ calc_ecc[2]; in s3c2410_nand_correct_data() 468 read_ecc[0], read_ecc[1], read_ecc[2], in s3c2410_nand_correct_data() 479 if (read_ecc[0] == 0xff && read_ecc[1] == 0xff && read_ecc[2] == 0xff in s3c2410_nand_correct_data()
|
D | jz4740_nand.c | 191 uint8_t *read_ecc, uint8_t *calc_ecc) in jz_nand_correct_ecc_rs() argument 199 t = read_ecc[0]; in jz_nand_correct_ecc_rs() 203 t &= read_ecc[i]; in jz_nand_correct_ecc_rs() 218 writeb(read_ecc[i], nand->base + JZ_REG_NAND_PAR0 + i); in jz_nand_correct_ecc_rs()
|
D | nand_bch.c | 80 unsigned char *read_ecc, unsigned char *calc_ecc) in nand_bch_correct_data() argument 87 count = decode_bch(nbc->bch, NULL, chip->ecc.size, read_ecc, calc_ecc, in nand_bch_correct_data()
|
D | tmio_nand.c | 303 unsigned char *read_ecc, unsigned char *calc_ecc) in tmio_nand_correct_data() argument 308 r0 = __nand_correct_data(buf, read_ecc, calc_ecc, 256); in tmio_nand_correct_data() 311 r1 = __nand_correct_data(buf + 256, read_ecc + 3, calc_ecc + 3, 256); in tmio_nand_correct_data()
|
D | txx9ndfmc.c | 207 unsigned char *read_ecc, unsigned char *calc_ecc) in txx9ndfmc_correct_data() argument 215 stat = __nand_correct_data(buf, read_ecc, calc_ecc, 256); in txx9ndfmc_correct_data() 220 read_ecc += 3; in txx9ndfmc_correct_data()
|
D | davinci_nand.c | 191 u_char *read_ecc, u_char *calc_ecc) in nand_davinci_correct_1bit() argument 194 uint32_t eccNand = read_ecc[0] | (read_ecc[1] << 8) | in nand_davinci_correct_1bit() 195 (read_ecc[2] << 16); in nand_davinci_correct_1bit()
|
D | omap2.c | 800 u_char *read_ecc, u_char *calc_ecc) in omap_correct_data() argument 815 if (memcmp(read_ecc, calc_ecc, 3) != 0) { in omap_correct_data() 816 ret = omap_compare_ecc(read_ecc, calc_ecc, dat); in omap_correct_data() 822 read_ecc += 3; in omap_correct_data()
|
D | alauda.c | 174 static void correct_data(void *buf, void *read_ecc, in correct_data() argument 181 err = nand_correct_data(NULL, buf, read_ecc, calc_ecc); in correct_data()
|
D | fsmc_nand.c | 771 uint8_t *read_ecc, uint8_t *calc_ecc) in fsmc_bch8_correct_data() argument 804 int bits_ecc = count_written_bits(read_ecc, chip->ecc.bytes, 8); in fsmc_bch8_correct_data()
|
D | mxc_nand.c | 548 u_char *read_ecc, u_char *calc_ecc) in mxc_nand_correct_data_v1() argument 569 u_char *read_ecc, u_char *calc_ecc) in mxc_nand_correct_data_v2_v3() argument
|
D | atmel_nand.c | 401 u_char *read_ecc, u_char *isnull) in atmel_nand_correct() argument
|
D | diskonchip.c | 965 u_char *read_ecc, u_char *isnull) in doc200x_correct_data() argument 1004 if (read_ecc[i] == 0xff) in doc200x_correct_data()
|
D | r852.c | 486 uint8_t *read_ecc, uint8_t *calc_ecc) in r852_ecc_correct() argument
|
D | denali.c | 1321 uint8_t *read_ecc, uint8_t *calc_ecc) in denali_ecc_correct() argument
|
/linux-3.4.99/include/linux/mtd/ |
D | nand_ecc.h | 34 int __nand_correct_data(u_char *dat, u_char *read_ecc, u_char *calc_ecc, 40 int nand_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc);
|
D | nand_bch.h | 30 int nand_bch_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, 56 unsigned char *read_ecc, unsigned char *calc_ecc) in nand_bch_correct_data() argument
|
D | nand.h | 360 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,
|