Searched refs:bits_left (Results 1 – 5 of 5) sorted by relevance
28 unsigned int bits_left; /* number of available bits in current byte */ member36 s->bits_left = 8; in bs_init()51 if (count < s->bits_left) { in bs_write()53 s->bits_left -= count; in bs_write()56 *s->ptr = (*s->ptr << s->bits_left) | in bs_write()57 (bits >> (count - s->bits_left)); in bs_write()58 count -= s->bits_left; in bs_write()60 s->bits_left = 8; in bs_write()69 s->bits_left--; in bs_write1()70 if (s->bits_left == 0) { in bs_write1()[all …]
97 int bits_left; member143 if (dev->data.bits_left >= bits_needed) in keyspan_load_tester()158 while ((dev->data.bits_left + 7 < (sizeof(dev->data.tester) * 8)) && in keyspan_load_tester()160 dev->data.tester += (dev->data.buffer[dev->data.pos++] << dev->data.bits_left); in keyspan_load_tester()161 dev->data.bits_left += 8; in keyspan_load_tester()198 remote->data.bits_left = 0; in keyspan_check_data()212 while ((remote->data.bits_left >= 14 || remote->data.pos < remote->data.len) && !found) { in keyspan_check_data()221 remote->data.bits_left -= 14; in keyspan_check_data()226 --remote->data.bits_left; in keyspan_check_data()255 remote->data.bits_left -= 5; in keyspan_check_data()[all …]
42 unsigned long *bits_left, unsigned int *per_mil_done) in drbd_get_syncer_progress() argument54 *bits_left = device->ov_left; in drbd_get_syncer_progress()56 *bits_left = drbd_bm_total_weight(device) - device->rs_failed; in drbd_get_syncer_progress()59 if (*bits_left > *rs_total) { in drbd_get_syncer_progress()63 *bits_left = *rs_total; in drbd_get_syncer_progress()76 unsigned long left = *bits_left >> shift; in drbd_get_syncer_progress()
1673 u16 *bits_left) in ocfs2_search_one_group() argument1727 *bits_left = le16_to_cpu(gd->bg_free_bits_count); in ocfs2_search_one_group()1740 u16 *bits_left) in ocfs2_search_chain() argument1865 *bits_left = le16_to_cpu(bg->bg_free_bits_count); in ocfs2_search_chain()1884 u16 bits_left = 0; in ocfs2_claim_suballoc_bits() local1916 min_bits, res, &bits_left); in ocfs2_claim_suballoc_bits()1931 res, &bits_left); in ocfs2_claim_suballoc_bits()1959 res, &bits_left); in ocfs2_claim_suballoc_bits()1975 if (bits_left < min_bits) in ocfs2_claim_suballoc_bits()
202 s32 bits_left; in ath5k_hw_rfb_op() local244 for (bits_shifted = 0, bits_left = num_bits; bits_left > 0; in ath5k_hw_rfb_op()247 last_bit = (position + bits_left > 8) ? 8 : in ath5k_hw_rfb_op()248 position + bits_left; in ath5k_hw_rfb_op()263 bits_left -= 8 - position; in ath5k_hw_rfb_op()