| /linux/arch/arm64/tools/ |
| H A D | gen-sysreg.awk | 95 if (msb != next_bit) 96 fatal(reg "." field " starts at " msb " not " next_bit) 106 next_bit = lsb - 1 146 next_bit = 63 155 if (next_bit >= 0) 201 next_bit = 63 210 if (next_bit >= 0) 235 if (next_bit != 63) 241 next_bit = -1 373 if (next_bit < 63) [all …]
|
| /linux/rust/kernel/ |
| H A D | bitmap.rs | 464 pub fn next_bit(&self, start: usize) -> Option<usize> { in next_bit() method 516 assert_eq!(None, b.next_bit(0)); in bitmap_borrow() 550 assert_eq!(None, b.next_bit(0)); in bitmap_set_clear_find() 556 assert_eq!(Some(17), b.next_bit(0)); in bitmap_set_clear_find() 557 assert_eq!(Some(17), b.next_bit(17)); in bitmap_set_clear_find() 558 assert_eq!(None, b.next_bit(18)); in bitmap_set_clear_find() 563 assert_eq!(Some(17), b.next_bit(0)); in bitmap_set_clear_find() 564 assert_eq!(Some(17), b.next_bit(17)); in bitmap_set_clear_find() 565 assert_eq!(Some(107), b.next_bit(18)); in bitmap_set_clear_find() 570 assert_eq!(Some(107), b.next_bit(0)); in bitmap_set_clear_find() [all …]
|
| /linux/kernel/bpf/ |
| H A D | lpm_trie.c | 251 unsigned int next_bit; in trie_lookup_elem() local 281 next_bit = extract_bit(key->data, node->prefixlen); in trie_lookup_elem() 282 node = rcu_dereference_check(node->child[next_bit], in trie_lookup_elem() 331 unsigned int next_bit; in trie_update_elem() local 369 next_bit = extract_bit(key->data, node->prefixlen); in trie_update_elem() 370 slot = &node->child[next_bit]; in trie_update_elem() 417 next_bit = extract_bit(node->data, matchlen); in trie_update_elem() 418 rcu_assign_pointer(new_node->child[next_bit], node); in trie_update_elem() 465 unsigned int next_bit; in trie_delete_elem() local 494 next_bit = extract_bit(key->data, node->prefixlen); in trie_delete_elem() [all …]
|
| /linux/arch/x86/kernel/ |
| H A D | amd_gart_64.c | 86 static unsigned long next_bit; /* protected by iommu_bitmap_lock */ variable 101 offset = iommu_area_alloc(iommu_gart_bitmap, iommu_pages, next_bit, in alloc_iommu() 110 next_bit = offset+size; in alloc_iommu() 111 if (next_bit >= iommu_pages) { in alloc_iommu() 112 next_bit = 0; in alloc_iommu() 129 if (offset >= next_bit) in free_iommu() 130 next_bit = offset + size; in free_iommu()
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_binding.c | 789 unsigned long i, next_bit; in vmw_collect_dirty_view_ids() local 793 next_bit = i; in vmw_collect_dirty_view_ids() 802 if (next_bit == i) { in vmw_collect_dirty_view_ids() 803 next_bit = find_next_bit(dirty, max_num, i + 1); in vmw_collect_dirty_view_ids() 804 if (next_bit >= max_num) in vmw_collect_dirty_view_ids() 1016 unsigned long i, next_bit; in vmw_collect_dirty_vbs() local 1021 next_bit = i; in vmw_collect_dirty_vbs() 1036 if (next_bit == i) { in vmw_collect_dirty_vbs() 1037 next_bit = find_next_bit(dirty, max_num, i + 1); in vmw_collect_dirty_vbs() 1038 if (next_bit >= max_num) in vmw_collect_dirty_vbs()
|
| /linux/lib/ |
| H A D | test_bitmap.c | 647 unsigned int nbits, next_bit; in test_bitmap_arr32() local 658 next_bit = find_next_bit(bmap2, in test_bitmap_arr32() 660 if (next_bit < round_up(nbits, BITS_PER_LONG)) { in test_bitmap_arr32() 663 nbits, next_bit); in test_bitmap_arr32() 675 unsigned int nbits, next_bit; in test_bitmap_arr64() local 687 next_bit = find_next_bit(bmap2, round_up(nbits, BITS_PER_LONG), nbits); in test_bitmap_arr64() 688 if (next_bit < round_up(nbits, BITS_PER_LONG)) { in test_bitmap_arr64() 690 " tail is not safely cleared: %d\n", nbits, next_bit); in test_bitmap_arr64()
|
| H A D | genalloc.c | 765 unsigned long next_bit = find_next_bit(map, size, index + nr); in gen_pool_best_fit() local 766 if ((next_bit - index) < len) { in gen_pool_best_fit() 767 len = next_bit - index; in gen_pool_best_fit() 773 next_bit + 1, nr, 0); in gen_pool_best_fit()
|
| H A D | find_bit_benchmark_rust.rs | 25 while let Some(index) = bitmap.next_bit(i) { in test_next_bit()
|
| /linux/drivers/fsi/ |
| H A D | fsi-master-gpio.c | 136 int next_bit; in serial_out() local 152 next_bit = (msg & sda_mask) >> (cmd->bits - 1); in serial_out() 153 if (last_bit ^ next_bit) { in serial_out() 154 sda_out(master, next_bit); in serial_out() 155 last_bit = next_bit; in serial_out()
|
| /linux/net/ceph/ |
| H A D | osdmap.c | 2299 int next_bit = n << (old_bits - 1); in ceph_pg_is_split() local 2300 u32 s = next_bit | pgid->seed; in ceph_pg_is_split()
|