Lines Matching full:rs
7 * RS code lifted from reed solomon library written by Phil Karn
17 * struct rs_codec - rs codec data
31 * @list: List entry for the rs codec list
50 * struct rs_control - rs control structure per instance
59 /* General purpose RS codec, 8-bit data width, symbol width 1-15 bit */
61 int encode_rs8(struct rs_control *rs, uint8_t *data, int len, uint16_t *par,
65 int decode_rs8(struct rs_control *rs, uint8_t *data, uint16_t *par, int len,
70 /* General purpose RS codec, 16-bit data width, symbol width 1-15 bit */
72 int encode_rs16(struct rs_control *rs, uint16_t *data, int len, uint16_t *par,
76 int decode_rs16(struct rs_control *rs, uint16_t *data, uint16_t *par, int len,
85 * init_rs - Create a RS control struct and initialize it
90 * @fcr: the first consecutive root of the rs code generator polynomial
93 * @nroots: RS code generator polynomial degree (number of roots)
106 /* Release a rs control structure */
107 void free_rs(struct rs_control *rs);
111 * @rs: Pointer to the RS codec
115 * rs->mm = number of bits per symbol
116 * rs->nn = (2^rs->mm) - 1
119 * >= 3 * rs->nn
121 static inline int rs_modnn(struct rs_codec *rs, int x) in rs_modnn() argument
123 while (x >= rs->nn) { in rs_modnn()
124 x -= rs->nn; in rs_modnn()
125 x = (x >> rs->mm) + (x & rs->nn); in rs_modnn()