nroots 40 include/linux/rslib.h int nroots; nroots 83 include/linux/rslib.h int nroots, gfp_t gfp); nroots 99 include/linux/rslib.h int prim, int nroots) nroots 101 include/linux/rslib.h return init_rs_gfp(symsize, gfpoly, fcr, prim, nroots, GFP_KERNEL); nroots 105 include/linux/rslib.h int fcr, int prim, int nroots); nroots 1002 lib/bch.c int i, err, nroots; nroots 1038 lib/bch.c nroots = find_poly_roots(bch, 1, bch->elp, errloc); nroots 1039 lib/bch.c if (err != nroots) nroots 17 lib/reed_solomon/decode_rs.c int nroots = rs->nroots; nroots 32 lib/reed_solomon/decode_rs.c uint16_t *lambda = rsc->buffers + RS_DECODE_LAMBDA * (nroots + 1); nroots 33 lib/reed_solomon/decode_rs.c uint16_t *syn = rsc->buffers + RS_DECODE_SYN * (nroots + 1); nroots 34 lib/reed_solomon/decode_rs.c uint16_t *b = rsc->buffers + RS_DECODE_B * (nroots + 1); nroots 35 lib/reed_solomon/decode_rs.c uint16_t *t = rsc->buffers + RS_DECODE_T * (nroots + 1); nroots 36 lib/reed_solomon/decode_rs.c uint16_t *omega = rsc->buffers + RS_DECODE_OMEGA * (nroots + 1); nroots 37 lib/reed_solomon/decode_rs.c uint16_t *root = rsc->buffers + RS_DECODE_ROOT * (nroots + 1); nroots 38 lib/reed_solomon/decode_rs.c uint16_t *reg = rsc->buffers + RS_DECODE_REG * (nroots + 1); nroots 39 lib/reed_solomon/decode_rs.c uint16_t *loc = rsc->buffers + RS_DECODE_LOC * (nroots + 1); nroots 42 lib/reed_solomon/decode_rs.c pad = nn - nroots - len; nroots 43 lib/reed_solomon/decode_rs.c BUG_ON(pad < 0 || pad >= nn - nroots); nroots 47 lib/reed_solomon/decode_rs.c for (i = 0; i < nroots; i++) { nroots 61 lib/reed_solomon/decode_rs.c for (i = 0; i < nroots; i++) nroots 65 lib/reed_solomon/decode_rs.c for (i = 0; i < nroots; i++) { nroots 78 lib/reed_solomon/decode_rs.c for (j = 0; j < nroots; j++) { nroots 79 lib/reed_solomon/decode_rs.c for (i = 0; i < nroots; i++) { nroots 93 lib/reed_solomon/decode_rs.c for (i = 0; i < nroots; i++) { nroots 106 lib/reed_solomon/decode_rs.c memset(&lambda[1], 0, nroots * sizeof(lambda[0])); nroots 125 lib/reed_solomon/decode_rs.c for (i = 0; i < nroots + 1; i++) nroots 134 lib/reed_solomon/decode_rs.c while (++r <= nroots) { /* r is the step number */ nroots 148 lib/reed_solomon/decode_rs.c memmove (&b[1], b, nroots * sizeof (b[0])); nroots 153 lib/reed_solomon/decode_rs.c for (i = 0; i < nroots; i++) { nroots 167 lib/reed_solomon/decode_rs.c for (i = 0; i <= nroots; i++) { nroots 174 lib/reed_solomon/decode_rs.c memmove(&b[1], b, nroots * sizeof(b[0])); nroots 177 lib/reed_solomon/decode_rs.c memcpy(lambda, t, (nroots + 1) * sizeof(t[0])); nroots 183 lib/reed_solomon/decode_rs.c for (i = 0; i < nroots + 1; i++) { nroots 198 lib/reed_solomon/decode_rs.c memcpy(®[1], &lambda[1], nroots * sizeof(reg[0])); nroots 272 lib/reed_solomon/decode_rs.c for (i = min(deg_lambda, nroots - 1) & ~1; i >= 0; i -= 2) { nroots 289 lib/reed_solomon/decode_rs.c for (i = 0; i < nroots; i++) { nroots 318 lib/reed_solomon/decode_rs.c if (loc[i] < (nn - nroots)) nroots 16 lib/reed_solomon/encode_rs.c int nroots = rs->nroots; nroots 24 lib/reed_solomon/encode_rs.c pad = nn - nroots - len; nroots 32 lib/reed_solomon/encode_rs.c for (j = 1; j < nroots; j++) { nroots 34 lib/reed_solomon/encode_rs.c genpoly[nroots - j])]; nroots 38 lib/reed_solomon/encode_rs.c memmove(&par[0], &par[1], sizeof(uint16_t) * (nroots - 1)); nroots 40 lib/reed_solomon/encode_rs.c par[nroots - 1] = alpha_to[rs_modnn(rs, nroots 43 lib/reed_solomon/encode_rs.c par[nroots - 1] = 0; nroots 71 lib/reed_solomon/reed_solomon.c int fcr, int prim, int nroots, gfp_t gfp) nroots 86 lib/reed_solomon/reed_solomon.c rs->nroots = nroots; nroots 99 lib/reed_solomon/reed_solomon.c rs->genpoly = kmalloc_array(rs->nroots + 1, sizeof(uint16_t), gfp); nroots 135 lib/reed_solomon/reed_solomon.c for (i = 0, root = fcr * prim; i < nroots; i++, root += prim) { nroots 152 lib/reed_solomon/reed_solomon.c for (i = 0; i <= nroots; i++) nroots 215 lib/reed_solomon/reed_solomon.c int prim, int nroots, gfp_t gfp) nroots 228 lib/reed_solomon/reed_solomon.c if (nroots < 0 || nroots >= (1<<symsize)) nroots 236 lib/reed_solomon/reed_solomon.c bsize = sizeof(uint16_t) * RS_DECODE_NUM_BUFFERS * (nroots + 1); nroots 257 lib/reed_solomon/reed_solomon.c if (nroots != cd->nroots) nroots 266 lib/reed_solomon/reed_solomon.c rs->codec = codec_init(symsize, gfpoly, gffunc, fcr, prim, nroots, gfp); nroots 289 lib/reed_solomon/reed_solomon.c int nroots, gfp_t gfp) nroots 291 lib/reed_solomon/reed_solomon.c return init_rs_internal(symsize, gfpoly, NULL, fcr, prim, nroots, gfp); nroots 308 lib/reed_solomon/reed_solomon.c int fcr, int prim, int nroots) nroots 310 lib/reed_solomon/reed_solomon.c return init_rs_internal(symsize, 0, gffunc, fcr, prim, nroots, nroots 41 lib/reed_solomon/test_rslib.c int nroots; nroots 110 lib/reed_solomon/test_rslib.c int nroots = rs->nroots; nroots 118 lib/reed_solomon/test_rslib.c ws->c = kmalloc_array(2 * (nn + nroots), nroots 125 lib/reed_solomon/test_rslib.c ws->corr = ws->s + nroots; nroots 127 lib/reed_solomon/test_rslib.c ws->errlocs = kmalloc_array(nn + nroots, sizeof(int), GFP_KERNEL); nroots 154 lib/reed_solomon/test_rslib.c int nroots = rs->codec->nroots; nroots 157 lib/reed_solomon/test_rslib.c int dlen = len - nroots; nroots 169 lib/reed_solomon/test_rslib.c memset(c + dlen, 0, nroots * sizeof(*c)); nroots 175 lib/reed_solomon/test_rslib.c memset(derrlocs, 0, nroots * sizeof(*derrlocs)); nroots 235 lib/reed_solomon/test_rslib.c int nroots = rs->nroots; nroots 241 lib/reed_solomon/test_rslib.c for (i = 0; i < nroots; i++) { nroots 255 lib/reed_solomon/test_rslib.c for (i = 0; i < nroots; i++) nroots 264 lib/reed_solomon/test_rslib.c int dlen = len - rs->codec->nroots; nroots 323 lib/reed_solomon/test_rslib.c int nroots = rs->codec->nroots; nroots 329 lib/reed_solomon/test_rslib.c for (errs = 0; errs <= nroots / 2; errs++) nroots 330 lib/reed_solomon/test_rslib.c for (eras = 0; eras <= nroots - 2 * errs; eras++) nroots 370 lib/reed_solomon/test_rslib.c int nroots = rs->codec->nroots; nroots 371 lib/reed_solomon/test_rslib.c int dlen = len - nroots; nroots 395 lib/reed_solomon/test_rslib.c memset(corr, 0, nroots * sizeof(*corr)); nroots 398 lib/reed_solomon/test_rslib.c if (memcmp(r + dlen, corr, nroots * sizeof(*corr))) nroots 411 lib/reed_solomon/test_rslib.c int nroots = rs->codec->nroots; nroots 417 lib/reed_solomon/test_rslib.c for (errs = 1; errs <= nroots; errs++) { nroots 418 lib/reed_solomon/test_rslib.c eras = nroots - 2 * errs + 1; nroots 422 lib/reed_solomon/test_rslib.c cutoff = nroots <= len - errs ? nroots : len - errs; nroots 445 lib/reed_solomon/test_rslib.c int kk = nn - e->nroots; nroots 453 lib/reed_solomon/test_rslib.c rsc = init_rs(e->symsize, e->genpoly, e->fcs, e->prim, e->nroots);