Lines Matching defs:ecc_calc
995 * @ecc_calc: The ecc_code buffer
1002 const u_char *dat, u_char *ecc_calc, int i)
1012 ecc_code = ecc_calc;
1093 ecc_calc[j] ^= bch4_polynomial[j];
1097 ecc_calc[eccbytes - 1] = 0x0;
1104 ecc_calc[j] ^= bch8_polynomial[j];
1108 ecc_calc[eccbytes - 1] = 0x0;
1123 * @ecc_calc: Buffer storing the calculated ECC bytes
1130 const u_char *dat, u_char *ecc_calc)
1132 return _omap_calculate_ecc_bch(nand_to_mtd(chip), dat, ecc_calc, 0);
1139 * @ecc_calc: Buffer storing the calculated ECC bytes
1144 const u_char *dat, u_char *ecc_calc)
1153 ret = _omap_calculate_ecc_bch(mtd, dat, ecc_calc, i);
1157 ecc_calc += eccbytes;
1389 uint8_t *ecc_calc = chip->ecc.calc_buf;
1408 ecc_calc);
1412 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc,
1443 u8 *ecc_calc = chip->ecc.calc_buf;
1476 memset(ecc_calc + (step * ecc_bytes), 0xff,
1481 ecc_calc + (step * ecc_bytes),
1492 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc, chip->oob_poi,
1524 uint8_t *ecc_calc = chip->ecc.calc_buf;
1557 ecc_calc);
1570 ecc_code, ecc_calc);