Lines Matching refs:nroots
71 int fcr, int prim, int nroots, gfp_t gfp) in codec_init() argument
86 rs->nroots = nroots; in codec_init()
99 rs->genpoly = kmalloc_array(rs->nroots + 1, sizeof(uint16_t), gfp); in codec_init()
135 for (i = 0, root = fcr * prim; i < nroots; i++, root += prim) { in codec_init()
152 for (i = 0; i <= nroots; i++) in codec_init()
215 int prim, int nroots, gfp_t gfp) in init_rs_internal() argument
228 if (nroots < 0 || nroots >= (1<<symsize)) in init_rs_internal()
236 bsize = sizeof(uint16_t) * RS_DECODE_NUM_BUFFERS * (nroots + 1); in init_rs_internal()
257 if (nroots != cd->nroots) in init_rs_internal()
266 rs->codec = codec_init(symsize, gfpoly, gffunc, fcr, prim, nroots, gfp); in init_rs_internal()
289 int nroots, gfp_t gfp) in init_rs_gfp() argument
291 return init_rs_internal(symsize, gfpoly, NULL, fcr, prim, nroots, gfp); in init_rs_gfp()
308 int fcr, int prim, int nroots) in init_rs_non_canonical() argument
310 return init_rs_internal(symsize, 0, gffunc, fcr, prim, nroots, in init_rs_non_canonical()