Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 13 files:
- drivers/extcon/extcon-rtk-type-c.c
- drivers/extcon/extcon-usbc-tusb320.c, line 359
- drivers/gpu/drm/bridge/analogix/anx7625.c, line 1592
- drivers/platform/chrome/cros_ec_typec.c
- drivers/usb/typec/anx7411.c, line 497
- drivers/usb/typec/class.c, line 2287
- drivers/usb/typec/hd3ss3220.c
- drivers/usb/typec/rt1719.c, line 205
- drivers/usb/typec/stusb160x.c, line 341
- drivers/usb/typec/tcpm/tcpm.c, line 1368
- drivers/usb/typec/tipd/core.c
- drivers/usb/typec/ucsi/ucsi.c
- drivers/usb/typec/wusb3801.c, line 285
Smatch caller information:
drivers/usb/typec/stusb160x.c stusb160x_set_data_role() -> typec_set_data_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->vconn_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 |
| DATA_SOURCE | 1 | role | $1 |
| FUZZY_MAX | 1 | role | 1 |
| HARD_MAX | 1 | role | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/platform/chrome/cros_ec_typec.c cros_typec_perform_role_swap() -> typec_set_data_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cap->data | 2 |
| PARAM_VALUE | 0 | port->ops->dr_set | 434805370254917632,2594394751384051712,4794790602804273152,5396003677776818176,6121032334441897984,6348138530173440000,6620086623342305280 |
| PARAM_VALUE | 0 | port->port_type_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->port_type_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | port->port_type_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | port->port_type_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | port->port_type_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->port_type_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | port->port_type_lock.wait_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 1 | role | 0-1 |
| CAPPED_DATA | 1 | role | 1 |
| DATA_SOURCE | 0 | port | $0 |
| DATA_SOURCE | 1 | role | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | 0 | &port->port_type_lock | |
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct typec_port)->port_type_lock |
drivers/platform/chrome/cros_ec_typec.c cros_typec_set_port_params_v1() -> typec_set_data_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/extcon/extcon-rtk-type-c.c switch_type_c_dr_mode() -> typec_set_data_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 1-u64max |
| PARAM_VALUE | 1 | role | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &port->port_type_lock |
drivers/extcon/extcon-rtk-type-c.c switch_type_c_dr_mode() -> typec_set_data_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 1-u64max |
| PARAM_VALUE | 1 | role | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &port->port_type_lock |
drivers/usb/typec/ucsi/ucsi.c ucsi_partner_change() -> typec_set_data_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | role | 1 |
| 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_data_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | role | 0 |
| NOCHECK_CALL | |||
| LOCK2 | &con->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ucsi_connector)->lock |
drivers/usb/typec/ucsi/ucsi.c ucsi_register_port() -> typec_set_data_role()
| 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.sd->active.counter | (-2147483647) |
| PARAM_VALUE | 0 | port->dev.kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| 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.physical_location->horizontal_position | 0-3 |
| PARAM_VALUE | 0 | port->dev.physical_location->panel | 0-7 |
| PARAM_VALUE | 0 | port->dev.physical_location->vertical_position | 0-3 |
| 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 | 5957840909489545216 |
| PARAM_VALUE | 0 | port->ops->dr_set | 6348138530173440000 |
| PARAM_VALUE | 0 | port->ops->pr_set | 5019105706942029824 |
| PARAM_VALUE | 0 | port->partner_link_lock.dep_map->name | 0-255 |
| 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 | role | 1 |
| BUF_SIZE | 0 | port | 2136 |
| BUF_SIZE | 0 | port | 2136 |
| DATA_SOURCE | 0 | port | r typec_register_port |
| NOCHECK_CALL | |||
| LOCK2 | &con->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ucsi_connector)->lock |
drivers/usb/typec/ucsi/ucsi.c ucsi_register_port() -> typec_set_data_role()
| 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.sd->active.counter | (-2147483647) |
| PARAM_VALUE | 0 | port->dev.kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| 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.physical_location->horizontal_position | 0-3 |
| PARAM_VALUE | 0 | port->dev.physical_location->panel | 0-7 |
| PARAM_VALUE | 0 | port->dev.physical_location->vertical_position | 0-3 |
| 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 | 5957840909489545216 |
| PARAM_VALUE | 0 | port->ops->dr_set | 6348138530173440000 |
| PARAM_VALUE | 0 | port->ops->pr_set | 5019105706942029824 |
| PARAM_VALUE | 0 | port->partner_link_lock.dep_map->name | 0-255 |
| 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 | role | 0 |
| BUF_SIZE | 0 | port | 2136 |
| BUF_SIZE | 0 | port | 2136 |
| DATA_SOURCE | 0 | port | r typec_register_port |
| NOCHECK_CALL | |||
| LOCK2 | &con->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ucsi_connector)->lock |
drivers/usb/typec/hd3ss3220.c hd3ss3220_set_role() -> typec_set_data_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | role | 1 |
| BUF_SIZE | 0 | port | (-1),2136 |
| BUF_SIZE | 0 | port | (-1),2136 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/typec/hd3ss3220.c hd3ss3220_set_role() -> typec_set_data_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | role | 0 |
| BUF_SIZE | 0 | port | (-1),2136 |
| BUF_SIZE | 0 | port | (-1),2136 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/typec/rt1719.c rt1719_set_data_role() -> typec_set_data_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | role | 0-1 |
| BUF_SIZE | 0 | port | (-1),2136 |
| BUF_SIZE | 0 | port | (-1),2136 |
| CAPPED_DATA | 1 | role | 1 |
| DATA_SOURCE | 1 | role | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &port->port_type_lock |
drivers/usb/typec/tipd/core.c cd321x_update_work() -> typec_set_data_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->vconn_role | 0-1 |
| PARAM_VALUE | 1 | role | 0-1 |
| CAPPED_DATA | 0 | port->pwr_opmode | 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 |
| NOCHECK_CALL | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &pool->lock |
drivers/usb/typec/tipd/core.c tps6598x_set_data_role() -> typec_set_data_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | role | 0-1 |
| CAPPED_DATA | 1 | role | 1 |
| DATA_SOURCE | 1 | role | $1 |
| FUZZY_MAX | 1 | role | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &port->port_type_lock | ||
| HALF_LOCKED2 | &tps->lock |
drivers/usb/typec/anx7411.c anx7411_data_role_detect() -> typec_set_data_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| 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_roles() -> typec_set_data_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 |
| DATA_SOURCE | 1 | role | $4 |
| FUZZY_MAX | 1 | role | 1 |
| HARD_MAX | 1 | role | 1 |
| NOCHECK_CALL |
drivers/extcon/extcon-usbc-tusb320.c tusb320_typec_irq_handler() -> typec_set_data_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->vconn_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/gpu/drm/bridge/analogix/anx7625.c anx7625_typec_set_status() -> typec_set_data_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_data_role()
| Type | Parameter | Key | Value |
|---|---|---|---|
| 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 |