Searched refs:ecc_code (Results 1 - 11 of 11) sorted by path

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/mtd/nand/
H A Dcs553x_nand.c167 static int cs_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) argument
175 ecc_code[1] = ecc >> 8;
176 ecc_code[0] = ecc >> 16;
177 ecc_code[2] = ecc >> 24;
H A Ddiskonchip.c912 static int doc200x_calculate_ecc(struct mtd_info *mtd, const u_char *dat, unsigned char *ecc_code) argument
939 ecc_code[i] = ReadDOC_(docptr, DoC_Mplus_ECCSyndrome0 + i);
941 ecc_code[i] = ReadDOC_(docptr, DoC_ECCSyndrome0 + i);
942 if (ecc_code[i] != empty_write_ecc[i])
H A Dnand_base.c790 uint8_t *ecc_code = chip->buffers->ecccode; local
799 ecc_code[i] = chip->oob_poi[eccpos[i]];
807 stat = chip->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]);
914 uint8_t *ecc_code = chip->buffers->ecccode; local
925 ecc_code[i] = chip->oob_poi[eccpos[i]];
933 stat = chip->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]);
H A Dnand_ecc.c71 * @ecc_code: buffer for ECC
74 u_char *ecc_code)
116 ecc_code[0] = ~tmp2;
117 ecc_code[1] = ~tmp1;
119 ecc_code[0] = ~tmp1;
120 ecc_code[1] = ~tmp2;
122 ecc_code[2] = ((~reg1) << 2) | 0x03;
73 nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) argument
H A Dndfc.c94 const u_char *dat, u_char *ecc_code)
102 ecc_code[0] = p[1];
103 ecc_code[1] = p[2];
104 ecc_code[2] = p[3];
93 ndfc_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) argument
H A Drtc_from4.c308 * @ecc_code ECC codes calculated
317 static void rtc_from4_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) argument
325 ecc_code[i] = (unsigned char)value;
328 ecc_code[7] |= 0x0f; /* set the last four bits (not used) */
H A Ds3c2410.c439 static int s3c2410_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) argument
443 ecc_code[0] = readb(info->regs + S3C2410_NFECC + 0);
444 ecc_code[1] = readb(info->regs + S3C2410_NFECC + 1);
445 ecc_code[2] = readb(info->regs + S3C2410_NFECC + 2);
448 ecc_code[0], ecc_code[1], ecc_code[2]);
453 static int s3c2412_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) argument
458 ecc_code[0] = ecc;
459 ecc_code[
467 s3c2440_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) argument
[all...]
H A Dsharpsl.c140 static int sharpsl_nand_calculate_ecc(struct mtd_info *mtd, const u_char * dat, u_char * ecc_code) argument
142 ecc_code[0] = ~readb(ECCLPUB);
143 ecc_code[1] = ~readb(ECCLPLB);
144 ecc_code[2] = (~readb(ECCCP) << 2) | 0x03;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/mtd/
H A Dnand.h289 uint8_t *ecc_code);
H A Dnand_ecc.h23 int nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/shared/
H A Dnflash.c72 extern int nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code);

Completed in 126 milliseconds