/Linux-v4.19/drivers/mtd/nand/raw/ |
D | omap2.c | 914 u_char *ecc_code) in omap_calculate_ecc() argument 925 *ecc_code++ = val; /* P128e, ..., P1e */ in omap_calculate_ecc() 926 *ecc_code++ = val >> 16; /* P128o, ..., P1o */ in omap_calculate_ecc() 928 *ecc_code++ = ((val >> 8) & 0x0f) | ((val >> 20) & 0xf0); in omap_calculate_ecc() 1145 u8 *ecc_code; in _omap_calculate_ecc_bch() local 1150 ecc_code = ecc_calc; in _omap_calculate_ecc_bch() 1158 *ecc_code++ = (bch_val4 & 0xFF); in _omap_calculate_ecc_bch() 1159 *ecc_code++ = ((bch_val3 >> 24) & 0xFF); in _omap_calculate_ecc_bch() 1160 *ecc_code++ = ((bch_val3 >> 16) & 0xFF); in _omap_calculate_ecc_bch() 1161 *ecc_code++ = ((bch_val3 >> 8) & 0xFF); in _omap_calculate_ecc_bch() [all …]
|
D | davinci_nand.c | 174 const u_char *dat, u_char *ecc_code) in nand_davinci_calculate_1bit() argument 181 ecc_code[0] = (u_char)(ecc24); in nand_davinci_calculate_1bit() 182 ecc_code[1] = (u_char)(ecc24 >> 8); in nand_davinci_calculate_1bit() 183 ecc_code[2] = (u_char)(ecc24 >> 16); in nand_davinci_calculate_1bit() 270 const u_char *dat, u_char *ecc_code) in nand_davinci_calculate_4bit() argument 293 *ecc_code++ = p[0] & 0xff; in nand_davinci_calculate_4bit() 294 *ecc_code++ = ((p[0] >> 8) & 0x03) | ((p[0] >> 14) & 0xfc); in nand_davinci_calculate_4bit() 295 *ecc_code++ = ((p[0] >> 22) & 0x0f) | ((p[1] << 4) & 0xf0); in nand_davinci_calculate_4bit() 296 *ecc_code++ = ((p[1] >> 4) & 0x3f) | ((p[1] >> 10) & 0xc0); in nand_davinci_calculate_4bit() 297 *ecc_code++ = (p[1] >> 18) & 0xff; in nand_davinci_calculate_4bit() [all …]
|
D | jz4780_bch.h | 35 const u8 *buf, u8 *ecc_code); 38 u8 *ecc_code);
|
D | sharpsl.c | 94 static int sharpsl_nand_calculate_ecc(struct mtd_info *mtd, const u_char * dat, u_char * ecc_code) in sharpsl_nand_calculate_ecc() argument 97 ecc_code[0] = ~readb(sharpsl->io + ECCLPUB); in sharpsl_nand_calculate_ecc() 98 ecc_code[1] = ~readb(sharpsl->io + ECCLPLB); in sharpsl_nand_calculate_ecc() 99 ecc_code[2] = (~readb(sharpsl->io + ECCCP) << 2) | 0x03; in sharpsl_nand_calculate_ecc()
|
D | s3c2410.c | 624 u_char *ecc_code) in s3c2410_nand_calculate_ecc() argument 628 ecc_code[0] = readb(info->regs + S3C2410_NFECC + 0); in s3c2410_nand_calculate_ecc() 629 ecc_code[1] = readb(info->regs + S3C2410_NFECC + 1); in s3c2410_nand_calculate_ecc() 630 ecc_code[2] = readb(info->regs + S3C2410_NFECC + 2); in s3c2410_nand_calculate_ecc() 632 pr_debug("%s: returning ecc %*phN\n", __func__, 3, ecc_code); in s3c2410_nand_calculate_ecc() 638 u_char *ecc_code) in s3c2412_nand_calculate_ecc() argument 643 ecc_code[0] = ecc; in s3c2412_nand_calculate_ecc() 644 ecc_code[1] = ecc >> 8; in s3c2412_nand_calculate_ecc() 645 ecc_code[2] = ecc >> 16; in s3c2412_nand_calculate_ecc() 647 pr_debug("%s: returning ecc %*phN\n", __func__, 3, ecc_code); in s3c2412_nand_calculate_ecc() [all …]
|
D | tmio_nand.c | 272 u_char *ecc_code) in tmio_nand_calculate_ecc() argument 280 ecc_code[1] = ecc; /* 000-255 LP7-0 */ in tmio_nand_calculate_ecc() 281 ecc_code[0] = ecc >> 8; /* 000-255 LP15-8 */ in tmio_nand_calculate_ecc() 283 ecc_code[2] = ecc; /* 000-255 CP5-0,11b */ in tmio_nand_calculate_ecc() 284 ecc_code[4] = ecc >> 8; /* 256-511 LP7-0 */ in tmio_nand_calculate_ecc() 286 ecc_code[3] = ecc; /* 256-511 LP15-8 */ in tmio_nand_calculate_ecc() 287 ecc_code[5] = ecc >> 8; /* 256-511 CP5-0,11b */ in tmio_nand_calculate_ecc()
|
D | cs553x_nand.c | 168 static int cs_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) in cs_calculate_ecc() argument 176 ecc_code[1] = ecc >> 8; in cs_calculate_ecc() 177 ecc_code[0] = ecc >> 16; in cs_calculate_ecc() 178 ecc_code[2] = ecc >> 24; in cs_calculate_ecc()
|
D | ndfc.c | 97 const u_char *dat, u_char *ecc_code) in ndfc_calculate_ecc() argument 107 ecc_code[0] = p[1]; in ndfc_calculate_ecc() 108 ecc_code[1] = p[2]; in ndfc_calculate_ecc() 109 ecc_code[2] = p[3]; in ndfc_calculate_ecc()
|
D | jz4780_bch.c | 182 const u8 *buf, u8 *ecc_code) in jz4780_bch_calculate() argument 191 jz4780_bch_read_parity(bch, ecc_code, params->bytes); in jz4780_bch_calculate() 217 u8 *buf, u8 *ecc_code) in jz4780_bch_correct() argument 226 jz4780_bch_write_data(bch, ecc_code, params->bytes); in jz4780_bch_correct()
|
D | txx9ndfmc.c | 174 uint8_t *ecc_code) in txx9ndfmc_calculate_ecc() argument 185 ecc_code[1] = txx9ndfmc_read(dev, TXX9_NDFDTR); in txx9ndfmc_calculate_ecc() 186 ecc_code[0] = txx9ndfmc_read(dev, TXX9_NDFDTR); in txx9ndfmc_calculate_ecc() 187 ecc_code[2] = txx9ndfmc_read(dev, TXX9_NDFDTR); in txx9ndfmc_calculate_ecc() 188 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 | jz4780_nand.c | 127 u8 *ecc_code) in jz4780_nand_ecc_calculate() argument 144 return jz4780_bch_calculate(nfc->bch, ¶ms, dat, ecc_code); in jz4780_nand_ecc_calculate()
|
D | diskonchip.c | 839 static int doc200x_calculate_ecc(struct mtd_info *mtd, const u_char *dat, unsigned char *ecc_code) in doc200x_calculate_ecc() argument 866 ecc_code[i] = ReadDOC_(docptr, DoC_Mplus_ECCSyndrome0 + i); in doc200x_calculate_ecc() 868 ecc_code[i] = ReadDOC_(docptr, DoC_ECCSyndrome0 + i); in doc200x_calculate_ecc() 869 if (ecc_code[i] != empty_write_ecc[i]) in doc200x_calculate_ecc() 893 memset(ecc_code, 0xff, 6); in doc200x_calculate_ecc()
|
D | fsmc_nand.c | 730 uint8_t *ecc_code = chip->ecc.code_buf; in fsmc_read_page_hwecc() local 769 memcpy(&ecc_code[i], oob, chip->ecc.bytes); in fsmc_read_page_hwecc() 772 stat = chip->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]); in fsmc_read_page_hwecc()
|
D | nand_base.c | 3097 uint8_t *ecc_code = chip->ecc.code_buf; in nand_read_page_swecc() local 3105 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in nand_read_page_swecc() 3116 stat = chip->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_swecc() 3257 uint8_t *ecc_code = chip->ecc.code_buf; in nand_read_page_hwecc() local 3278 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in nand_read_page_hwecc() 3289 stat = chip->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_hwecc() 3294 &ecc_code[i], eccbytes, in nand_read_page_hwecc() 3330 uint8_t *ecc_code = chip->ecc.code_buf; in nand_read_page_hwecc_oob_first() local 3343 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in nand_read_page_hwecc_oob_first() 3359 stat = chip->ecc.correct(mtd, p, &ecc_code[i], NULL); in nand_read_page_hwecc_oob_first() [all …]
|
D | r852.c | 437 uint8_t *ecc_code) in r852_ecc_calculate() argument 440 struct sm_oob *oob = (struct sm_oob *)ecc_code; in r852_ecc_calculate()
|
D | denali.c | 326 uint8_t *ecc_code = chip->oob_poi + denali->oob_skip_bytes; in denali_check_erased_page() local 337 ecc_code, ecc_bytes, in denali_check_erased_page() 348 ecc_code += ecc_bytes; in denali_check_erased_page()
|
/Linux-v4.19/include/linux/mtd/ |
D | nand_ecc.h | 22 u_char *ecc_code); 27 int nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code);
|
D | nand_bch.h | 25 u_char *ecc_code); 47 u_char *ecc_code) in nand_bch_calculate_ecc() argument
|
D | rawnand.h | 651 uint8_t *ecc_code);
|