Lines Matching refs:a_log_tab
337 return (a && b) ? bch->a_pow_tab[mod_s(bch, bch->a_log_tab[a]+ in gf_mul()
338 bch->a_log_tab[b])] : 0; in gf_mul()
343 return a ? bch->a_pow_tab[mod_s(bch, 2*bch->a_log_tab[a])] : 0; in gf_sqr()
349 return a ? bch->a_pow_tab[mod_s(bch, bch->a_log_tab[a]+ in gf_div()
350 GF_N(bch)-bch->a_log_tab[b])] : 0; in gf_div()
355 return bch->a_pow_tab[GF_N(bch)-bch->a_log_tab[a]]; in gf_inv()
365 return bch->a_log_tab[x]; in a_log()
370 return mod_s(bch, GF_N(bch)-bch->a_log_tab[x]); in a_ilog()
591 roots[n++] = mod_s(bch, GF_N(bch)-bch->a_log_tab[poly->c[0]]+ in find_poly_deg1_roots()
592 bch->a_log_tab[poly->c[1]]); in find_poly_deg1_roots()
607 l0 = bch->a_log_tab[poly->c[0]]; in find_poly_deg2_roots()
608 l1 = bch->a_log_tab[poly->c[1]]; in find_poly_deg2_roots()
609 l2 = bch->a_log_tab[poly->c[2]]; in find_poly_deg2_roots()
630 bch->a_log_tab[r]+l2); in find_poly_deg2_roots()
632 bch->a_log_tab[r^1]+l2); in find_poly_deg2_roots()
1100 bch->a_log_tab[x] = i; in build_gf_tables()
1109 bch->a_log_tab[0] = 0; in build_gf_tables()
1338 bch->a_log_tab = bch_alloc((1+bch->n)*sizeof(*bch->a_log_tab), &err); in init_bch()
1386 kfree(bch->a_log_tab); in free_bch()