Home
last modified time | relevance | path

Searched refs:find_nth_bit (Results 1 – 7 of 7) sorted by relevance

/linux/lib/
H A Dtest_bitmap.c211 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 Dfind_bit_benchmark.c125 l = find_nth_bit(bitmap, len, n); in test_find_nth_bit()
H A Dbitmap.c514 set_bit(find_nth_bit(new, nbits, n % w), dst); in bitmap_remap()
553 return find_nth_bit(new, bits, n % w); in bitmap_bitremap()
H A Dfind_bit.c314 return find_nth_bit(addr, size, get_random_u32_below(w)); in find_random_bit()
/linux/drivers/gpio/
H A Dgpio-xilinx.c104 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()
377 unsigned long bit = find_nth_bit(chip->map, 64, irq_offset), enable; in xgpio_irq_mask()
405 unsigned long bit = find_nth_bit(chip->map, 64, irq_offset), enable; in xgpio_irq_unmask()
445 unsigned long bit = find_nth_bit(chip->map, 64, irq_offset); in xgpio_set_irq_type()
/linux/drivers/platform/x86/dell/
H A Dalienware-wmi-wmax.c865 temp = find_nth_bit(priv->temp_sensors, AWCC_ID_BITMAP_SIZE, channel); in awcc_hwmon_read()
929 temp = find_nth_bit(priv->temp_sensors, AWCC_ID_BITMAP_SIZE, channel); in awcc_hwmon_read_string()
/linux/include/linux/
H A Dcpumask.h542 return find_nth_bit(cpumask_bits(srcp), small_cpumask_bits, cpumask_check(cpu)); in cpumask_nth()