Home
last modified time | relevance | path

Searched refs:genpoly (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/lib/reed_solomon/
H A Dreed_solomon.c100 if(rs->genpoly == NULL) in codec_init()
134 rs->genpoly[0] = 1; in codec_init()
136 rs->genpoly[i + 1] = 1; in codec_init()
139 if (rs->genpoly[j] != 0) { in codec_init()
140 rs->genpoly[j] = rs->genpoly[j -1] ^ in codec_init()
144 rs->genpoly[j] = rs->genpoly[j - 1]; in codec_init()
147 rs->genpoly[0] = in codec_init()
149 rs->index_of[rs->genpoly[0]] + root)]; in codec_init()
153 rs->genpoly[i] = rs->index_of[rs->genpoly[i]]; in codec_init()
160 kfree(rs->genpoly); in codec_init()
[all …]
H A Dencode_rs.c19 uint16_t *genpoly = rs->genpoly; variable
34 genpoly[nroots - j])];
41 fb + genpoly[0])];
H A Dtest_rslib.c38 int genpoly; member
453 rsc = init_rs(e->symsize, e->genpoly, e->fcs, e->prim, e->nroots); in run_exercise()
/openbmc/u-boot/lib/
H A Dbch.c1216 uint32_t *genpoly; in compute_generator_polynomial() local
1220 genpoly = bch_alloc(DIV_ROUND_UP(m*t+1, 32)*sizeof(*genpoly), &err); in compute_generator_polynomial()
1223 kfree(genpoly); in compute_generator_polynomial()
1224 genpoly = NULL; in compute_generator_polynomial()
1261 genpoly[i++] = word; in compute_generator_polynomial()
1270 return genpoly; in compute_generator_polynomial()
1298 uint32_t *genpoly; in init_bch() local
1365 genpoly = compute_generator_polynomial(bch); in init_bch()
1366 if (genpoly == NULL) in init_bch()
1369 build_mod8_tables(bch, genpoly); in init_bch()
[all …]
/openbmc/linux/lib/
H A Dbch.c1206 uint32_t *genpoly; in compute_generator_polynomial() local
1210 genpoly = bch_alloc(DIV_ROUND_UP(m*t+1, 32)*sizeof(*genpoly), &err); in compute_generator_polynomial()
1213 kfree(genpoly); in compute_generator_polynomial()
1214 genpoly = NULL; in compute_generator_polynomial()
1251 genpoly[i++] = word; in compute_generator_polynomial()
1260 return genpoly; in compute_generator_polynomial()
1290 uint32_t *genpoly; in bch_init() local
1364 genpoly = compute_generator_polynomial(bch); in bch_init()
1365 if (genpoly == NULL) in bch_init()
1368 build_mod8_tables(bch, genpoly); in bch_init()
[all …]
/openbmc/linux/include/linux/
H A Drslib.h39 uint16_t *genpoly; member