Lines Matching refs:ecc_calc
2737 uint8_t *ecc_calc = chip->ecc.calc_buf; in nand_read_page_swecc() local
2744 chip->ecc.calculate(chip, p, &ecc_calc[i]); in nand_read_page_swecc()
2757 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_swecc()
2896 uint8_t *ecc_calc = chip->ecc.calc_buf; in nand_read_page_hwecc() local
2911 chip->ecc.calculate(chip, p, &ecc_calc[i]); in nand_read_page_hwecc()
2930 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_hwecc()
3708 uint8_t *ecc_calc = chip->ecc.calc_buf; in nand_write_page_swecc() local
3713 chip->ecc.calculate(chip, p, &ecc_calc[i]); in nand_write_page_swecc()
3715 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc, chip->oob_poi, 0, in nand_write_page_swecc()
3737 uint8_t *ecc_calc = chip->ecc.calc_buf; in nand_write_page_hwecc() local
3751 chip->ecc.calculate(chip, p, &ecc_calc[i]); in nand_write_page_hwecc()
3754 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc, chip->oob_poi, 0, in nand_write_page_hwecc()
3782 uint8_t *ecc_calc = chip->ecc.calc_buf; in nand_write_subpage_hwecc() local
3806 memset(ecc_calc, 0xff, ecc_bytes); in nand_write_subpage_hwecc()
3808 chip->ecc.calculate(chip, buf, ecc_calc); in nand_write_subpage_hwecc()
3816 ecc_calc += ecc_bytes; in nand_write_subpage_hwecc()
3822 ecc_calc = chip->ecc.calc_buf; in nand_write_subpage_hwecc()
3823 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc, chip->oob_poi, 0, in nand_write_subpage_hwecc()