Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 10 files:

Smatch caller information:

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

Type Parameter Key Value
PARAM_VALUE 1 orientation 1-2
FUZZY_MAX 1 orientation 2
HARD_MAX 1 orientation 2
RX_PATH
TASK_NOT_RUNNING

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

Type Parameter Key Value
PARAM_VALUE 1 orientation 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/extcon/extcon-ptn5150.c ptn5150_check_state() -> typec_switch_set()

Type Parameter Key Value
PARAM_VALUE 1 orientation 0-2
BUF_SIZE 0 sw (-1)-0,32
BUF_SIZE 0 sw (-1)-0,32
FUZZY_MAX 1 orientation 2
HARD_MAX 1 orientation 2
RX_PATH
TASK_NOT_RUNNING
LOCK2 &info->mutex
TYPE_LOCK (struct ptn5150_info)->mutex

drivers/extcon/extcon-ptn5150.c ptn5150_irq_work() -> typec_switch_set()

Type Parameter Key Value
PARAM_VALUE 1 orientation 0
LOCK2 &info->mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct ptn5150_info)->mutex

drivers/soc/qcom/pmic_glink_altmode.c pmic_glink_altmode_worker() -> typec_switch_set()

Type Parameter Key Value
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/usb/typec/mux/wcd939x-usbss.c wcd939x_usbss_switch_set() -> typec_switch_set()

Type Parameter Key Value
DATA_SOURCE 1 orientation $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &info->mutex

drivers/usb/typec/mux/ps883x.c ps883x_sw_set() -> typec_switch_set()

Type Parameter Key Value
DATA_SOURCE 1 orientation $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &info->mutex

drivers/usb/typec/mux/ptn36502.c ptn36502_sw_set() -> typec_switch_set()

Type Parameter Key Value
DATA_SOURCE 1 orientation $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &info->mutex

drivers/usb/typec/mux/nb7vpq904m.c nb7vpq904m_sw_set() -> typec_switch_set()

Type Parameter Key Value
DATA_SOURCE 1 orientation $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &info->mutex

drivers/usb/typec/class.c typec_set_orientation() -> typec_switch_set()

Type Parameter Key Value
DATA_SOURCE 1 orientation $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &con->lock
HALF_LOCKED2 _T->lock

sound/soc/codecs/wcd939x.c wcd939x_swap_gnd_mic() -> typec_switch_set()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-u64max
PARAM_VALUE 1 orientation 1-2
FUZZY_MAX 1 orientation 2
HARD_MAX 1 orientation 2
NOCHECK_CALL
HALF_LOCKED2 &pool->lock