Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 9 files:
- drivers/extcon/extcon-usbc-tusb320.c, line 357
- drivers/gpu/drm/bridge/analogix/anx7625.c, line 1600
- drivers/platform/chrome/cros_ec_typec.c, line 862
- drivers/usb/typec/anx7411.c, line 499
- drivers/usb/typec/class.c, line 2337
- drivers/usb/typec/stusb160x.c
- drivers/usb/typec/tcpm/tcpm.c, line 1262
- drivers/usb/typec/tipd/core.c
- drivers/usb/typec/wusb3801.c, line 287
Smatch caller information:
drivers/usb/typec/stusb160x.c stusb160x_attach() -> typec_set_vconn_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->partner_link_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->partner_link_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | port->partner_link_lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->partner_link_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | port->partner_link_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | port->partner_link_lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | port->partner_link_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | port->partner_link_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | port->usb2_dev->kobj.sd->count.counter | s32min-s32max |
| PARAM_VALUE | 0 | port->usb2_dev->kobj.sd->symlink.target_kn->count.counter | s32min-s32max |
| PARAM_VALUE | 0 | port->usb3_dev->kobj.sd->count.counter | s32min-s32max |
| PARAM_VALUE | 0 | port->usb3_dev->kobj.sd->symlink.target_kn->count.counter | s32min-s32max |
| PARAM_VALUE | 1 | role | 0-1 |
| BUF_SIZE | 0 | port | (-1),2136 |
| BUF_SIZE | 0 | port | (-1),2136 |
| CAPPED_DATA | 0 | port->pwr_role | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/typec/stusb160x.c stusb160x_detach() -> typec_set_vconn_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 1 | role | 0-1 |
| CAPPED_DATA | 0 | port->pwr_opmode | 1 |
| CAPPED_DATA | 0 | port->pwr_role | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/platform/chrome/cros_ec_typec.c cros_typec_set_port_params_v1() -> typec_set_vconn_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->data_role | 0-1 |
| PARAM_VALUE | 1 | role | 0-1 |
| CAPPED_DATA | 0 | port->pwr_role | 1 |
| CAPPED_DATA | 0 | port->sw->num_sw_devs | 1 |
| FUZZY_MAX | 1 | role | 1 |
| HARD_MAX | 1 | role | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/typec/tipd/core.c cd321x_update_work() -> typec_set_vconn_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 1 | role | 0-1 |
| CAPPED_DATA | 0 | port->pwr_opmode | 1 |
| CAPPED_DATA | 0 | port->pwr_role | 1 |
| FUZZY_MAX | 1 | role | 1 |
| HARD_MAX | 1 | role | 1 |
| NOCHECK_CALL | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &pool->lock |
drivers/usb/typec/tipd/core.c tps6598x_connect() -> typec_set_vconn_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 1 | role | 0-1 |
| CAPPED_DATA | 0 | port->pwr_opmode | 1 |
| CAPPED_DATA | 0 | port->pwr_role | 1 |
| FUZZY_MAX | 1 | role | 1 |
| HARD_MAX | 1 | role | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &tps->lock |
drivers/usb/typec/tipd/core.c tps6598x_disconnect() -> typec_set_vconn_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 1 | role | 0-1 |
| CAPPED_DATA | 0 | port->pwr_opmode | 1 |
| CAPPED_DATA | 0 | port->pwr_role | 1 |
| FUZZY_MAX | 1 | role | 1 |
| HARD_MAX | 1 | role | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &tps->lock |
drivers/usb/typec/anx7411.c anx7411_data_role_detect() -> typec_set_vconn_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->data_role | 0-1 |
| PARAM_VALUE | 1 | role | 0-1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ctx->lock |
drivers/usb/typec/tcpm/tcpm.c tcpm_set_vconn() -> typec_set_vconn_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | role | 0-1 |
| FUZZY_MAX | 1 | role | 1 |
| HARD_MAX | 1 | role | 1 |
| NOCHECK_CALL |
drivers/extcon/extcon-usbc-tusb320.c tusb320_typec_irq_handler() -> typec_set_vconn_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 1 | role | 0-1 |
| CAPPED_DATA | 0 | port->sw->num_sw_devs | 1 |
| FUZZY_MAX | 1 | role | 1 |
| HARD_MAX | 1 | role | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/bridge/analogix/anx7625.c anx7625_typec_set_status() -> typec_set_vconn_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 1-u64max |
| PARAM_VALUE | 1 | role | 0-1 |
| BUF_SIZE | 0 | port | (-1),2136 |
| BUF_SIZE | 0 | port | (-1),2136 |
| FUZZY_MAX | 1 | role | 1 |
| HARD_MAX | 1 | role | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ctx->lock |
drivers/usb/typec/wusb3801.c wusb3801_hw_update() -> typec_set_vconn_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->data_role | 0-1 |
| PARAM_VALUE | 1 | role | 0-1 |
| BUF_SIZE | 0 | port | (-1),2136 |
| BUF_SIZE | 0 | port | (-1),2136 |
| CAPPED_DATA | 0 | port->pwr_role | 1 |
| CAPPED_DATA | 1 | role | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |