Searched refs:ecc_code (Results 1 - 20 of 20) sorted by relevance

/linux-master/drivers/mtd/nand/raw/ingenic/
H A Dingenic_ecc.h31 const u8 *buf, u8 *ecc_code);
34 u8 *ecc_code);
41 const u8 *buf, u8 *ecc_code)
48 u8 *ecc_code)
67 const u8 *buf, u8 *ecc_code);
70 u8 *buf, u8 *ecc_code);
39 ingenic_ecc_calculate(struct ingenic_ecc *ecc, struct ingenic_ecc_params *params, const u8 *buf, u8 *ecc_code) argument
46 ingenic_ecc_correct(struct ingenic_ecc *ecc, struct ingenic_ecc_params *params, u8 *buf, u8 *ecc_code) argument
H A Dingenic_ecc.c23 * @ecc_code: output buffer with ECC.
30 const u8 *buf, u8 *ecc_code)
32 return ecc->ops->calculate(ecc, params, buf, ecc_code);
40 * @ecc_code: ECC read from the chip.
50 u8 *buf, u8 *ecc_code)
52 return ecc->ops->correct(ecc, params, buf, ecc_code);
28 ingenic_ecc_calculate(struct ingenic_ecc *ecc, struct ingenic_ecc_params *params, const u8 *buf, u8 *ecc_code) argument
48 ingenic_ecc_correct(struct ingenic_ecc *ecc, struct ingenic_ecc_params *params, u8 *buf, u8 *ecc_code) argument
H A Djz4740_ecc.c67 const u8 *buf, u8 *ecc_code)
87 ecc_code[i] = readb(ecc->base + JZ_REG_NAND_PAR0 + i);
93 if (memcmp(ecc_code, empty_block_ecc, sizeof(empty_block_ecc)) == 0)
94 memset(ecc_code, 0xff, sizeof(empty_block_ecc));
119 u8 *buf, u8 *ecc_code)
128 writeb(ecc_code[i], ecc->base + JZ_REG_NAND_PAR0 + i);
65 jz4740_ecc_calculate(struct ingenic_ecc *ecc, struct ingenic_ecc_params *params, const u8 *buf, u8 *ecc_code) argument
117 jz4740_ecc_correct(struct ingenic_ecc *ecc, struct ingenic_ecc_params *params, u8 *buf, u8 *ecc_code) argument
H A Djz4725b_bch.c185 const u8 *buf, u8 *ecc_code)
205 jz4725b_bch_read_parity(bch, ecc_code, params->bytes);
216 u8 *buf, u8 *ecc_code)
231 jz4725b_bch_write_data(bch, ecc_code, params->bytes);
183 jz4725b_calculate(struct ingenic_ecc *bch, struct ingenic_ecc_params *params, const u8 *buf, u8 *ecc_code) argument
214 jz4725b_correct(struct ingenic_ecc *bch, struct ingenic_ecc_params *params, u8 *buf, u8 *ecc_code) argument
H A Djz4780_bch.c162 const u8 *buf, u8 *ecc_code)
172 jz4780_bch_read_parity(bch, ecc_code, params->bytes);
185 u8 *buf, u8 *ecc_code)
194 jz4780_bch_write_data(bch, ecc_code, params->bytes);
160 jz4780_calculate(struct ingenic_ecc *bch, struct ingenic_ecc_params *params, const u8 *buf, u8 *ecc_code) argument
183 jz4780_correct(struct ingenic_ecc *bch, struct ingenic_ecc_params *params, u8 *buf, u8 *ecc_code) argument
H A Dingenic_nand_drv.c149 u8 *ecc_code)
166 return ingenic_ecc_calculate(nfc->ecc, &params, dat, ecc_code);
148 ingenic_nand_ecc_calculate(struct nand_chip *chip, const u8 *dat, u8 *ecc_code) argument
/linux-master/drivers/mtd/nand/raw/
H A Domap2.c817 * @ecc_code: The ecc_code buffer
826 u_char *ecc_code)
837 *ecc_code++ = val; /* P128e, ..., P1e */
838 *ecc_code++ = val >> 16; /* P128o, ..., P1o */
840 *ecc_code++ = ((val >> 8) & 0x0f) | ((val >> 20) & 0xf0);
995 * @ecc_calc: The ecc_code buffer
1007 u8 *ecc_code; local
1012 ecc_code = ecc_calc;
1020 *ecc_code
825 omap_calculate_ecc(struct nand_chip *chip, const u_char *dat, u_char *ecc_code) argument
1525 uint8_t *ecc_code = chip->ecc.code_buf; local
[all...]
H A Ddavinci_nand.c120 const u_char *dat, u_char *ecc_code)
127 ecc_code[0] = (u_char)(ecc24);
128 ecc_code[1] = (u_char)(ecc24 >> 8);
129 ecc_code[2] = (u_char)(ecc24 >> 16);
215 const u_char *dat, u_char *ecc_code)
224 * ecc_code is not needed.
238 *ecc_code++ = p[0] & 0xff;
239 *ecc_code++ = ((p[0] >> 8) & 0x03) | ((p[0] >> 14) & 0xfc);
240 *ecc_code++ = ((p[0] >> 22) & 0x0f) | ((p[1] << 4) & 0xf0);
241 *ecc_code
119 nand_davinci_calculate_1bit(struct nand_chip *chip, const u_char *dat, u_char *ecc_code) argument
214 nand_davinci_calculate_4bit(struct nand_chip *chip, const u_char *dat, u_char *ecc_code) argument
251 nand_davinci_correct_4bit(struct nand_chip *chip, u_char *data, u_char *ecc_code, u_char *null) argument
[all...]
H A Dsharpsl.c89 const u_char * dat, u_char * ecc_code)
92 ecc_code[0] = ~readb(sharpsl->io + ECCLPUB);
93 ecc_code[1] = ~readb(sharpsl->io + ECCLPLB);
94 ecc_code[2] = (~readb(sharpsl->io + ECCCP) << 2) | 0x03;
88 sharpsl_nand_calculate_ecc(struct nand_chip *chip, const u_char * dat, u_char * ecc_code) argument
H A Dndfc.c88 const u_char *dat, u_char *ecc_code)
97 ecc_code[0] = p[1];
98 ecc_code[1] = p[2];
99 ecc_code[2] = p[3];
87 ndfc_calculate_ecc(struct nand_chip *chip, const u_char *dat, u_char *ecc_code) argument
H A Ds3c2410.c613 const u_char *dat, u_char *ecc_code)
618 ecc_code[0] = readb(info->regs + S3C2410_NFECC + 0);
619 ecc_code[1] = readb(info->regs + S3C2410_NFECC + 1);
620 ecc_code[2] = readb(info->regs + S3C2410_NFECC + 2);
622 pr_debug("%s: returning ecc %*phN\n", __func__, 3, ecc_code);
628 const u_char *dat, u_char *ecc_code)
634 ecc_code[0] = ecc;
635 ecc_code[1] = ecc >> 8;
636 ecc_code[2] = ecc >> 16;
638 pr_debug("%s: returning ecc %*phN\n", __func__, 3, ecc_code);
612 s3c2410_nand_calculate_ecc(struct nand_chip *chip, const u_char *dat, u_char *ecc_code) argument
627 s3c2412_nand_calculate_ecc(struct nand_chip *chip, const u_char *dat, u_char *ecc_code) argument
643 s3c2440_nand_calculate_ecc(struct nand_chip *chip, const u_char *dat, u_char *ecc_code) argument
[all...]
H A Dcs553x_nand.c225 u_char *ecc_code)
232 ecc_code[1] = ecc >> 8;
233 ecc_code[0] = ecc >> 16;
234 ecc_code[2] = ecc >> 24;
224 cs_calculate_ecc(struct nand_chip *this, const u_char *dat, u_char *ecc_code) argument
H A Dtxx9ndfmc.c168 uint8_t *ecc_code)
178 ecc_code[1] = txx9ndfmc_read(dev, TXX9_NDFDTR);
179 ecc_code[0] = txx9ndfmc_read(dev, TXX9_NDFDTR);
180 ecc_code[2] = txx9ndfmc_read(dev, TXX9_NDFDTR);
181 ecc_code += 3;
167 txx9ndfmc_calculate_ecc(struct nand_chip *chip, const uint8_t *dat, uint8_t *ecc_code) argument
H A Dfsmc_nand.c714 u8 *ecc_code = chip->ecc.code_buf; local
754 memcpy(&ecc_code[i], oob, chip->ecc.bytes);
757 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]);
H A Ddiskonchip.c701 unsigned char *ecc_code)
727 ecc_code[i] = ReadDOC_(docptr, DoC_Mplus_ECCSyndrome0 + i);
729 ecc_code[i] = ReadDOC_(docptr, DoC_ECCSyndrome0 + i);
730 if (ecc_code[i] != empty_write_ecc[i])
754 memset(ecc_code, 0xff, 6);
700 doc200x_calculate_ecc(struct nand_chip *this, const u_char *dat, unsigned char *ecc_code) argument
H A Dstm32_fmc2_nand.c704 u8 *ecc_code = chip->ecc.code_buf; local
722 ret = nand_change_read_column_op(chip, i, ecc_code,
728 stat = chip->ecc.correct(chip, p, ecc_code, ecc_calc);
732 ecc_code, eccbytes,
1109 u8 *ecc_code = chip->ecc.code_buf; local
1143 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0,
1149 return chip->ecc.correct(chip, buf, ecc_code, ecc_calc);
H A Ddenali.c414 u8 *ecc_code = chip->oob_poi + denali->oob_skip_bytes; local
421 stat = nand_check_erased_ecc_chunk(buf, ecc->size, ecc_code,
432 ecc_code += ecc->bytes;
H A Dnand_base.c3076 uint8_t *ecc_code = chip->ecc.code_buf; local
3084 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0,
3095 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]);
3235 uint8_t *ecc_code = chip->ecc.code_buf; local
3257 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0,
3268 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]);
3273 &ecc_code[i], eccbytes,
3307 uint8_t *ecc_code = chip->ecc.code_buf; local
3320 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0,
3334 stat = chip->ecc.correct(chip, p, &ecc_code[
[all...]
H A Dr852.c431 uint8_t *ecc_code)
434 struct sm_oob *oob = (struct sm_oob *)ecc_code;
430 r852_ecc_calculate(struct nand_chip *chip, const uint8_t *dat, uint8_t *ecc_code) argument
/linux-master/include/linux/mtd/
H A Drawnand.h365 uint8_t *ecc_code);

Completed in 304 milliseconds