Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/mtd/nand/raw/ingenic/
A Dingenic_ecc.h31 const u8 *buf, u8 *ecc_code);
34 u8 *ecc_code);
41 const u8 *buf, u8 *ecc_code) in ingenic_ecc_calculate() argument
48 u8 *ecc_code) in ingenic_ecc_correct() argument
67 const u8 *buf, u8 *ecc_code);
70 u8 *buf, u8 *ecc_code);
A Djz4740_ecc.c67 const u8 *buf, u8 *ecc_code) in jz4740_ecc_calculate() argument
87 ecc_code[i] = readb(ecc->base + JZ_REG_NAND_PAR0 + i); in jz4740_ecc_calculate()
93 if (memcmp(ecc_code, empty_block_ecc, sizeof(empty_block_ecc)) == 0) in jz4740_ecc_calculate()
94 memset(ecc_code, 0xff, sizeof(empty_block_ecc)); in jz4740_ecc_calculate()
119 u8 *buf, u8 *ecc_code) in jz4740_ecc_correct() argument
128 writeb(ecc_code[i], ecc->base + JZ_REG_NAND_PAR0 + i); in jz4740_ecc_correct()
A Dingenic_ecc.c29 const u8 *buf, u8 *ecc_code) in ingenic_ecc_calculate() argument
31 return ecc->ops->calculate(ecc, params, buf, ecc_code); in ingenic_ecc_calculate()
49 u8 *buf, u8 *ecc_code) in ingenic_ecc_correct() argument
51 return ecc->ops->correct(ecc, params, buf, ecc_code); in ingenic_ecc_correct()
A Djz4780_bch.c162 const u8 *buf, u8 *ecc_code) in jz4780_calculate() argument
172 jz4780_bch_read_parity(bch, ecc_code, params->bytes); in jz4780_calculate()
185 u8 *buf, u8 *ecc_code) in jz4780_correct() argument
194 jz4780_bch_write_data(bch, ecc_code, params->bytes); in jz4780_correct()
A Djz4725b_bch.c185 const u8 *buf, u8 *ecc_code) in jz4725b_calculate() argument
205 jz4725b_bch_read_parity(bch, ecc_code, params->bytes); in jz4725b_calculate()
216 u8 *buf, u8 *ecc_code) in jz4725b_correct() argument
231 jz4725b_bch_write_data(bch, ecc_code, params->bytes); in jz4725b_correct()
A Dingenic_nand_drv.c150 u8 *ecc_code) in ingenic_nand_ecc_calculate() argument
167 return ingenic_ecc_calculate(nfc->ecc, &params, dat, ecc_code); in ingenic_nand_ecc_calculate()
/linux-6.3-rc2/drivers/mtd/nand/raw/
A Domap2.c826 u_char *ecc_code) in omap_calculate_ecc() argument
1007 u8 *ecc_code; in _omap_calculate_ecc_bch() local
1012 ecc_code = ecc_calc; in _omap_calculate_ecc_bch()
1020 *ecc_code++ = (bch_val4 & 0xFF); in _omap_calculate_ecc_bch()
1024 *ecc_code++ = (bch_val3 & 0xFF); in _omap_calculate_ecc_bch()
1028 *ecc_code++ = (bch_val2 & 0xFF); in _omap_calculate_ecc_bch()
1032 *ecc_code++ = (bch_val1 & 0xFF); in _omap_calculate_ecc_bch()
1049 ecc_code[0] = ((val >> 8) & 0xFF); in _omap_calculate_ecc_bch()
1050 ecc_code[1] = ((val >> 0) & 0xFF); in _omap_calculate_ecc_bch()
1052 ecc_code[2] = ((val >> 24) & 0xFF); in _omap_calculate_ecc_bch()
[all …]
A Ddavinci_nand.c121 const u_char *dat, u_char *ecc_code) in nand_davinci_calculate_1bit() argument
128 ecc_code[0] = (u_char)(ecc24); in nand_davinci_calculate_1bit()
129 ecc_code[1] = (u_char)(ecc24 >> 8); in nand_davinci_calculate_1bit()
130 ecc_code[2] = (u_char)(ecc24 >> 16); in nand_davinci_calculate_1bit()
216 const u_char *dat, u_char *ecc_code) in nand_davinci_calculate_4bit() argument
239 *ecc_code++ = p[0] & 0xff; in nand_davinci_calculate_4bit()
240 *ecc_code++ = ((p[0] >> 8) & 0x03) | ((p[0] >> 14) & 0xfc); in nand_davinci_calculate_4bit()
243 *ecc_code++ = (p[1] >> 18) & 0xff; in nand_davinci_calculate_4bit()
253 u_char *ecc_code, u_char *null) in nand_davinci_correct_4bit() argument
267 if (WARN_ON(0x01 & (uintptr_t)ecc_code)) in nand_davinci_correct_4bit()
[all …]
A Ds3c2410.c616 const u_char *dat, u_char *ecc_code) in s3c2410_nand_calculate_ecc() argument
621 ecc_code[0] = readb(info->regs + S3C2410_NFECC + 0); in s3c2410_nand_calculate_ecc()
622 ecc_code[1] = readb(info->regs + S3C2410_NFECC + 1); in s3c2410_nand_calculate_ecc()
631 const u_char *dat, u_char *ecc_code) in s3c2412_nand_calculate_ecc() argument
637 ecc_code[0] = ecc; in s3c2412_nand_calculate_ecc()
638 ecc_code[1] = ecc >> 8; in s3c2412_nand_calculate_ecc()
639 ecc_code[2] = ecc >> 16; in s3c2412_nand_calculate_ecc()
647 const u_char *dat, u_char *ecc_code) in s3c2440_nand_calculate_ecc() argument
653 ecc_code[0] = ecc; in s3c2440_nand_calculate_ecc()
654 ecc_code[1] = ecc >> 8; in s3c2440_nand_calculate_ecc()
[all …]
A Dsharpsl.c89 const u_char * dat, u_char * ecc_code) in sharpsl_nand_calculate_ecc() argument
92 ecc_code[0] = ~readb(sharpsl->io + ECCLPUB); in sharpsl_nand_calculate_ecc()
93 ecc_code[1] = ~readb(sharpsl->io + ECCLPLB); in sharpsl_nand_calculate_ecc()
94 ecc_code[2] = (~readb(sharpsl->io + ECCCP) << 2) | 0x03; in sharpsl_nand_calculate_ecc()
A Dndfc.c87 const u_char *dat, u_char *ecc_code) in ndfc_calculate_ecc() argument
96 ecc_code[0] = p[1]; in ndfc_calculate_ecc()
97 ecc_code[1] = p[2]; in ndfc_calculate_ecc()
98 ecc_code[2] = p[3]; in ndfc_calculate_ecc()
A Dcs553x_nand.c225 u_char *ecc_code) in cs_calculate_ecc() argument
232 ecc_code[1] = ecc >> 8; in cs_calculate_ecc()
233 ecc_code[0] = ecc >> 16; in cs_calculate_ecc()
234 ecc_code[2] = ecc >> 24; in cs_calculate_ecc()
A Dtxx9ndfmc.c168 uint8_t *ecc_code) in txx9ndfmc_calculate_ecc() argument
178 ecc_code[1] = txx9ndfmc_read(dev, TXX9_NDFDTR); in txx9ndfmc_calculate_ecc()
179 ecc_code[0] = txx9ndfmc_read(dev, TXX9_NDFDTR); in txx9ndfmc_calculate_ecc()
180 ecc_code[2] = txx9ndfmc_read(dev, TXX9_NDFDTR); in txx9ndfmc_calculate_ecc()
181 ecc_code += 3; in txx9ndfmc_calculate_ecc()
A Dstm32_fmc2_nand.c687 u8 *ecc_code = chip->ecc.code_buf; in stm32_fmc2_nfc_read_page() local
705 ret = nand_change_read_column_op(chip, i, ecc_code, in stm32_fmc2_nfc_read_page()
711 stat = chip->ecc.correct(chip, p, ecc_code, ecc_calc); in stm32_fmc2_nfc_read_page()
715 ecc_code, eccbytes, in stm32_fmc2_nfc_read_page()
1092 u8 *ecc_code = chip->ecc.code_buf; in stm32_fmc2_nfc_seq_read_page() local
1126 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in stm32_fmc2_nfc_seq_read_page()
1132 return chip->ecc.correct(chip, buf, ecc_code, ecc_calc); in stm32_fmc2_nfc_seq_read_page()
A Ddiskonchip.c701 unsigned char *ecc_code) in doc200x_calculate_ecc() argument
727 ecc_code[i] = ReadDOC_(docptr, DoC_Mplus_ECCSyndrome0 + i); in doc200x_calculate_ecc()
729 ecc_code[i] = ReadDOC_(docptr, DoC_ECCSyndrome0 + i); in doc200x_calculate_ecc()
730 if (ecc_code[i] != empty_write_ecc[i]) in doc200x_calculate_ecc()
754 memset(ecc_code, 0xff, 6); in doc200x_calculate_ecc()
A Dfsmc_nand.c714 u8 *ecc_code = chip->ecc.code_buf; in fsmc_read_page_hwecc() local
754 memcpy(&ecc_code[i], oob, chip->ecc.bytes); in fsmc_read_page_hwecc()
757 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]); in fsmc_read_page_hwecc()
A Dnand_base.c3026 uint8_t *ecc_code = chip->ecc.code_buf; in nand_read_page_swecc() local
3034 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in nand_read_page_swecc()
3045 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_swecc()
3185 uint8_t *ecc_code = chip->ecc.code_buf; in nand_read_page_hwecc() local
3207 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in nand_read_page_hwecc()
3218 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_hwecc()
3223 &ecc_code[i], eccbytes, in nand_read_page_hwecc()
3257 uint8_t *ecc_code = chip->ecc.code_buf; in nand_read_page_hwecc_oob_first() local
3270 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in nand_read_page_hwecc_oob_first()
3284 stat = chip->ecc.correct(chip, p, &ecc_code[i], NULL); in nand_read_page_hwecc_oob_first()
[all …]
A Dr852.c431 uint8_t *ecc_code) in r852_ecc_calculate() argument
434 struct sm_oob *oob = (struct sm_oob *)ecc_code; in r852_ecc_calculate()
A Ddenali.c414 u8 *ecc_code = chip->oob_poi + denali->oob_skip_bytes; in denali_check_erased_page() local
421 stat = nand_check_erased_ecc_chunk(buf, ecc->size, ecc_code, in denali_check_erased_page()
432 ecc_code += ecc->bytes; in denali_check_erased_page()
/linux-6.3-rc2/include/linux/mtd/
A Drawnand.h363 uint8_t *ecc_code);

Completed in 51 milliseconds