Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/thunderbolt/usb4.c usb4_port_enumerate_retimers() -> usb4_port_sb_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->usb4->dev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | port->xdomain->dev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 1 | target | 0 |
| PARAM_VALUE | 2 | index | 0 |
| PARAM_VALUE | 3 | reg | 8 |
| PARAM_VALUE | 4 | buf | 6666345824998985728 |
| PARAM_VALUE | 4 | *buf | 1297436229 |
| PARAM_VALUE | 5 | size | 4 |
| BUF_SIZE | 4 | buf | 4 |
| CAPPED_DATA | 0 | port | 1 |
| DATA_SOURCE | 0 | port | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 5 | size | unit_byte |
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &tb->lock |
drivers/thunderbolt/usb4.c usb4_port_hw_margin() -> usb4_port_sb_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->remote | 0,4096-ptr_max |
| PARAM_VALUE | 0 | port->sw | 4096-ptr_max |
| PARAM_VALUE | 0 | port->sw->tb->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->sw->tb->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | port->sw->tb->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | port->sw->tb->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | port->sw->tb->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | port->sw->tb->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 3 | reg | 9 |
| PARAM_VALUE | 4 | buf | 2314960122072002560 |
| PARAM_VALUE | 5 | size | 4 |
| BUF_SIZE | 4 | buf | 4 |
| CAPPED_DATA | 0 | port | 1 |
| DATA_SOURCE | 0 | port | $0 |
| DATA_SOURCE | 1 | target | $1 |
| DATA_SOURCE | 2 | index | $2 |
| UNITS | 5 | size | unit_byte |
| LOCK2 | &attr->mutex | ||
| LOCK2 | &tb->lock | ||
| TYPE_LOCK | (struct simple_attr)->mutex | ||
| TYPE_LOCK | (struct tb)->lock |
drivers/thunderbolt/usb4.c usb4_port_retimer_nvm_authenticate() -> usb4_port_sb_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->usb4 | 4096-ptr_max |
| PARAM_VALUE | 1 | target | 2 |
| PARAM_VALUE | 3 | reg | 8 |
| PARAM_VALUE | 4 | buf | 4801221150202552320 |
| PARAM_VALUE | 4 | *buf | 1213486401 |
| PARAM_VALUE | 5 | size | 4 |
| BUF_SIZE | 4 | buf | 4 |
| DATA_SOURCE | 0 | port | $0 |
| DATA_SOURCE | 2 | index | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 5 | size | unit_byte |
| LOCK2 | &of->mutex | ||
| LOCK2 | &rt->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/usb4.c usb4_port_retimer_nvm_read_block() -> usb4_port_sb_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | target | 2 |
| PARAM_VALUE | 3 | reg | 9 |
| PARAM_VALUE | 4 | buf | 8739458175448018944 |
| PARAM_VALUE | 5 | size | 4 |
| BUF_SIZE | 4 | buf | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 5 | size | unit_byte |
drivers/thunderbolt/usb4.c usb4_port_retimer_nvm_set_offset() -> usb4_port_sb_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->usb4 | 4096-ptr_max |
| PARAM_VALUE | 1 | target | 2 |
| PARAM_VALUE | 3 | reg | 9 |
| PARAM_VALUE | 4 | buf | 5598100338058633216 |
| PARAM_VALUE | 4 | *buf | 0 |
| PARAM_VALUE | 5 | size | 4 |
| BUF_SIZE | 4 | buf | 4 |
| DATA_SOURCE | 0 | port | $0 |
| DATA_SOURCE | 2 | index | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 5 | size | unit_byte |
| LOCK2 | &of->mutex | ||
| LOCK2 | &rt->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/usb4.c usb4_port_retimer_nvm_write_next_block() -> usb4_port_sb_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | target | 2 |
| PARAM_VALUE | 3 | reg | 18 |
| PARAM_VALUE | 4 | buf | 2839573137693999104 |
| PARAM_VALUE | 5 | size | 0-64 |
| BUF_SIZE | 4 | buf | 64 |
| BUF_SIZE | 4 | buf | 64 |
| CAPPED_DATA | 5 | size | 1 |
| DATA_SOURCE | 4 | buf | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &rt->tb->lock | ||
| HALF_LOCKED2 | &sw->tb->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct tb)->lock |
drivers/thunderbolt/usb4.c usb4_port_sb_op() -> usb4_port_sb_write()
| 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->dev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | port->xdomain->dev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 3 | reg | 8 |
| PARAM_VALUE | 4 | buf | 9219538415745187840 |
| PARAM_VALUE | 4 | *buf | 1196247122,1196249938,1346585682,1347769164,1347769173,1380729411,1381123649,1397772098,1397968455,1414742348,1464552514,1465074770 |
| PARAM_VALUE | 5 | size | 4 |
| BUF_SIZE | 4 | buf | 4 |
| CAPPED_DATA | 0 | port | 1 |
| DATA_SOURCE | 0 | port | $0 |
| DATA_SOURCE | 1 | target | $1 |
| DATA_SOURCE | 2 | index | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 5 | size | unit_byte |
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &tb->lock |
drivers/thunderbolt/usb4.c usb4_port_set_router_offline() -> usb4_port_sb_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 1 | target | 0 |
| PARAM_VALUE | 2 | index | 0 |
| PARAM_VALUE | 3 | reg | 9 |
| PARAM_VALUE | 4 | buf | 8967519917260623872 |
| PARAM_VALUE | 4 | *buf | 0-1 |
| PARAM_VALUE | 5 | size | 4 |
| BUF_SIZE | 4 | buf | 4 |
| DATA_SOURCE | 0 | port | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 5 | size | unit_byte |
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &tb->lock |
drivers/thunderbolt/usb4.c usb4_port_set_router_offline() -> usb4_port_sb_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->cap_usb4 | s32min-(-1),1-s32max |
| PARAM_VALUE | 0 | port->sw->is_unplugged | 0 |
| 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->dev->iommu->pci_32bit_workaround | 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->frame_pool->next_block->next_block | 0 |
| 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_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 |
| PARAM_VALUE | 0 | port->sw->tb->ctl->request_queue_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | port->sw->tb->ctl->tx->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | target | 0 |
| PARAM_VALUE | 2 | index | 0 |
| PARAM_VALUE | 3 | reg | 8 |
| PARAM_VALUE | 4 | buf | 8967519917260623872 |
| PARAM_VALUE | 4 | *buf | 1313166156 |
| PARAM_VALUE | 5 | size | 4 |
| BUF_SIZE | 4 | buf | 4 |
| DATA_SOURCE | 0 | port | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 5 | size | unit_byte |
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &tb->lock |
drivers/thunderbolt/usb4.c usb4_port_sw_margin() -> usb4_port_sb_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 3 | reg | 9 |
| PARAM_VALUE | 4 | buf | 8257561620069208064 |
| PARAM_VALUE | 5 | size | 4 |
| BUF_SIZE | 4 | buf | 4 |
| DATA_SOURCE | 0 | port | $0 |
| DATA_SOURCE | 1 | target | $1 |
| DATA_SOURCE | 2 | index | $2 |
| UNITS | 5 | size | unit_byte |
| LOCK2 | &tb->lock | ||
| HALF_LOCKED2 | &attr->mutex | ||
| TYPE_LOCK | (struct tb)->lock |
drivers/thunderbolt/debugfs.c sb_regs_write() -> usb4_port_sb_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port->sw->dev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 1 | target | 0,2 |
| PARAM_VALUE | 3 | reg | 0-2,5-9,12-15,18 |
| PARAM_VALUE | 4 | buf | 3179674840982482944 |
| PARAM_VALUE | 5 | size | 1-64 |
| BUF_SIZE | 0 | port | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | port | s32min-(-1),1-s32max |
| BUF_SIZE | 4 | buf | 64 |
| CAPPED_DATA | 5 | size | 1 |
| DATA_SOURCE | 0 | port | $0 |
| DATA_SOURCE | 1 | target | $3 |
| DATA_SOURCE | 2 | index | $4 |
| HARD_MAX | 1 | target | 2 |
| UNITS | 0 | port | unit_array_size |
| LOCK2 | &tb->lock | ||
| TYPE_LOCK | (struct tb)->lock |