Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/thunderbolt/tb.c tb_alloc_dp_bandwidth() -> tb_tunnel_direction_downstream()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tunnel | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->dst_port | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->dst_port->sw | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->src_port | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->src_port->sw | 4096-ptr_max |
| CAPPED_DATA | 0 | tunnel->dst_port->sw->config.depth | 1 |
| DATA_SOURCE | 0 | tunnel | $0 |
| LOCK2 | &tb->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct tb)->lock |
drivers/thunderbolt/tb.c tb_handle_dp_bandwidth_request() -> tb_tunnel_direction_downstream()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tunnel | 4096-ptr_max |
| DATA_SOURCE | 0 | tunnel | r tb_find_tunnel |
| LOCK2 | &tb->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct tb)->lock |
drivers/thunderbolt/tb.c tb_recalc_estimated_bandwidth_for_group() -> tb_tunnel_direction_downstream()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tunnel | 4096-ptr_max |
| DATA_SOURCE | 0 | tunnel | r tb_find_tunnel |
| LOCK2 | &tb->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct tb)->lock |
drivers/thunderbolt/tunnel.c tb_dp_alloc_bandwidth() -> tb_tunnel_direction_downstream()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tunnel | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->dst_port | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->dst_port->sw | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->src_port | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->src_port->sw | 4096-ptr_max |
| CAPPED_DATA | 0 | tunnel->dst_port->sw->config.depth | 1 |
| DATA_SOURCE | 0 | tunnel | $0 |
| LOCK2 | &tb->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct tb)->lock |
drivers/thunderbolt/tunnel.c tb_dp_allocated_bandwidth() -> tb_tunnel_direction_downstream()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tunnel | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->dst_port | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->dst_port->sw | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->src_port | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->src_port->sw | 4096-ptr_max |
| CAPPED_DATA | 0 | tunnel->dst_port->sw->config.depth | 1 |
| DATA_SOURCE | 0 | tunnel | $0 |
| LOCK2 | &tb->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct tb)->lock |
drivers/thunderbolt/tunnel.c tb_dp_bandwidth_alloc_mode_enable() -> tb_tunnel_direction_downstream()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tunnel | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->dst_port | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->dst_port->sw | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->src_port | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->src_port->sw | 4096-ptr_max |
| BUF_SIZE | 0 | tunnel | (-1),384-392,400 |
| BUF_SIZE | 0 | tunnel | (-1),384-392,400 |
| BUF_SIZE | 0 | tunnel->tb | (-1),2304,3616 |
| CAPPED_DATA | 0 | tunnel->npaths | 1 |
| DATA_SOURCE | 0 | tunnel | $0 |
| STR_LEN | 0 | tunnel->tb | (-1),14,23 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &sw->tb->lock | ||
| HALF_LOCKED2 | &tb->lock |
drivers/thunderbolt/tunnel.c tb_dp_bandwidth_mode_consumed_bandwidth() -> tb_tunnel_direction_downstream()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tunnel | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->src_port | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->src_port->sw | 4096-ptr_max |
| DATA_SOURCE | 0 | tunnel | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &tb->lock |
drivers/thunderbolt/tunnel.c tb_dp_consumed_bandwidth() -> tb_tunnel_direction_downstream()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tunnel | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->src_port | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->src_port->sw | 4096-ptr_max |
| DATA_SOURCE | 0 | tunnel | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &tb->lock |
drivers/thunderbolt/tunnel.c tb_dp_maximum_bandwidth() -> tb_tunnel_direction_downstream()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tunnel | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->dst_port | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->dst_port->sw | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->src_port | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->src_port->sw | 4096-ptr_max |
| CAPPED_DATA | 0 | tunnel->dst_port->sw->config.depth | 1 |
| DATA_SOURCE | 0 | tunnel | $0 |
| LOCK2 | &tb->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct tb)->lock |
drivers/thunderbolt/tunnel.c tb_dp_xchg_caps() -> tb_tunnel_direction_downstream()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tunnel | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->dst_port | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->dst_port->sw | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->src_port | 4096-ptr_max |
| PARAM_VALUE | 0 | tunnel->src_port->sw | 4096-ptr_max |
| BUF_SIZE | 0 | tunnel | (-1),384-392,400 |
| BUF_SIZE | 0 | tunnel | (-1),384-392,400 |
| BUF_SIZE | 0 | tunnel->tb | (-1),2304,3616 |
| CAPPED_DATA | 0 | tunnel->npaths | 1 |
| DATA_SOURCE | 0 | tunnel | $0 |
| STR_LEN | 0 | tunnel->tb | (-1),14,23 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &sw->tb->lock | ||
| HALF_LOCKED2 | &tb->lock |