Lines Matching refs:roots
540 unsigned int *roots) in find_affine4_roots() argument
569 return solve_linear_system(bch, rows, roots, 4); in find_affine4_roots()
576 unsigned int *roots) in find_poly_deg1_roots() argument
582 roots[n++] = mod_s(bch, GF_N(bch)-bch->a_log_tab[poly->c[0]]+ in find_poly_deg1_roots()
591 unsigned int *roots) in find_poly_deg2_roots() argument
620 roots[n++] = modulo(bch, 2*GF_N(bch)-l1- in find_poly_deg2_roots()
622 roots[n++] = modulo(bch, 2*GF_N(bch)-l1- in find_poly_deg2_roots()
633 unsigned int *roots) in find_poly_deg3_roots() argument
655 roots[n++] = a_ilog(bch, tmp[i]); in find_poly_deg3_roots()
666 unsigned int *roots) in find_poly_deg4_roots() argument
715 if (find_affine4_roots(bch, a2, b2, c2, roots) == 4) { 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()
898 struct gf_poly *poly, unsigned int *roots) in find_poly_roots() argument
906 cnt = find_poly_deg1_roots(bch, poly, roots); in find_poly_roots()
909 cnt = find_poly_deg2_roots(bch, poly, roots); in find_poly_roots()
912 cnt = find_poly_deg3_roots(bch, poly, roots); in find_poly_roots()
915 cnt = find_poly_deg4_roots(bch, poly, roots); in find_poly_roots()
923 cnt += find_poly_roots(bch, k+1, f1, roots); in find_poly_roots()
925 cnt += find_poly_roots(bch, k+1, f2, roots+cnt); in find_poly_roots()
938 struct gf_poly *p, unsigned int *roots) in chien_search() argument
957 roots[count++] = GF_N(bch)-i; in chien_search()
1194 unsigned int i, j, nbits, r, word, *roots; in compute_generator_polynomial() local
1199 roots = bch_alloc((bch->n+1)*sizeof(*roots), &err); in compute_generator_polynomial()
1209 memset(roots , 0, (bch->n+1)*sizeof(*roots)); in compute_generator_polynomial()
1212 roots[r] = 1; in compute_generator_polynomial()
1220 if (roots[i]) { in compute_generator_polynomial()
1248 kfree(roots); in compute_generator_polynomial()