Documented in 1 files:

Defined in 1 files as a function:

Referenced in 11 files:

Smatch caller information:

drivers/thunderbolt/usb4.c tb_is_upstream_port() -> tb_upstream_port()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/usb4.c usb4_switch_lane_bonding_possible() -> tb_upstream_port()

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

drivers/thunderbolt/switch.c tb_is_upstream_port() -> tb_upstream_port()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/switch.c tb_next_port_on_path() -> tb_upstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

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

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
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_upstream_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_configure_link() -> tb_upstream_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/switch.c tb_switch_lane_bonding_disable() -> tb_upstream_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_upstream_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_possible() -> tb_upstream_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/switch.c tb_switch_link_init() -> tb_upstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
PARAM_VALUE 0 sw->ports 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_set_link_width() -> tb_upstream_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/switch.c tb_switch_unconfigure_link() -> tb_upstream_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_unconfigure_link() -> tb_upstream_port()

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

drivers/thunderbolt/switch.c tb_switch_update_link_attributes() -> tb_upstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 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 1
DATA_SOURCE 0 sw $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/usb4_port.c tb_is_upstream_port() -> tb_upstream_port()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/icm.c add_switch() -> tb_upstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
PARAM_VALUE 0 sw->ports 4096-ptr_max
BUF_SIZE 0 sw 1968
CAPPED_DATA 0 sw->config.max_port_number 1
DATA_SOURCE 0 sw $1
BIT_INFO 0 sw->link_speed 0x0,0x1e
LOCK2 &tb->lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/icm.c add_switch() -> tb_upstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
PARAM_VALUE 0 sw->ports 4096-ptr_max
BUF_SIZE 0 sw 1968
CAPPED_DATA 0 sw->config.max_port_number 1
DATA_SOURCE 0 sw $1
BIT_INFO 0 sw->link_speed 0x0,0x1e
LOCK2 &tb->lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/icm.c tb_is_upstream_port() -> tb_upstream_port()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

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

Type Parameter Key Value
PARAM_VALUE 0 sw 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_enable_clx() -> tb_upstream_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 [m]
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tb.c tb_is_upstream_port() -> tb_upstream_port()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &sw->tb->lock
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tb.c tb_scan_port() -> tb_upstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
BUF_SIZE 0 sw 1968
DATA_SOURCE 0 sw r tb_switch_alloc
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/xdomain.c tb_is_upstream_port() -> tb_upstream_port()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tmu.c tb_switch_tmu_change_mode() -> tb_upstream_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_upstream_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_upstream_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_disable_objections() -> tb_upstream_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_bidirectional() -> tb_upstream_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_upstream_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_upstream_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_upstream_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 tmu_mode_init() -> tb_upstream_port()

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

drivers/thunderbolt/tunnel.c tb_is_upstream_port() -> tb_upstream_port()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tunnel.c tb_pci_set_ext_encapsulation() -> tb_upstream_port()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tunnel.c tb_usb3_consumed_bandwidth() -> tb_upstream_port()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/clx.c tb_switch_clx_disable() -> tb_upstream_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_upstream_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 &attr->mutex
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/clx.c tb_switch_clx_init() -> tb_upstream_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_upstream_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/lc.c tb_is_upstream_port() -> tb_upstream_port()

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

drivers/thunderbolt/lc.c tb_lc_lane_bonding_possible() -> tb_upstream_port()

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

drivers/thunderbolt/debugfs.c margining_switch_init() -> tb_upstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
PARAM_VALUE 0 sw->ports 4096-ptr_max
BUF_SIZE 0 sw->debugfs_dir s32min-(-1),1-s32max
DATA_SOURCE 0 sw $0

drivers/thunderbolt/debugfs.c margining_switch_remove() -> tb_upstream_port()

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

drivers/thunderbolt/debugfs.c tb_is_upstream_port() -> tb_upstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
LOCK2 &attr->mutex
LOCK2 &tb->lock
TYPE_LOCK (struct simple_attr)->mutex
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/test.c alloc_dev_default() -> tb_upstream_port()

Type Parameter Key Value
PARAM_VALUE 0 sw 4096-ptr_max
PARAM_VALUE 0 sw->config.upstream_port_number 1
PARAM_VALUE 0 sw->ports 4096-ptr_max
BUF_SIZE 0 sw 1968
DATA_SOURCE 0 sw r alloc_switch