Lines Matching refs:bits_avail
39 static u32 altera_read_packed(u8 *buffer, u32 bits, u32 *bits_avail, in altera_read_packed() argument
48 result |= (((databyte >> (CHAR_BITS - *bits_avail)) in altera_read_packed()
49 & (0xff >> (CHAR_BITS - *bits_avail))) << shift); in altera_read_packed()
51 if (bits <= *bits_avail) { in altera_read_packed()
53 *bits_avail -= bits; in altera_read_packed()
57 shift += *bits_avail; in altera_read_packed()
58 bits -= *bits_avail; in altera_read_packed()
59 *bits_avail = CHAR_BITS; in altera_read_packed()
71 u32 bits_avail = CHAR_BITS; in altera_shrink() local
85 &bits_avail, in altera_shrink()
97 if (altera_read_packed(in, 1, &bits_avail, in altera_shrink()
103 &bits_avail, in altera_shrink()
113 &bits_avail, in altera_shrink()
116 &bits_avail, in altera_shrink()