Lines Matching refs:genpoly
1209 uint32_t *genpoly; in compute_generator_polynomial() local
1213 genpoly = bch_alloc(DIV_ROUND_UP(m*t+1, 32)*sizeof(*genpoly), &err); in compute_generator_polynomial()
1216 kfree(genpoly); in compute_generator_polynomial()
1217 genpoly = NULL; in compute_generator_polynomial()
1254 genpoly[i++] = word; in compute_generator_polynomial()
1263 return genpoly; in compute_generator_polynomial()
1291 uint32_t *genpoly; in init_bch() local
1358 genpoly = compute_generator_polynomial(bch); in init_bch()
1359 if (genpoly == NULL) in init_bch()
1362 build_mod8_tables(bch, genpoly); in init_bch()
1363 kfree(genpoly); in init_bch()