Searched refs:bch_alloc (Results 1 – 2 of 2) sorted by relevance
| /OK3568_Linux_fs/kernel/lib/ |
| H A D | bch.c | 1220 static void *bch_alloc(size_t size, int *err) in bch_alloc() function 1242 g = bch_alloc(GF_POLY_SZ(m*t), &err); in compute_generator_polynomial() 1243 roots = bch_alloc((bch->n+1)*sizeof(*roots), &err); in compute_generator_polynomial() 1244 genpoly = bch_alloc(DIV_ROUND_UP(m*t+1, 32)*sizeof(*genpoly), &err); in compute_generator_polynomial() 1376 bch->a_pow_tab = bch_alloc((1+bch->n)*sizeof(*bch->a_pow_tab), &err); in bch_init() 1377 bch->a_log_tab = bch_alloc((1+bch->n)*sizeof(*bch->a_log_tab), &err); in bch_init() 1378 bch->mod8_tab = bch_alloc(words*1024*sizeof(*bch->mod8_tab), &err); in bch_init() 1379 bch->ecc_buf = bch_alloc(words*sizeof(*bch->ecc_buf), &err); in bch_init() 1380 bch->ecc_buf2 = bch_alloc(words*sizeof(*bch->ecc_buf2), &err); in bch_init() 1381 bch->xi_tab = bch_alloc(m*sizeof(*bch->xi_tab), &err); in bch_init() [all …]
|
| /OK3568_Linux_fs/u-boot/lib/ |
| H A D | bch.c | 1190 static void *bch_alloc(size_t size, int *err) in bch_alloc() function 1212 g = bch_alloc(GF_POLY_SZ(m*t), &err); in compute_generator_polynomial() 1213 roots = bch_alloc((bch->n+1)*sizeof(*roots), &err); in compute_generator_polynomial() 1214 genpoly = bch_alloc(DIV_ROUND_UP(m*t+1, 32)*sizeof(*genpoly), &err); in compute_generator_polynomial() 1338 bch->a_pow_tab = bch_alloc((1+bch->n)*sizeof(*bch->a_pow_tab), &err); in init_bch() 1339 bch->a_log_tab = bch_alloc((1+bch->n)*sizeof(*bch->a_log_tab), &err); in init_bch() 1340 bch->mod8_tab = bch_alloc(words*1024*sizeof(*bch->mod8_tab), &err); in init_bch() 1341 bch->ecc_buf = bch_alloc(words*sizeof(*bch->ecc_buf), &err); in init_bch() 1342 bch->ecc_buf2 = bch_alloc(words*sizeof(*bch->ecc_buf2), &err); in init_bch() 1343 bch->xi_tab = bch_alloc(m*sizeof(*bch->xi_tab), &err); in init_bch() [all …]
|