Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/thunderbolt/usb4.c tb_port_write() -> tb_cfg_write()

Type Parameter Key Value
PARAM_VALUE 1 buffer 4096-ptr_max
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 4 space 1
PARAM_VALUE 6 length 0-16
BUF_SIZE 1 buffer 4,64
BUF_SIZE 1 buffer 4,64
CAPPED_DATA 6 length 1
DATA_SOURCE 1 buffer $1
DATA_SOURCE 4 space $2
DATA_SOURCE 5 offset $3
DATA_SOURCE 6 length $4
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/usb4.c tb_sw_write() -> tb_cfg_write()

Type Parameter Key Value
PARAM_VALUE 1 buffer 0,4096-ptr_max
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 3 port 0
PARAM_VALUE 4 space 2
PARAM_VALUE 5 offset 5,9,25-26
PARAM_VALUE 6 length 1-16
BUF_SIZE 1 buffer (-1),4,64
BUF_SIZE 1 buffer (-1),4,64
CAPPED_DATA 6 length 1
DATA_SOURCE 1 buffer $1
DATA_SOURCE 4 space $2
DATA_SOURCE 5 offset $3
DATA_SOURCE 6 length $4
HARD_MAX 5 offset 26
RX_PATH
TASK_NOT_RUNNING
USER_PTR 1 buffer

drivers/thunderbolt/switch.c tb_port_write() -> tb_cfg_write()

Type Parameter Key Value
PARAM_VALUE 1 buffer 4096-ptr_max
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 4 space 1,3
PARAM_VALUE 6 length 1-3
BUF_SIZE 1 buffer 4,8,12
BUF_SIZE 1 buffer 4,8,12
DATA_SOURCE 1 buffer $1
DATA_SOURCE 4 space $2
DATA_SOURCE 5 offset $3
DATA_SOURCE 6 length $4
HARD_MAX 4 space 3
HARD_MAX 6 length 3
RX_PATH
TASK_NOT_RUNNING
UNITS 6 length unit_array_size

drivers/thunderbolt/switch.c tb_sw_write() -> tb_cfg_write()

Type Parameter Key Value
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 3 port 0
PARAM_VALUE 4 space 2
PARAM_VALUE 6 length 1-2,4
BUF_SIZE 1 buffer 4,12,16
BUF_SIZE 1 buffer 4,12,16
DATA_SOURCE 1 buffer $1
DATA_SOURCE 4 space $2
DATA_SOURCE 5 offset $3
DATA_SOURCE 6 length $4
HARD_MAX 6 length 4
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &sw->tb->lock
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/eeprom.c tb_sw_write() -> tb_cfg_write()

Type Parameter Key Value
PARAM_VALUE 0 ctl 4096-ptr_max
PARAM_VALUE 0 ctl->request_queue_lock->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 1 buffer 4948005100561674240,5052735087039582208,8719767316612759552
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 3 port 0
PARAM_VALUE 4 space 2
PARAM_VALUE 5 offset 0-3,2147483652-u32max
PARAM_VALUE 6 length 1
DATA_SOURCE 1 buffer $1
DATA_SOURCE 4 space $2
DATA_SOURCE 5 offset $3
DATA_SOURCE 6 length $4
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tmu.c tb_port_write() -> tb_cfg_write()

Type Parameter Key Value
PARAM_VALUE 0 ctl->frame_pool->dev->cma_area->alloc_mutex.osq.tail.counter s32min-s32max
PARAM_VALUE 0 ctl->frame_pool->dev->dma_uses_io_tlb 1
PARAM_VALUE 0 ctl->frame_pool->dev->iommu->attach_deferred 0-1
PARAM_VALUE 0 ctl->frame_pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctl->request_queue_lock.dep_map->name 0-255
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctl->tx->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 buffer 408084347161681920,608573592852525056,5301498765301915648,7694236902405160960
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 4 space 1
PARAM_VALUE 6 length 1
BUF_SIZE 1 buffer 4
BUF_SIZE 1 buffer 4
DATA_SOURCE 1 buffer $1
DATA_SOURCE 4 space $2
DATA_SOURCE 5 offset $3
DATA_SOURCE 6 length $4
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tmu.c tb_sw_write() -> tb_cfg_write()

Type Parameter Key Value
PARAM_VALUE 0 ctl->frame_pool->dev->cma_area->alloc_mutex.osq.tail.counter s32min-s32max
PARAM_VALUE 0 ctl->frame_pool->dev->dma_uses_io_tlb 1
PARAM_VALUE 0 ctl->frame_pool->dev->iommu->attach_deferred 0-1
PARAM_VALUE 0 ctl->request_queue_lock.dep_map->name 0-255
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 1 buffer 1992836366483488768,2645200654066470912,2744274013877784576,5031261870463950848,5804746179074412544,7028517951514439680,8968621572242538496
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 3 port 0
PARAM_VALUE 4 space 2
PARAM_VALUE 6 length 1-2
BUF_SIZE 1 buffer 4,8
BUF_SIZE 1 buffer 4,8
DATA_SOURCE 1 buffer $1
DATA_SOURCE 4 space $2
DATA_SOURCE 5 offset $3
DATA_SOURCE 6 length $4
HARD_MAX 6 length 2
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tunnel.c tb_port_write() -> tb_cfg_write()

Type Parameter Key Value
PARAM_VALUE 0 ctl->frame_pool->dev->cma_area->alloc_mutex.osq.tail.counter s32min-s32max
PARAM_VALUE 0 ctl->frame_pool->dev->dma_uses_io_tlb 1
PARAM_VALUE 0 ctl->frame_pool->dev->iommu->attach_deferred 0-1
PARAM_VALUE 0 ctl->frame_pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctl->request_queue_lock.dep_map->name 0-255
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctl->tx->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 buffer 1451930881703628800,2272424312896651264,8035034019373420544
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 4 space 1
PARAM_VALUE 6 length 1
BUF_SIZE 1 buffer 4
BUF_SIZE 1 buffer 4
DATA_SOURCE 1 buffer $1
DATA_SOURCE 4 space $2
DATA_SOURCE 5 offset $3
DATA_SOURCE 6 length $4
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &sw->tb->lock
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/clx.c tb_port_write() -> tb_cfg_write()

Type Parameter Key Value
PARAM_VALUE 0 ctl->frame_pool->dev->cma_area->alloc_mutex.osq.tail.counter s32min-s32max
PARAM_VALUE 0 ctl->frame_pool->dev->dma_uses_io_tlb 1
PARAM_VALUE 0 ctl->frame_pool->dev->iommu->attach_deferred 0-1
PARAM_VALUE 0 ctl->frame_pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctl->request_queue_lock.dep_map->name 0-255
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctl->tx->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 buffer 1366772952703950848,8363573054711894016
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 4 space 1
PARAM_VALUE 6 length 1
BUF_SIZE 1 buffer 4
BUF_SIZE 1 buffer 4
DATA_SOURCE 1 buffer $1
DATA_SOURCE 4 space $2
DATA_SOURCE 5 offset $3
DATA_SOURCE 6 length $4
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/clx.c tb_sw_write() -> tb_cfg_write()

Type Parameter Key Value
PARAM_VALUE 0 ctl->frame_pool->dev->cma_area->alloc_mutex.osq.tail.counter s32min-s32max
PARAM_VALUE 0 ctl->frame_pool->dev->dma_uses_io_tlb 1
PARAM_VALUE 0 ctl->frame_pool->dev->iommu->attach_deferred 0-1
PARAM_VALUE 0 ctl->frame_pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctl->request_queue_lock.dep_map->name 0-255
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctl->tx->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 buffer 6454700610116911104
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 3 port 0
PARAM_VALUE 4 space 2
PARAM_VALUE 6 length 2
BUF_SIZE 1 buffer 8
BUF_SIZE 1 buffer 8
DATA_SOURCE 1 buffer $1
DATA_SOURCE 4 space $2
DATA_SOURCE 5 offset $3
DATA_SOURCE 6 length $4
RX_PATH
TASK_NOT_RUNNING
UNITS 6 length unit_array_size
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/lc.c tb_sw_write() -> tb_cfg_write()

Type Parameter Key Value
PARAM_VALUE 1 buffer 4096-ptr_max
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 3 port 0
PARAM_VALUE 4 space 2
PARAM_VALUE 6 length 1
BUF_SIZE 1 buffer 4
BUF_SIZE 1 buffer 4
DATA_SOURCE 1 buffer $1
DATA_SOURCE 4 space $2
DATA_SOURCE 5 offset $3
DATA_SOURCE 6 length $4
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &sw->tb->lock
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/debugfs.c tb_port_write() -> tb_cfg_write()

Type Parameter Key Value
PARAM_VALUE 1 buffer 16,4096-ptr_max
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 4 space 0-1,3
BUF_SIZE 1 buffer 4,8
BUF_SIZE 1 buffer 4,8
DATA_SOURCE 1 buffer $1
DATA_SOURCE 4 space $2
DATA_SOURCE 5 offset $3
DATA_SOURCE 6 length $4
HARD_MAX 4 space 3
LOCK2 &tb->lock
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/debugfs.c tb_sw_write() -> tb_cfg_write()

Type Parameter Key Value
PARAM_VALUE 1 buffer 8232356891273908224
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 3 port 0
PARAM_VALUE 4 space 2
PARAM_VALUE 6 length 1
BUF_SIZE 1 buffer 4
BUF_SIZE 1 buffer 4
DATA_SOURCE 1 buffer $1
DATA_SOURCE 4 space $2
DATA_SOURCE 5 offset $3
DATA_SOURCE 6 length $4
LOCK2 &tb->lock
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/cap.c tb_sw_write() -> tb_cfg_write()

Type Parameter Key Value
PARAM_VALUE 0 ctl->frame_pool->dev->cma_area->alloc_mutex.osq.tail.counter s32min-s32max
PARAM_VALUE 0 ctl->frame_pool->dev->dma_uses_io_tlb 1
PARAM_VALUE 0 ctl->frame_pool->dev->iommu->attach_deferred 0-1
PARAM_VALUE 0 ctl->frame_pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctl->request_queue_lock.dep_map->name 0-255
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctl->tx->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 buffer 8106614253612593152
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 3 port 0
PARAM_VALUE 4 space 2
PARAM_VALUE 5 offset 38,42
PARAM_VALUE 6 length 1
BUF_SIZE 1 buffer 4
BUF_SIZE 1 buffer 4
DATA_SOURCE 1 buffer $1
DATA_SOURCE 4 space $2
DATA_SOURCE 5 offset $3
DATA_SOURCE 6 length $4
FUZZY_MAX 5 offset 42
BIT_INFO 5 offset 0x22,0x3f
HARD_MAX 5 offset 42
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/path.c tb_port_write() -> tb_cfg_write()

Type Parameter Key Value
PARAM_VALUE 1 buffer 4521178837502267392,4906224486140276736
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 4 space 0
PARAM_VALUE 6 length 2
BUF_SIZE 1 buffer 8
BUF_SIZE 1 buffer 8
DATA_SOURCE 1 buffer $1
DATA_SOURCE 4 space $2
DATA_SOURCE 5 offset $3
DATA_SOURCE 6 length $4
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock