Lines Matching refs:f
639 unsigned int a, b, c, d, e = 0, f, a2, b2, c2, e4; in find_poly_deg4_roots() local
656 f = gf_div(bch, c, a); in find_poly_deg4_roots()
657 l = a_log(bch, f); in find_poly_deg4_roots()
667 d = a_pow(bch, 2*l)^gf_mul(bch, b, f)^d; in find_poly_deg4_roots()
688 f = a ? gf_inv(bch, roots[i]) : roots[i]; in find_poly_deg4_roots()
689 roots[i] = a_ilog(bch, f^e); in find_poly_deg4_roots()
796 const struct gf_poly *f, struct gf_poly *z, in compute_trace_bk_mod() argument
808 memset(out, 0, GF_POLY_SZ(f->deg)); in compute_trace_bk_mod()
811 gf_poly_logrep(bch, f, bch->cache); in compute_trace_bk_mod()
826 gf_poly_mod(bch, z, f, bch->cache); in compute_trace_bk_mod()
838 static void factor_polynomial(struct bch_control *bch, int k, struct gf_poly *f, in factor_polynomial() argument
847 dbg("factoring %s...\n", gf_poly_str(f)); in factor_polynomial()
849 *g = f; in factor_polynomial()
853 compute_trace_bk_mod(bch, k, f, z, tk); in factor_polynomial()
857 gf_poly_copy(f2, f); in factor_polynomial()
859 if (gcd->deg < f->deg) { in factor_polynomial()
861 gf_poly_div(bch, f, gcd, q); in factor_polynomial()
863 *h = &((struct gf_poly_deg1 *)f)[gcd->deg].poly; in factor_polynomial()