/drivers/mtd/nand/ |
D | s3c2410.c | 478 static int s3c2410_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) in s3c2410_nand_calculate_ecc() argument 482 ecc_code[0] = readb(info->regs + S3C2410_NFECC + 0); in s3c2410_nand_calculate_ecc() 483 ecc_code[1] = readb(info->regs + S3C2410_NFECC + 1); in s3c2410_nand_calculate_ecc() 484 ecc_code[2] = readb(info->regs + S3C2410_NFECC + 2); in s3c2410_nand_calculate_ecc() 487 ecc_code[0], ecc_code[1], ecc_code[2]); in s3c2410_nand_calculate_ecc() 492 static int s3c2412_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) in s3c2412_nand_calculate_ecc() argument 497 ecc_code[0] = ecc; in s3c2412_nand_calculate_ecc() 498 ecc_code[1] = ecc >> 8; in s3c2412_nand_calculate_ecc() 499 ecc_code[2] = ecc >> 16; in s3c2412_nand_calculate_ecc() 501 pr_debug("calculate_ecc: returning ecc %02x,%02x,%02x\n", ecc_code[0], ecc_code[1], ecc_code[2]); in s3c2412_nand_calculate_ecc() [all …]
|
D | tmio_nand.c | 283 u_char *ecc_code) in tmio_nand_calculate_ecc() argument 291 ecc_code[1] = ecc; /* 000-255 LP7-0 */ in tmio_nand_calculate_ecc() 292 ecc_code[0] = ecc >> 8; /* 000-255 LP15-8 */ in tmio_nand_calculate_ecc() 294 ecc_code[2] = ecc; /* 000-255 CP5-0,11b */ in tmio_nand_calculate_ecc() 295 ecc_code[4] = ecc >> 8; /* 256-511 LP7-0 */ in tmio_nand_calculate_ecc() 297 ecc_code[3] = ecc; /* 256-511 LP15-8 */ in tmio_nand_calculate_ecc() 298 ecc_code[5] = ecc >> 8; /* 256-511 CP5-0,11b */ in tmio_nand_calculate_ecc()
|
D | sharpsl.c | 97 static int sharpsl_nand_calculate_ecc(struct mtd_info *mtd, const u_char * dat, u_char * ecc_code) in sharpsl_nand_calculate_ecc() argument 100 ecc_code[0] = ~readb(sharpsl->io + ECCLPUB); in sharpsl_nand_calculate_ecc() 101 ecc_code[1] = ~readb(sharpsl->io + ECCLPLB); in sharpsl_nand_calculate_ecc() 102 ecc_code[2] = (~readb(sharpsl->io + ECCCP) << 2) | 0x03; in sharpsl_nand_calculate_ecc()
|
D | cs553x_nand.c | 170 static int cs_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) in cs_calculate_ecc() argument 178 ecc_code[1] = ecc >> 8; in cs_calculate_ecc() 179 ecc_code[0] = ecc >> 16; in cs_calculate_ecc() 180 ecc_code[2] = ecc >> 24; in cs_calculate_ecc()
|
D | ndfc.c | 96 const u_char *dat, u_char *ecc_code) in ndfc_calculate_ecc() argument 105 ecc_code[0] = p[2]; in ndfc_calculate_ecc() 106 ecc_code[1] = p[1]; in ndfc_calculate_ecc() 107 ecc_code[2] = p[3]; in ndfc_calculate_ecc()
|
D | atmel_nand.c | 187 const u_char *dat, unsigned char *ecc_code) in atmel_nand_calculate() argument 197 ecc_code[0] = ecc_value & 0xFF; in atmel_nand_calculate() 198 ecc_code[1] = (ecc_value >> 8) & 0xFF; in atmel_nand_calculate() 203 ecc_code[2] = ecc_value & 0xFF; in atmel_nand_calculate() 204 ecc_code[3] = (ecc_value >> 8) & 0xFF; in atmel_nand_calculate()
|
D | rtc_from4.c | 315 static void rtc_from4_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) in rtc_from4_calculate_ecc() argument 323 ecc_code[i] = (unsigned char)value; in rtc_from4_calculate_ecc() 326 ecc_code[7] |= 0x0f; /* set the last four bits (not used) */ in rtc_from4_calculate_ecc()
|
D | bf5xx_nand.c | 323 const u_char *dat, u_char *ecc_code) in bf5xx_nand_calculate_ecc() argument 342 memcpy(ecc_code, p, 3); in bf5xx_nand_calculate_ecc() 354 memcpy((ecc_code + 3), p, 3); in bf5xx_nand_calculate_ecc()
|
D | diskonchip.c | 903 static int doc200x_calculate_ecc(struct mtd_info *mtd, const u_char *dat, unsigned char *ecc_code) in doc200x_calculate_ecc() argument 930 ecc_code[i] = ReadDOC_(docptr, DoC_Mplus_ECCSyndrome0 + i); in doc200x_calculate_ecc() 932 ecc_code[i] = ReadDOC_(docptr, DoC_ECCSyndrome0 + i); in doc200x_calculate_ecc() 933 if (ecc_code[i] != empty_write_ecc[i]) in doc200x_calculate_ecc() 957 memset(ecc_code, 0xff, 6); in doc200x_calculate_ecc()
|
D | nand_base.c | 774 uint8_t *ecc_code = chip->buffers->ecccode; in nand_read_page_swecc() local 783 ecc_code[i] = chip->oob_poi[eccpos[i]]; in nand_read_page_swecc() 791 stat = chip->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_swecc() 897 uint8_t *ecc_code = chip->buffers->ecccode; in nand_read_page_hwecc() local 908 ecc_code[i] = chip->oob_poi[eccpos[i]]; in nand_read_page_hwecc() 916 stat = chip->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_hwecc()
|
D | mxc_nand.c | 384 u_char *ecc_code) in mxc_nand_calculate_ecc() argument
|
D | pxa3xx_nand.c | 830 const uint8_t *dat, uint8_t *ecc_code) in pxa3xx_nand_ecc_calculate() argument
|