Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

drivers/thunderbolt/switch.c tb_port_set_link_width() -> tb_port_get_link_generation()

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 4096-ptr_max
PARAM_VALUE 0 port->sw->is_unplugged 0
PARAM_VALUE 0 port->sw->tb->ctl->frame_pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 port->sw->tb->ctl->frame_pool->next_block->next_block 0
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 $0
RX_PATH
TASK_NOT_RUNNING

drivers/thunderbolt/switch.c tb_port_set_link_width() -> tb_port_get_link_generation()

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 4096-ptr_max
PARAM_VALUE 0 port->sw->is_unplugged 0
PARAM_VALUE 0 port->sw->tb->ctl->frame_pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 port->sw->tb->ctl->frame_pool->next_block->next_block 0
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 $0
RX_PATH
TASK_NOT_RUNNING

drivers/thunderbolt/switch.c tb_port_wait_for_link_width() -> tb_port_get_link_generation()

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_port_width_supported() -> tb_port_get_link_generation()

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->debugfs_dir->d_inode->i_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 port->sw->debugfs_dir->d_inode->i_rwsem.first_waiter->type 0-1
DATA_SOURCE 0 port $0
RX_PATH
TASK_NOT_RUNNING

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

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->bonded 1
DATA_SOURCE 0 port r tb_upstream_port
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

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

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->dual_link_port 0,4096-ptr_max
PARAM_VALUE 0 port->sw 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->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_configure_link() -> tb_port_get_link_generation()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->remote 4096-ptr_max
PARAM_VALUE 0 port->remote->cap_phy 1-s32max
PARAM_VALUE 0 port->remote->config.type 1
PARAM_VALUE 0 port->remote->remote 4096-ptr_max
PARAM_VALUE 0 port->remote->sw 4096-ptr_max
PARAM_VALUE 0 port->remote->usb4 0,4096-ptr_max
PARAM_VALUE 0 port->remote->xdomain 0
DATA_SOURCE 0 port $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/xdomain.c tb_xdomain_link_exit() -> tb_port_get_link_generation()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->dual_link_port 1-u64max
DATA_SOURCE 0 port r tb_xdomain_downstream_port
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/xdomain.c tb_xdomain_link_init() -> tb_port_get_link_generation()

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

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

Type Parameter Key Value
DATA_SOURCE 0 port r tb_upstream_port
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_tunnel_reserved_pci() -> tb_port_get_link_generation()

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->remote 1-u64max
PARAM_VALUE 0 port->sw->is_unplugged 0
PARAM_VALUE 0 port->sw->tb->ctl->frame_pool->dev->dma_io_tlb_mem->dyn_alloc.is_queued 0-1
PARAM_VALUE 0 port->sw->tb->ctl->request_queue_lock->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
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
CAPPED_DATA 0 port 1
DATA_SOURCE 0 port $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tb->lock

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

Type Parameter Key Value
DATA_SOURCE 0 port r tb_upstream_port
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/debugfs.c margining_alloc() -> tb_port_get_link_generation()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->sw->debugfs_dir->d_inode->i_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 port->sw->debugfs_dir->d_inode->i_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 port->usb4 1-u64max
DATA_SOURCE 0 port $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock