Searched refs:last_bit (Results 1 – 9 of 9) sorted by relevance
| /linux/rust/kernel/ |
| H A D | bitmap.rs | 450 pub fn last_bit(&self) -> Option<usize> { in last_bit() method 552 assert_eq!(None, b.last_bit()); in bitmap_set_clear_find() 559 assert_eq!(Some(17), b.last_bit()); in bitmap_set_clear_find() 566 assert_eq!(Some(107), b.last_bit()); in bitmap_set_clear_find() 571 assert_eq!(Some(107), b.last_bit()); in bitmap_set_clear_find() 588 assert_eq!(None, b.last_bit()); in owned_bitmap_out_of_bounds() 618 assert_eq!(Some(17), long_bitmap.last_bit()); in bitmap_copy_and_extend()
|
| H A D | id_pool.rs | 162 let Some(bit) = self.map.last_bit() else { in shrink_request()
|
| /linux/drivers/iommu/iommufd/ |
| H A D | iova_bitmap.c | 405 unsigned long cur_bit, last_bit, last_page_idx; in iova_bitmap_set() local 421 last_bit = (((iova + length - 1) - mapped->iova) >> in iova_bitmap_set() 428 last_bit - cur_bit + 1); in iova_bitmap_set() 433 ((last_bit - cur_bit + 1) << mapped->pgshift); in iova_bitmap_set() 444 } while (cur_bit <= last_bit); in iova_bitmap_set()
|
| /linux/drivers/media/pci/bt8xx/ |
| H A D | bttv-input.c | 207 if (ir->last_bit < 20) { in bttv_rc5_timer_end() 267 if (ir->last_bit < 28) { in bttv_rc5_irq() 268 ir->last_bit = (gap - ir_rc5_remote_gap / 2) / in bttv_rc5_irq() 270 ir->code |= 1 << ir->last_bit; in bttv_rc5_irq() 277 ir->last_bit = 0; in bttv_rc5_irq()
|
| H A D | bttvp.h | 128 u32 last_bit; /* last raw bit seen */ member
|
| /linux/drivers/clocksource/ |
| H A D | ingenic-timer.c | 280 int ret, last_bit = -1; in ingenic_tcu_init() local 322 last_bit + 1); in ingenic_tcu_init() 323 last_bit = timer->channel; in ingenic_tcu_init() 328 last_bit + 1); in ingenic_tcu_init()
|
| /linux/drivers/fsi/ |
| H A D | fsi-master-gpio.c | 135 uint64_t last_bit = ~0; in serial_out() local 153 if (last_bit ^ next_bit) { in serial_out() 155 last_bit = next_bit; in serial_out()
|
| /linux/drivers/net/wireless/ath/ath5k/ |
| H A D | phy.c | 200 u32 mask, data, last_bit, bits_shifted, first_bit; in ath5k_hw_rfb_op() local 247 last_bit = (position + bits_left > 8) ? 8 : in ath5k_hw_rfb_op() 250 mask = (((1 << last_bit) - 1) ^ ((1 << position) - 1)) << in ath5k_hw_rfb_op() 260 bits_shifted += last_bit - position; in ath5k_hw_rfb_op()
|
| /linux/fs/ocfs2/ |
| H A D | alloc.c | 7559 u32 first_bit, last_bit, minlen; in ocfs2_trim_mainbm() local 7623 last_bit = osb->bitmap_cpg; in ocfs2_trim_mainbm() 7625 last_bit = first_bit + len; in ocfs2_trim_mainbm() 7637 first_bit, last_bit, minlen); in ocfs2_trim_mainbm()
|