Lines Matching refs:bch_alloc
1199 static void *bch_alloc(size_t size, int *err) in bch_alloc() function
1221 g = bch_alloc(GF_POLY_SZ(m*t), &err); in compute_generator_polynomial()
1222 roots = bch_alloc((bch->n+1)*sizeof(*roots), &err); in compute_generator_polynomial()
1223 genpoly = bch_alloc(DIV_ROUND_UP(m*t+1, 32)*sizeof(*genpoly), &err); in compute_generator_polynomial()
1347 bch->a_pow_tab = bch_alloc((1+bch->n)*sizeof(*bch->a_pow_tab), &err); in init_bch()
1348 bch->a_log_tab = bch_alloc((1+bch->n)*sizeof(*bch->a_log_tab), &err); in init_bch()
1349 bch->mod8_tab = bch_alloc(words*1024*sizeof(*bch->mod8_tab), &err); in init_bch()
1350 bch->ecc_buf = bch_alloc(words*sizeof(*bch->ecc_buf), &err); in init_bch()
1351 bch->ecc_buf2 = bch_alloc(words*sizeof(*bch->ecc_buf2), &err); in init_bch()
1352 bch->xi_tab = bch_alloc(m*sizeof(*bch->xi_tab), &err); in init_bch()
1353 bch->syn = bch_alloc(2*t*sizeof(*bch->syn), &err); in init_bch()
1354 bch->cache = bch_alloc(2*t*sizeof(*bch->cache), &err); in init_bch()
1355 bch->elp = bch_alloc((t+1)*sizeof(struct gf_poly_deg1), &err); in init_bch()
1358 bch->poly_2t[i] = bch_alloc(GF_POLY_SZ(2*t), &err); in init_bch()