Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 11 files:

Smatch caller information:

drivers/scsi/qla2xxx/tcm_qla2xxx.c tcm_qla2xxx_check_initiator_node_acl() -> target_setup_session()

Type Parameter Key Value
PARAM_VALUE 0 tpg 4096-ptr_max
PARAM_VALUE 1 tag_num 1-u16max
PARAM_VALUE 2 tag_size 1160
PARAM_VALUE 3 prot_op 63
PARAM_VALUE 4 initiatorname 8755393353507340288
PARAM_VALUE 5 private 4096-ptr_max
PARAM_VALUE 6 callback 7507338176440647680
BUF_SIZE 4 initiatorname 36
BUF_SIZE 5 private (-1),1112
DATA_SOURCE 5 private $2
STR_LEN 0 tpg 35
RX_PATH
TASK_NOT_RUNNING
UNITS 2 tag_size unit_byte
LOCK2 &vha->vha_tgt.tgt_mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &vha->hw->hardware_lock
HALF_LOCKED2 &vha->hw->vport_slock
TYPE_LOCK (struct scsi_qlt_host)->tgt_mutex

drivers/xen/xen-scsiback.c scsiback_make_nexus() -> target_setup_session()

Type Parameter Key Value
PARAM_VALUE 0 tpg 4096-ptr_max
PARAM_VALUE 1 tag_num 128
PARAM_VALUE 2 tag_size 2752
PARAM_VALUE 3 prot_op 0
PARAM_VALUE 4 initiatorname 8996879207660679168,8996879207660679171
PARAM_VALUE 5 private 4096-ptr_max
PARAM_VALUE 6 callback 7303899220294242304
BUF_SIZE 4 initiatorname 29,32
BUF_SIZE 4 initiatorname 29,32
BUF_SIZE 5 private 8
DATA_SOURCE 4 initiatorname $1
DATA_SOURCE 5 private r _kzalloc_noprof
BIT_INFO 4 initiatorname 0x7cdb55f8cbb67000,0x7cdb55f8cbb67003
BIT_INFO 4 initiatorname 0x7cdb55f8cbb67000,0x7cdb55f8cbb67003
RX_PATH
TASK_NOT_RUNNING
UNITS 2 tag_size unit_byte
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
LOCK2 &tpg->tv_tpg_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem
TYPE_LOCK (struct scsiback_tpg)->tv_tpg_mutex

drivers/usb/gadget/function/f_tcm.c tcm_usbg_make_nexus() -> target_setup_session()

Type Parameter Key Value
PARAM_VALUE 0 tpg 4096-ptr_max
PARAM_VALUE 1 tag_num 33
PARAM_VALUE 2 tag_size 1000
PARAM_VALUE 3 prot_op 0
PARAM_VALUE 4 initiatorname 1937133114852253696
PARAM_VALUE 5 private 4096-ptr_max
PARAM_VALUE 6 callback 1320765913262559232
BUF_SIZE 4 initiatorname 32
BUF_SIZE 4 initiatorname 32
BUF_SIZE 5 private 8
DATA_SOURCE 4 initiatorname $1
DATA_SOURCE 5 private r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
UNITS 2 tag_size unit_byte
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
LOCK2 &tpg->tpg_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem
TYPE_LOCK (struct usbg_tpg)->tpg_mutex

drivers/target/tcm_fc/tfc_sess.c ft_sess_create() -> target_setup_session()

Type Parameter Key Value
PARAM_VALUE 0 tpg 4096-ptr_max
PARAM_VALUE 1 tag_num 512
PARAM_VALUE 2 tag_size 888
PARAM_VALUE 3 prot_op 0
PARAM_VALUE 4 initiatorname 8456017593324957696
PARAM_VALUE 5 private 4096-ptr_max
PARAM_VALUE 6 callback 4801870134219915264
BUF_SIZE 0 tpg 1408
BUF_SIZE 4 initiatorname 224
BUF_SIZE 5 private 80
DATA_SOURCE 5 private r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
UNITS 2 tag_size unit_byte
LOCK2 &rdata->rp_mutex
LOCK2 global &ft_lport_lock
HALF_LOCKED2 &lport->lp_mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &fc_prov_mutex
TYPE_LOCK (struct fc_rport_priv)->rp_mutex

drivers/scsi/elx/efct/efct_lio.c efct_lio_setup_session() -> target_setup_session()

Type Parameter Key Value
PARAM_VALUE 0 tpg 1-u64max
PARAM_VALUE 1 tag_num 0
PARAM_VALUE 2 tag_size 0
PARAM_VALUE 3 prot_op 0
PARAM_VALUE 4 initiatorname 3617959890542567424
PARAM_VALUE 5 private 4096-ptr_max
PARAM_VALUE 6 callback 8797390150097010688
BUF_SIZE 0 tpg 1408
BUF_SIZE 4 initiatorname 32
BUF_SIZE 5 private 480,1080
HALF_LOCKED2 &pool->lock

drivers/infiniband/ulp/srpt/ib_srpt.c srpt_cm_req_recv() -> target_setup_session()

Type Parameter Key Value
PARAM_VALUE 0 tpg 4096-ptr_max
PARAM_VALUE 1 tag_num 0-128
PARAM_VALUE 2 tag_size 1
PARAM_VALUE 3 prot_op 0
PARAM_VALUE 5 private 4096-ptr_max
PARAM_VALUE 6 callback 0
BUF_SIZE 4 initiatorname 40
BUF_SIZE 5 private 400
CAPPED_DATA 1 tag_num 1
DATA_SOURCE 5 private r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 1 tag_num
UNITS 1 tag_num unit_array_size
LOCK2 &sport->guid_id->mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct srpt_port_id)->mutex

drivers/infiniband/ulp/srpt/ib_srpt.c srpt_cm_req_recv() -> target_setup_session()

Type Parameter Key Value
PARAM_VALUE 0 tpg 4096-ptr_max
PARAM_VALUE 1 tag_num 0-128
PARAM_VALUE 2 tag_size 1
PARAM_VALUE 3 prot_op 0
PARAM_VALUE 4 initiatorname 1645449780348272640
PARAM_VALUE 5 private 4096-ptr_max
PARAM_VALUE 6 callback 0
BUF_SIZE 4 initiatorname 36
BUF_SIZE 5 private 400
CAPPED_DATA 1 tag_num 1
DATA_SOURCE 5 private r _kzalloc_noprof
STR_LEN 0 tpg 35
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 1 tag_num
UNITS 1 tag_num unit_array_size
LOCK2 &sport->gid_id->mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct srpt_port_id)->mutex

drivers/infiniband/ulp/srpt/ib_srpt.c srpt_cm_req_recv() -> target_setup_session()

Type Parameter Key Value
PARAM_VALUE 0 tpg 4096-ptr_max
PARAM_VALUE 1 tag_num 0-128
PARAM_VALUE 2 tag_size 1
PARAM_VALUE 3 prot_op 0
PARAM_VALUE 4 initiatorname 1645449780348272642
PARAM_VALUE 5 private 4096-ptr_max
PARAM_VALUE 6 callback 0
BUF_SIZE 4 initiatorname 34
BUF_SIZE 5 private 400
CAPPED_DATA 1 tag_num 1
DATA_SOURCE 5 private r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 1 tag_num
UNITS 1 tag_num unit_array_size
LOCK2 &sport->gid_id->mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct srpt_port_id)->mutex

drivers/target/loopback/tcm_loop.c tcm_loop_make_nexus() -> target_setup_session()

Type Parameter Key Value
PARAM_VALUE 0 tpg 4096-ptr_max
PARAM_VALUE 1 tag_num 0
PARAM_VALUE 2 tag_size 0
PARAM_VALUE 3 prot_op 48
PARAM_VALUE 4 initiatorname 5097650807992254464,5097650807992254467
PARAM_VALUE 5 private 4096-ptr_max
PARAM_VALUE 6 callback 7823105375661015040
BUF_SIZE 4 initiatorname 253,256
BUF_SIZE 4 initiatorname 253,256
BUF_SIZE 5 private 8
DATA_SOURCE 4 initiatorname $1
DATA_SOURCE 5 private r _kzalloc_noprof
BIT_INFO 4 initiatorname 0x46be7e66bf5c8000,0x46be7e66bf5c8003
BIT_INFO 4 initiatorname 0x46be7e66bf5c8000,0x46be7e66bf5c8003
RX_PATH
TASK_NOT_RUNNING
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem

drivers/target/sbp/sbp_target.c sbp_session_create() -> target_setup_session()

Type Parameter Key Value
PARAM_VALUE 0 tpg 4096-ptr_max
PARAM_VALUE 1 tag_num 128
PARAM_VALUE 2 tag_size 928
PARAM_VALUE 3 prot_op 0
PARAM_VALUE 4 initiatorname 6850866104514473984
PARAM_VALUE 5 private 4096-ptr_max
PARAM_VALUE 6 callback 0
BUF_SIZE 4 initiatorname 17
BUF_SIZE 5 private 328
DATA_SOURCE 5 private r _kmalloc_noprof
STR_LEN 0 tpg 16
UNITS 2 tag_size unit_byte
HALF_LOCKED2 &pool->lock

drivers/vhost/scsi.c vhost_scsi_make_nexus() -> target_setup_session()

Type Parameter Key Value
PARAM_VALUE 0 tpg 4096-ptr_max
PARAM_VALUE 1 tag_num 0
PARAM_VALUE 2 tag_size 0
PARAM_VALUE 3 prot_op 48
PARAM_VALUE 4 initiatorname 2033709168686395392,2033709168686395395
PARAM_VALUE 5 private 4096-ptr_max
PARAM_VALUE 6 callback 0
BUF_SIZE 4 initiatorname 253,256
BUF_SIZE 4 initiatorname 253,256
BUF_SIZE 5 private 8
DATA_SOURCE 4 initiatorname $1
DATA_SOURCE 5 private r _kzalloc_noprof
BIT_INFO 4 initiatorname 0x1c392fb6c001f000,0x1c392fb6c001f003
BIT_INFO 4 initiatorname 0x1c392fb6c001f000,0x1c392fb6c001f003
RX_PATH
TASK_NOT_RUNNING
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
LOCK2 &tpg->tv_tpg_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem
TYPE_LOCK (struct vhost_scsi_tpg)->tv_tpg_mutex