Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 17 files:
- drivers/acpi/cppc_acpi.c
- drivers/gpu/drm/i915/display/intel_link_bw.c
- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c, line 268
- drivers/gpu/drm/xe/xe_gt_debugfs.c, line 360
- drivers/hwmon/ltc4282.c
- drivers/iio/common/hid-sensors/hid-sensor-attributes.c
- drivers/iio/common/scmi_sensors/scmi_iio.c
- drivers/iio/industrialio-core.c, line 724
- drivers/infiniband/hw/hns/hns_roce_mr.c, line 962
- drivers/md/md.c, line 3985
- drivers/net/ethernet/mellanox/mlx5/core/lib/tout.c, line 72
- drivers/thermal/k3_j72xx_bandgap.c
- drivers/usb/storage/usb.c, line 131
- fs/resctrl/ctrlmondata.c, line 662
- lib/kstrtox.c, line 432
- lib/math/int_pow.c, line 32
- lib/math/tests/int_pow_kunit.c
Smatch caller information:
drivers/usb/storage/usb.c format_delay_ms() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 3 |
| DATA_SOURCE | 1 | exp | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex |
drivers/infiniband/hw/hns/hns_roce_mr.c cal_pages_per_l1ba() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| CAPPED_DATA | 0 | base | 1 |
| DATA_SOURCE | 0 | base | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/md/md.c strict_strtoul_scaled() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-4 |
| CAPABLE | 0 | 21 | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c dw_mipi_dsi_clk_recalc_rate() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 2 |
| PARAM_VALUE | 1 | exp | 0-3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | exp | 0-3[c] |
| HALF_LOCKED2 | clk |
drivers/acpi/cppc_acpi.c cppc_get_auto_act_window() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-7 |
| HOST_DATA | 1 | exp | 0-7 |
drivers/acpi/cppc_acpi.c cppc_set_auto_act_window() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 7 |
drivers/hwmon/ltc4282.c ltc4282_read_power_byte() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 255 |
| PARAM_VALUE | 1 | exp | 2 |
| 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/hwmon/ltc4282.c ltc4282_read_power_word() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | u16max |
| PARAM_VALUE | 1 | exp | 2 |
| 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/hwmon/ltc4282.c ltc4282_write_power_byte() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 255 |
| PARAM_VALUE | 1 | exp | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/hwmon/ltc4282.c ltc4282_write_power_word() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | u16max |
| PARAM_VALUE | 1 | exp | 2 |
| 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/gpu/drm/xe/xe_gt_debugfs.c u1_15_decode_decimal() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 4 |
| DATA_SOURCE | 1 | exp | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &s->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/iio/common/hid-sensors/hid-sensor-attributes.c adjust_exponent_nano() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 1-7 |
| DATA_SOURCE | 1 | exp | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/common/hid-sensors/hid-sensor-attributes.c adjust_exponent_nano() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 2-8 |
| CAPPED_DATA | 1 | exp | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/common/hid-sensors/hid-sensor-attributes.c adjust_exponent_nano() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-6 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/common/hid-sensors/hid-sensor-attributes.c adjust_exponent_nano() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 1-7 |
| CAPPED_DATA | 1 | exp | 1 |
| DATA_SOURCE | 1 | exp | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/common/hid-sensors/hid-sensor-attributes.c adjust_exponent_nano() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 1-9 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/common/hid-sensors/hid-sensor-attributes.c adjust_exponent_nano() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 1-8 |
| CAPPED_DATA | 1 | exp | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/common/hid-sensors/hid-sensor-attributes.c adjust_exponent_nano() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-7,4294967288-u32max |
| CAPPED_DATA | 1 | exp | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/common/hid-sensors/hid-sensor-attributes.c adjust_exponent_nano() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-8 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/common/hid-sensors/hid-sensor-attributes.c convert_from_vtf_format() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-7 |
| DATA_SOURCE | 1 | exp | $2 [m] |
| PARAM_COMPARE | 1 | exp | == $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/iio/common/hid-sensors/hid-sensor-attributes.c convert_to_vtf_format() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-5,2147483654-u32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/iio/common/hid-sensors/hid-sensor-attributes.c convert_to_vtf_format() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/iio/common/hid-sensors/hid-sensor-attributes.c convert_to_vtf_format() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-7 |
| DATA_SOURCE | 1 | exp | $1 [m] |
| PARAM_COMPARE | 1 | exp | == $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/iio/common/hid-sensors/hid-sensor-attributes.c simple_div() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/iio/common/hid-sensors/hid-sensor-attributes.c split_micro_fraction() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 1-s32max |
| DATA_SOURCE | 1 | exp | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/iio/common/hid-sensors/hid-sensor-attributes.c split_micro_fraction() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/gpu/drm/i915/display/intel_link_bw.c str_to_fxp_q4_nonneg() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-9 |
| CAPPED_DATA | 1 | exp | 1 |
| DATA_SOURCE | 1 | exp | r __fortify_strlen |
drivers/gpu/drm/i915/display/intel_link_bw.c str_to_fxp_q4_nonneg() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-9 |
| CAPPED_DATA | 1 | exp | 1 |
| DATA_SOURCE | 1 | exp | r __fortify_strlen |
drivers/thermal/k3_j72xx_bandgap.c compute_value() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 0-1023 |
| PARAM_VALUE | 1 | exp | 0-4 |
| CAPPED_DATA | 1 | exp | 1 |
| DATA_SOURCE | 0 | base | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/thermal/k3_j72xx_bandgap.c compute_value() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 13 |
| DATA_SOURCE | 1 | exp | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/common/scmi_sensors/scmi_iio.c scmi_iio_convert_interval_to_ns() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/common/scmi_sensors/scmi_iio.c scmi_iio_convert_interval_to_ns() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/common/scmi_sensors/scmi_iio.c scmi_iio_get_odr_val() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/iio/common/scmi_sensors/scmi_iio.c scmi_iio_get_odr_val() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/iio/common/scmi_sensors/scmi_iio.c scmi_iio_get_raw_available() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 1-127 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/common/scmi_sensors/scmi_iio.c scmi_iio_get_raw_available() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-127 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iio/common/scmi_sensors/scmi_iio.c scmi_iio_read_raw() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 1-127 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/iio/common/scmi_sensors/scmi_iio.c scmi_iio_read_raw() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-127 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/iio/common/scmi_sensors/scmi_iio.c scmi_iio_sensor_update_cb() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 1-127 |
drivers/iio/common/scmi_sensors/scmi_iio.c scmi_iio_sensor_update_cb() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-127 |
drivers/iio/common/scmi_sensors/scmi_iio.c scmi_iio_set_odr_val() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-30,u32max |
| CAPPED_DATA | 1 | exp | 1 |
| BIT_INFO | 1 | exp | 0x0,0x1f |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &sensor->lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| TYPE_LOCK | (struct scmi_iio_priv)->lock |
drivers/iio/industrialio-core.c __iio_format_value() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 3,6,9,12,15 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex |
fs/resctrl/ctrlmondata.c print_event_value() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 1-9 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| LOCK2 | global &rdtgroup_mutex | ||
| TYPE_LOCK | (struct seq_file)->lock |
lib/kstrtox.c _kstrtoudec64() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-19 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
lib/kstrtox.c _kstrtoudec64() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 10 |
| PARAM_VALUE | 1 | exp | 0-19 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
lib/math/tests/int_pow_kunit.c int_pow_test() -> int_pow()
| Type | Parameter | Key | Value |
|---|
drivers/net/ethernet/mellanox/mlx5/core/lib/tout.c tout_convert_reg_field_to_ms() -> int_pow()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | base | 60 |
| PARAM_VALUE | 1 | exp | 0-2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | exp | 0-2[c] |
| HALF_LOCKED2 | &dev->intf_state_mutex | ||
| HALF_LOCKED2 | &devlink->lock |