Lines Matching +full:width +full:- +full:mm
1 // SPDX-License-Identifier: GPL-2.0
18 * struct rs_codec - rs codec data
20 * @mm: Bits per symbol
21 * @nn: Symbols per block (= (1<<mm)-1)
28 * @iprim: prim-th root of 1, index form
30 * @gffunc: Function to generate the field, if non-canonical representation
35 int mm; member
51 * struct rs_control - rs control structure per instance
60 /* General purpose RS codec, 8-bit data width, symbol width 1-15 bit */
71 /* General purpose RS codec, 16-bit data width, symbol width 1-15 bit */
86 * init_rs - Create a RS control struct and initialize it
116 * rs->mm = number of bits per symbol
117 * rs->nn = (2^rs->mm) - 1
120 * >= 3 * rs->nn
124 while (x >= rs->nn) { in rs_modnn()
125 x -= rs->nn; in rs_modnn()
126 x = (x >> rs->mm) + (x & rs->nn); in rs_modnn()