Lines Matching refs:ecc_calc
3056 uint8_t *ecc_calc = chip->ecc.calc_buf; in nand_read_page_swecc() local
3063 chip->ecc.calculate(chip, p, &ecc_calc[i]); in nand_read_page_swecc()
3076 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_swecc()
3215 uint8_t *ecc_calc = chip->ecc.calc_buf; in nand_read_page_hwecc() local
3230 chip->ecc.calculate(chip, p, &ecc_calc[i]); in nand_read_page_hwecc()
3249 stat = chip->ecc.correct(chip, p, &ecc_code[i], &ecc_calc[i]); in nand_read_page_hwecc()
4158 uint8_t *ecc_calc = chip->ecc.calc_buf; in nand_write_page_swecc() local
4163 chip->ecc.calculate(chip, p, &ecc_calc[i]); in nand_write_page_swecc()
4165 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc, chip->oob_poi, 0, in nand_write_page_swecc()
4187 uint8_t *ecc_calc = chip->ecc.calc_buf; in nand_write_page_hwecc() local
4201 chip->ecc.calculate(chip, p, &ecc_calc[i]); in nand_write_page_hwecc()
4204 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc, chip->oob_poi, 0, in nand_write_page_hwecc()
4232 uint8_t *ecc_calc = chip->ecc.calc_buf; in nand_write_subpage_hwecc() local
4256 memset(ecc_calc, 0xff, ecc_bytes); in nand_write_subpage_hwecc()
4258 chip->ecc.calculate(chip, buf, ecc_calc); in nand_write_subpage_hwecc()
4266 ecc_calc += ecc_bytes; in nand_write_subpage_hwecc()
4272 ecc_calc = chip->ecc.calc_buf; in nand_write_subpage_hwecc()
4273 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc, chip->oob_poi, 0, in nand_write_subpage_hwecc()