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/debugfs.c switch_caps_show() -> tb_switch_next_cap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sw | 4096-ptr_max |
| PARAM_VALUE | 0 | sw->dev.bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | sw->dev.class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | sw->dev.power.request | 0-4 |
| PARAM_VALUE | 0 | sw->dev.power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 0 | sw->dev.power.wakeirq | 0,4096-ptr_max |
| PARAM_VALUE | 0 | sw->dev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | sw->dev.type | 0,4096-ptr_max |
| PARAM_VALUE | 0 | sw->is_unplugged | 0 |
| PARAM_VALUE | 0 | sw->tb->ctl->frame_pool->dev->cma_area->alloc_mutex.osq.tail.counter | s32min-s32max |
| PARAM_VALUE | 0 | sw->tb->ctl->frame_pool->dev->dma_uses_io_tlb | 1 |
| PARAM_VALUE | 0 | sw->tb->ctl->frame_pool->dev->iommu->attach_deferred | 0-1 |
| PARAM_VALUE | 0 | sw->tb->ctl->frame_pool->dev->iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | sw->tb->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | sw->tb->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | sw->tb->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | sw->tb->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | sw->tb->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | sw->tb->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | sw->tb->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | offset | 0 |
| BUF_SIZE | 0 | sw | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | sw | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | sw | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sw | unit_array_size |
| LOCK2 | &s->lock | ||
| LOCK2 | &tb->lock | ||
| TYPE_LOCK | (struct seq_file)->lock | ||
| TYPE_LOCK | (struct tb)->lock |
drivers/thunderbolt/debugfs.c switch_caps_show() -> tb_switch_next_cap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sw | 4096-ptr_max |
| PARAM_VALUE | 0 | sw->dev.bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | sw->dev.class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | sw->dev.power.request | 0-4 |
| PARAM_VALUE | 0 | sw->dev.power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 0 | sw->dev.power.wakeirq | 0,4096-ptr_max |
| PARAM_VALUE | 0 | sw->dev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | sw->dev.type | 0,4096-ptr_max |
| PARAM_VALUE | 0 | sw->is_unplugged | 0 |
| PARAM_VALUE | 0 | sw->tb | 4096-ptr_max |
| PARAM_VALUE | 0 | sw->tb->ctl | 4096-ptr_max |
| PARAM_VALUE | 0 | sw->tb->ctl->frame_pool->dev->cma_area->alloc_mutex.osq.tail.counter | s32min-s32max |
| PARAM_VALUE | 0 | sw->tb->ctl->frame_pool->dev->dma_uses_io_tlb | 1 |
| PARAM_VALUE | 0 | sw->tb->ctl->frame_pool->dev->iommu->attach_deferred | 0-1 |
| PARAM_VALUE | 0 | sw->tb->ctl->frame_pool->dev->iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 0 | sw->tb->ctl->frame_pool->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | sw->tb->ctl->tx->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | sw->tb->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | sw->tb->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | sw->tb->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | sw->tb->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | sw->tb->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | sw->tb->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | sw->tb->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | offset | 1-s32max |
| BUF_SIZE | 0 | sw | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | sw | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | sw | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sw | unit_array_size |
| LOCK2 | &s->lock | ||
| LOCK2 | &tb->lock | ||
| TYPE_LOCK | (struct seq_file)->lock | ||
| TYPE_LOCK | (struct tb)->lock |
drivers/thunderbolt/cap.c tb_switch_find_cap() -> tb_switch_next_cap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sw | 4096-ptr_max |
| PARAM_VALUE | 0 | sw->cap_plug_events | s32min-(-1),1-s32max |
| PARAM_VALUE | 0 | sw->config.cmuv | 16,32 |
| PARAM_VALUE | 0 | sw->config.enabled | 1 |
| PARAM_VALUE | 0 | sw->config.plug_events_delay | 255 |
| PARAM_VALUE | 0 | sw->is_unplugged | 0 |
| PARAM_VALUE | 0 | sw->tb->ctl->frame_pool->dev->dma_io_tlb_mem->dyn_alloc.flags | 0-4294967295 |
| PARAM_VALUE | 0 | sw->tb->ctl->frame_pool->dev->dma_io_tlb_mem->dyn_alloc.is_hard | 0-1 |
| PARAM_VALUE | 0 | sw->tb->ctl->frame_pool->dev->dma_io_tlb_mem->dyn_alloc.is_lazy | 0-1 |
| PARAM_VALUE | 0 | sw->tb->ctl->frame_pool->dev->dma_io_tlb_mem->dyn_alloc.is_soft | 0-1 |
| PARAM_VALUE | 0 | sw->tb->ctl->frame_pool->dev->iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | sw->tb->ctl->request_queue_lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 1 | offset | 0-255 |
| DATA_SOURCE | 0 | sw | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &tb->lock |
drivers/thunderbolt/cap.c tb_switch_find_vse_cap() -> tb_switch_next_cap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sw | 4096-ptr_max |
| PARAM_VALUE | 0 | sw->config.enabled | 0 |
| PARAM_VALUE | 0 | sw->generation | 1-4 |
| PARAM_VALUE | 0 | sw->ports | 4096-ptr_max |
| PARAM_VALUE | 0 | sw->tb | 4096-ptr_max |
| PARAM_VALUE | 0 | sw->tb->ctl | 4096-ptr_max |
| PARAM_VALUE | 0 | sw->tb->root_switch | 0,4096-ptr_max |
| PARAM_VALUE | 1 | offset | 0-255 |
| BUF_SIZE | 0 | sw | 1968 |
| BUF_SIZE | 0 | sw->ports | 344-22016 |
| 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 |