Documented in 1 files:

Defined in 1 files as a function:

Referenced in 7 files:

Smatch caller information:

drivers/thunderbolt/usb4.c usb4_switch_setup() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
PARAM_VALUE 0 sw->config.cmuv 16,32
PARAM_VALUE 0 sw->dev.parent 4096-ptr_max
BUF_SIZE 0 sw (-1),1968
BUF_SIZE 0 sw (-1),1968
BUF_SIZE 0 sw->dev.parent (-1),1616
BUF_SIZE 0 sw->tb (-1),2304,3616
DATA_SOURCE 0 sw $0
FUZZY_MAX 0 sw->config.cmuv 32
BIT_INFO 0 sw->config.cmuv 0x0,0x30
HARD_MAX 0 sw->config.cmuv 32
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/switch.c tb_switch_asym_disable() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
PARAM_VALUE 0 sw->link_width 4,8
CAPPED_DATA 0 sw 1
DATA_SOURCE 0 sw $0
BIT_INFO 0 sw->link_width 0x0,0xc
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/switch.c tb_switch_asym_enable() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
CAPPED_DATA 0 sw 1
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/switch.c tb_switch_lane_bonding_disable() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
CAPPED_DATA 0 sw 1
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/switch.c tb_switch_lane_bonding_enable() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
CAPPED_DATA 0 sw 1
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/switch.c tb_switch_link_init() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
PARAM_VALUE 0 sw->dev.parent 4096-ptr_max
BUF_SIZE 0 sw (-1),1968
BUF_SIZE 0 sw (-1),1968
BUF_SIZE 0 sw->dev.parent (-1),1616
BUF_SIZE 0 sw->tb (-1),2304,3616
CAPPED_DATA 0 sw->config.max_port_number 1
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/switch.c tb_switch_reset_device() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
BUF_SIZE 0 sw (-1),1968
BUF_SIZE 0 sw (-1),1968
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &tb->lock
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/switch.c tb_switch_set_link_width() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
BUF_SIZE 0 sw (-1),1968
BUF_SIZE 0 sw (-1),1968
CAPPED_DATA 0 sw 1
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/icm.c remove_switch() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 1-u64max
DATA_SOURCE 0 sw $0
LOCK2 &tb->lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/icm.c update_switch() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
PARAM_VALUE 0 sw->dev.parent 4096-ptr_max
DATA_SOURCE 0 sw $0
LOCK2 &tb->lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/tb.c tb_configure_asym() -> tb_switch_downstream_port()

Type Parameter Key Value
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tb->lock
HALF_LOCKED2 &tb->lock
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/tb.c tb_tunnel_pci() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
PARAM_VALUE 0 sw->dev.parent 4096-ptr_max
PARAM_VALUE 0 sw->dev.parent->type 4096-ptr_max
DATA_SOURCE 0 sw $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 &tb->lock
LOCK2 0 &sw->tb->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/tb.c tb_tunnel_usb3() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
PARAM_VALUE 0 sw->dev.parent 4096-ptr_max
BUF_SIZE 0 sw (-1),1968
BUF_SIZE 0 sw (-1),1968
DATA_SOURCE 0 sw $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/acpi.c tb_acpi_switch_find_companion() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
PARAM_VALUE 0 sw->dev.parent 4096-ptr_max
PARAM_VALUE 0 sw->dev.parent->type 4096-ptr_max
DATA_SOURCE 0 sw $0

drivers/thunderbolt/tmu.c tb_switch_tmu_change_mode() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
BUF_SIZE 0 sw (-1),1968
BUF_SIZE 0 sw (-1),1968
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tmu.c tb_switch_tmu_change_mode_prev() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tmu.c tb_switch_tmu_disable() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
BUF_SIZE 0 sw (-1),1968
BUF_SIZE 0 sw (-1),1968
CAPPED_DATA 0 sw 1
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tmu.c tb_switch_tmu_enable_bidirectional() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
BUF_SIZE 0 sw (-1),1968
BUF_SIZE 0 sw (-1),1968
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tmu.c tb_switch_tmu_enable_enhanced() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
BUF_SIZE 0 sw (-1),1968
BUF_SIZE 0 sw (-1),1968
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tmu.c tb_switch_tmu_enable_unidirectional() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
BUF_SIZE 0 sw (-1),1968
BUF_SIZE 0 sw (-1),1968
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tmu.c tb_switch_tmu_off() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/clx.c tb_switch_clx_disable() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/clx.c tb_switch_clx_enable() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
PARAM_VALUE 0 sw->dev.parent 4096-ptr_max
PARAM_VALUE 0 sw->dev.parent->type 4096-ptr_max
BUF_SIZE 0 sw (-1),1968
BUF_SIZE 0 sw (-1),1968
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/clx.c tb_switch_clx_init() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
DATA_SOURCE 0 sw $0

drivers/thunderbolt/clx.c tb_switch_pm_secondary_resolve() -> tb_switch_downstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
PARAM_VALUE 0 sw->dev.parent 4096-ptr_max
PARAM_VALUE 0 sw->dev.parent->type 4096-ptr_max
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 &tb->lock