Lines Matching refs:ecc_calc
1163 const u_char *dat, u_char *ecc_calc) in omap_calculate_ecc_bch() argument
1176 ecc_code = ecc_calc; in omap_calculate_ecc_bch()
1256 ecc_calc[j] ^= bch4_polynomial[j]; in omap_calculate_ecc_bch()
1260 ecc_calc[eccbytes - 1] = 0x0; in omap_calculate_ecc_bch()
1266 ecc_calc[j] ^= bch8_polynomial[j]; in omap_calculate_ecc_bch()
1270 ecc_calc[eccbytes - 1] = 0x0; in omap_calculate_ecc_bch()
1278 ecc_calc += eccbytes; in omap_calculate_ecc_bch()
1511 uint8_t *ecc_calc = chip->buffers->ecccalc; in omap_write_page_bch() local
1521 chip->ecc.calculate(mtd, buf, &ecc_calc[0]); in omap_write_page_bch()
1524 chip->oob_poi[eccpos[i]] = ecc_calc[i]; in omap_write_page_bch()
1549 uint8_t *ecc_calc = chip->buffers->ecccalc; in omap_read_page_bch() local
1568 chip->ecc.calculate(mtd, buf, ecc_calc); in omap_read_page_bch()
1572 stat = chip->ecc.correct(mtd, buf, ecc_code, ecc_calc); in omap_read_page_bch()