Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/mtd/nand/
Dnand_ecc.c444 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()
Dbf5xx_nand.c227 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()
Ds3c2410.c454 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()
Djz4740_nand.c191 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()
Dnand_bch.c80 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()
Dtmio_nand.c303 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()
Dtxx9ndfmc.c207 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()
Ddavinci_nand.c191 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()
Domap2.c800 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()
Dalauda.c174 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()
Dfsmc_nand.c771 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()
Dmxc_nand.c548 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
Datmel_nand.c401 u_char *read_ecc, u_char *isnull) in atmel_nand_correct() argument
Ddiskonchip.c965 u_char *read_ecc, u_char *isnull) in doc200x_correct_data() argument
1004 if (read_ecc[i] == 0xff) in doc200x_correct_data()
Dr852.c486 uint8_t *read_ecc, uint8_t *calc_ecc) in r852_ecc_correct() argument
Ddenali.c1321 uint8_t *read_ecc, uint8_t *calc_ecc) in denali_ecc_correct() argument
/linux-3.4.99/include/linux/mtd/
Dnand_ecc.h34 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);
Dnand_bch.h30 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
Dnand.h360 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,