Defined in 1 files as a function:

Referenced in 8 files:

Smatch caller information:

drivers/gpio/gpio-xilinx.c xgpio_dir_in() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 1 size 64
DATA_SOURCE 2 n $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 _T->flags
HALF_LOCKED2 _T->lock

drivers/gpio/gpio-xilinx.c xgpio_dir_out() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 1 size 64
DATA_SOURCE 2 n $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 _T->lock

drivers/gpio/gpio-xilinx.c xgpio_get() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 1 size 64
DATA_SOURCE 2 n $1
RX_PATH
TASK_NOT_RUNNING

drivers/gpio/gpio-xilinx.c xgpio_irq_mask() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 1 size 64
PARAM_VALUE 2 n 0-s32max,18446744071562067968-u64max
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n unit_array_size
HALF_LOCKED2 &desc->lock
HALF_LOCKED2 _T->flags

drivers/gpio/gpio-xilinx.c xgpio_irq_unmask() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 1 size 64
PARAM_VALUE 2 n 0-s32max,18446744071562067968-u64max
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n unit_array_size
HALF_LOCKED2 &desc->lock
HALF_LOCKED2 _T->flags

drivers/gpio/gpio-xilinx.c xgpio_read_ch_all() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 1 size 64
PARAM_VALUE 2 n 0-65534,u64max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &chip->gpio_lock
HALF_LOCKED2 _T->lock
HALF_LOCKED2 irq
TYPE_LOCK (struct xgpio_instance)->gpio_lock

drivers/gpio/gpio-xilinx.c xgpio_set() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 1 size 64
DATA_SOURCE 2 n $1
RX_PATH
TASK_NOT_RUNNING

drivers/gpio/gpio-xilinx.c xgpio_set_irq_type() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 1 size 64
PARAM_VALUE 2 n 0-s32max,18446744071562067968-u64max
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n unit_array_size
HALF_LOCKED2 global &probing_active

drivers/gpio/gpio-xilinx.c xgpio_write_ch_all() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 1 size 64
PARAM_VALUE 2 n 0-65534,u64max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &chip->gpio_lock
HALF_LOCKED2 flags

kernel/trace/trace_events_filter.c cpumask_nth() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4096-ptr_max
PARAM_VALUE 2 n 1
BUF_SIZE 0 addr 1024
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &event_mutex

drivers/platform/x86/dell/alienware-wmi-wmax.c awcc_hwmon_read() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 1 size 256
PARAM_VALUE 2 n 0-s32max,18446744071562067968-u64max
BUF_SIZE 0 addr 32
DATA_SOURCE 2 n $3
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tz->lock

drivers/platform/x86/dell/alienware-wmi-wmax.c awcc_hwmon_read_string() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 1 size 256
PARAM_VALUE 2 n 0-s32max,18446744071562067968-u64max
BUF_SIZE 0 addr 32
DATA_SOURCE 2 n $3
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 _T->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/net/wireguard/send.c cpumask_nth() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 2 n 0-u32max
BUF_SIZE 0 addr 1024
CAPPED_DATA 2 n 1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 rcu_read

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 192
PARAM_VALUE 2 n 0
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 192
PARAM_VALUE 2 n 1
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 192
PARAM_VALUE 2 n 2
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 192
PARAM_VALUE 2 n 3
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 192
PARAM_VALUE 2 n 4
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 192
PARAM_VALUE 2 n 5
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 192
PARAM_VALUE 2 n 6
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 192
PARAM_VALUE 2 n 7
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 192
PARAM_VALUE 2 n 8
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 191
PARAM_VALUE 2 n 0
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 191
PARAM_VALUE 2 n 1
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 191
PARAM_VALUE 2 n 2
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 191
PARAM_VALUE 2 n 3
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 191
PARAM_VALUE 2 n 4
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 191
PARAM_VALUE 2 n 5
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 191
PARAM_VALUE 2 n 6
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 191
PARAM_VALUE 2 n 7
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 4628025402402852864
PARAM_VALUE 1 size 191
PARAM_VALUE 2 n 8
BUF_SIZE 0 addr 24

lib/test_bitmap.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 3698964507464785920
PARAM_VALUE 1 size 960
BUF_SIZE 0 addr 120

lib/test_bitmap.c test_zero_nbits() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 0
PARAM_VALUE 1 size 0
PARAM_VALUE 2 n 0

drivers/cpufreq/acpi-cpufreq.c cpumask_nth() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 2 n 1
BUF_SIZE 0 addr 1024
RX_PATH
TASK_NOT_RUNNING
LOCK2 &policy->rwsem
HALF_LOCKED2 &sp->mutex
TYPE_LOCK (struct cpufreq_policy)->rwsem

kernel/sched/build_utility.c cpumask_nth() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 2 n 1
BUF_SIZE 0 addr 1024
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &policy->rwsem
HALF_LOCKED2 global &intel_pstate_limits_lock
HALF_LOCKED2 global &system_transition_mutex

drivers/infiniband/hw/hfi1/affinity.c cpumask_nth() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 2 n 0-u32max
BUF_SIZE 0 addr 1024
HALF_LOCKED2 &affinity->lock

arch/x86/kvm/lapic.c kvm_vector_to_index() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 570297640863789056,1796188902684282880,4642035968898441216
PARAM_VALUE 1 size 16,4096
PARAM_VALUE 2 n 0-255
BUF_SIZE 0 addr (-1),512
BUF_SIZE 0 addr (-1),512
CAPPED_DATA 2 n 1
DATA_SOURCE 0 addr $2
DATA_SOURCE 1 size $3
HARD_MAX 1 size 4096
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 *addr 1-u16max[c]
USER_DATA 2 n 0-255[c]
HALF_LOCKED2 &ioapic->lock
HALF_LOCKED2 rcu_read

crypto/pcrypt.c cpumask_nth() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 2 n 0-u32max
BUF_SIZE 0 addr 1024
CAPPED_DATA 2 n 1
RX_PATH
TASK_NOT_RUNNING

lib/bitmap.c bitmap_bitremap() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 1 size 1024
PARAM_VALUE 2 n 0-s32max
BUF_SIZE 0 addr 128
BUF_SIZE 0 addr 128
CAPPED_DATA 2 n 1
DATA_SOURCE 0 addr $2
DATA_SOURCE 1 size $3

lib/bitmap.c bitmap_remap() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 1 size 1024
PARAM_VALUE 2 n 0-s32max
BUF_SIZE 0 addr 128
BUF_SIZE 0 addr 128
CAPPED_DATA 2 n 1
DATA_SOURCE 0 addr $3
DATA_SOURCE 1 size $4
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock
HALF_LOCKED2 &tsk->alloc_lock
HALF_LOCKED2 global &cpuset_mutex
HALF_LOCKED2 irq

kernel/padata.c cpumask_nth() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 2 n 0-u32max
BUF_SIZE 0 addr 1024
CAPPED_DATA 2 n 1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 rcu_read

lib/find_bit.c find_random_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 1 size 0,1024
PARAM_VALUE 2 n 0
BUF_SIZE 0 addr (-1),128
BUF_SIZE 0 addr (-1),128
DATA_SOURCE 0 addr $0
DATA_SOURCE 1 size $1
HARD_MAX 1 size 1024
RX_PATH
TASK_NOT_RUNNING

drivers/cpufreq/cpufreq_governor.c cpumask_nth() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 2 n 1
BUF_SIZE 0 addr 1024
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &policy->rwsem
HALF_LOCKED2 global &intel_pstate_limits_lock
HALF_LOCKED2 global &system_transition_mutex

lib/find_bit_benchmark.c test_find_nth_bit() -> find_nth_bit()

Type Parameter Key Value
PARAM_VALUE 0 addr 1969539149701128192
PARAM_VALUE 1 size 32768,327680
PARAM_VALUE 2 n 0-4294967294
BUF_SIZE 0 addr 40960
BUF_SIZE 0 addr 40960
CAPPED_DATA 1 size 1
CAPPED_DATA 1 size 1
CAPPED_DATA 2 n 1
CAPPED_DATA 2 n 1
DATA_SOURCE 0 addr $0
DATA_SOURCE 1 size $1