Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

arch/x86/kernel/cpu/topology.c topo_unit_count() -> bitmap_weight_from()

Type Parameter Key Value
PARAM_VALUE 1 start 0-64
BUF_SIZE 0 bitmap 4096
BUF_SIZE 0 bitmap 4096
CAPPED_DATA 1 start 1
DATA_SOURCE 0 bitmap $2
DATA_SOURCE 1 start $0
PARAM_COMPARE 1 start <= $2
PARAM_COMPARE 2 end >= $1
LOCK2 irq

lib/test_bitmap.c test_bitmap_weight() -> bitmap_weight_from()

Type Parameter Key Value
PARAM_VALUE 0 bitmap 7468275111796592640
PARAM_VALUE 1 start 15
PARAM_VALUE 2 end 30

lib/test_bitmap.c test_bitmap_weight() -> bitmap_weight_from()

Type Parameter Key Value
PARAM_VALUE 0 bitmap 3698964507464785920
PARAM_VALUE 1 start 1-959
PARAM_VALUE 2 end 960
BUF_SIZE 0 bitmap 120
FUZZY_MAX 1 start 959
HARD_MAX 1 start 959

lib/test_bitmap.c test_bitmap_weight() -> bitmap_weight_from()

Type Parameter Key Value
PARAM_VALUE 0 bitmap 7468275111796592640
PARAM_VALUE 1 start 31
PARAM_VALUE 2 end 30

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

Type Parameter Key Value
PARAM_VALUE 0 bitmap 0
PARAM_VALUE 1 start 0
PARAM_VALUE 2 end 0

mm/khugepaged.c mthp_collapse() -> bitmap_weight_from()

Type Parameter Key Value
PARAM_VALUE 0 bitmap 0
PARAM_VALUE 1 start 0
BUF_SIZE 0 bitmap 64
CAPPED_DATA 2 end 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock