Lines Matching refs:a_log_tab
338 return (a && b) ? bch->a_pow_tab[mod_s(bch, bch->a_log_tab[a]+ in gf_mul()
339 bch->a_log_tab[b])] : 0; in gf_mul()
344 return a ? bch->a_pow_tab[mod_s(bch, 2*bch->a_log_tab[a])] : 0; in gf_sqr()
350 return a ? bch->a_pow_tab[mod_s(bch, bch->a_log_tab[a]+ in gf_div()
351 GF_N(bch)-bch->a_log_tab[b])] : 0; in gf_div()
356 return bch->a_pow_tab[GF_N(bch)-bch->a_log_tab[a]]; in gf_inv()
366 return bch->a_log_tab[x]; in a_log()
371 return mod_s(bch, GF_N(bch)-bch->a_log_tab[x]); in a_ilog()
592 roots[n++] = mod_s(bch, GF_N(bch)-bch->a_log_tab[poly->c[0]]+ in find_poly_deg1_roots()
593 bch->a_log_tab[poly->c[1]]); in find_poly_deg1_roots()
608 l0 = bch->a_log_tab[poly->c[0]]; in find_poly_deg2_roots()
609 l1 = bch->a_log_tab[poly->c[1]]; in find_poly_deg2_roots()
610 l2 = bch->a_log_tab[poly->c[2]]; in find_poly_deg2_roots()
631 bch->a_log_tab[r]+l2); in find_poly_deg2_roots()
633 bch->a_log_tab[r^1]+l2); in find_poly_deg2_roots()
1101 bch->a_log_tab[x] = i; in build_gf_tables()
1110 bch->a_log_tab[0] = 0; in build_gf_tables()
1339 bch->a_log_tab = bch_alloc((1+bch->n)*sizeof(*bch->a_log_tab), &err); in init_bch()
1387 kfree(bch->a_log_tab); in free_bch()