/u-boot/drivers/mtd/nand/raw/ |
A D | nand_spl_simple.c | 142 u_char ecc_calc[ECCTOTAL]; in nand_read_page() local 163 this->ecc.calculate(mtd, p, &ecc_calc[i]); in nand_read_page() 164 this->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page() 173 u_char ecc_calc[ECCTOTAL]; in nand_read_page() local 188 this->ecc.calculate(mtd, p, &ecc_calc[i]); in nand_read_page() 204 this->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page()
|
A D | am335x_spl_bch.c | 153 u_char ecc_calc[ECCTOTAL]; in nand_read_page() local 176 this->ecc.calculate(mtd, p, &ecc_calc[i]); in nand_read_page() 195 this->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page()
|
A D | lpc32xx_nand_slc.c | 420 uint8_t *ecc_calc = chip->buffers->ecccalc; in lpc32xx_read_page_hwecc() local 434 lpc32xx_ecc_calculate(mtd, p, &ecc_calc[0]); in lpc32xx_read_page_hwecc() 440 stat = chip->ecc.correct(mtd, p, &ecc_code[0], &ecc_calc[0]); in lpc32xx_read_page_hwecc() 458 uint8_t *ecc_calc = chip->buffers->ecccalc; in lpc32xx_write_page_hwecc() local 471 lpc32xx_ecc_calculate(mtd, p, &ecc_calc[0]); in lpc32xx_write_page_hwecc() 474 chip->oob_poi[eccpos[i]] = ecc_calc[i]; in lpc32xx_write_page_hwecc()
|
A D | zynq_nand.c | 585 u8 *ecc_calc = chip->buffers->ecccalc; in zynq_nand_write_page_hwecc() local 607 chip->ecc.calculate(mtd, p, &ecc_calc[0]); in zynq_nand_write_page_hwecc() 610 chip->oob_poi[eccpos[i]] = ~(ecc_calc[i]); in zynq_nand_write_page_hwecc() 645 u8 *ecc_calc = chip->buffers->ecccalc; in zynq_nand_write_page_swecc() local 651 chip->ecc.calculate(mtd, p, &ecc_calc[i]); in zynq_nand_write_page_swecc() 654 chip->oob_poi[eccpos[i]] = ecc_calc[i]; in zynq_nand_write_page_swecc() 678 u8 *ecc_calc = chip->buffers->ecccalc; in zynq_nand_read_page_hwecc() local 700 chip->ecc.calculate(mtd, p, &ecc_calc[0]); in zynq_nand_read_page_hwecc() 727 stat = chip->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]); in zynq_nand_read_page_hwecc() 751 u8 *ecc_calc = chip->buffers->ecccalc; in zynq_nand_read_page_swecc() local [all …]
|
A D | davinci_nand.c | 230 u_int32_t ecc_calc = calc_ecc[0] | (calc_ecc[1] << 8) | in nand_davinci_correct_data() local 232 u_int32_t diff = ecc_calc ^ ecc_nand; in nand_davinci_correct_data() 432 uint8_t *ecc_calc = chip->buffers->ecccalc; in nand_davinci_read_page_hwecc() local 456 chip->ecc.calculate(mtd, p, &ecc_calc[i]); in nand_davinci_read_page_hwecc()
|
A D | fsmc_nand.c | 344 uint8_t *ecc_calc = chip->buffers->ecccalc; in fsmc_read_page_hwecc() local 379 chip->ecc.calculate(mtd, p, &ecc_calc[i]); in fsmc_read_page_hwecc() 382 &ecc_calc[i]); in fsmc_read_page_hwecc()
|
A D | nand_base.c | 1863 uint8_t *ecc_calc = chip->buffers->ecccalc; in nand_read_page_swecc() local 1871 chip->ecc.calculate(mtd, p, &ecc_calc[i]); in nand_read_page_swecc() 2022 uint8_t *ecc_calc = chip->buffers->ecccalc; in nand_read_page_hwecc() local 2035 chip->ecc.calculate(mtd, p, &ecc_calc[i]); in nand_read_page_hwecc() 2901 chip->oob_poi[eccpos[i]] = ecc_calc[i]; in nand_write_page_swecc() 2937 chip->oob_poi[eccpos[i]] = ecc_calc[i]; in nand_write_page_hwecc() 2985 memset(ecc_calc, 0xff, ecc_bytes); in nand_write_subpage_hwecc() 2987 chip->ecc.calculate(mtd, buf, ecc_calc); in nand_write_subpage_hwecc() 2995 ecc_calc += ecc_bytes; in nand_write_subpage_hwecc() 3001 ecc_calc = chip->buffers->ecccalc; in nand_write_subpage_hwecc() [all …]
|
A D | omap_gpmc.c | 591 uint8_t *ecc_calc = chip->buffers->ecccalc; in omap_read_page_bch() local 614 chip->ecc.calculate(mtd, p, &ecc_calc[i]); in omap_read_page_bch() 629 stat = chip->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]); in omap_read_page_bch()
|
A D | octeontx_nand.c | 1657 u8 *ecc_calc = chip->buffers->ecccalc; in octeontx_nand_hw_bch_write_page() local 1662 ecc_calc[i] = 0xFF; in octeontx_nand_hw_bch_write_page() 1673 ret = chip->ecc.calculate(mtd, p, &ecc_calc[i]); in octeontx_nand_hw_bch_write_page() 1677 p, i, &ecc_calc[i], ret); in octeontx_nand_hw_bch_write_page() 1682 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc, chip->oob_poi, 0, in octeontx_nand_hw_bch_write_page()
|
A D | atmel_nand.c | 1325 u_char ecc_calc[ECCTOTAL]; in nand_read_page() local 1339 this->ecc.calculate(mtd, p, &ecc_calc[i]); in nand_read_page() 1350 this->ecc.correct(mtd, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page()
|
A D | stm32_fmc2_nand.c | 512 u8 *ecc_calc = chip->buffers->ecccalc; in stm32_fmc2_nfc_read_page() local 529 stat = chip->ecc.correct(mtd, p, ecc_code, ecc_calc); in stm32_fmc2_nfc_read_page()
|