Lines Matching refs:ecc_calc
1146 const u_char *dat, u_char *ecc_calc, int i) in _omap_calculate_ecc_bch() argument
1156 ecc_code = ecc_calc; in _omap_calculate_ecc_bch()
1237 ecc_calc[j] ^= bch4_polynomial[j]; in _omap_calculate_ecc_bch()
1241 ecc_calc[eccbytes - 1] = 0x0; in _omap_calculate_ecc_bch()
1248 ecc_calc[j] ^= bch8_polynomial[j]; in _omap_calculate_ecc_bch()
1252 ecc_calc[eccbytes - 1] = 0x0; in _omap_calculate_ecc_bch()
1274 const u_char *dat, u_char *ecc_calc) in omap_calculate_ecc_bch_sw() argument
1276 return _omap_calculate_ecc_bch(nand_to_mtd(chip), dat, ecc_calc, 0); in omap_calculate_ecc_bch_sw()
1288 const u_char *dat, u_char *ecc_calc) in omap_calculate_ecc_bch_multi() argument
1297 ret = _omap_calculate_ecc_bch(mtd, dat, ecc_calc, i); in omap_calculate_ecc_bch_multi()
1301 ecc_calc += eccbytes; in omap_calculate_ecc_bch_multi()
1533 uint8_t *ecc_calc = chip->ecc.calc_buf; in omap_write_page_bch() local
1552 ecc_calc); in omap_write_page_bch()
1556 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc, in omap_write_page_bch()
1587 u8 *ecc_calc = chip->ecc.calc_buf; in omap_write_subpage_bch() local
1620 memset(ecc_calc + (step * ecc_bytes), 0xff, in omap_write_subpage_bch()
1625 ecc_calc + (step * ecc_bytes), in omap_write_subpage_bch()
1636 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc, chip->oob_poi, in omap_write_subpage_bch()
1668 uint8_t *ecc_calc = chip->ecc.calc_buf; in omap_read_page_bch() local
1701 ecc_calc); in omap_read_page_bch()
1714 ecc_code, ecc_calc); in omap_read_page_bch()