Lines Matching refs:f
669 unsigned int a, b, c, d, e = 0, f, a2, b2, c2, e4; in find_poly_deg4_roots() local
686 f = gf_div(bch, c, a); in find_poly_deg4_roots()
687 l = a_log(bch, f); in find_poly_deg4_roots()
697 d = a_pow(bch, 2*l)^gf_mul(bch, b, f)^d; in find_poly_deg4_roots()
718 f = a ? gf_inv(bch, roots[i]) : roots[i]; in find_poly_deg4_roots()
719 roots[i] = a_ilog(bch, f^e); in find_poly_deg4_roots()
819 const struct gf_poly *f, struct gf_poly *z, in compute_trace_bk_mod() argument
831 memset(out, 0, GF_POLY_SZ(f->deg)); in compute_trace_bk_mod()
834 gf_poly_logrep(bch, f, bch->cache); in compute_trace_bk_mod()
849 gf_poly_mod(bch, z, f, bch->cache); in compute_trace_bk_mod()
861 static void factor_polynomial(struct bch_control *bch, int k, struct gf_poly *f, in factor_polynomial() argument
870 dbg("factoring %s...\n", gf_poly_str(f)); in factor_polynomial()
872 *g = f; in factor_polynomial()
876 compute_trace_bk_mod(bch, k, f, z, tk); in factor_polynomial()
880 gf_poly_copy(f2, f); in factor_polynomial()
882 if (gcd->deg < f->deg) { in factor_polynomial()
884 gf_poly_div(bch, f, gcd, q); in factor_polynomial()
886 *h = &((struct gf_poly_deg1 *)f)[gcd->deg].poly; in factor_polynomial()