Lines Matching refs:roots

543 			      unsigned int *roots)  in find_affine4_roots()  argument
572 return solve_linear_system(bch, rows, roots, 4); in find_affine4_roots()
579 unsigned int *roots) in find_poly_deg1_roots() argument
585 roots[n++] = mod_s(bch, GF_N(bch)-bch->a_log_tab[poly->c[0]]+ in find_poly_deg1_roots()
594 unsigned int *roots) in find_poly_deg2_roots() argument
623 roots[n++] = modulo(bch, 2*GF_N(bch)-l1- in find_poly_deg2_roots()
625 roots[n++] = modulo(bch, 2*GF_N(bch)-l1- in find_poly_deg2_roots()
636 unsigned int *roots) in find_poly_deg3_roots() argument
658 roots[n++] = a_ilog(bch, tmp[i]); in find_poly_deg3_roots()
669 unsigned int *roots) in find_poly_deg4_roots() argument
718 if (find_affine4_roots(bch, a2, b2, c2, roots) == 4) { in find_poly_deg4_roots()
721 f = a ? gf_inv(bch, roots[i]) : roots[i]; in find_poly_deg4_roots()
722 roots[i] = a_ilog(bch, f^e); in find_poly_deg4_roots()
908 struct gf_poly *poly, unsigned int *roots) in find_poly_roots() argument
916 cnt = find_poly_deg1_roots(bch, poly, roots); in find_poly_roots()
919 cnt = find_poly_deg2_roots(bch, poly, roots); in find_poly_roots()
922 cnt = find_poly_deg3_roots(bch, poly, roots); in find_poly_roots()
925 cnt = find_poly_deg4_roots(bch, poly, roots); in find_poly_roots()
933 cnt += find_poly_roots(bch, k+1, f1, roots); in find_poly_roots()
935 cnt += find_poly_roots(bch, k+1, f2, roots+cnt); in find_poly_roots()
948 struct gf_poly *p, unsigned int *roots) in chien_search() argument
967 roots[count++] = GF_N(bch)-i; in chien_search()
1204 unsigned int i, j, nbits, r, word, *roots; in compute_generator_polynomial() local
1209 roots = bch_alloc((bch->n+1)*sizeof(*roots), &err); in compute_generator_polynomial()
1219 memset(roots , 0, (bch->n+1)*sizeof(*roots)); in compute_generator_polynomial()
1222 roots[r] = 1; in compute_generator_polynomial()
1230 if (roots[i]) { in compute_generator_polynomial()
1258 kfree(roots); in compute_generator_polynomial()