Defined in 1 files as a function:

Referenced in 53 files:

Smatch caller information:

arch/x86/kernel/cpu/topology_ext.c parse_topology_leaf() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 2-u32max
HALF_LOCKED2 irq

drivers/iommu/amd/iommu.c get_gcr3_levels() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1-s32max
DATA_SOURCE 0 count $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev_data->mutex
HALF_LOCKED2 &dev->mutex
HALF_LOCKED2 &group->mutex
TYPE_LOCK (struct iommu_dev_data)->mutex

drivers/input/keyboard/clps711x-keypad.c clps711x_keypad_probe() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 8
RX_PATH
TASK_NOT_RUNNING

sound/soc/img/img-i2s-in.c img_i2s_in_probe() -> get_count_order()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
UNITS 0 count unit_array_size

lib/test_bitops.c test_bitops_startup() -> get_count_order()

Type Parameter Key Value

arch/x86/kernel/cpu/topology_amd.c parse_8000_0008() -> get_count_order()

Type Parameter Key Value
HALF_LOCKED2 irq

arch/x86/kernel/cpu/topology_amd.c parse_8000_001e() -> get_count_order()

Type Parameter Key Value
HALF_LOCKED2 irq

drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c mtk_hw_bits_part() -> get_count_order()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pctldev->mutex

drivers/input/keyboard/samsung-keypad.c samsung_keypad_probe() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1-8
RX_PATH
TASK_NOT_RUNNING

fs/binfmt_elf.c rseq_alloc_align() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 33

sound/soc/img/img-i2s-out.c img_i2s_out_probe() -> get_count_order()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
UNITS 0 count unit_array_size

drivers/usb/typec/altmodes/displayport.c dp_altmode_notify() -> get_count_order()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dp->lock
TYPE_LOCK (struct dp_altmode)->lock

drivers/usb/typec/altmodes/displayport.c pin_assignment_show() -> get_count_order()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dp->lock
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct dp_altmode)->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

arch/x86/kernel/cpu/topology.c topology_init_possible_cpus() -> get_count_order()

Type Parameter Key Value
DATA_SOURCE 0 count r bitmap_weight
LOCK2 irq

arch/x86/kernel/cpu/topology.c topology_init_possible_cpus() -> get_count_order()

Type Parameter Key Value
DATA_SOURCE 0 count r bitmap_weight
LOCK2 irq

kernel/rseq.c rseq_alloc_align() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 33

drivers/irqchip/irq-sg2042-msi.c sg204x_msi_allocate_hwirq() -> get_count_order()

Type Parameter Key Value
DATA_SOURCE 0 count $1
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 count
LOCK2 _T->lock
HALF_LOCKED2 &domain->root->mutex

drivers/irqchip/irq-sg2042-msi.c sg204x_msi_free_hwirq() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1-u32max
DATA_SOURCE 0 count $2
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 count
LOCK2 _T->lock
HALF_LOCKED2 &domain->root->mutex

fs/ceph/mds_client.c register_session() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 2147483649-u32max
CAPPED_DATA 0 count 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mdsc->mutex

drivers/input/keyboard/charlieplex_keypad.c charlieplex_keypad_scan_line() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1-u32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 count unit_array_size

drivers/input/matrix-keymap.c matrix_keypad_build_keymap() -> get_count_order()

Type Parameter Key Value
DATA_SOURCE 0 count $3
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 count

drivers/input/matrix-keymap.c matrix_keypad_parse_keymap() -> get_count_order()

Type Parameter Key Value
DATA_SOURCE 0 count $2
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 count

drivers/input/keyboard/matrix_keypad.c matrix_keypad_probe() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1-s32max
RX_PATH
TASK_NOT_RUNNING

drivers/pci/controller/pcie-aspeed.c aspeed_irq_msi_domain_alloc() -> get_count_order()

Type Parameter Key Value
DATA_SOURCE 0 count $2
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 count
LOCK2 _T->lock
HALF_LOCKED2 &domain->root->mutex

drivers/pci/controller/pcie-aspeed.c aspeed_irq_msi_domain_free() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1
DATA_SOURCE 0 count $2
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock
HALF_LOCKED2 &domain->root->mutex

drivers/pci/controller/pcie-xilinx-nwl.c nwl_irq_domain_alloc() -> get_count_order()

Type Parameter Key Value
DATA_SOURCE 0 count $2
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 count
LOCK2 &msi->lock
HALF_LOCKED2 &domain->root->mutex
TYPE_LOCK (struct nwl_msi)->lock

drivers/pci/controller/pcie-xilinx-nwl.c nwl_irq_domain_free() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1
DATA_SOURCE 0 count $2
RX_PATH
TASK_NOT_RUNNING
LOCK2 &msi->lock
HALF_LOCKED2 &domain->root->mutex
TYPE_LOCK (struct nwl_msi)->lock

drivers/input/keyboard/pinephone-keyboard.c ppkb_update() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 12
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 _T->lock
HALF_LOCKED2 irq

drivers/pci/controller/pcie-xilinx-dma-pl.c xilinx_irq_domain_alloc() -> get_count_order()

Type Parameter Key Value
DATA_SOURCE 0 count $2
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 count
LOCK2 &msi->lock
HALF_LOCKED2 &domain->root->mutex
TYPE_LOCK (struct xilinx_msi)->lock

drivers/pci/controller/pcie-xilinx-dma-pl.c xilinx_irq_domain_free() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1
DATA_SOURCE 0 count $2
RX_PATH
TASK_NOT_RUNNING
LOCK2 &msi->lock
HALF_LOCKED2 &domain->root->mutex
TYPE_LOCK (struct xilinx_msi)->lock

drivers/input/keyboard/adp5585-keys.c adp5585_keys_parse_fw() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1-u32max
RX_PATH
TASK_NOT_RUNNING

drivers/infiniband/hw/mlx4/main.c mlx4_ib_steer_qp_alloc() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1
DATA_SOURCE 0 count $1
RX_PATH
TASK_NOT_RUNNING

drivers/infiniband/hw/mlx4/main.c mlx4_ib_steer_qp_free() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1
DATA_SOURCE 0 count $2
RX_PATH
TASK_NOT_RUNNING

drivers/input/keyboard/max7360-keypad.c max7360_keypad_irq() -> get_count_order()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/input/keyboard/tca8418_keypad.c tca8418_keypad_probe() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1-10
RX_PATH
TASK_NOT_RUNNING

arch/x86/kernel/cpu/topology_common.c parse_legacy() -> get_count_order()

Type Parameter Key Value
DATA_SOURCE 0 count r parse_num_cores_legacy
HALF_LOCKED2 irq

arch/x86/kernel/cpu/topology_common.c parse_topology() -> get_count_order()

Type Parameter Key Value
HALF_LOCKED2 irq

drivers/dma/dmaengine.c __get_unmap_pool() -> get_count_order()

Type Parameter Key Value
CAPPED_DATA 0 count 1
DATA_SOURCE 0 count $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 0 count unit_byte
HALF_LOCKED2 &pool->lock

arch/x86/kernel/cpu/cacheinfo.c __cache_cpumap_setup() -> get_count_order()

Type Parameter Key Value
BIT_INFO 0 count 0x1,0x1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &cpuhp_state_mutex
HALF_LOCKED2 irq

arch/x86/kernel/cpu/cacheinfo.c calc_cache_topo_id() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1

arch/x86/kernel/cpu/cacheinfo.c get_cache_id() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 irq

drivers/clk/pistachio/clk.c pistachio_clk_register_mux() -> get_count_order()

Type Parameter Key Value

drivers/input/keyboard/lpc32xx-keys.c lpc32xx_parse_dt() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1-u32max
CAPPED_DATA 0 count 1
RX_PATH
TASK_NOT_RUNNING

drivers/iio/adc/pac1934.c pac1934_reg_snapshot() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 8,64,256,1024
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock

lib/tests/bitops_kunit.c test_get_count_order() -> get_count_order()

Type Parameter Key Value

drivers/input/keyboard/mt6779-keypad.c mt6779_keypad_irq_handler() -> get_count_order()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/gpio/gpio-adnp.c adnp_gpio_setup() -> get_count_order()

Type Parameter Key Value
DATA_SOURCE 0 count $1
RX_PATH
TASK_NOT_RUNNING

drivers/input/keyboard/omap4-keypad.c omap4_keypad_probe() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1-u32max
RX_PATH
TASK_NOT_RUNNING

lib/sg_pool.c sg_pool_index() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 9-128
CAPPED_DATA 0 count 1
DATA_SOURCE 0 count $0
FUZZY_MAX 0 count 9
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 count 9-128[c]
USER_DATA 0 count 9-128[c]
UNITS 0 count unit_array_size

fs/compat_binfmt_elf.c rseq_alloc_align() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 33

drivers/input/keyboard/adp5588-keys.c adp5588_fw_parse() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1-10
RX_PATH
TASK_NOT_RUNNING

drivers/spi/spi-img-spfi.c img_spfi_config() -> get_count_order()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &host->io_mutex
HALF_LOCKED2 &host->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex

drivers/infiniband/hw/irdma/hw.c irdma_initialize_hw_rsrc() -> get_count_order()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

drivers/infiniband/hw/irdma/hw.c irdma_initialize_hw_rsrc() -> get_count_order()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/vmwgfx/vmwgfx_irq.c vmw_irq_install() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 64
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

drivers/input/keyboard/pxa27x_keypad.c pxa27x_keypad_matrix_key_parse() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1-8
RX_PATH
TASK_NOT_RUNNING

drivers/auxdisplay/ht16k33.c ht16k33_keypad_probe() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1-3
RX_PATH
TASK_NOT_RUNNING

drivers/input/keyboard/cros_ec_keyb.c cros_ec_keyb_register_matrix() -> get_count_order()

Type Parameter Key Value
PARAM_VALUE 0 count 1-18
RX_PATH
TASK_NOT_RUNNING
UNITS 0 count unit_byte

drivers/input/keyboard/bcm-keypad.c bcm_kp_get_keycode() -> get_count_order()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 _T->lock