/drivers/mtd/nand/ |
D | omap2.c | 925 u_char *ecc_code) in omap_calculate_ecc() argument 937 *ecc_code++ = val; /* P128e, ..., P1e */ in omap_calculate_ecc() 938 *ecc_code++ = val >> 16; /* P128o, ..., P1o */ in omap_calculate_ecc() 940 *ecc_code++ = ((val >> 8) & 0x0f) | ((val >> 20) & 0xf0); in omap_calculate_ecc() 1178 u8 *ecc_code; in omap_calculate_ecc_bch() local 1185 ecc_code = ecc_calc; in omap_calculate_ecc_bch() 1193 *ecc_code++ = (bch_val4 & 0xFF); in omap_calculate_ecc_bch() 1194 *ecc_code++ = ((bch_val3 >> 24) & 0xFF); in omap_calculate_ecc_bch() 1195 *ecc_code++ = ((bch_val3 >> 16) & 0xFF); in omap_calculate_ecc_bch() 1196 *ecc_code++ = ((bch_val3 >> 8) & 0xFF); in omap_calculate_ecc_bch() [all …]
|
D | davinci_nand.c | 178 const u_char *dat, u_char *ecc_code) in nand_davinci_calculate_1bit() argument 185 ecc_code[0] = (u_char)(ecc24); in nand_davinci_calculate_1bit() 186 ecc_code[1] = (u_char)(ecc24 >> 8); in nand_davinci_calculate_1bit() 187 ecc_code[2] = (u_char)(ecc24 >> 16); in nand_davinci_calculate_1bit() 274 const u_char *dat, u_char *ecc_code) in nand_davinci_calculate_4bit() argument 297 *ecc_code++ = p[0] & 0xff; in nand_davinci_calculate_4bit() 298 *ecc_code++ = ((p[0] >> 8) & 0x03) | ((p[0] >> 14) & 0xfc); in nand_davinci_calculate_4bit() 299 *ecc_code++ = ((p[0] >> 22) & 0x0f) | ((p[1] << 4) & 0xf0); in nand_davinci_calculate_4bit() 300 *ecc_code++ = ((p[1] >> 4) & 0x3f) | ((p[1] >> 10) & 0xc0); in nand_davinci_calculate_4bit() 301 *ecc_code++ = (p[1] >> 18) & 0xff; in nand_davinci_calculate_4bit() [all …]
|
D | s3c2410.c | 587 u_char *ecc_code) in s3c2410_nand_calculate_ecc() argument 591 ecc_code[0] = readb(info->regs + S3C2410_NFECC + 0); in s3c2410_nand_calculate_ecc() 592 ecc_code[1] = readb(info->regs + S3C2410_NFECC + 1); in s3c2410_nand_calculate_ecc() 593 ecc_code[2] = readb(info->regs + S3C2410_NFECC + 2); in s3c2410_nand_calculate_ecc() 595 pr_debug("%s: returning ecc %*phN\n", __func__, 3, ecc_code); in s3c2410_nand_calculate_ecc() 601 u_char *ecc_code) in s3c2412_nand_calculate_ecc() argument 606 ecc_code[0] = ecc; in s3c2412_nand_calculate_ecc() 607 ecc_code[1] = ecc >> 8; in s3c2412_nand_calculate_ecc() 608 ecc_code[2] = ecc >> 16; in s3c2412_nand_calculate_ecc() 610 pr_debug("%s: returning ecc %*phN\n", __func__, 3, ecc_code); in s3c2412_nand_calculate_ecc() [all …]
|
D | tmio_nand.c | 269 u_char *ecc_code) in tmio_nand_calculate_ecc() argument 277 ecc_code[1] = ecc; /* 000-255 LP7-0 */ in tmio_nand_calculate_ecc() 278 ecc_code[0] = ecc >> 8; /* 000-255 LP15-8 */ in tmio_nand_calculate_ecc() 280 ecc_code[2] = ecc; /* 000-255 CP5-0,11b */ in tmio_nand_calculate_ecc() 281 ecc_code[4] = ecc >> 8; /* 256-511 LP7-0 */ in tmio_nand_calculate_ecc() 283 ecc_code[3] = ecc; /* 256-511 LP15-8 */ in tmio_nand_calculate_ecc() 284 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 | 100 const u_char *dat, u_char *ecc_code) in ndfc_calculate_ecc() argument 110 ecc_code[0] = p[1]; in ndfc_calculate_ecc() 111 ecc_code[1] = p[2]; in ndfc_calculate_ecc() 112 ecc_code[2] = p[3]; in ndfc_calculate_ecc()
|
D | txx9ndfmc.c | 175 uint8_t *ecc_code) in txx9ndfmc_calculate_ecc() argument 186 ecc_code[1] = txx9ndfmc_read(dev, TXX9_NDFDTR); in txx9ndfmc_calculate_ecc() 187 ecc_code[0] = txx9ndfmc_read(dev, TXX9_NDFDTR); in txx9ndfmc_calculate_ecc() 188 ecc_code[2] = txx9ndfmc_read(dev, TXX9_NDFDTR); in txx9ndfmc_calculate_ecc() 189 ecc_code += 3; in txx9ndfmc_calculate_ecc()
|
D | jz4740_nand.c | 166 uint8_t *ecc_code) in jz_nand_calculate_ecc_rs() argument 190 ecc_code[i] = readb(nand->base + JZ_REG_NAND_PAR0 + i); in jz_nand_calculate_ecc_rs() 194 if (memcmp(ecc_code, empty_block_ecc, 9) == 0) in jz_nand_calculate_ecc_rs() 195 memset(ecc_code, 0xff, 9); in jz_nand_calculate_ecc_rs()
|
D | bf5xx_nand.c | 329 const u_char *dat, u_char *ecc_code) in bf5xx_nand_calculate_ecc() argument 346 memcpy(ecc_code, p, 3); in bf5xx_nand_calculate_ecc() 358 memcpy((ecc_code + 3), p, 3); in bf5xx_nand_calculate_ecc()
|
D | diskonchip.c | 844 static int doc200x_calculate_ecc(struct mtd_info *mtd, const u_char *dat, unsigned char *ecc_code) in doc200x_calculate_ecc() argument 871 ecc_code[i] = ReadDOC_(docptr, DoC_Mplus_ECCSyndrome0 + i); in doc200x_calculate_ecc() 873 ecc_code[i] = ReadDOC_(docptr, DoC_ECCSyndrome0 + i); in doc200x_calculate_ecc() 874 if (ecc_code[i] != empty_write_ecc[i]) in doc200x_calculate_ecc() 898 memset(ecc_code, 0xff, 6); in doc200x_calculate_ecc()
|
D | fsmc_nand.c | 723 uint8_t *ecc_code = chip->buffers->ecccode; in fsmc_read_page_hwecc() local 757 memcpy(&ecc_code[i], oob, chip->ecc.bytes); in fsmc_read_page_hwecc() 760 stat = chip->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]); in fsmc_read_page_hwecc()
|
D | nand_base.c | 1165 uint8_t *ecc_code = chip->buffers->ecccode; in nand_read_page_swecc() local 1175 ecc_code[i] = chip->oob_poi[eccpos[i]]; in nand_read_page_swecc() 1183 stat = chip->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_swecc() 1305 uint8_t *ecc_code = chip->buffers->ecccode; in nand_read_page_hwecc() local 1317 ecc_code[i] = chip->oob_poi[eccpos[i]]; in nand_read_page_hwecc() 1325 stat = chip->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_hwecc() 1357 uint8_t *ecc_code = chip->buffers->ecccode; in nand_read_page_hwecc_oob_first() local 1368 ecc_code[i] = chip->oob_poi[eccpos[i]]; in nand_read_page_hwecc_oob_first() 1377 stat = chip->ecc.correct(mtd, p, &ecc_code[i], NULL); in nand_read_page_hwecc_oob_first()
|
D | atmel_nand.c | 1247 const u_char *dat, unsigned char *ecc_code) in atmel_nand_calculate() argument 1256 ecc_code[0] = ecc_value & 0xFF; in atmel_nand_calculate() 1257 ecc_code[1] = (ecc_value >> 8) & 0xFF; in atmel_nand_calculate() 1262 ecc_code[2] = ecc_value & 0xFF; in atmel_nand_calculate() 1263 ecc_code[3] = (ecc_value >> 8) & 0xFF; in atmel_nand_calculate()
|
D | r852.c | 435 uint8_t *ecc_code) in r852_ecc_calculate() argument 438 struct sm_oob *oob = (struct sm_oob *)ecc_code; in r852_ecc_calculate()
|
D | denali.c | 1334 uint8_t *ecc_code) in denali_ecc_calculate() argument
|
D | mxc_nand.c | 686 u_char *ecc_code) in mxc_nand_calculate_ecc() argument
|