Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- drivers/target/iscsi/iscsi_target.c
- drivers/target/target_core_transport.c
- drivers/target/target_core_xcopy.c
- drivers/usb/gadget/function/f_tcm.c
Smatch caller information:
drivers/target/iscsi/iscsi_target.c iscsit_handle_task_mgt_cmd() -> __target_init_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cmd | 4096-ptr_max |
| PARAM_VALUE | 0 | cmd->map_cpu | 0 |
| PARAM_VALUE | 0 | cmd->map_tag | 0-s32max |
| PARAM_VALUE | 1 | tfo | 3892190728911122432 |
| PARAM_VALUE | 3 | data_length | 0 |
| PARAM_VALUE | 4 | data_direction | 3 |
| PARAM_VALUE | 5 | task_attr | 32 |
| PARAM_VALUE | 6 | sense_buffer | 4096-ptr_max |
| BUF_SIZE | 6 | sense_buffer | 96 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/target/iscsi/iscsi_target.c iscsit_setup_scsi_cmd() -> __target_init_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cmd | 4096-ptr_max |
| PARAM_VALUE | 0 | cmd->map_cpu | 0 |
| PARAM_VALUE | 0 | cmd->map_tag | 0-s32max |
| PARAM_VALUE | 1 | tfo | 3892190728911122432 |
| PARAM_VALUE | 4 | data_direction | 1-3 |
| PARAM_VALUE | 5 | task_attr | 32-34,36 |
| PARAM_VALUE | 6 | sense_buffer | 4096-ptr_max |
| BUF_SIZE | 6 | sense_buffer | 96 |
| FUZZY_MAX | 5 | task_attr | 36 |
| BIT_INFO | 5 | task_attr | 0x20,0x27 |
| HARD_MAX | 5 | task_attr | 36 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/gadget/function/f_tcm.c bot_cmd_work() -> __target_init_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cmd | 4096-ptr_max |
| PARAM_VALUE | 2 | se_sess | 4096-ptr_max |
| PARAM_VALUE | 2 | se_sess->se_tpg | 4096-ptr_max |
| PARAM_VALUE | 4 | data_direction | 3 |
| PARAM_VALUE | 7 | unpacked_lun | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 8 | cmd_cnt | 0 |
| BUF_SIZE | 0 | cmd | 656 |
| BUF_SIZE | 6 | sense_buffer | 96 |
| NOCHECK_CALL | |||
| UNITS | 3 | data_length | unit_byte |
| HALF_LOCKED2 | &pool->lock |
drivers/usb/gadget/function/f_tcm.c usbg_submit_cmd() -> __target_init_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cmd | 4096-ptr_max |
| PARAM_VALUE | 2 | se_sess | 4096-ptr_max |
| PARAM_VALUE | 2 | se_sess->se_tpg | 4096-ptr_max |
| PARAM_VALUE | 4 | data_direction | 3 |
| PARAM_VALUE | 7 | unpacked_lun | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 8 | cmd_cnt | 0 |
| BUF_SIZE | 0 | cmd | 656 |
| BUF_SIZE | 6 | sense_buffer | 96 |
| NOCHECK_CALL | |||
| UNITS | 3 | data_length | unit_byte |
| HALF_LOCKED2 | &pool->lock |
drivers/target/target_core_xcopy.c target_xcopy_read_source() -> __target_init_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cmd | 4021794778315452416 |
| PARAM_VALUE | 1 | tfo | 5663914509915561984 |
| PARAM_VALUE | 2 | se_sess | 3315679075767599104 |
| PARAM_VALUE | 3 | data_length | 0-16777216 |
| PARAM_VALUE | 4 | data_direction | 2 |
| PARAM_VALUE | 5 | task_attr | 0 |
| PARAM_VALUE | 7 | unpacked_lun | 0 |
| PARAM_VALUE | 8 | cmd_cnt | 0 |
| BUF_SIZE | 0 | cmd | 656 |
| BUF_SIZE | 6 | sense_buffer | 96 |
| CAPPED_DATA | 3 | data_length | 1 |
| DATA_SOURCE | 3 | data_length | $4 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/target/target_core_xcopy.c target_xcopy_write_destination() -> __target_init_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cmd | 4095826752700821504 |
| PARAM_VALUE | 1 | tfo | 5663914509915561984 |
| PARAM_VALUE | 2 | se_sess | 3315679075767599104 |
| PARAM_VALUE | 3 | data_length | 0-16777216 |
| PARAM_VALUE | 4 | data_direction | 1 |
| PARAM_VALUE | 5 | task_attr | 0 |
| PARAM_VALUE | 7 | unpacked_lun | 0 |
| PARAM_VALUE | 8 | cmd_cnt | 0 |
| BUF_SIZE | 0 | cmd | 656 |
| BUF_SIZE | 6 | sense_buffer | 96 |
| CAPPED_DATA | 3 | data_length | 1 |
| DATA_SOURCE | 3 | data_length | $4 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/target/target_core_transport.c target_init_cmd() -> __target_init_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cmd | 4096-ptr_max |
| PARAM_VALUE | 0 | cmd->se_sess | 0 |
| PARAM_VALUE | 0 | cmd->se_tfo | 0 |
| PARAM_VALUE | 2 | se_sess | 4096-ptr_max |
| PARAM_VALUE | 2 | se_sess->se_tpg | 4096-ptr_max |
| BUF_SIZE | 0 | cmd | (-1),656 |
| BUF_SIZE | 0 | cmd | (-1),656 |
| BUF_SIZE | 6 | sense_buffer | 96 |
| BUF_SIZE | 6 | sense_buffer | 96 |
| DATA_SOURCE | 0 | cmd | $0 |
| DATA_SOURCE | 2 | se_sess | $1 |
| DATA_SOURCE | 3 | data_length | $4 |
| DATA_SOURCE | 4 | data_direction | $6 |
| DATA_SOURCE | 5 | task_attr | $5 |
| DATA_SOURCE | 6 | sense_buffer | $2 |
| DATA_SOURCE | 7 | unpacked_lun | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 3 | data_length | 3-4294967292[c] |
| USER_DATA | 3 | data_length | 0-u32max |
| UNITS | 3 | data_length | unit_byte |
| HALF_LOCKED2 | &vq->mutex |
drivers/target/target_core_transport.c target_submit_tmr() -> __target_init_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cmd | 4096-ptr_max |
| PARAM_VALUE | 2 | se_sess | 4096-ptr_max |
| PARAM_VALUE | 2 | se_sess->se_tpg | 4096-ptr_max |
| PARAM_VALUE | 3 | data_length | 0 |
| PARAM_VALUE | 4 | data_direction | 3 |
| PARAM_VALUE | 5 | task_attr | 32 |
| BUF_SIZE | 0 | cmd | (-1),656 |
| BUF_SIZE | 0 | cmd | (-1),656 |
| BUF_SIZE | 6 | sense_buffer | (-1),3,96 |
| BUF_SIZE | 6 | sense_buffer | (-1),3,96 |
| DATA_SOURCE | 0 | cmd | $0 |
| DATA_SOURCE | 2 | se_sess | $1 |
| DATA_SOURCE | 6 | sense_buffer | $2 |
| DATA_SOURCE | 7 | unpacked_lun | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 7 | unpacked_lun | unit_array_size |
| HALF_LOCKED2 | &vq->mutex |