Lines Matching refs:a_log_tab
365 return (a && b) ? bch->a_pow_tab[mod_s(bch, bch->a_log_tab[a]+ in gf_mul()
366 bch->a_log_tab[b])] : 0; in gf_mul()
371 return a ? bch->a_pow_tab[mod_s(bch, 2*bch->a_log_tab[a])] : 0; in gf_sqr()
377 return a ? bch->a_pow_tab[mod_s(bch, bch->a_log_tab[a]+ in gf_div()
378 GF_N(bch)-bch->a_log_tab[b])] : 0; in gf_div()
383 return bch->a_pow_tab[GF_N(bch)-bch->a_log_tab[a]]; in gf_inv()
393 return bch->a_log_tab[x]; in a_log()
398 return mod_s(bch, GF_N(bch)-bch->a_log_tab[x]); in a_ilog()
619 roots[n++] = mod_s(bch, GF_N(bch)-bch->a_log_tab[poly->c[0]]+ in find_poly_deg1_roots()
620 bch->a_log_tab[poly->c[1]]); in find_poly_deg1_roots()
635 l0 = bch->a_log_tab[poly->c[0]]; in find_poly_deg2_roots()
636 l1 = bch->a_log_tab[poly->c[1]]; in find_poly_deg2_roots()
637 l2 = bch->a_log_tab[poly->c[2]]; in find_poly_deg2_roots()
658 bch->a_log_tab[r]+l2); in find_poly_deg2_roots()
660 bch->a_log_tab[r^1]+l2); in find_poly_deg2_roots()
1131 bch->a_log_tab[x] = i; in build_gf_tables()
1140 bch->a_log_tab[0] = 0; in build_gf_tables()
1377 bch->a_log_tab = bch_alloc((1+bch->n)*sizeof(*bch->a_log_tab), &err); in bch_init()
1427 kfree(bch->a_log_tab); in bch_free()