/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/mtd/ |
H A 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);
|
H A D | nand.h | 285 uint8_t *calc_ecc);
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/nand/ |
H A D | nand_ecc.c | 438 * @calc_ecc: the ECC calculated from raw data 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]; 520 * @calc_ecc: the ECC calculated from raw data 525 unsigned char *read_ecc, unsigned char *calc_ecc) 527 return __nand_correct_data(buf, read_ecc, calc_ecc, 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 | 236 u_char *read_ecc, u_char *calc_ecc) 245 calced = calc_ecc[0] | (calc_ecc[1] << 8) | (calc_ecc[2] << 16); 315 u_char *read_ecc, u_char *calc_ecc) 320 ret = bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc); 326 calc_ecc += 3; 327 ret |= bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc); 235 bf5xx_nand_correct_data_256(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc) argument 314 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 | 424 u_char *read_ecc, u_char *calc_ecc) 430 pr_debug("%s(%p,%p,%p,%p)\n", __func__, mtd, dat, read_ecc, calc_ecc); 432 diff0 = read_ecc[0] ^ calc_ecc[0]; 433 diff1 = read_ecc[1] ^ calc_ecc[1]; 434 diff2 = read_ecc[2] ^ calc_ecc[2]; 439 calc_ecc[0], calc_ecc[1], calc_ecc[2], 423 s3c2410_nand_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc) argument
|
H A D | txx9ndfmc.c | 210 unsigned char *read_ecc, unsigned char *calc_ecc) 218 stat = __nand_correct_data(buf, read_ecc, calc_ecc, 256); 224 calc_ecc += 3; 209 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 | 192 u_char *read_ecc, u_char *calc_ecc) 197 uint32_t eccCalc = calc_ecc[0] | (calc_ecc[1] << 8) | 198 (calc_ecc[2] << 16); 191 nand_davinci_correct_1bit(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc) argument
|
H A D | tmio_nand.c | 306 unsigned char *read_ecc, unsigned char *calc_ecc) 311 r0 = __nand_correct_data(buf, read_ecc, calc_ecc, 256); 314 r1 = __nand_correct_data(buf + 256, read_ecc + 3, calc_ecc + 3, 256); 305 tmio_nand_correct_data(struct mtd_info *mtd, unsigned char *buf, unsigned char *read_ecc, unsigned char *calc_ecc) argument
|
H A D | omap2.c | 643 * @calc_ecc: ecc read from HW ECC registers 650 u_char *read_ecc, u_char *calc_ecc) 664 if (memcmp(read_ecc, calc_ecc, 3) != 0) { 665 ret = omap_compare_ecc(read_ecc, calc_ecc, dat); 670 calc_ecc += 3; 649 omap_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc) argument
|
H A D | alauda.c | 177 u8 calc_ecc[3]; local 180 nand_calculate_ecc(NULL, buf, calc_ecc); 181 err = nand_correct_data(NULL, buf, read_ecc, calc_ecc);
|
H A D | diskonchip.c | 951 uint8_t calc_ecc[6]; local 974 calc_ecc[i] = ReadDOC_(docptr, DoC_Mplus_ECCSyndrome0 + i); 976 calc_ecc[i] = ReadDOC_(docptr, DoC_ECCSyndrome0 + i); 977 if (calc_ecc[i] != empty_read_syndrome[i]) 1007 ret = doc_ecc_decode(rs_decoder, dat, calc_ecc);
|
H A D | mxc_nand.c | 521 u_char *read_ecc, u_char *calc_ecc) 543 u_char *read_ecc, u_char *calc_ecc) 520 mxc_nand_correct_data_v1(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc) argument 542 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 | jz4740_nand.c | 191 uint8_t *read_ecc, uint8_t *calc_ecc) 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 | 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 | pxa3xx_nand.c | 907 uint8_t *dat, uint8_t *read_ecc, uint8_t *calc_ecc) 906 pxa3xx_nand_ecc_correct(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc, uint8_t *calc_ecc) argument
|
H A D | denali.c | 1338 uint8_t *read_ecc, uint8_t *calc_ecc) 1337 denali_ecc_correct(struct mtd_info *mtd, uint8_t *data, uint8_t *read_ecc, uint8_t *calc_ecc) argument
|