Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 12 files:

Smatch caller information:

drivers/clocksource/timer-ralink.c clockevents_calc_mult_shift() -> clocks_calc_mult_shift()

Type Parameter Key Value
PARAM_VALUE 0 mult 5799349139259592824
PARAM_VALUE 1 shift 5799349139259592828
PARAM_VALUE 2 from 1000000000
PARAM_VALUE 3 to 50000
PARAM_VALUE 4 maxsec 60
DATA_SOURCE 3 to $1
DATA_SOURCE 4 maxsec $2

kernel/time/clockevents.c clockevents_calc_mult_shift() -> clocks_calc_mult_shift()

Type Parameter Key Value
PARAM_VALUE 0 mult 4096-ptr_max
PARAM_VALUE 1 shift 4096-ptr_max
PARAM_VALUE 2 from 1000000000
DATA_SOURCE 3 to $1
DATA_SOURCE 4 maxsec $2
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 3 to unit_byte
HALF_LOCKED2 flags

drivers/clocksource/dw_apb_timer.c clockevents_calc_mult_shift() -> clocks_calc_mult_shift()

Type Parameter Key Value
PARAM_VALUE 0 mult 4096-ptr_max
PARAM_VALUE 1 shift 4096-ptr_max
PARAM_VALUE 2 from 1000000000
PARAM_VALUE 4 maxsec 4
DATA_SOURCE 3 to $1
DATA_SOURCE 4 maxsec $2

drivers/net/can/rockchip/rockchip_canfd-timestamp.c rkcanfd_timestamp_init() -> clocks_calc_mult_shift()

Type Parameter Key Value
PARAM_VALUE 0 mult 4096-ptr_max
PARAM_VALUE 1 shift 4096-ptr_max
PARAM_VALUE 3 to 1000000000
PARAM_VALUE 4 maxsec 60
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/net/ethernet/ti/cpts.c cpts_calc_mult_shift() -> clocks_calc_mult_shift()

Type Parameter Key Value
PARAM_VALUE 0 mult 4096-ptr_max
PARAM_VALUE 1 shift 4096-ptr_max
PARAM_VALUE 3 to 1000000000
PARAM_VALUE 4 maxsec 1-10
DATA_SOURCE 2 from r clk_get_rate
MEM_ZERO 0 mult
MEM_ZERO 1 shift
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

arch/x86/kernel/cpu/vmware.c vmware_cyc2ns_setup() -> clocks_calc_mult_shift()

Type Parameter Key Value
PARAM_VALUE 0 mult 2599022217279561728
PARAM_VALUE 1 shift 2599022217279561732
PARAM_VALUE 3 to 1000000
PARAM_VALUE 4 maxsec 0
NOCHECK_CALL
LOCK2 irq

kernel/time/timekeeping.c tk_setup_internals() -> clocks_calc_mult_shift()

Type Parameter Key Value
PARAM_VALUE 0 mult 4096-ptr_max
PARAM_VALUE 1 shift 4096-ptr_max
PARAM_VALUE 2 from 1000000
PARAM_VALUE 4 maxsec 3600000
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &tkd->lock
HALF_LOCKED2 _T->lock
HALF_LOCKED2 irq

sound/hda/core/stream.c azx_timecounter_init() -> clocks_calc_mult_shift()

Type Parameter Key Value
PARAM_VALUE 0 mult 4096-ptr_max
PARAM_VALUE 1 shift 4096-ptr_max
PARAM_VALUE 2 from 24000000
PARAM_VALUE 3 to 1000000000
PARAM_VALUE 4 maxsec 178
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &bus->reg_lock
HALF_LOCKED2 &substream->runtime->buffer_mutex
HALF_LOCKED2 &substream->self_group.lock
HALF_LOCKED2 &substream->self_group.mutex
HALF_LOCKED2 _T->lock
TYPE_LOCK (struct hdac_bus)->reg_lock

kernel/time/clocksource.c __clocksource_update_freq_scale() -> clocks_calc_mult_shift()

Type Parameter Key Value
PARAM_VALUE 0 mult 4096-ptr_max
PARAM_VALUE 1 shift 4096-ptr_max
PARAM_VALUE 2 from 1-u32max
PARAM_VALUE 3 to 0-1000000000
DATA_SOURCE 2 from $2
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 from 1-u32max[c]
UNITS 2 from unit_byte
HALF_LOCKED2 global &stm_instances_lock
HALF_LOCKED2 irq

arch/x86/kernel/tsc.c __set_cyc2ns_scale() -> clocks_calc_mult_shift()

Type Parameter Key Value
PARAM_VALUE 0 mult 2657301202293551104
PARAM_VALUE 1 shift 2657301202293551108
PARAM_VALUE 3 to 1000000
PARAM_VALUE 4 maxsec 0
DATA_SOURCE 2 from $0
NOCHECK_CALL
HALF_LOCKED2 flags