| /linux/drivers/mtd/nand/raw/ingenic/ |
| H A D | ingenic_ecc.h | 31 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);
|
| H A D | jz4740_ecc.c | 67 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()
|
| H A D | ingenic_ecc.c | 30 const u8 *buf, u8 *ecc_code) in ingenic_ecc_calculate() argument 32 return ecc->ops->calculate(ecc, params, buf, ecc_code); in ingenic_ecc_calculate() 50 u8 *buf, u8 *ecc_code) in ingenic_ecc_correct() argument 52 return ecc->ops->correct(ecc, params, buf, ecc_code); in ingenic_ecc_correct()
|
| H A D | jz4780_bch.c | 162 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()
|
| H A D | jz4725b_bch.c | 185 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()
|
| H A D | ingenic_nand_drv.c | 149 u8 *ecc_code) in ingenic_nand_ecc_calculate() argument 166 return ingenic_ecc_calculate(nfc->ecc, ¶ms, dat, ecc_code); in ingenic_nand_ecc_calculate()
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | sharpsl.c | 89 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()
|
| H A D | ndfc.c | 88 const u_char *dat, u_char *ecc_code) in ndfc_calculate_ecc() argument 97 ecc_code[0] = p[1]; in ndfc_calculate_ecc() 98 ecc_code[1] = p[2]; in ndfc_calculate_ecc() 99 ecc_code[2] = p[3]; in ndfc_calculate_ecc()
|
| H A D | txx9ndfmc.c | 168 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()
|
| H A D | stm32_fmc2_nand.c | 705 u8 *ecc_code = chip->ecc.code_buf; in stm32_fmc2_nfc_read_page() local 723 ret = nand_change_read_column_op(chip, i, ecc_code, in stm32_fmc2_nfc_read_page() 729 stat = chip->ecc.correct(chip, p, ecc_code, ecc_calc); in stm32_fmc2_nfc_read_page() 733 ecc_code, eccbytes, in stm32_fmc2_nfc_read_page() 1110 u8 *ecc_code = chip->ecc.code_buf; in stm32_fmc2_nfc_seq_read_page() local 1144 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in stm32_fmc2_nfc_seq_read_page() 1150 return chip->ecc.correct(chip, buf, ecc_code, ecc_calc); in stm32_fmc2_nfc_seq_read_page()
|
| H A D | diskonchip.c | 701 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()
|
| H A D | nand_base.c | 2952 uint8_t *ecc_code = chip->ecc.code_buf; in nand_read_page_swecc() local 2960 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in nand_read_page_swecc() 2971 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_swecc() 3111 uint8_t *ecc_code = chip->ecc.code_buf; in nand_read_page_hwecc() local 3133 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in nand_read_page_hwecc() 3144 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_hwecc() 3149 &ecc_code[i], eccbytes, in nand_read_page_hwecc() 3183 uint8_t *ecc_code = chip->ecc.code_buf; in nand_read_page_hwecc_oob_first() local 3196 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in nand_read_page_hwecc_oob_first() 3210 stat = chip->ecc.correct(chip, p, &ecc_code[i], NULL); in nand_read_page_hwecc_oob_first() [all …]
|
| H A D | r852.c | 434 uint8_t *ecc_code) in r852_ecc_calculate() argument 437 struct sm_oob *oob = (struct sm_oob *)ecc_code; in r852_ecc_calculate()
|
| H A D | denali.c | 414 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/include/linux/mtd/ |
| H A D | rawnand.h | 365 uint8_t *ecc_code);
|