Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/perf/arm-cmn.c arm_cmn_event_clear() -> arm_cmn_get_assigned_wp_idx()

Type Parameter Key Value
PARAM_VALUE 0 event 4096-ptr_max
PARAM_VALUE 1 hw 4096-ptr_max
PARAM_VALUE 1 hw->dn 4096-ptr_max
PARAM_VALUE 1 hw->dtm_idx 4096-ptr_max
BUF_SIZE 1 hw 208
BUF_SIZE 1 hw 208
DATA_SOURCE 0 event $1
DATA_SOURCE 1 hw r to_cmn_hw
DATA_SOURCE 2 pos $2 [m]

drivers/perf/arm-cmn.c arm_cmn_event_start() -> arm_cmn_get_assigned_wp_idx()

Type Parameter Key Value
PARAM_VALUE 0 event 4096-ptr_max
PARAM_VALUE 1 hw 4096-ptr_max
PARAM_VALUE 1 hw->num_dns 1-255
PARAM_VALUE 2 pos 0-254
BUF_SIZE 1 hw 208
BUF_SIZE 1 hw 208
CAPPED_DATA 2 pos 1
DATA_SOURCE 0 event $0
DATA_SOURCE 1 hw r to_cmn_hw
PARAM_COMPARE 1 hw->num_dns > $2
PARAM_COMPARE 2 pos < $1->num_dns

drivers/perf/arm-cmn.c arm_cmn_event_stop() -> arm_cmn_get_assigned_wp_idx()

Type Parameter Key Value
PARAM_VALUE 0 event 4096-ptr_max
PARAM_VALUE 1 hw 4096-ptr_max
PARAM_VALUE 1 hw->num_dns 1-255
PARAM_VALUE 2 pos 0-254
BUF_SIZE 1 hw 208
BUF_SIZE 1 hw 208
CAPPED_DATA 2 pos 1
DATA_SOURCE 0 event $0
DATA_SOURCE 1 hw r to_cmn_hw
PARAM_COMPARE 1 hw->num_dns > $2
PARAM_COMPARE 2 pos < $1->num_dns