Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/extcon/extcon-usbc-tusb320.c, line 360
- drivers/usb/typec/anx7411.c, line 475
- drivers/usb/typec/class.c, line 2507
- drivers/usb/typec/tcpm/tcpm.c, line 1234
- drivers/usb/typec/tipd/core.c
- drivers/usb/typec/ucsi/ucsi.c
Smatch caller information:
drivers/usb/typec/ucsi/ucsi.c ucsi_partner_change() -> typec_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 6 |
| NOCHECK_CALL | |||
| LOCK2 | &con->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ucsi_connector)->lock |
drivers/usb/typec/ucsi/ucsi.c ucsi_partner_change() -> typec_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 5 |
| NOCHECK_CALL | |||
| LOCK2 | &con->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ucsi_connector)->lock |
drivers/usb/typec/ucsi/ucsi.c ucsi_partner_change() -> typec_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 1 |
| NOCHECK_CALL | |||
| LOCK2 | &con->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ucsi_connector)->lock |
drivers/usb/typec/ucsi/ucsi.c ucsi_unregister_partner() -> typec_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &con->lock |
drivers/usb/typec/tipd/core.c cd321x_register_port() -> typec_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->con.attach | 1324651618066358272 |
| PARAM_VALUE | 0 | port->con.deattach | 4650986530451238912 |
| PARAM_VALUE | 0 | port->dev.dma_io_tlb_mem->dyn_alloc.data.counter | 9007199250546704 |
| PARAM_VALUE | 0 | port->dev.dma_io_tlb_mem->dyn_alloc.entry.prev | 1473117533515866344 |
| PARAM_VALUE | 0 | port->dev.dma_io_tlb_mem->dyn_alloc.func | 1583282886040592384 |
| PARAM_VALUE | 0 | port->dev.dma_io_tlb_mem->pools.prev | 1473117533515866320 |
| PARAM_VALUE | 0 | port->dev.fwnode->dev->power.set_latency_tolerance | 5740181548905971712 |
| PARAM_VALUE | 0 | port->dev.kobj.release.timer.is_hard | 0-1 |
| PARAM_VALUE | 0 | port->dev.kobj.release.timer.is_lazy | 0-1 |
| PARAM_VALUE | 0 | port->dev.kobj.release.timer.is_queued | 0-1 |
| PARAM_VALUE | 0 | port->dev.kobj.release.timer.is_soft | 0-1 |
| PARAM_VALUE | 0 | port->dev.kobj.sd->active.counter | (-2147483647) |
| PARAM_VALUE | 0 | port->dev.kobj.sd->attr.notify_next | 0,426918848001064960 |
| PARAM_VALUE | 0 | port->dev.p->klist_children.get | 2213798222526185472 |
| PARAM_VALUE | 0 | port->dev.p->klist_children.put | 3126867300421632000 |
| PARAM_VALUE | 0 | port->dev.p->knode_bus.n_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | port->dev.p->knode_class.n_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | port->dev.p->knode_parent.n_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | port->dev.parent->kobj.release.wq->dfl_pwq | 0-s64max |
| PARAM_VALUE | 0 | port->dev.parent->kobj.release.wq->saved_max_active | s32min-s32max |
| PARAM_VALUE | 0 | port->dev.parent->kobj.release.wq->saved_min_active | s32min-s32max |
| PARAM_VALUE | 0 | port->id | 0-s32max |
| PARAM_VALUE | 0 | port->mode_ids.xa.xa_flags | 33554437 |
| PARAM_VALUE | 0 | port->mode_ids.xa.xa_head | 0 |
| PARAM_VALUE | 0 | port->ops | 8641788855459565568 |
| PARAM_VALUE | 0 | port->ops->dr_set | 4794790602804273152 |
| PARAM_VALUE | 0 | port->ops->pr_set | 7964579725448462336 |
| PARAM_VALUE | 0 | port->partner_link_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->pd | 0 |
| PARAM_VALUE | 0 | port->port_type | 0-2 |
| PARAM_VALUE | 0 | port->port_type_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->port_type_lock.first_waiter | 0 |
| PARAM_VALUE | 0 | port->port_type_lock.owner.counter | 0 |
| PARAM_VALUE | 0 | port->prefer_role | (-1) |
| PARAM_VALUE | 1 | mode | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/typec/tipd/core.c cd321x_update_work() -> typec_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 0 |
| NOCHECK_CALL | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &pool->lock |
drivers/usb/typec/tipd/core.c tps6598x_connect() -> typec_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->vconn_role | 0-1 |
| PARAM_VALUE | 1 | mode | 1 |
| CAPPED_DATA | 0 | port->pwr_opmode | 1 |
| CAPPED_DATA | 0 | port->pwr_role | 1 |
| CAPPED_DATA | 0 | port->sw->num_sw_devs | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &tps->lock |
drivers/usb/typec/tipd/core.c tps6598x_disconnect() -> typec_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->vconn_role | 0-1 |
| PARAM_VALUE | 1 | mode | 0 |
| CAPPED_DATA | 0 | port->pwr_opmode | 1 |
| CAPPED_DATA | 0 | port->pwr_role | 1 |
| CAPPED_DATA | 0 | port->sw->num_sw_devs | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &tps->lock |
drivers/usb/typec/anx7411.c anx7411_set_mux() -> typec_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mode | 0,2-3 |
| FUZZY_MAX | 1 | mode | 3 |
| HARD_MAX | 1 | mode | 3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ctx->lock |
drivers/usb/typec/tcpm/tcpm.c tcpm_mux_set() -> typec_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->dev.kobj.kref.refcount.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | port->dev.kobj.release.cpu | s32min-s32max |
| PARAM_VALUE | 0 | port->dev.kobj.release.timer.flags | 0-4294967295 |
| PARAM_VALUE | 0 | port->dev.kobj.state_add_uevent_sent | 0-1 |
| PARAM_VALUE | 0 | port->dev.kobj.state_in_sysfs | 0-1 |
| PARAM_VALUE | 0 | port->dev.kobj.state_initialized | 0-1 |
| PARAM_VALUE | 0 | port->dev.kobj.state_remove_uevent_sent | 0-1 |
| PARAM_VALUE | 0 | port->dev.kobj.uevent_suppress | 0-1 |
| PARAM_VALUE | 0 | port->orientation | 0-2 |
| PARAM_VALUE | 1 | mode | 0-1,5-6 |
| CAPPED_DATA | 0 | port->sw->num_sw_devs | 1 |
| DATA_SOURCE | 1 | mode | $1 |
| FUZZY_MAX | 1 | mode | 6 |
| HARD_MAX | 1 | mode | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/extcon/extcon-usbc-tusb320.c tusb320_typec_irq_handler() -> typec_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->data_role | 0-1 |
| PARAM_VALUE | 0 | port->vconn_role | 0-1 |
| PARAM_VALUE | 1 | mode | 2,5-6 |
| CAPPED_DATA | 0 | port->pwr_role | 1 |
| CAPPED_DATA | 0 | port->sw->num_sw_devs | 1 |
| FUZZY_MAX | 1 | mode | 6 |
| HARD_MAX | 1 | mode | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |