Searched refs:find_nth_bit (Results 1 – 9 of 9) sorted by relevance
| /linux/lib/ |
| H A D | test_bitmap.c | 211 expect_eq_uint(10, find_nth_bit(bmap, 64 * 3, 0)); in test_find_nth_bit() 212 expect_eq_uint(20, find_nth_bit(bmap, 64 * 3, 1)); in test_find_nth_bit() 213 expect_eq_uint(30, find_nth_bit(bmap, 64 * 3, 2)); in test_find_nth_bit() 214 expect_eq_uint(40, find_nth_bit(bmap, 64 * 3, 3)); in test_find_nth_bit() 215 expect_eq_uint(50, find_nth_bit(bmap, 64 * 3, 4)); in test_find_nth_bit() 216 expect_eq_uint(60, find_nth_bit(bmap, 64 * 3, 5)); in test_find_nth_bit() 217 expect_eq_uint(80, find_nth_bit(bmap, 64 * 3, 6)); in test_find_nth_bit() 218 expect_eq_uint(123, find_nth_bit(bmap, 64 * 3, 7)); in test_find_nth_bit() 219 expect_eq_uint(0, !!(find_nth_bit(bmap, 64 * 3, 8) < 64 * 3)); in test_find_nth_bit() 221 expect_eq_uint(10, find_nth_bit(bmap, 64 * 3 - 1, 0)); in test_find_nth_bit() [all …]
|
| H A D | find_bit_benchmark.c | 125 l = find_nth_bit(bitmap, len, n); in test_find_nth_bit()
|
| H A D | bitmap.c | 520 set_bit(find_nth_bit(new, nbits, n % w), dst); in bitmap_remap() 559 return find_nth_bit(new, bits, n % w); in bitmap_bitremap()
|
| H A D | find_bit.c | 314 return find_nth_bit(addr, size, get_random_u32_below(w)); in find_random_bit()
|
| /linux/drivers/gpio/ |
| H A D | gpio-xilinx.c | 104 unsigned long lastbit = find_nth_bit(chip->map, 64, chip->gc.ngpio - 1); in xgpio_read_ch_all() 113 unsigned long lastbit = find_nth_bit(chip->map, 64, chip->gc.ngpio - 1); in xgpio_write_ch_all() 134 unsigned long bit = find_nth_bit(chip->map, 64, gpio); in xgpio_get() 155 unsigned long bit = find_nth_bit(chip->map, 64, gpio); in xgpio_set() 216 unsigned long bit = find_nth_bit(chip->map, 64, gpio); in xgpio_dir_in() 245 unsigned long bit = find_nth_bit(chip->map, 64, gpio); in xgpio_dir_out() 376 unsigned long bit = find_nth_bit(chip->map, 64, irq_offset), enable; in xgpio_irq_mask() 404 unsigned long bit = find_nth_bit(chip->map, 64, irq_offset), enable; in xgpio_irq_unmask() 444 unsigned long bit = find_nth_bit(chip->map, 64, irq_offset); in xgpio_set_irq_type()
|
| /linux/include/linux/ |
| H A D | find.h | 232 unsigned long find_nth_bit(const unsigned long *addr, unsigned long size, unsigned long n) in find_nth_bit() function
|
| H A D | cpumask.h | 545 return find_nth_bit(cpumask_bits(srcp), small_cpumask_bits, cpumask_check(cpu)); in cpumask_nth()
|
| /linux/drivers/platform/x86/dell/ |
| H A D | alienware-wmi-wmax.c | 852 temp = find_nth_bit(priv->temp_sensors, AWCC_ID_BITMAP_SIZE, channel); in awcc_hwmon_read() 916 temp = find_nth_bit(priv->temp_sensors, AWCC_ID_BITMAP_SIZE, channel); in awcc_hwmon_read_string()
|
| /linux/arch/x86/kvm/ |
| H A D | lapic.c | 1102 int idx = find_nth_bit(bitmap, bitmap_size, vector % dest_vcpus); in kvm_vector_to_index()
|