Searched refs:bits_avail (Results 1 – 1 of 1) sorted by relevance
53 static u32 altera_read_packed(u8 *buffer, u32 bits, u32 *bits_avail, in altera_read_packed() argument62 result |= (((databyte >> (CHAR_BITS - *bits_avail)) in altera_read_packed()63 & (0xff >> (CHAR_BITS - *bits_avail))) << shift); in altera_read_packed()65 if (bits <= *bits_avail) { in altera_read_packed()67 *bits_avail -= bits; in altera_read_packed()71 shift += *bits_avail; in altera_read_packed()72 bits -= *bits_avail; in altera_read_packed()73 *bits_avail = CHAR_BITS; in altera_read_packed()85 u32 bits_avail = CHAR_BITS; in altera_shrink() local99 &bits_avail, in altera_shrink()[all …]