Lines Matching refs:a_log_tab
308 return (a && b) ? bch->a_pow_tab[mod_s(bch, bch->a_log_tab[a]+ in gf_mul()
309 bch->a_log_tab[b])] : 0; in gf_mul()
314 return a ? bch->a_pow_tab[mod_s(bch, 2*bch->a_log_tab[a])] : 0; in gf_sqr()
320 return a ? bch->a_pow_tab[mod_s(bch, bch->a_log_tab[a]+ in gf_div()
321 GF_N(bch)-bch->a_log_tab[b])] : 0; in gf_div()
326 return bch->a_pow_tab[GF_N(bch)-bch->a_log_tab[a]]; in gf_inv()
336 return bch->a_log_tab[x]; in a_log()
341 return mod_s(bch, GF_N(bch)-bch->a_log_tab[x]); in a_ilog()
562 roots[n++] = mod_s(bch, GF_N(bch)-bch->a_log_tab[poly->c[0]]+ in find_poly_deg1_roots()
563 bch->a_log_tab[poly->c[1]]); in find_poly_deg1_roots()
578 l0 = bch->a_log_tab[poly->c[0]]; in find_poly_deg2_roots()
579 l1 = bch->a_log_tab[poly->c[1]]; in find_poly_deg2_roots()
580 l2 = bch->a_log_tab[poly->c[2]]; in find_poly_deg2_roots()
601 bch->a_log_tab[r]+l2); in find_poly_deg2_roots()
603 bch->a_log_tab[r^1]+l2); in find_poly_deg2_roots()
1072 bch->a_log_tab[x] = i; in build_gf_tables()
1081 bch->a_log_tab[0] = 0; in build_gf_tables()
1316 bch->a_log_tab = bch_alloc((1+bch->n)*sizeof(*bch->a_log_tab), &err); in init_bch()
1365 kfree(bch->a_log_tab); in free_bch()