Home
last modified time | relevance | path

Searched refs:bits_left (Results 1 – 5 of 5) sorted by relevance

/linux-5.19.10/drivers/media/pci/tw5864/
Dtw5864-h264.c28 unsigned int bits_left; /* number of available bits in current byte */ member
36 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 …]
/linux-5.19.10/drivers/input/misc/
Dkeyspan_remote.c97 int bits_left; member
143 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 …]
/linux-5.19.10/drivers/block/drbd/
Ddrbd_proc.c42 unsigned long *bits_left, unsigned int *per_mil_done) in drbd_get_syncer_progress() argument
54 *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()
/linux-5.19.10/fs/ocfs2/
Dsuballoc.c1673 u16 *bits_left) in ocfs2_search_one_group() argument
1727 *bits_left = le16_to_cpu(gd->bg_free_bits_count); in ocfs2_search_one_group()
1740 u16 *bits_left) in ocfs2_search_chain() argument
1865 *bits_left = le16_to_cpu(bg->bg_free_bits_count); in ocfs2_search_chain()
1884 u16 bits_left = 0; in ocfs2_claim_suballoc_bits() local
1916 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()
/linux-5.19.10/drivers/net/wireless/ath/ath5k/
Dphy.c201 s32 bits_left; in ath5k_hw_rfb_op() local
243 for (bits_shifted = 0, bits_left = num_bits; bits_left > 0; in ath5k_hw_rfb_op()
246 last_bit = (position + bits_left > 8) ? 8 : in ath5k_hw_rfb_op()
247 position + bits_left; in ath5k_hw_rfb_op()
262 bits_left -= 8 - position; in ath5k_hw_rfb_op()