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/tunnel.c tb_tunnel_alloc_dma() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 0 tb 0,4096-ptr_max
PARAM_VALUE 0 tb->cm_ops 4096-ptr_max
PARAM_VALUE 0 tb->cm_ops->approve_xdomain_paths 3901506540878663680,4968364433096765440,6378239632894922752
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 src 0,4096-ptr_max
PARAM_VALUE 3 dst 4096-ptr_max
PARAM_VALUE 3 dst->sw 4096-ptr_max
PARAM_VALUE 4 dst_hopid 1-s32max
PARAM_VALUE 5 link_nr 0
PARAM_VALUE 6 name 2550802065650327552
BUF_SIZE 6 name 7
CAPPED_DATA 1 src 1
CAPPED_DATA 3 dst 1
DATA_SOURCE 0 tb $0
DATA_SOURCE 1 src $2
DATA_SOURCE 2 src_hopid $5
DATA_SOURCE 3 dst $1
DATA_SOURCE 4 dst_hopid $6
STR_LEN 0 tb 6
TERMINATED 6 name 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 0 &tb->lock

drivers/thunderbolt/tunnel.c tb_tunnel_alloc_dma() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 0 tb 0,4096-ptr_max
PARAM_VALUE 0 tb->cm_ops 4096-ptr_max
PARAM_VALUE 0 tb->cm_ops->approve_xdomain_paths 3901506540878663680,4968364433096765440,6378239632894922752
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 src 4096-ptr_max
PARAM_VALUE 1 src->sw 4096-ptr_max
PARAM_VALUE 2 src_hopid 1-s32max
PARAM_VALUE 3 dst 0,4096-ptr_max
PARAM_VALUE 5 link_nr 0
PARAM_VALUE 6 name 680209640501006336
BUF_SIZE 6 name 7
CAPPED_DATA 1 src 1
CAPPED_DATA 3 dst 1
DATA_SOURCE 0 tb $0
DATA_SOURCE 1 src $1
DATA_SOURCE 2 src_hopid $4
DATA_SOURCE 3 dst $2
DATA_SOURCE 4 dst_hopid $3
STR_LEN 0 tb 6
TERMINATED 6 name 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 0 &tb->lock

drivers/thunderbolt/tunnel.c tb_tunnel_alloc_dp() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 0 tb 0,4096-ptr_max
PARAM_VALUE 0 tb->dev.power.wakeirq->status 0-4294967295
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.first_waiter->list.prev->prev 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 4096-ptr_max
PARAM_VALUE 0 tb->root_switch 4096-ptr_max
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 1 src->cap_adap s32min-(-1),1-s32max
PARAM_VALUE 1 src->group->index 1-7
PARAM_VALUE 1 src->sw 4096-ptr_max
PARAM_VALUE 1 src->sw->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 2 src_hopid 9
PARAM_VALUE 3 dst 4096-ptr_max
PARAM_VALUE 3 dst->cap_adap s32min-(-1),1-s32max
PARAM_VALUE 3 dst->sw->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 4 dst_hopid 9
PARAM_VALUE 5 link_nr 0-1
PARAM_VALUE 6 name 4405314753250148352
BUF_SIZE 6 name 6
CAPPED_DATA 1 src 1
CAPPED_DATA 3 dst 1
DATA_SOURCE 0 tb $0
DATA_SOURCE 1 src $1
DATA_SOURCE 3 dst $2
DATA_SOURCE 5 link_nr $3
FUZZY_MAX 5 link_nr 1
STR_LEN 0 tb (-1),14,23
STR_LEN 0 tb (-1),14,23
STR_LEN 1 src 5
TERMINATED 6 name 1
HARD_MAX 5 link_nr 1
HALF_LOCKED2 0 &tb->lock

drivers/thunderbolt/tunnel.c tb_tunnel_alloc_dp() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 0 tb 0,4096-ptr_max
PARAM_VALUE 0 tb->dev.power.wakeirq->status 0-4294967295
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.first_waiter->list.prev->prev 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 4096-ptr_max
PARAM_VALUE 0 tb->root_switch 4096-ptr_max
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 1 src->cap_adap s32min-(-1),1-s32max
PARAM_VALUE 1 src->group->index 1-7
PARAM_VALUE 1 src->sw 4096-ptr_max
PARAM_VALUE 1 src->sw->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 2 src_hopid 8
PARAM_VALUE 3 dst 4096-ptr_max
PARAM_VALUE 3 dst->cap_adap s32min-(-1),1-s32max
PARAM_VALUE 3 dst->sw->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 4 dst_hopid 8
PARAM_VALUE 5 link_nr 0-1
PARAM_VALUE 6 name 7907967756726915072
BUF_SIZE 6 name 7
CAPPED_DATA 1 src 1
CAPPED_DATA 3 dst 1
DATA_SOURCE 0 tb $0
DATA_SOURCE 1 src $1
DATA_SOURCE 3 dst $2
DATA_SOURCE 5 link_nr $3
FUZZY_MAX 5 link_nr 1
STR_LEN 0 tb (-1),14,23
STR_LEN 0 tb (-1),14,23
STR_LEN 1 src 6
PARAM_COMPARE 1 src <= $3
PARAM_COMPARE 1 src <= $3
PARAM_COMPARE 3 dst >= $1
TERMINATED 6 name 1
HARD_MAX 5 link_nr 1
HALF_LOCKED2 0 &tb->lock

drivers/thunderbolt/tunnel.c tb_tunnel_alloc_dp() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 0 tb 0,4096-ptr_max
PARAM_VALUE 0 tb->dev.power.wakeirq->status 0-4294967295
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.first_waiter->list.prev->prev 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 4096-ptr_max
PARAM_VALUE 0 tb->root_switch 4096-ptr_max
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 1 src->cap_adap s32min-(-1),1-s32max
PARAM_VALUE 1 src->sw->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 2 src_hopid 8
PARAM_VALUE 3 dst 4096-ptr_max
PARAM_VALUE 3 dst->cap_adap s32min-(-1),1-s32max
PARAM_VALUE 3 dst->group->index 1-7
PARAM_VALUE 3 dst->sw 4096-ptr_max
PARAM_VALUE 3 dst->sw->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 4 dst_hopid 8
PARAM_VALUE 5 link_nr 0-1
PARAM_VALUE 6 name 528298769611386880
BUF_SIZE 6 name 7
CAPPED_DATA 1 src 1
CAPPED_DATA 3 dst 1
DATA_SOURCE 0 tb $0
DATA_SOURCE 1 src $2
DATA_SOURCE 3 dst $1
DATA_SOURCE 5 link_nr $3
FUZZY_MAX 5 link_nr 1
STR_LEN 0 tb (-1),14,23
STR_LEN 0 tb (-1),14,23
STR_LEN 1 src 6
PARAM_COMPARE 1 src >= $3
PARAM_COMPARE 3 dst <= $1
PARAM_COMPARE 3 dst <= $1
TERMINATED 6 name 1
HARD_MAX 5 link_nr 1
HALF_LOCKED2 0 &tb->lock

drivers/thunderbolt/tunnel.c tb_tunnel_alloc_pci() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 0 tb 0,4096-ptr_max
PARAM_VALUE 0 tb->cm_ops 4096-ptr_max
PARAM_VALUE 0 tb->cm_ops->add_switch_key 0,1002246512258781184,6981059831128449024
PARAM_VALUE 0 tb->cm_ops->approve_switch 31640814900572160,2048108674026024960,5888713353499512832
PARAM_VALUE 0 tb->cm_ops->challenge_switch_key 0,2464593166624247808,8264241279748280320
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 2 src_hopid 8
PARAM_VALUE 3 dst 4096-ptr_max
PARAM_VALUE 4 dst_hopid 8
PARAM_VALUE 5 link_nr 0
PARAM_VALUE 6 name 6261021649134755840
BUF_SIZE 6 name 10
CAPPED_DATA 1 src 1
CAPPED_DATA 3 dst 1
DATA_SOURCE 0 tb $0
DATA_SOURCE 1 src $2
DATA_SOURCE 3 dst $1
STR_LEN 0 tb 9
TERMINATED 6 name 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &sw->tb->lock
HALF_LOCKED2 0 &tb->lock

drivers/thunderbolt/tunnel.c tb_tunnel_alloc_pci() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 0 tb 0,4096-ptr_max
PARAM_VALUE 0 tb->cm_ops 4096-ptr_max
PARAM_VALUE 0 tb->cm_ops->add_switch_key 0,1002246512258781184,6981059831128449024
PARAM_VALUE 0 tb->cm_ops->approve_switch 31640814900572160,2048108674026024960,5888713353499512832
PARAM_VALUE 0 tb->cm_ops->challenge_switch_key 0,2464593166624247808,8264241279748280320
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 2 src_hopid 8
PARAM_VALUE 3 dst 4096-ptr_max
PARAM_VALUE 4 dst_hopid 8
PARAM_VALUE 5 link_nr 0
PARAM_VALUE 6 name 5039675290851368960
BUF_SIZE 6 name 8
CAPPED_DATA 1 src 1
CAPPED_DATA 3 dst 1
DATA_SOURCE 0 tb $0
DATA_SOURCE 1 src $1
DATA_SOURCE 3 dst $2
STR_LEN 0 tb 7
PARAM_COMPARE 1 src >= $3
PARAM_COMPARE 3 dst <= $1
PARAM_COMPARE 3 dst <= $1
TERMINATED 6 name 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &sw->tb->lock
HALF_LOCKED2 0 &tb->lock

drivers/thunderbolt/tunnel.c tb_tunnel_alloc_usb3() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 1 src->sw 4096-ptr_max
PARAM_VALUE 2 src_hopid 8
PARAM_VALUE 3 dst 4096-ptr_max
PARAM_VALUE 4 dst_hopid 8
PARAM_VALUE 5 link_nr 0
PARAM_VALUE 6 name 3063415040341495808
BUF_SIZE 6 name 10
CAPPED_DATA 1 src 1
CAPPED_DATA 3 dst 1
DATA_SOURCE 0 tb $0
DATA_SOURCE 1 src $2
DATA_SOURCE 3 dst $1
STR_LEN 0 tb 9
TERMINATED 6 name 1
RX_PATH
TASK_NOT_RUNNING

drivers/thunderbolt/tunnel.c tb_tunnel_alloc_usb3() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 2 src_hopid 8
PARAM_VALUE 3 dst 4096-ptr_max
PARAM_VALUE 3 dst->sw 4096-ptr_max
PARAM_VALUE 4 dst_hopid 8
PARAM_VALUE 5 link_nr 0
PARAM_VALUE 6 name 8297347012087414784
BUF_SIZE 6 name 8
CAPPED_DATA 1 src 1
CAPPED_DATA 3 dst 1
DATA_SOURCE 0 tb $0
DATA_SOURCE 1 src $1
DATA_SOURCE 3 dst $2
STR_LEN 0 tb 7
PARAM_COMPARE 1 src >= $3
PARAM_COMPARE 3 dst <= $1
PARAM_COMPARE 3 dst <= $1
TERMINATED 6 name 1
RX_PATH
TASK_NOT_RUNNING

drivers/thunderbolt/test.c tb_test_path_mixed_chain() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 0 tb 0
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 2 src_hopid 9
PARAM_VALUE 3 dst 4096-ptr_max
PARAM_VALUE 4 dst_hopid 9
PARAM_VALUE 5 link_nr 1
PARAM_VALUE 6 name 4405314753250148352
BUF_SIZE 6 name 6
STR_LEN 0 tb 5
TERMINATED 6 name 1

drivers/thunderbolt/test.c tb_test_path_mixed_chain_reverse() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 0 tb 0
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 2 src_hopid 9
PARAM_VALUE 3 dst 4096-ptr_max
PARAM_VALUE 4 dst_hopid 9
PARAM_VALUE 5 link_nr 1
PARAM_VALUE 6 name 4405314753250148352
BUF_SIZE 6 name 6
STR_LEN 0 tb 5
TERMINATED 6 name 1

drivers/thunderbolt/test.c tb_test_path_not_bonded_lane0() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 0 tb 0
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 2 src_hopid 8
PARAM_VALUE 3 dst 4096-ptr_max
PARAM_VALUE 4 dst_hopid 8
PARAM_VALUE 5 link_nr 0
PARAM_VALUE 6 name 6261021649134755840
BUF_SIZE 6 name 10
STR_LEN 0 tb 9
TERMINATED 6 name 1

drivers/thunderbolt/test.c tb_test_path_not_bonded_lane1() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 0 tb 0
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 2 src_hopid 9
PARAM_VALUE 3 dst 4096-ptr_max
PARAM_VALUE 4 dst_hopid 9
PARAM_VALUE 5 link_nr 1
PARAM_VALUE 6 name 4405314753250148352
BUF_SIZE 6 name 6
STR_LEN 0 tb 5
TERMINATED 6 name 1

drivers/thunderbolt/test.c tb_test_path_not_bonded_lane1_chain() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 0 tb 0
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 2 src_hopid 9
PARAM_VALUE 3 dst 4096-ptr_max
PARAM_VALUE 4 dst_hopid 9
PARAM_VALUE 5 link_nr 1
PARAM_VALUE 6 name 4405314753250148352
BUF_SIZE 6 name 6
STR_LEN 0 tb 5
TERMINATED 6 name 1

drivers/thunderbolt/test.c tb_test_path_not_bonded_lane1_chain_reverse() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 0 tb 0
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 2 src_hopid 9
PARAM_VALUE 3 dst 4096-ptr_max
PARAM_VALUE 4 dst_hopid 9
PARAM_VALUE 5 link_nr 1
PARAM_VALUE 6 name 4405314753250148352
BUF_SIZE 6 name 6
STR_LEN 0 tb 5
TERMINATED 6 name 1

drivers/thunderbolt/test.c tb_test_path_not_connected() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 0 tb 0
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 2 src_hopid 8
PARAM_VALUE 3 dst 4096-ptr_max
PARAM_VALUE 4 dst_hopid 8
PARAM_VALUE 5 link_nr 0
PARAM_VALUE 6 name 6261021649134755840
BUF_SIZE 6 name 10
STR_LEN 0 tb 9
TERMINATED 6 name 1

drivers/thunderbolt/test.c tb_test_path_not_connected() -> tb_path_alloc()

Type Parameter Key Value
PARAM_VALUE 0 tb 0
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 2 src_hopid 8
PARAM_VALUE 3 dst 4096-ptr_max
PARAM_VALUE 4 dst_hopid 8
PARAM_VALUE 5 link_nr 1
PARAM_VALUE 6 name 6261021649134755840
BUF_SIZE 6 name 10
STR_LEN 0 tb 9
TERMINATED 6 name 1