Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- drivers/thunderbolt/debugfs.c, line 1212
- drivers/thunderbolt/switch.c
- drivers/thunderbolt/tb.c, line 756
- drivers/thunderbolt/xdomain.c, line 1337
Smatch caller information:
drivers/thunderbolt/switch.c tb_port_lane_bonding_enable() -> tb_port_get_link_width()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| DATA_SOURCE | 0 | port | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/thunderbolt/switch.c tb_port_lane_bonding_enable() -> tb_port_get_link_width()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/thunderbolt/switch.c tb_port_wait_for_link_width() -> tb_port_get_link_width()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->sw->tb->ctl->frame_pool->dev->cma_area->alloc_mutex.osq.tail.counter | s32min-s32max |
| PARAM_VALUE | 0 | port->sw->tb->ctl->frame_pool->dev->iommu->attach_deferred | 0-1 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->frame_pool->dev->iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->task->blocked_on | 0 |
| CAPPED_DATA | 0 | port | 1 |
| DATA_SOURCE | 0 | port | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &dt->lock |
drivers/thunderbolt/switch.c tb_switch_update_link_attributes() -> tb_port_get_link_width()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cap_phy | s32min-(-1),1-s32max |
| PARAM_VALUE | 0 | port->sw->tb->ctl->frame_pool->dev->cma_area->alloc_mutex.osq.tail.counter | s32min-s32max |
| PARAM_VALUE | 0 | port->sw->tb->ctl->frame_pool->dev->dma_uses_io_tlb | 1 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->frame_pool->dev->iommu->attach_deferred | 0-1 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->frame_pool->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | port->sw->tb->ctl->tx->lock.rlock.dep_map->name | 0-255 |
| DATA_SOURCE | 0 | port | r tb_upstream_port |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &tb->lock |
drivers/thunderbolt/tb.c tb_maximum_bandwidth() -> tb_port_get_link_width()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cap_phy | s32min-(-1),1-s32max |
| PARAM_VALUE | 0 | port->config.type | 1 |
| PARAM_VALUE | 0 | port->port | 1-255 |
| PARAM_VALUE | 0 | port->sw->is_unplugged | 0 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->frame_pool->dev->cma_area->alloc_mutex.osq.tail.counter | s32min-s32max |
| PARAM_VALUE | 0 | port->sw->tb->ctl->frame_pool->dev->dma_uses_io_tlb | 1 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->frame_pool->dev->iommu->attach_deferred | 0-1 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->frame_pool->dev->iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->frame_pool->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | port->sw->tb->ctl->tx->lock.rlock.dep_map->name | 0-255 |
| CAPPED_DATA | 0 | port | 1 |
| DATA_SOURCE | 0 | port | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &tb->lock | ||
| HALF_LOCKED2 | &tb->lock |
drivers/thunderbolt/xdomain.c tb_xdomain_update_link_attributes() -> tb_port_get_link_width()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cap_phy | s32min-(-1),1-s32max |
| PARAM_VALUE | 0 | port->sw->tb->ctl->frame_pool->dev->cma_area->alloc_mutex.osq.tail.counter | s32min-s32max |
| PARAM_VALUE | 0 | port->sw->tb->ctl->frame_pool->dev->dma_uses_io_tlb | 1 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->frame_pool->dev->iommu->attach_deferred | 0-1 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->frame_pool->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | port->sw->tb->ctl->tx->lock.rlock.dep_map->name | 0-255 |
| DATA_SOURCE | 0 | port | r tb_xdomain_downstream_port |
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &dt->lock | ||
| HALF_LOCKED2 | &xd->lock |
drivers/thunderbolt/debugfs.c validate_margining() -> tb_port_get_link_width()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| LOCK2 | &attr->mutex | ||
| LOCK2 | &tb->lock | ||
| TYPE_LOCK | (struct simple_attr)->mutex | ||
| TYPE_LOCK | (struct tb)->lock |