Home
last modified time | relevance | path

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

/drivers/mtd/nand/
Dnand_ecc.c443 unsigned char *read_ecc, unsigned char *calc_ecc, in __nand_correct_data() argument
457 b0 = read_ecc[0] ^ calc_ecc[0]; in __nand_correct_data()
458 b1 = read_ecc[1] ^ calc_ecc[1]; in __nand_correct_data()
460 b0 = read_ecc[1] ^ calc_ecc[1]; in __nand_correct_data()
461 b1 = read_ecc[0] ^ calc_ecc[0]; in __nand_correct_data()
463 b2 = read_ecc[2] ^ calc_ecc[2]; in __nand_correct_data()
524 unsigned char *read_ecc, unsigned char *calc_ecc) in nand_correct_data() argument
526 return __nand_correct_data(buf, read_ecc, calc_ecc, in nand_correct_data()
Dbf5xx_nand.c226 u_char *read_ecc, u_char *calc_ecc) in bf5xx_nand_correct_data_256() argument
236 stored = read_ecc[0] | (read_ecc[1] << 8) | (read_ecc[2] << 16); in bf5xx_nand_correct_data_256()
305 u_char *read_ecc, u_char *calc_ecc) in bf5xx_nand_correct_data() argument
310 ret = bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc); in bf5xx_nand_correct_data()
315 read_ecc += 3; in bf5xx_nand_correct_data()
317 ret |= bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc); in bf5xx_nand_correct_data()
Ds3c2410.c480 u_char *read_ecc, u_char *calc_ecc) in s3c2410_nand_correct_data() argument
486 pr_debug("%s(%p,%p,%p,%p)\n", __func__, mtd, dat, read_ecc, calc_ecc); in s3c2410_nand_correct_data()
488 diff0 = read_ecc[0] ^ calc_ecc[0]; in s3c2410_nand_correct_data()
489 diff1 = read_ecc[1] ^ calc_ecc[1]; in s3c2410_nand_correct_data()
490 diff2 = read_ecc[2] ^ calc_ecc[2]; in s3c2410_nand_correct_data()
493 __func__, 3, read_ecc, 3, calc_ecc, in s3c2410_nand_correct_data()
503 if (read_ecc[0] == 0xff && read_ecc[1] == 0xff && read_ecc[2] == 0xff in s3c2410_nand_correct_data()
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()
Djz4740_nand.c220 uint8_t *read_ecc, uint8_t *calc_ecc) in jz_nand_correct_ecc_rs() argument
228 t = read_ecc[0]; in jz_nand_correct_ecc_rs()
232 t &= read_ecc[i]; in jz_nand_correct_ecc_rs()
247 writeb(read_ecc[i], nand->base + JZ_REG_NAND_PAR0 + i); in jz_nand_correct_ecc_rs()
Dtmio_nand.c291 unsigned char *read_ecc, unsigned char *calc_ecc) in tmio_nand_correct_data() argument
296 r0 = __nand_correct_data(buf, read_ecc, calc_ecc, 256); in tmio_nand_correct_data()
299 r1 = __nand_correct_data(buf + 256, read_ecc + 3, calc_ecc + 3, 256); in tmio_nand_correct_data()
Dtxx9ndfmc.c196 unsigned char *read_ecc, unsigned char *calc_ecc) in txx9ndfmc_correct_data() argument
204 stat = __nand_correct_data(buf, read_ecc, calc_ecc, 256); in txx9ndfmc_correct_data()
209 read_ecc += 3; in txx9ndfmc_correct_data()
Ddavinci_nand.c193 u_char *read_ecc, u_char *calc_ecc) in nand_davinci_correct_1bit() argument
196 uint32_t eccNand = read_ecc[0] | (read_ecc[1] << 8) | in nand_davinci_correct_1bit()
197 (read_ecc[2] << 16); in nand_davinci_correct_1bit()
Domap2.c887 u_char *read_ecc, u_char *calc_ecc) in omap_correct_data() argument
902 if (memcmp(read_ecc, calc_ecc, 3) != 0) { in omap_correct_data()
903 ret = omap_compare_ecc(read_ecc, calc_ecc, dat); in omap_correct_data()
909 read_ecc += 3; in omap_correct_data()
1335 u_char *read_ecc, u_char *calc_ecc) in omap_elm_correct_data() argument
1345 u_char *spare_ecc = read_ecc; in omap_elm_correct_data()
1405 buf, read_ecc, info); in omap_elm_correct_data()
1427 read_ecc += ecc->bytes; in omap_elm_correct_data()
Dmxc_nand.c155 u_char *read_ecc, u_char *calc_ecc);
664 u_char *read_ecc, u_char *calc_ecc) in mxc_nand_correct_data_v1() argument
685 u_char *read_ecc, u_char *calc_ecc) in mxc_nand_correct_data_v2_v3() argument
Dfsmc_nand.c783 uint8_t *read_ecc, uint8_t *calc_ecc) in fsmc_bch8_correct_data() argument
816 int bits_ecc = count_written_bits(read_ecc, chip->ecc.bytes, 8); in fsmc_bch8_correct_data()
Ddiskonchip.c907 u_char *read_ecc, u_char *isnull) in doc200x_correct_data() argument
946 if (read_ecc[i] == 0xff) in doc200x_correct_data()
Dr852.c467 uint8_t *read_ecc, uint8_t *calc_ecc) in r852_ecc_correct() argument
Datmel_nand.c1413 u_char *read_ecc, u_char *isnull) in atmel_nand_correct() argument