/kernel/linux/linux-5.10/lib/reed_solomon/ |
H A D | decode_rs.c | 17 int nroots = rs->nroots; variable 30 * arrays sized [nroots + 1] 32 uint16_t *lambda = rsc->buffers + RS_DECODE_LAMBDA * (nroots + 1); 33 uint16_t *syn = rsc->buffers + RS_DECODE_SYN * (nroots + 1); 34 uint16_t *b = rsc->buffers + RS_DECODE_B * (nroots + 1); 35 uint16_t *t = rsc->buffers + RS_DECODE_T * (nroots + 1); 36 uint16_t *omega = rsc->buffers + RS_DECODE_OMEGA * (nroots + 1); 37 uint16_t *root = rsc->buffers + RS_DECODE_ROOT * (nroots + 1); 38 uint16_t *reg = rsc->buffers + RS_DECODE_REG * (nroots [all...] |
H A D | test_rslib.c | 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 * sizeo in get_rcw_we() 235 int nroots = rs->nroots; compute_syndrome() local 323 int nroots = rs->codec->nroots; ex_rs_helper() local 370 int nroots = rs->codec->nroots; test_bc() local 411 int nroots = rs->codec->nroots; exercise_rs_bc() local [all...] |
H A D | encode_rs.c | 16 int nroots = rs->nroots; variable 24 pad = nn - nroots - len; 32 for (j = 1; j < nroots; j++) { 34 genpoly[nroots - j])]; 38 memmove(&par[0], &par[1], sizeof(uint16_t) * (nroots - 1)); 40 par[nroots - 1] = alpha_to[rs_modnn(rs, 43 par[nroots - 1] = 0;
|
H A D | reed_solomon.c | 64 * @nroots: RS code generator polynomial degree (number of roots) 71 int fcr, int prim, int nroots, gfp_t gfp) in codec_init() 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() 210 * @nroots: RS code generator polynomial degree (number of roots) 215 int prim, int nroots, gfp_t gfp) in init_rs_internal() 228 if (nroots < in init_rs_internal() 70 codec_init(int symsize, int gfpoly, int (*gffunc)(int), int fcr, int prim, int nroots, gfp_t gfp) codec_init() argument 213 init_rs_internal(int symsize, int gfpoly, int (*gffunc)(int), int fcr, int prim, int nroots, gfp_t gfp) init_rs_internal() argument 288 init_rs_gfp(int symsize, int gfpoly, int fcr, int prim, int nroots, gfp_t gfp) init_rs_gfp() argument 307 init_rs_non_canonical(int symsize, int (*gffunc)(int), int fcr, int prim, int nroots) init_rs_non_canonical() argument [all...] |
/kernel/linux/linux-6.6/lib/reed_solomon/ |
H A D | decode_rs.c | 17 int nroots = rs->nroots; variable 30 * arrays sized [nroots + 1] 32 uint16_t *lambda = rsc->buffers + RS_DECODE_LAMBDA * (nroots + 1); 33 uint16_t *syn = rsc->buffers + RS_DECODE_SYN * (nroots + 1); 34 uint16_t *b = rsc->buffers + RS_DECODE_B * (nroots + 1); 35 uint16_t *t = rsc->buffers + RS_DECODE_T * (nroots + 1); 36 uint16_t *omega = rsc->buffers + RS_DECODE_OMEGA * (nroots + 1); 37 uint16_t *root = rsc->buffers + RS_DECODE_ROOT * (nroots + 1); 38 uint16_t *reg = rsc->buffers + RS_DECODE_REG * (nroots [all...] |
H A D | test_rslib.c | 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 * sizeo in get_rcw_we() 235 int nroots = rs->nroots; compute_syndrome() local 323 int nroots = rs->codec->nroots; ex_rs_helper() local 370 int nroots = rs->codec->nroots; test_bc() local 411 int nroots = rs->codec->nroots; exercise_rs_bc() local [all...] |
H A D | encode_rs.c | 16 int nroots = rs->nroots; variable 24 pad = nn - nroots - len; 32 for (j = 1; j < nroots; j++) { 34 genpoly[nroots - j])]; 38 memmove(&par[0], &par[1], sizeof(uint16_t) * (nroots - 1)); 40 par[nroots - 1] = alpha_to[rs_modnn(rs, 43 par[nroots - 1] = 0;
|
H A D | reed_solomon.c | 64 * @nroots: RS code generator polynomial degree (number of roots) 71 int fcr, int prim, int nroots, gfp_t gfp) in codec_init() 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() 210 * @nroots: RS code generator polynomial degree (number of roots) 215 int prim, int nroots, gfp_t gfp) in init_rs_internal() 228 if (nroots < in init_rs_internal() 70 codec_init(int symsize, int gfpoly, int (*gffunc)(int), int fcr, int prim, int nroots, gfp_t gfp) codec_init() argument 213 init_rs_internal(int symsize, int gfpoly, int (*gffunc)(int), int fcr, int prim, int nroots, gfp_t gfp) init_rs_internal() argument 288 init_rs_gfp(int symsize, int gfpoly, int fcr, int prim, int nroots, gfp_t gfp) init_rs_gfp() argument 307 init_rs_non_canonical(int symsize, int (*gffunc)(int), int fcr, int prim, int nroots) init_rs_non_canonical() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | rslib.h | 25 * @nroots: Number of generator roots = number of parity symbols 40 int nroots; member 83 int nroots, gfp_t gfp); 94 * @nroots: RS code generator polynomial degree (number of roots) 99 int prim, int nroots) in init_rs() 101 return init_rs_gfp(symsize, gfpoly, fcr, prim, nroots, GFP_KERNEL); in init_rs() 105 int fcr, int prim, int nroots); 98 init_rs(int symsize, int gfpoly, int fcr, int prim, int nroots) init_rs() argument
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | rslib.h | 25 * @nroots: Number of generator roots = number of parity symbols 40 int nroots; member 83 int nroots, gfp_t gfp); 94 * @nroots: RS code generator polynomial degree (number of roots) 99 int prim, int nroots) in init_rs() 101 return init_rs_gfp(symsize, gfpoly, fcr, prim, nroots, GFP_KERNEL); in init_rs() 105 int fcr, int prim, int nroots); 98 init_rs(int symsize, int gfpoly, int fcr, int prim, int nroots) init_rs() argument
|
/kernel/linux/linux-6.6/lib/ |
H A D | bch.c | 1025 int i, err, nroots; in bch_decode() local 1061 nroots = find_poly_roots(bch, 1, bch->elp, errloc); in bch_decode() 1062 if (err != nroots) in bch_decode()
|
/kernel/linux/linux-5.10/lib/ |
H A D | bch.c | 1059 int i, err, nroots; in bch_decode() local 1095 nroots = find_poly_roots(bch, 1, bch->elp, errloc); in bch_decode() 1096 if (err != nroots) in bch_decode()
|