Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/target/target_core_sbc.c sbc_parse_cdb() -> sbc_check_prot()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->transport | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->protocol_data | 52755395483332608,5021708104736653312,7513459227993153536 |
| PARAM_VALUE | 1 | cmd->se_cmd_flags | 0,32-u32max |
| PARAM_VALUE | 1 | cmd->se_delayed_node.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_delayed_node.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_dev->transport | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_qf_node.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_qf_node.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->state_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->state_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_task_cdb | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_task_lba | 0-u32max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.magic | 3735899821 |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.owner | (-1) |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.task_list.prev | 4096-ptr_max |
| PARAM_VALUE | 2 | protect | 0-7 |
| PARAM_VALUE | 3 | sectors | 0-u16max |
| PARAM_VALUE | 4 | is_write | 0 |
| BUF_SIZE | 1 | cmd->se_lun | (-1),1240 |
| DATA_SOURCE | 1 | cmd | $0 |
| DATA_SOURCE | 3 | sectors | r transport_get_sectors_10 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | cmd->data_length | 0-u32max |
| HALF_LOCKED2 | &pool->lock |
drivers/target/target_core_sbc.c sbc_parse_cdb() -> sbc_check_prot()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->transport | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->protocol_data | 52755395483332608,5021708104736653312,7513459227993153536 |
| PARAM_VALUE | 1 | cmd->se_cmd_flags | 0,32-u32max |
| PARAM_VALUE | 1 | cmd->se_delayed_node.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_delayed_node.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_dev->transport | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_qf_node.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_qf_node.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->state_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->state_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_task_cdb | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_task_lba | 0-u32max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.magic | 3735899821 |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.owner | (-1) |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.task_list.prev | 4096-ptr_max |
| PARAM_VALUE | 2 | protect | 0-7 |
| PARAM_VALUE | 4 | is_write | 0 |
| BUF_SIZE | 1 | cmd->se_lun | (-1),1240 |
| DATA_SOURCE | 1 | cmd | $0 |
| DATA_SOURCE | 3 | sectors | r transport_get_sectors_12 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | cmd->data_length | 0-u32max |
| HALF_LOCKED2 | &pool->lock |
drivers/target/target_core_sbc.c sbc_parse_cdb() -> sbc_check_prot()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->transport | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->protocol_data | 52755395483332608,5021708104736653312,7513459227993153536 |
| PARAM_VALUE | 1 | cmd->se_cmd_flags | 0,32-u32max |
| PARAM_VALUE | 1 | cmd->se_delayed_node.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_delayed_node.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_dev->transport | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_qf_node.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_qf_node.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->state_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->state_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_task_cdb | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.magic | 3735899821 |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.owner | (-1) |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.task_list.prev | 4096-ptr_max |
| PARAM_VALUE | 2 | protect | 0-7 |
| PARAM_VALUE | 4 | is_write | 0 |
| BUF_SIZE | 1 | cmd->se_lun | (-1),1240 |
| DATA_SOURCE | 1 | cmd | $0 |
| DATA_SOURCE | 3 | sectors | r transport_get_sectors_16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | cmd->data_length | 0-u32max |
| HALF_LOCKED2 | &pool->lock |
drivers/target/target_core_sbc.c sbc_parse_cdb() -> sbc_check_prot()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->transport | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->protocol_data | 52755395483332608,5021708104736653312,7513459227993153536 |
| PARAM_VALUE | 1 | cmd->se_cmd_flags | 0,32-u32max |
| PARAM_VALUE | 1 | cmd->se_delayed_node.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_delayed_node.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_dev->transport | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_qf_node.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_qf_node.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->state_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->state_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_task_cdb | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_task_lba | 0-u32max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.magic | 3735899821 |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.owner | (-1) |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.task_list.prev | 4096-ptr_max |
| PARAM_VALUE | 2 | protect | 0-7 |
| PARAM_VALUE | 3 | sectors | 0-u16max |
| PARAM_VALUE | 4 | is_write | 1 |
| BUF_SIZE | 1 | cmd->se_lun | (-1),1240 |
| DATA_SOURCE | 1 | cmd | $0 |
| DATA_SOURCE | 3 | sectors | r transport_get_sectors_10 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | cmd->data_length | 0-u32max |
| HALF_LOCKED2 | &pool->lock |
drivers/target/target_core_sbc.c sbc_parse_cdb() -> sbc_check_prot()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->transport | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->protocol_data | 52755395483332608,5021708104736653312,7513459227993153536 |
| PARAM_VALUE | 1 | cmd->se_cmd_flags | 0,32-u32max |
| PARAM_VALUE | 1 | cmd->se_delayed_node.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_delayed_node.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_dev->transport | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_qf_node.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_qf_node.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->state_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->state_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_task_cdb | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_task_lba | 0-u32max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.magic | 3735899821 |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.owner | (-1) |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.task_list.prev | 4096-ptr_max |
| PARAM_VALUE | 2 | protect | 0-7 |
| PARAM_VALUE | 4 | is_write | 1 |
| BUF_SIZE | 1 | cmd->se_lun | (-1),1240 |
| DATA_SOURCE | 1 | cmd | $0 |
| DATA_SOURCE | 3 | sectors | r transport_get_sectors_12 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | cmd->data_length | 0-u32max |
| HALF_LOCKED2 | &pool->lock |
drivers/target/target_core_sbc.c sbc_parse_cdb() -> sbc_check_prot()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->transport | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->protocol_data | 52755395483332608,5021708104736653312,7513459227993153536 |
| PARAM_VALUE | 1 | cmd->se_cmd_flags | 0,32-u32max |
| PARAM_VALUE | 1 | cmd->se_delayed_node.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_delayed_node.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_dev->transport | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_qf_node.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_qf_node.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->state_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->state_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_task_cdb | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.magic | 3735899821 |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.owner | (-1) |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.task_list.prev | 4096-ptr_max |
| PARAM_VALUE | 2 | protect | 0-7 |
| PARAM_VALUE | 4 | is_write | 1 |
| BUF_SIZE | 1 | cmd->se_lun | (-1),1240 |
| DATA_SOURCE | 1 | cmd | $0 |
| DATA_SOURCE | 3 | sectors | r transport_get_sectors_16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | cmd->data_length | 0-u32max |
| HALF_LOCKED2 | &pool->lock |
drivers/target/target_core_sbc.c sbc_setup_write_same() -> sbc_check_prot()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->transport | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->protocol_data | 52755395483332608,5021708104736653312,7513459227993153536 |
| PARAM_VALUE | 1 | cmd->se_cmd_flags | 0,64-u32max |
| PARAM_VALUE | 1 | cmd->se_delayed_node.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_delayed_node.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_dev->transport | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_qf_node.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->se_qf_node.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->state_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->state_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_task_cdb | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_task_lba | 0-255 |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.magic | 3735899821 |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.owner | (-1) |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd->t_transport_stop_comp.wait.task_list.prev | 4096-ptr_max |
| PARAM_VALUE | 2 | protect | 0-7 |
| PARAM_VALUE | 4 | is_write | 1 |
| BUF_SIZE | 1 | cmd->se_lun | (-1),1240 |
| CAPPED_DATA | 1 | cmd->t_task_lba | 1 |
| CAPPED_DATA | 3 | sectors | 1 |
| DATA_SOURCE | 1 | cmd | $0 |
| DATA_SOURCE | 3 | sectors | r sbc_get_write_same_sectors |
| PARAM_COMPARE | 1 | cmd->se_dev->dev_attrib.max_write_same_len | >= $3 |
| PARAM_COMPARE | 3 | sectors | <= $1->se_dev->dev_attrib.max_write_same_len |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | cmd->data_length | 0-u32max |
| NO_OVERFLOW_SIMPLE | 1 | cmd->t_task_lba | |
| NO_OVERFLOW_SIMPLE | 3 | sectors | |
| HALF_LOCKED2 | &pool->lock |