Lines Matching refs:add_bits
152 static int add_bits(struct sw842_param *p, u64 d, u8 n);
161 ret = add_bits(p, d >> s, n - s); in __split_add_bits()
164 return add_bits(p, d & GENMASK_ULL(s - 1, 0), s); in __split_add_bits()
167 static int add_bits(struct sw842_param *p, u64 d, u8 n) in add_bits() function
233 ret = add_bits(p, t[4], OP_BITS); in add_template()
245 ret = add_bits(p, p->index8[0], I8_BITS); in add_template()
247 ret = add_bits(p, p->data8[0], 64); in add_template()
253 ret = add_bits(p, get_input_data(p, 2, 32), 32); in add_template()
257 ret = add_bits(p, p->index4[b >> 2], I4_BITS); in add_template()
259 ret = add_bits(p, p->data4[b >> 2], 32); in add_template()
267 ret = add_bits(p, p->index2[b >> 1], I2_BITS); in add_template()
269 ret = add_bits(p, p->data2[b >> 1], 16); in add_template()
313 ret = add_bits(p, OP_REPEAT, OP_BITS); in add_repeat_template()
317 ret = add_bits(p, r, REPEAT_BITS); in add_repeat_template()
334 ret = add_bits(p, OP_SHORT_DATA, OP_BITS); in add_short_data_template()
338 ret = add_bits(p, b, SHORT_DATA_BITS); in add_short_data_template()
343 ret = add_bits(p, p->in[i], 8); in add_short_data_template()
356 int ret = add_bits(p, OP_ZEROS, OP_BITS); in add_zeros_template()
369 int ret = add_bits(p, OP_END, OP_BITS); in add_end_template()
583 ret = add_bits(p, crc, CRC_BITS); in sw842_compress()