Lines Matching refs:roots

577 			      unsigned int *roots)  in find_affine4_roots()  argument
606 return solve_linear_system(bch, rows, roots, 4); in find_affine4_roots()
613 unsigned int *roots) in find_poly_deg1_roots() argument
619 roots[n++] = mod_s(bch, GF_N(bch)-bch->a_log_tab[poly->c[0]]+ in find_poly_deg1_roots()
628 unsigned int *roots) in find_poly_deg2_roots() argument
657 roots[n++] = modulo(bch, 2*GF_N(bch)-l1- in find_poly_deg2_roots()
659 roots[n++] = modulo(bch, 2*GF_N(bch)-l1- in find_poly_deg2_roots()
670 unsigned int *roots) in find_poly_deg3_roots() argument
692 roots[n++] = a_ilog(bch, tmp[i]); in find_poly_deg3_roots()
703 unsigned int *roots) in find_poly_deg4_roots() argument
752 if (find_affine4_roots(bch, a2, b2, c2, roots) == 4) { in find_poly_deg4_roots()
755 f = a ? gf_inv(bch, roots[i]) : roots[i]; in find_poly_deg4_roots()
756 roots[i] = a_ilog(bch, f^e); in find_poly_deg4_roots()
942 struct gf_poly *poly, unsigned int *roots) in find_poly_roots() argument
950 cnt = find_poly_deg1_roots(bch, poly, roots); in find_poly_roots()
953 cnt = find_poly_deg2_roots(bch, poly, roots); in find_poly_roots()
956 cnt = find_poly_deg3_roots(bch, poly, roots); in find_poly_roots()
959 cnt = find_poly_deg4_roots(bch, poly, roots); in find_poly_roots()
967 cnt += find_poly_roots(bch, k+1, f1, roots); in find_poly_roots()
969 cnt += find_poly_roots(bch, k+1, f2, roots+cnt); in find_poly_roots()
982 struct gf_poly *p, unsigned int *roots) in chien_search() argument
1001 roots[count++] = GF_N(bch)-i; in chien_search()
1238 unsigned int i, j, nbits, r, word, *roots; in compute_generator_polynomial() local
1243 roots = bch_alloc((bch->n+1)*sizeof(*roots), &err); in compute_generator_polynomial()
1253 memset(roots , 0, (bch->n+1)*sizeof(*roots)); in compute_generator_polynomial()
1256 roots[r] = 1; in compute_generator_polynomial()
1264 if (roots[i]) { in compute_generator_polynomial()
1292 kfree(roots); in compute_generator_polynomial()