Lines Matching refs:ecc_calc
1141 const u_char *dat, u_char *ecc_calc, int i) in _omap_calculate_ecc_bch() argument
1151 ecc_code = ecc_calc; in _omap_calculate_ecc_bch()
1232 ecc_calc[j] ^= bch4_polynomial[j]; in _omap_calculate_ecc_bch()
1236 ecc_calc[eccbytes - 1] = 0x0; in _omap_calculate_ecc_bch()
1243 ecc_calc[j] ^= bch8_polynomial[j]; in _omap_calculate_ecc_bch()
1247 ecc_calc[eccbytes - 1] = 0x0; in _omap_calculate_ecc_bch()
1269 const u_char *dat, u_char *ecc_calc) in omap_calculate_ecc_bch_sw() argument
1271 return _omap_calculate_ecc_bch(nand_to_mtd(chip), dat, ecc_calc, 0); in omap_calculate_ecc_bch_sw()
1283 const u_char *dat, u_char *ecc_calc) in omap_calculate_ecc_bch_multi() argument
1292 ret = _omap_calculate_ecc_bch(mtd, dat, ecc_calc, i); in omap_calculate_ecc_bch_multi()
1296 ecc_calc += eccbytes; in omap_calculate_ecc_bch_multi()
1528 uint8_t *ecc_calc = chip->ecc.calc_buf; in omap_write_page_bch() local
1539 omap_calculate_ecc_bch_multi(mtd, buf, &ecc_calc[0]); in omap_write_page_bch()
1541 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc, chip->oob_poi, 0, in omap_write_page_bch()
1568 u8 *ecc_calc = chip->ecc.calc_buf; in omap_write_subpage_bch() local
1593 memset(ecc_calc, 0xff, ecc_bytes); in omap_write_subpage_bch()
1595 ret = _omap_calculate_ecc_bch(mtd, buf, ecc_calc, step); in omap_write_subpage_bch()
1601 ecc_calc += ecc_bytes; in omap_write_subpage_bch()
1606 ecc_calc = chip->ecc.calc_buf; in omap_write_subpage_bch()
1607 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc, chip->oob_poi, 0, in omap_write_subpage_bch()
1636 uint8_t *ecc_calc = chip->ecc.calc_buf; in omap_read_page_bch() local
1656 omap_calculate_ecc_bch_multi(mtd, buf, ecc_calc); in omap_read_page_bch()
1663 stat = chip->ecc.correct(chip, buf, ecc_code, ecc_calc); in omap_read_page_bch()