Searched refs:bch_alloc (Results 1 – 2 of 2) sorted by relevance
/openbmc/u-boot/lib/ |
H A D | bch.c | 1196 static void *bch_alloc(size_t size, int *err) in bch_alloc() function 1218 g = bch_alloc(GF_POLY_SZ(m*t), &err); in compute_generator_polynomial() 1219 roots = bch_alloc((bch->n+1)*sizeof(*roots), &err); in compute_generator_polynomial() 1220 genpoly = bch_alloc(DIV_ROUND_UP(m*t+1, 32)*sizeof(*genpoly), &err); in compute_generator_polynomial() 1346 bch->mod8_tab = bch_alloc(words*1024*sizeof(*bch->mod8_tab), &err); in init_bch() 1347 bch->ecc_buf = bch_alloc(words*sizeof(*bch->ecc_buf), &err); in init_bch() 1348 bch->ecc_buf2 = bch_alloc(words*sizeof(*bch->ecc_buf2), &err); in init_bch() 1349 bch->xi_tab = bch_alloc(m*sizeof(*bch->xi_tab), &err); in init_bch() 1350 bch->syn = bch_alloc(2*t*sizeof(*bch->syn), &err); in init_bch() 1351 bch->cache = bch_alloc(2*t*sizeof(*bch->cache), &err); in init_bch() [all …]
|
/openbmc/linux/lib/ |
H A D | bch.c | 1186 static void *bch_alloc(size_t size, int *err) in bch_alloc() function 1208 g = bch_alloc(GF_POLY_SZ(m*t), &err); in compute_generator_polynomial() 1209 roots = bch_alloc((bch->n+1)*sizeof(*roots), &err); in compute_generator_polynomial() 1210 genpoly = bch_alloc(DIV_ROUND_UP(m*t+1, 32)*sizeof(*genpoly), &err); in compute_generator_polynomial() 1344 bch->mod8_tab = bch_alloc(words*1024*sizeof(*bch->mod8_tab), &err); in bch_init() 1345 bch->ecc_buf = bch_alloc(words*sizeof(*bch->ecc_buf), &err); in bch_init() 1346 bch->ecc_buf2 = bch_alloc(words*sizeof(*bch->ecc_buf2), &err); in bch_init() 1347 bch->xi_tab = bch_alloc(m*sizeof(*bch->xi_tab), &err); in bch_init() 1348 bch->syn = bch_alloc(2*t*sizeof(*bch->syn), &err); in bch_init() 1349 bch->cache = bch_alloc(2*t*sizeof(*bch->cache), &err); in bch_init() [all …]
|