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 tb_port_read() -> tb_cfg_read()

Type Parameter Key Value
PARAM_VALUE 1 buffer 1-u64max
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 4 space 1
PARAM_VALUE 6 length 0-16
BUF_SIZE 1 buffer (-1),4,8,12,64
BUF_SIZE 1 buffer (-1),4,8,12,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
NOSPEC 6 length
NOSPEC 6 length
RX_PATH
TASK_NOT_RUNNING
USER_DATA 6 length 0-16[c]
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/usb4.c tb_sw_read() -> tb_cfg_read()

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-7,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
NOSPEC 6 length
NOSPEC 6 length
HARD_MAX 5 offset 26
RX_PATH
TASK_NOT_RUNNING
USER_DATA 6 length 1-16[c]
UNITS 6 length unit_array_size
USER_PTR 1 buffer

drivers/thunderbolt/switch.c tb_port_read() -> tb_cfg_read()

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

drivers/thunderbolt/switch.c tb_sw_read() -> tb_cfg_read()

Type Parameter Key Value
PARAM_VALUE 1 buffer 5420504026574147584,6421011393428385792,8263843895039180800,8527587434320711680
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 &sw->tb->lock
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/switch.c tb_switch_alloc() -> tb_cfg_read()

Type Parameter Key Value
PARAM_VALUE 0 ctl 4096-ptr_max
PARAM_VALUE 0 ctl->frame_pool->dev->cma_area->alloc_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctl->frame_pool->dev->cma_area->alloc_mutex.first_waiter->list.prev->prev 5159360019465732096
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->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctl->frame_pool->next_block->next_block 0
PARAM_VALUE 0 ctl->request_queue_lock.dep_map->name 0-255
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->blocked_lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 0 ctl->request_queue_lock.first_waiter->task->blocked_on 0
PARAM_VALUE 0 ctl->tx->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 buffer 4096-ptr_max
PARAM_VALUE 3 port 0
PARAM_VALUE 4 space 2
PARAM_VALUE 5 offset 0
PARAM_VALUE 6 length 5
BUF_SIZE 1 buffer 20
DATA_SOURCE 2 route $2
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 ctl->frame_pool->allocation
NO_OVERFLOW_SIMPLE 0 ctl->nhi->hop_count
HALF_LOCKED2 &tb->lock
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/xdomain.c tb_port_read() -> tb_cfg_read()

Type Parameter Key Value
PARAM_VALUE 1 buffer 185799412707250176,4938872944948834304
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 4 space 1
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
UNITS 6 length unit_array_size
HALF_LOCKED2 &pool->lock

drivers/thunderbolt/eeprom.c tb_port_read() -> tb_cfg_read()

Type Parameter Key Value
PARAM_VALUE 1 buffer 398572764869894144
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 4 space 1
PARAM_VALUE 5 offset 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 &tb->lock

drivers/thunderbolt/eeprom.c tb_sw_read() -> tb_cfg_read()

Type Parameter Key Value
PARAM_VALUE 0 ctl 4096-ptr_max
PARAM_VALUE 1 buffer 4948005100561674240,5052735087039582208,8719767316612759552,8823908056060923904
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 3 port 0
PARAM_VALUE 4 space 2
PARAM_VALUE 6 length 1,13
BUF_SIZE 1 buffer (-1),52
BUF_SIZE 1 buffer (-1),52
DATA_SOURCE 1 buffer $1
DATA_SOURCE 4 space $2
DATA_SOURCE 5 offset $3
DATA_SOURCE 6 length $4
HARD_MAX 6 length 13
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tmu.c tb_port_read() -> tb_cfg_read()

Type Parameter Key Value
PARAM_VALUE 1 buffer 408084347161681920,608573592852525056,3983078510780403712,5301498765301915648,7274259367839649792,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_read() -> tb_cfg_read()

Type Parameter Key Value
PARAM_VALUE 1 buffer 1582614192710836224,1992836366483488768,2744274013877784576,5031261870463950848,5779559763082096640,6621829406254604288,7028517951514439680,8968621572242538496
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 3 port 0
PARAM_VALUE 4 space 2
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 6 length 3
RX_PATH
TASK_NOT_RUNNING
UNITS 6 length unit_array_size
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/tunnel.c tb_port_read() -> tb_cfg_read()

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 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/clx.c tb_port_read() -> tb_cfg_read()

Type Parameter Key Value
PARAM_VALUE 1 buffer 1366772952703950848,3096938358932082688,5523476593350483968,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

drivers/thunderbolt/clx.c tb_sw_read() -> tb_cfg_read()

Type Parameter Key Value
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_read() -> tb_cfg_read()

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,4
BUF_SIZE 1 buffer (-1),4,16
BUF_SIZE 1 buffer (-1),4,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 &pool->lock
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/debugfs.c tb_port_read() -> tb_cfg_read()

Type Parameter Key Value
PARAM_VALUE 1 buffer 1281868901838917632,4771922890902749184,5654140768717602816,5654140768717602820,5845932378146648064,7259100591653388288,7764245975718256640,8568030144038690816
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 4 space 0-1,3
PARAM_VALUE 6 length 1-60
BUF_SIZE 1 buffer 4,8,12,36,240
BUF_SIZE 1 buffer 4,8,12,36,240
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 4 space 3
RX_PATH
TASK_NOT_RUNNING
UNITS 6 length unit_array_size
LOCK2 &tb->lock
HALF_LOCKED2 &s->lock
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/debugfs.c tb_sw_read() -> tb_cfg_read()

Type Parameter Key Value
PARAM_VALUE 1 buffer 5845932378146648064,7012168403787980800,7012168403787980804,7259100591653388288,8723775875612811264
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 3 port 0
PARAM_VALUE 4 space 2
PARAM_VALUE 6 length 1-60
BUF_SIZE 1 buffer 4,8,108,240
BUF_SIZE 1 buffer 4,8,108,240
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
UNITS 6 length 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_port_read() -> tb_cfg_read()

Type Parameter Key Value
PARAM_VALUE 1 buffer 693690669789949952,3385211076829753344,4254591677437841408
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 4 space 1
PARAM_VALUE 5 offset 0-s32max
PARAM_VALUE 6 length 1
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
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/cap.c tb_sw_read() -> tb_cfg_read()

Type Parameter Key Value
PARAM_VALUE 1 buffer 1173172424898871296,5184656553173127168,7035657360717324288,8106614253612593152
PARAM_VALUE 2 route 0-9223372036854775807
PARAM_VALUE 3 port 0
PARAM_VALUE 4 space 2
PARAM_VALUE 5 offset 0-s32max
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
FUZZY_MAX 5 offset 42
HARD_MAX 6 length 2
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock

drivers/thunderbolt/path.c tb_port_read() -> tb_cfg_read()

Type Parameter Key Value
PARAM_VALUE 1 buffer 878016329799942144,1860607586136010752,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