Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 11 files:

Smatch caller information:

drivers/platform/chrome/cros_ec_typec.c cros_typec_configure_mux() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->alt 0
PARAM_VALUE 1 state->mode 1
RX_PATH
TASK_NOT_RUNNING

drivers/platform/chrome/cros_ec_typec.c cros_typec_enable_dp() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->data 6276860694747893760
PARAM_VALUE 1 state->mode 0-s32max,18446744071562067968-u64max
RX_PATH
TASK_NOT_RUNNING

drivers/platform/chrome/cros_ec_typec.c cros_typec_enable_tbt() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->data 7639920952270663680
PARAM_VALUE 1 state->mode 2
RX_PATH
TASK_NOT_RUNNING

drivers/platform/chrome/cros_ec_typec.c cros_typec_enable_usb4() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->alt 0
PARAM_VALUE 1 state->data 4715913927973830656
PARAM_VALUE 1 state->mode 4
RX_PATH
TASK_NOT_RUNNING

drivers/platform/chrome/cros_ec_typec.c cros_typec_usb_disconnect_state() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->alt 0
PARAM_VALUE 1 state->data 0
PARAM_VALUE 1 state->mode 1
RX_PATH
TASK_NOT_RUNNING

drivers/platform/chrome/cros_ec_typec.c cros_typec_usb_safe_state() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->mode 0
RX_PATH
TASK_NOT_RUNNING

drivers/soc/qcom/pmic_glink_altmode.c pmic_glink_altmode_enable_dp() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->alt 4096-ptr_max
PARAM_VALUE 1 state->data 5444760522637484032
PARAM_VALUE 1 state->mode 2-257
HALF_LOCKED2 &pool->lock

drivers/soc/qcom/pmic_glink_altmode.c pmic_glink_altmode_enable_tbt() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->alt 4096-ptr_max
PARAM_VALUE 1 state->data 7982912782186844160
PARAM_VALUE 1 state->mode 2-257
HALF_LOCKED2 &pool->lock

drivers/soc/qcom/pmic_glink_altmode.c pmic_glink_altmode_enable_usb() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->alt 0
PARAM_VALUE 1 state->data 0
PARAM_VALUE 1 state->mode 1
HALF_LOCKED2 &pool->lock

drivers/soc/qcom/pmic_glink_altmode.c pmic_glink_altmode_enable_usb4() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->alt 0
PARAM_VALUE 1 state->data 2988543645376913408
PARAM_VALUE 1 state->mode 4
HALF_LOCKED2 &pool->lock

drivers/soc/qcom/pmic_glink_altmode.c pmic_glink_altmode_safe() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->alt 0
PARAM_VALUE 1 state->data 0
PARAM_VALUE 1 state->mode 0
HALF_LOCKED2 &pool->lock

drivers/usb/typec/mux/wcd939x-usbss.c wcd939x_usbss_mux_set() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->mode 0-s32max,18446744071562067968-u64max
BUF_SIZE 1 state->alt (-1),1656
BUF_SIZE 1 state->data (-1),8,12
CAPPED_DATA 1 state->mode 1
DATA_SOURCE 1 state $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 _T->lock

drivers/usb/typec/tipd/core.c cd321x_typec_update_mode() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->alt 0
PARAM_VALUE 1 state->data 0
PARAM_VALUE 1 state->mode 0
NOCHECK_CALL
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/usb/typec/tipd/core.c cd321x_typec_update_mode() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->data 7317417623309742080
PARAM_VALUE 1 state->mode 2-7
NOCHECK_CALL
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/usb/typec/tipd/core.c cd321x_typec_update_mode() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->data 767967222722260992
PARAM_VALUE 1 state->mode 2
NOCHECK_CALL
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/usb/typec/tipd/core.c cd321x_typec_update_mode() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->alt 0
PARAM_VALUE 1 state->data 4403027935141781504
PARAM_VALUE 1 state->mode 4
NOCHECK_CALL
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/usb/typec/tipd/core.c cd321x_typec_update_mode() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->alt 0
PARAM_VALUE 1 state->data 0
PARAM_VALUE 1 state->mode 1
NOCHECK_CALL
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/usb/typec/mux/ps883x.c ps883x_retimer_set() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 177090681633976320
PARAM_VALUE 1 state->alt 0,4096-ptr_max
PARAM_VALUE 1 state->mode 0-s32max,18446744071562067968-u64max
RX_PATH
TASK_NOT_RUNNING

drivers/usb/typec/mux/ptn36502.c ptn36502_retimer_set() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4870111295732916224
PARAM_VALUE 1 state->mode 0-s32max,18446744071562067968-u64max
RX_PATH
TASK_NOT_RUNNING

drivers/usb/typec/ucsi/ucsi_huawei_gaokun.c gaokun_ucsi_handle_usb_mode() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 4096-ptr_max
PARAM_VALUE 1 state->alt 4096-ptr_max
PARAM_VALUE 1 state->mode 0-255

drivers/usb/typec/mux/nb7vpq904m.c nb7vpq904m_retimer_set() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 5971606528051867648
PARAM_VALUE 1 state->mode 0-s32max,18446744071562067968-u64max
RX_PATH
TASK_NOT_RUNNING

drivers/usb/typec/class.c typec_set_mode() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 1 state 3148687124007055360
PARAM_VALUE 1 state->alt 0
PARAM_VALUE 1 state->data 0
PARAM_VALUE 1 state->mode 0-3,5-6
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &con->lock
HALF_LOCKED2 _T->lock

drivers/usb/typec/bus.c typec_altmode_set_mux() -> typec_mux_set()

Type Parameter Key Value
PARAM_VALUE 0 mux 1-u64max
PARAM_VALUE 1 state 1729931538513387520
PARAM_VALUE 1 state->alt 4096-ptr_max
PARAM_VALUE 1 state->data 0,4096-ptr_max
PARAM_VALUE 1 state->mode 0-s32max,18446744071562067968-u64max
RX_PATH
TASK_NOT_RUNNING