Home
last modified time | relevance | path

Searched refs:nroots (Results 1 – 4 of 4) sorted by relevance

/lib/reed_solomon/
Ddecode_rs.c23 int nroots = rs->nroots; variable
34 uint16_t lambda[nroots + 1], syn[nroots];
35 uint16_t b[nroots + 1], t[nroots + 1], omega[nroots + 1];
36 uint16_t root[nroots], reg[nroots + 1], loc[nroots];
41 pad = nn - nroots - len;
46 for (i = 0; i < nroots; i++) {
60 for (i = 0; i < nroots; i++)
64 for (i = 0; i < nroots; i++) {
77 for (j = 0; j < nroots; j++) {
78 for (i = 0; i < nroots; i++) {
[all …]
Dencode_rs.c23 int nroots = rs->nroots; variable
31 pad = nn - nroots - len;
39 for (j = 1; j < nroots; j++) {
41 genpoly[nroots - j])];
45 memmove(&par[0], &par[1], sizeof(uint16_t) * (nroots - 1));
47 par[nroots - 1] = alpha_to[rs_modnn(rs,
50 par[nroots - 1] = 0;
Dreed_solomon.c67 int fcr, int prim, int nroots) in rs_init() argument
83 rs->nroots = nroots; in rs_init()
96 rs->genpoly = kmalloc(sizeof(uint16_t) * (rs->nroots + 1), GFP_KERNEL); in rs_init()
132 for (i = 0, root = fcr * prim; i < nroots; i++, root += prim) { in rs_init()
149 for (i = 0; i <= nroots; i++) in rs_init()
201 int prim, int nroots) in init_rs_internal() argument
213 if (nroots < 0 || nroots >= (1<<symsize)) in init_rs_internal()
231 if (nroots != rs->nroots) in init_rs_internal()
239 rs = rs_init(symsize, gfpoly, gffunc, fcr, prim, nroots); in init_rs_internal()
261 int nroots) in init_rs() argument
[all …]
/lib/
Dbch.c992 int i, err, nroots; in decode_bch() local
1028 nroots = find_poly_roots(bch, 1, bch->elp, errloc); in decode_bch()
1029 if (err != nroots) in decode_bch()