Lines Matching refs:elp
415 struct gf_poly *elp = bch->elp; in compute_error_locator_polynomial() local
421 memset(elp, 0, GF_POLY_SZ(2*t)); in compute_error_locator_polynomial()
425 elp->deg = 0; in compute_error_locator_polynomial()
426 elp->c[0] = 1; in compute_error_locator_polynomial()
429 for (i = 0; (i < t) && (elp->deg <= t); i++) { in compute_error_locator_polynomial()
432 gf_poly_copy(elp_copy, elp); in compute_error_locator_polynomial()
438 elp->c[j+k] ^= a_pow(bch, tmp+l); in compute_error_locator_polynomial()
443 if (tmp > elp->deg) { in compute_error_locator_polynomial()
444 elp->deg = tmp; in compute_error_locator_polynomial()
453 for (j = 1; j <= elp->deg; j++) in compute_error_locator_polynomial()
454 d ^= gf_mul(bch, elp->c[j], syn[2*i+2-j]); in compute_error_locator_polynomial()
457 dbg("elp=%s\n", gf_poly_str(elp)); in compute_error_locator_polynomial()
458 return (elp->deg > t) ? -1 : (int)elp->deg; in compute_error_locator_polynomial()
1061 nroots = find_poly_roots(bch, 1, bch->elp, errloc); in bch_decode()
1350 bch->elp = bch_alloc((t+1)*sizeof(struct gf_poly_deg1), &err); in bch_init()
1400 kfree(bch->elp); in bch_free()