Lines Matching refs:nroots

41 	int	nroots;  member
110 int nroots = rs->nroots; in alloc_ws() local
118 ws->c = kmalloc_array(2 * (nn + nroots), in alloc_ws()
125 ws->corr = ws->s + nroots; in alloc_ws()
127 ws->errlocs = kmalloc_array(nn + nroots, sizeof(int), GFP_KERNEL); in alloc_ws()
154 int nroots = rs->codec->nroots; in get_rcw_we() local
157 int dlen = len - nroots; in get_rcw_we()
169 memset(c + dlen, 0, nroots * sizeof(*c)); in get_rcw_we()
175 memset(derrlocs, 0, nroots * sizeof(*derrlocs)); in get_rcw_we()
235 int nroots = rs->nroots; in compute_syndrome() local
241 for (i = 0; i < nroots; i++) { in compute_syndrome()
255 for (i = 0; i < nroots; i++) in compute_syndrome()
264 int dlen = len - rs->codec->nroots; in test_uc()
323 int nroots = rs->codec->nroots; in ex_rs_helper() local
329 for (errs = 0; errs <= nroots / 2; errs++) in ex_rs_helper()
330 for (eras = 0; eras <= nroots - 2 * errs; eras++) in ex_rs_helper()
370 int nroots = rs->codec->nroots; in test_bc() local
371 int dlen = len - nroots; in test_bc()
395 memset(corr, 0, nroots * sizeof(*corr)); in test_bc()
398 if (memcmp(r + dlen, corr, nroots * sizeof(*corr))) in test_bc()
411 int nroots = rs->codec->nroots; in exercise_rs_bc() local
417 for (errs = 1; errs <= nroots; errs++) { in exercise_rs_bc()
418 eras = nroots - 2 * errs + 1; in exercise_rs_bc()
422 cutoff = nroots <= len - errs ? nroots : len - errs; in exercise_rs_bc()
445 int kk = nn - e->nroots; in run_exercise()
453 rsc = init_rs(e->symsize, e->genpoly, e->fcs, e->prim, e->nroots); in run_exercise()