Lines Matching refs:n
65 static int next_bits(struct sw842_param *p, u64 *d, u8 n);
67 static int __split_next_bits(struct sw842_param *p, u64 *d, u8 n, u8 s) in __split_next_bits() argument
72 if (n <= s) { in __split_next_bits()
73 pr_debug("split_next_bits invalid n %u s %u\n", n, s); in __split_next_bits()
77 ret = next_bits(p, &tmp, n - s); in __split_next_bits()
87 static int next_bits(struct sw842_param *p, u64 *d, u8 n) in next_bits() argument
89 u8 *in = p->in, b = p->bit, bits = b + n; in next_bits()
91 if (n > 64) { in next_bits()
92 pr_debug("next_bits invalid n %u\n", n); in next_bits()
100 return __split_next_bits(p, d, n, 32); in next_bits()
102 return __split_next_bits(p, d, n, 16); in next_bits()
104 return __split_next_bits(p, d, n, 8); in next_bits()
118 *d &= GENMASK_ULL(n - 1, 0); in next_bits()
120 p->bit += n; in next_bits()
131 static int do_data(struct sw842_param *p, u8 n) in do_data() argument
136 if (n > p->olen) in do_data()
139 ret = next_bits(p, &v, n * 8); in do_data()
143 switch (n) { in do_data()
157 p->out += n; in do_data()
158 p->olen -= n; in do_data()
212 static int do_index(struct sw842_param *p, u8 n) in do_index() argument
214 switch (n) { in do_index()