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/icm.c alloc_switch() -> tb_switch_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->bus | 0,4096-ptr_max |
| PARAM_VALUE | 1 | parent->class | 0,4096-ptr_max |
| PARAM_VALUE | 1 | parent->power.request | 0-4 |
| PARAM_VALUE | 1 | parent->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 1 | parent->type | 0,4096-ptr_max |
| DATA_SOURCE | 2 | route | $1 |
| LOCK2 | &tb->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct tb)->lock |
drivers/thunderbolt/icm.c icm_start() -> tb_switch_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tb | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->cm_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->cm_ops->driver_ready | 0,5983533379181912064 |
| PARAM_VALUE | 0 | tb->cm_ops->start | 6366804133873901568,7314298547997716480 |
| PARAM_VALUE | 0 | tb->ctl | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->ctl->running | 1 |
| PARAM_VALUE | 0 | tb->ctl->rx->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tb->ctl->rx->nhi->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tb->ctl->rx->running | 1 |
| PARAM_VALUE | 0 | tb->ctl->tx->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tb->ctl->tx->nhi->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tb->ctl->tx->running | 1 |
| PARAM_VALUE | 0 | tb->dev.dma_io_tlb_mem->debugfs | 0-s64max |
| PARAM_VALUE | 0 | tb->dev.fwnode->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->dev.fwnode->dev->fwnode | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->dev.fwnode->dev->p | 1-u64max |
| PARAM_VALUE | 0 | tb->dev.fwnode->dev->power.set_latency_tolerance | 5740181548905971712 |
| PARAM_VALUE | 0 | tb->dev.fwnode->suppliers.next | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->dev.fwnode->suppliers.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->dev.kobj.release->timer->entry.pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->dev.kobj.release.work.entry.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->dev.kobj.sd->active.counter | (-2147483647) |
| PARAM_VALUE | 0 | tb->dev.kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | tb->dev.p->klist_children.get | 2213798222526185472 |
| PARAM_VALUE | 0 | tb->dev.p->klist_children.put | 3126867300421632000 |
| PARAM_VALUE | 0 | tb->dev.p->knode_bus.n_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | tb->dev.p->knode_class.n_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | tb->dev.p->knode_parent.n_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | tb->dev.physical_location->horizontal_position | 0-3 |
| PARAM_VALUE | 0 | tb->dev.physical_location->panel | 0-7 |
| PARAM_VALUE | 0 | tb->dev.physical_location->vertical_position | 0-3 |
| PARAM_VALUE | 0 | tb->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tb->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tb->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | tb->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | tb->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tb->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | tb->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | tb->privdata->safe_mode | 0 |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 2 | route | 0 |
| BUF_SIZE | 0 | tb | 2304,3616 |
| BUF_SIZE | 0 | tb | 2304,3616 |
| CAPPED_DATA | 0 | tb->ctl->frame_pool->allocation | 1 |
| CAPPED_DATA | 0 | tb->ctl->frame_pool->boundary | 1 |
| CAPPED_DATA | 0 | tb->ctl->frame_pool->size | 1 |
| CAPPED_DATA | 0 | tb->ctl->rx->nhi->dev | 1 |
| CAPPED_DATA | 0 | tb->ctl->tx->nhi->dev | 1 |
| DATA_SOURCE | 0 | tb | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | tb->nhi->hop_count | 0-1023 |
| NO_OVERFLOW_SIMPLE | 0 | tb->ctl->frame_pool->allocation | |
| NO_OVERFLOW_SIMPLE | 0 | tb->ctl->nhi->hop_count | |
| LOCK2 | 0 | &tb->lock | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct tb)->lock |
drivers/thunderbolt/tb.c tb_scan_port() -> tb_switch_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &tb->lock |
drivers/thunderbolt/tb.c tb_start() -> tb_switch_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tb | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->cm_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->cm_ops->driver_ready | 0,5983533379181912064 |
| PARAM_VALUE | 0 | tb->cm_ops->start | 6366804133873901568,7314298547997716480 |
| PARAM_VALUE | 0 | tb->ctl | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->ctl->running | 1 |
| PARAM_VALUE | 0 | tb->ctl->rx->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tb->ctl->rx->nhi->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tb->ctl->rx->running | 1 |
| PARAM_VALUE | 0 | tb->ctl->tx->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tb->ctl->tx->nhi->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tb->ctl->tx->running | 1 |
| PARAM_VALUE | 0 | tb->dev.dma_io_tlb_mem->debugfs | 0-s64max |
| PARAM_VALUE | 0 | tb->dev.fwnode->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->dev.fwnode->dev->fwnode | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->dev.fwnode->dev->p | 1-u64max |
| PARAM_VALUE | 0 | tb->dev.fwnode->dev->power.set_latency_tolerance | 5740181548905971712 |
| PARAM_VALUE | 0 | tb->dev.fwnode->suppliers.next | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->dev.fwnode->suppliers.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->dev.kobj.release->timer->entry.pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->dev.kobj.release.work.entry.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | tb->dev.kobj.sd->active.counter | (-2147483647) |
| PARAM_VALUE | 0 | tb->dev.kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | tb->dev.p->klist_children.get | 2213798222526185472 |
| PARAM_VALUE | 0 | tb->dev.p->klist_children.put | 3126867300421632000 |
| PARAM_VALUE | 0 | tb->dev.p->knode_bus.n_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | tb->dev.p->knode_class.n_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | tb->dev.p->knode_parent.n_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | tb->dev.physical_location->horizontal_position | 0-3 |
| PARAM_VALUE | 0 | tb->dev.physical_location->panel | 0-7 |
| PARAM_VALUE | 0 | tb->dev.physical_location->vertical_position | 0-3 |
| PARAM_VALUE | 0 | tb->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tb->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tb->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | tb->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | tb->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tb->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | tb->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 2 | route | 0 |
| BUF_SIZE | 0 | tb | 2304,3616 |
| BUF_SIZE | 0 | tb | 2304,3616 |
| CAPPED_DATA | 0 | tb->ctl->frame_pool->allocation | 1 |
| CAPPED_DATA | 0 | tb->ctl->frame_pool->boundary | 1 |
| CAPPED_DATA | 0 | tb->ctl->frame_pool->size | 1 |
| CAPPED_DATA | 0 | tb->ctl->rx->nhi->dev | 1 |
| CAPPED_DATA | 0 | tb->ctl->tx->nhi->dev | 1 |
| DATA_SOURCE | 0 | tb | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | tb->nhi->hop_count | 0-1023 |
| NO_OVERFLOW_SIMPLE | 0 | tb->ctl->frame_pool->allocation | |
| NO_OVERFLOW_SIMPLE | 0 | tb->ctl->nhi->hop_count | |
| LOCK2 | 0 | &tb->lock | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct tb)->lock |