Lines Matching refs:a_log_tab
298 return (a && b) ? bch->a_pow_tab[mod_s(bch, bch->a_log_tab[a]+ in gf_mul()
299 bch->a_log_tab[b])] : 0; in gf_mul()
304 return a ? bch->a_pow_tab[mod_s(bch, 2*bch->a_log_tab[a])] : 0; in gf_sqr()
310 return a ? bch->a_pow_tab[mod_s(bch, bch->a_log_tab[a]+ in gf_div()
311 GF_N(bch)-bch->a_log_tab[b])] : 0; in gf_div()
316 return bch->a_pow_tab[GF_N(bch)-bch->a_log_tab[a]]; in gf_inv()
326 return bch->a_log_tab[x]; in a_log()
331 return mod_s(bch, GF_N(bch)-bch->a_log_tab[x]); in a_ilog()
552 roots[n++] = mod_s(bch, GF_N(bch)-bch->a_log_tab[poly->c[0]]+ in find_poly_deg1_roots()
553 bch->a_log_tab[poly->c[1]]); in find_poly_deg1_roots()
568 l0 = bch->a_log_tab[poly->c[0]]; in find_poly_deg2_roots()
569 l1 = bch->a_log_tab[poly->c[1]]; in find_poly_deg2_roots()
570 l2 = bch->a_log_tab[poly->c[2]]; in find_poly_deg2_roots()
591 bch->a_log_tab[r]+l2); in find_poly_deg2_roots()
593 bch->a_log_tab[r^1]+l2); in find_poly_deg2_roots()
1062 bch->a_log_tab[x] = i; in build_gf_tables()
1071 bch->a_log_tab[0] = 0; in build_gf_tables()
1300 bch->a_log_tab = bch_alloc((1+bch->n)*sizeof(*bch->a_log_tab), &err); in init_bch()
1349 kfree(bch->a_log_tab); in free_bch()