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