Defined in 2 files as a function:
Referenced in 7 files:
- include/linux/cpumask.h, line 182
- include/linux/find.h
- lib/find_bit.c, line 107
- lib/find_bit_benchmark.c, line 65
- lib/test_bitmap.c, line 1549
- tools/include/linux/find.h, line 130
- tools/lib/find_bit.c, line 80
Smatch caller information:
drivers/perf/arm-cmn.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
kernel/bpf/cpumask.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
drivers/iommu/hyperv/hv-irq-remap-x86.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &ioapic_lock | ||
| HALF_LOCKED2 | irq |
block/blk-mq.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/smp.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | _T->lock |
drivers/pci/controller/pci-hyperv.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &_T->lock->msi.data->mutex |
kernel/irq/manage.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &desc->lock | ||
| LOCK2 | irq | ||
| TYPE_LOCK | (struct irq_desc)->lock |
lib/test_bitmap.c test_zero_nbits() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr1 | 0 |
| PARAM_VALUE | 1 | addr2 | 0 |
| PARAM_VALUE | 2 | size | 0 |
drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &cpuhp_state_mutex | ||
| HALF_LOCKED2 | irq |
kernel/power/energy_model.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &em_pd_mutex |
drivers/net/ethernet/sfc/siena/efx_channels.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
kernel/sched/build_policy.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &p->pi_lock | ||
| HALF_LOCKED2 | global &sched_domains_mutex | ||
| HALF_LOCKED2 | rf.flags |
kernel/time/hrtimer.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &timer->base->cpu_base->lock | ||
| HALF_LOCKED2 | irq |
drivers/perf/thunderx2_pmu.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/perf/alibaba_uncore_drw_pmu.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
kernel/cgroup/cpuset.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &cpuset_mutex | ||
| HALF_LOCKED2 | global &cgroup_mutex |
kernel/sched/build_utility.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/perf/arm-ni.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
kernel/cpu.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &cpu_add_remove_lock | ||
| HALF_LOCKED2 | global &system_transition_mutex |
drivers/scsi/lpfc/lpfc_init.c find_next_and_bit_wrap() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr1 | 4096-ptr_max |
| PARAM_VALUE | 1 | addr2 | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 1-65 |
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| CAPPED_DATA | 2 | size | 1 |
| CAPPED_DATA | 2 | size | 1 |
| DATA_SOURCE | 0 | addr1 | $0 |
| DATA_SOURCE | 1 | addr2 | $1 |
| DATA_SOURCE | 2 | size | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/time/timer_migration.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock |
kernel/events/core.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &pmus_lock |
drivers/perf/arm_cspmu/arm_cspmu.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
drivers/cpufreq/speedstep-centrino.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &policy->rwsem | ||
| HALF_LOCKED2 | &policy_dbs->update_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &sg_policy->work_lock | ||
| HALF_LOCKED2 | &userspace->mutex | ||
| HALF_LOCKED2 | global &gov_dbs_data_mutex |
drivers/net/ethernet/sfc/efx_channels.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/pci/pci-driver.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read |
lib/cpumask.c find_next_and_bit_wrap() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr1 | 4096-ptr_max |
| PARAM_VALUE | 1 | addr2 | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 1-8193 |
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| CAPPED_DATA | 2 | size | 1 |
| CAPPED_DATA | 2 | size | 1 |
| DATA_SOURCE | 0 | addr1 | $0 |
| DATA_SOURCE | 1 | addr2 | $1 |
| DATA_SOURCE | 2 | size | $3 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read | ||
| HALF_LOCKED2 | rf.flags |
drivers/hwmon/coretemp.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &cpuhp_state_mutex | ||
| HALF_LOCKED2 | irq |
arch/x86/events/intel/uncore.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &cpuhp_state_mutex | ||
| HALF_LOCKED2 | irq |
drivers/perf/dwc_pcie_pmu.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
kernel/workqueue.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | irq_flags |
kernel/workqueue.c find_next_and_bit_wrap() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr1 | 4096-ptr_max |
| PARAM_VALUE | 1 | addr2 | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 1-8193 |
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| CAPPED_DATA | 2 | size | 1 |
| CAPPED_DATA | 2 | size | 1 |
| DATA_SOURCE | 0 | addr1 | $0 |
| DATA_SOURCE | 1 | addr2 | $1 |
| DATA_SOURCE | 2 | size | $3 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &last_pool->lock | ||
| HALF_LOCKED2 | irq | ||
| HALF_LOCKED2 | irq_flags |
lib/find_bit_benchmark.c test_find_first_and_bit() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr1 | 2612393147664183296 |
| PARAM_VALUE | 1 | addr2 | 2708843466466332672 |
| PARAM_VALUE | 2 | size | 163840,327680 |
| BUF_SIZE | 0 | addr1 | 40960 |
| BUF_SIZE | 1 | addr2 | 40960 |
| DATA_SOURCE | 1 | addr2 | $1 |
| DATA_SOURCE | 2 | size | $2 |
| HARD_MAX | 2 | size | 327680 |
drivers/net/ethernet/pensando/ionic/ionic_dev.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &lif->queue_lock | ||
| HALF_LOCKED2 | &pool->lock |
drivers/perf/fujitsu_uncore_pmu.c cpumask_first_and() -> find_first_and_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | addr1 | 1024 |
| BUF_SIZE | 1 | addr2 | 1024 |