/drivers/mtd/nand/ |
H A D | nand_ecc.c | 437 * @read_ecc: ECC from the chip 444 unsigned char *read_ecc, unsigned char *calc_ecc, 458 b0 = read_ecc[0] ^ calc_ecc[0]; 459 b1 = read_ecc[1] ^ calc_ecc[1]; 461 b0 = read_ecc[1] ^ calc_ecc[1]; 462 b1 = read_ecc[0] ^ calc_ecc[0]; 464 b2 = read_ecc[2] ^ calc_ecc[2]; 519 * @read_ecc: ECC from the chip 525 unsigned char *read_ecc, unsigned char *calc_ecc) 527 return __nand_correct_data(buf, read_ecc, calc_ec 443 __nand_correct_data(unsigned char *buf, unsigned char *read_ecc, unsigned char *calc_ecc, unsigned int eccsize) argument 524 nand_correct_data(struct mtd_info *mtd, unsigned char *buf, unsigned char *read_ecc, unsigned char *calc_ecc) argument [all...] |
H A D | bf5xx_nand.c | 227 u_char *read_ecc, u_char *calc_ecc) 237 stored = read_ecc[0] | (read_ecc[1] << 8) | (read_ecc[2] << 16); 306 u_char *read_ecc, u_char *calc_ecc) 311 ret = bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc); 316 read_ecc += 3; 318 ret |= bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc); 226 bf5xx_nand_correct_data_256(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc) argument 305 bf5xx_nand_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc) argument
|
H A D | s3c2410.c | 454 u_char *read_ecc, u_char *calc_ecc) 460 pr_debug("%s(%p,%p,%p,%p)\n", __func__, mtd, dat, read_ecc, calc_ecc); 462 diff0 = read_ecc[0] ^ calc_ecc[0]; 463 diff1 = read_ecc[1] ^ calc_ecc[1]; 464 diff2 = read_ecc[2] ^ calc_ecc[2]; 468 read_ecc[0], read_ecc[1], read_ecc[2], 479 if (read_ecc[0] == 0xff && read_ecc[ 453 s3c2410_nand_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc) argument [all...] |
H A D | jz4740_nand.c | 191 uint8_t *read_ecc, uint8_t *calc_ecc) 199 t = read_ecc[0]; 203 t &= read_ecc[i]; 218 writeb(read_ecc[i], nand->base + JZ_REG_NAND_PAR0 + i); 190 jz_nand_correct_ecc_rs(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc, uint8_t *calc_ecc) argument
|
H A D | nand_bch.c | 74 * @read_ecc: ECC from the chip 80 unsigned char *read_ecc, unsigned char *calc_ecc) 87 count = decode_bch(nbc->bch, NULL, chip->ecc.size, read_ecc, calc_ecc, 79 nand_bch_correct_data(struct mtd_info *mtd, unsigned char *buf, unsigned char *read_ecc, unsigned char *calc_ecc) argument
|
H A D | tmio_nand.c | 303 unsigned char *read_ecc, unsigned char *calc_ecc) 308 r0 = __nand_correct_data(buf, read_ecc, calc_ecc, 256); 311 r1 = __nand_correct_data(buf + 256, read_ecc + 3, calc_ecc + 3, 256); 302 tmio_nand_correct_data(struct mtd_info *mtd, unsigned char *buf, unsigned char *read_ecc, unsigned char *calc_ecc) argument
|
H A D | txx9ndfmc.c | 207 unsigned char *read_ecc, unsigned char *calc_ecc) 215 stat = __nand_correct_data(buf, read_ecc, calc_ecc, 256); 220 read_ecc += 3; 206 txx9ndfmc_correct_data(struct mtd_info *mtd, unsigned char *buf, unsigned char *read_ecc, unsigned char *calc_ecc) argument
|
H A D | davinci_nand.c | 191 u_char *read_ecc, u_char *calc_ecc) 194 uint32_t eccNand = read_ecc[0] | (read_ecc[1] << 8) | 195 (read_ecc[2] << 16); 190 nand_davinci_correct_1bit(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc) argument
|
H A D | omap2.c | 789 * @read_ecc: ecc read from nand flash 800 u_char *read_ecc, u_char *calc_ecc) 815 if (memcmp(read_ecc, calc_ecc, 3) != 0) { 816 ret = omap_compare_ecc(read_ecc, calc_ecc, dat); 822 read_ecc += 3; 799 omap_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc) argument
|
H A D | alauda.c | 174 static void correct_data(void *buf, void *read_ecc, argument 181 err = nand_correct_data(NULL, buf, read_ecc, calc_ecc);
|
H A D | fsmc_nand.c | 764 * @read_ecc: ecc read from device spare area 771 uint8_t *read_ecc, uint8_t *calc_ecc) 804 int bits_ecc = count_written_bits(read_ecc, chip->ecc.bytes, 8); 770 fsmc_bch8_correct_data(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc, uint8_t *calc_ecc) argument
|
H A D | mxc_nand.c | 548 u_char *read_ecc, u_char *calc_ecc) 569 u_char *read_ecc, u_char *calc_ecc) 547 mxc_nand_correct_data_v1(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc) argument 568 mxc_nand_correct_data_v2_v3(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc) argument
|
H A D | atmel_nand.c | 395 * read_ecc: ECC from the chip (unused) 401 u_char *read_ecc, u_char *isnull) 400 atmel_nand_correct(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *isnull) argument
|
H A D | diskonchip.c | 965 u_char *read_ecc, u_char *isnull) 1004 if (read_ecc[i] == 0xff) 964 doc200x_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *isnull) argument
|
H A D | r852.c | 486 uint8_t *read_ecc, uint8_t *calc_ecc) 485 r852_ecc_correct(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc, uint8_t *calc_ecc) argument
|
H A D | denali.c | 1321 uint8_t *read_ecc, uint8_t *calc_ecc) 1320 denali_ecc_correct(struct mtd_info *mtd, uint8_t *data, uint8_t *read_ecc, uint8_t *calc_ecc) argument
|