Defined in 1 files as a function:

Referenced in 7 files:

Smatch caller information:

drivers/thunderbolt/usb4.c usb4_port_index() -> tb_port_is_null()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
CAPPED_DATA 0 port 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &sw->tb->lock
HALF_LOCKED2 &tb->lock
HALF_LOCKED2 global &component_mutex

drivers/thunderbolt/usb4.c usb4_switch_add_ports() -> tb_port_is_null()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
CAPPED_DATA 0 port 1

drivers/thunderbolt/usb4.c usb4_switch_credits_init() -> tb_port_is_null()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
CAPPED_DATA 0 port 1

drivers/thunderbolt/usb4.c usb4_switch_set_wake() -> tb_port_is_null()

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

drivers/thunderbolt/switch.c __tb_port_enable() -> tb_port_is_null()

Type Parameter Key Value
DATA_SOURCE 0 port $0
RX_PATH
TASK_NOT_RUNNING

drivers/thunderbolt/switch.c tb_port_add_nfc_credits() -> tb_port_is_null()

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

drivers/thunderbolt/switch.c tb_port_unlock() -> tb_port_is_null()

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

drivers/thunderbolt/switch.c tb_switch_default_link_ports() -> tb_port_is_null()

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

drivers/thunderbolt/switch.c tb_switch_default_link_ports() -> tb_port_is_null()

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

drivers/thunderbolt/switch.c tb_switch_reset_host() -> tb_port_is_null()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
CAPPED_DATA 0 port 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &tb->lock
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/switch.c tb_switch_resume() -> tb_port_is_null()

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

drivers/thunderbolt/switch.c tb_switch_uevent() -> tb_port_is_null()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
CAPPED_DATA 0 port 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &pool->lock

drivers/thunderbolt/tb.c tb_available_bandwidth() -> tb_port_is_null()

Type Parameter Key Value
PARAM_VALUE 0 port 1-u64max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock
HALF_LOCKED2 &tb->lock

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

Type Parameter Key Value
PARAM_VALUE 0 port 1-u64max
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tb->lock
HALF_LOCKED2 &tb->lock
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/tb.c tb_configure_sym() -> tb_port_is_null()

Type Parameter Key Value
PARAM_VALUE 0 port 1-u64max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tb.c tb_handle_hotplug() -> tb_port_is_null()

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

drivers/thunderbolt/tb.c tb_stop() -> tb_port_is_null()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
CAPPED_DATA 0 port 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &tb->lock
HALF_LOCKED2 &dev->mutex
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/tunnel.c tb_dma_reserve_credits() -> tb_port_is_null()

Type Parameter Key Value
PARAM_VALUE 0 port->config.type 1
PARAM_VALUE 0 port->port 1-255
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tunnel.c tb_init_pm_support() -> tb_port_is_null()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->config.type 1
PARAM_VALUE 0 port->port 1-255
RX_PATH
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tunnel.c tb_init_pm_support() -> tb_port_is_null()

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

drivers/thunderbolt/tunnel.c tb_pci_init_credits() -> tb_port_is_null()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->config.type 1
PARAM_VALUE 0 port->port 1-255
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tunnel.c tb_port_use_credit_allocation() -> tb_port_is_null()

Type Parameter Key Value
DATA_SOURCE 0 port $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &tb_tunnel_lock

drivers/thunderbolt/tunnel.c tb_usb3_init_credits() -> tb_port_is_null()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->config.type 1
PARAM_VALUE 0 port->port 1-255
RX_PATH
TASK_NOT_RUNNING

drivers/thunderbolt/debugfs.c path_show() -> tb_port_is_null()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
BUF_SIZE 0 port s32min-(-2),1-s32max
BUF_SIZE 0 port s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 port unit_array_size
LOCK2 &s->lock
LOCK2 &tb->lock
TYPE_LOCK (struct seq_file)->lock
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/path.c __tb_path_deactivate_hop() -> tb_port_is_null()

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

drivers/thunderbolt/path.c tb_path_activate() -> tb_port_is_null()

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