Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- drivers/nvme/target/admin-cmd.c
- drivers/nvme/target/io-cmd-bdev.c, line 473
- drivers/nvme/target/io-cmd-file.c, line 379
- drivers/nvme/target/passthru.c, line 574
Smatch caller information:
drivers/nvme/target/admin-cmd.c nvmet_execute_create_cq() -> nvmet_report_invalid_opcode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->cmd | 4096-ptr_max |
| PARAM_VALUE | 0 | req->ops->add_port | 0,356005027391569920,2756795675082964992,6131046472731693056,8447161825212018688,9193204452182413312 |
| PARAM_VALUE | 0 | req->ops->create_cq | 0,7671863581302841344 |
| PARAM_VALUE | 0 | req->ops->create_sq | 0,826737582494945280 |
| PARAM_VALUE | 0 | req->ops->delete_cq | 0,3247279592098840576 |
| PARAM_VALUE | 0 | req->ops->delete_ctrl | 0,4635914789364793344,5518681643582025728,6323258353186226176,6803246519075205120 |
| PARAM_VALUE | 0 | req->ops->delete_sq | 0,1692952852207517696 |
| PARAM_VALUE | 0 | req->ops->disc_traddr | 0,4842197189540585472,7976362722472898560 |
| PARAM_VALUE | 0 | req->ops->discovery_chg | 0,4840688172820557824 |
| PARAM_VALUE | 0 | req->ops->flags | 0,3 |
| PARAM_VALUE | 0 | req->ops->get_feature | 0,4172988708510289920 |
| PARAM_VALUE | 0 | req->ops->get_max_queue_size | 0,3598994287643836416 |
| PARAM_VALUE | 0 | req->ops->get_mdts | 0,1240729637649383424,6215693805987676160 |
| PARAM_VALUE | 0 | req->ops->host_traddr | 0,143851659462438912,2625472028080357376,3281768194697232384 |
| PARAM_VALUE | 0 | req->ops->install_queue | 0,7656632576492318720 |
| PARAM_VALUE | 0 | req->ops->msdbd | 0-1 |
| PARAM_VALUE | 0 | req->ops->owner | 0 |
| PARAM_VALUE | 0 | req->ops->queue_response | 0,673261683347714048,1727589018327519232,4231234284187914240,6960797624507817984,8058313105858142208 |
| PARAM_VALUE | 0 | req->ops->remove_port | 0,1246405418997637120,1696684843887783936,4046473487155494912,5780625152656261120,8354855610354040832 |
| PARAM_VALUE | 0 | req->ops->set_feature | 0,6816270163718651904 |
| PARAM_VALUE | 0 | req->ops->type | 0-3,254 |
| PARAM_VALUE | 0 | req->sq | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl->port | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl->port->disc_addr.trtype | 1-255 |
| BUF_SIZE | 0 | req | (-1),512 |
| BUF_SIZE | 0 | req | (-1),512 |
| DATA_SOURCE | 0 | req | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | req->sg_cnt | |
| HALF_LOCKED2 | &pool->lock |
drivers/nvme/target/admin-cmd.c nvmet_execute_create_sq() -> nvmet_report_invalid_opcode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->cmd | 4096-ptr_max |
| PARAM_VALUE | 0 | req->ops->add_port | 0,356005027391569920,2756795675082964992,6131046472731693056,8447161825212018688,9193204452182413312 |
| PARAM_VALUE | 0 | req->ops->create_cq | 0,7671863581302841344 |
| PARAM_VALUE | 0 | req->ops->create_sq | 0,826737582494945280 |
| PARAM_VALUE | 0 | req->ops->delete_cq | 0,3247279592098840576 |
| PARAM_VALUE | 0 | req->ops->delete_ctrl | 0,4635914789364793344,5518681643582025728,6323258353186226176,6803246519075205120 |
| PARAM_VALUE | 0 | req->ops->delete_sq | 0,1692952852207517696 |
| PARAM_VALUE | 0 | req->ops->disc_traddr | 0,4842197189540585472,7976362722472898560 |
| PARAM_VALUE | 0 | req->ops->discovery_chg | 0,4840688172820557824 |
| PARAM_VALUE | 0 | req->ops->flags | 0,3 |
| PARAM_VALUE | 0 | req->ops->get_feature | 0,4172988708510289920 |
| PARAM_VALUE | 0 | req->ops->get_max_queue_size | 0,3598994287643836416 |
| PARAM_VALUE | 0 | req->ops->get_mdts | 0,1240729637649383424,6215693805987676160 |
| PARAM_VALUE | 0 | req->ops->host_traddr | 0,143851659462438912,2625472028080357376,3281768194697232384 |
| PARAM_VALUE | 0 | req->ops->install_queue | 0,7656632576492318720 |
| PARAM_VALUE | 0 | req->ops->msdbd | 0-1 |
| PARAM_VALUE | 0 | req->ops->owner | 0 |
| PARAM_VALUE | 0 | req->ops->queue_response | 0,673261683347714048,1727589018327519232,4231234284187914240,6960797624507817984,8058313105858142208 |
| PARAM_VALUE | 0 | req->ops->remove_port | 0,1246405418997637120,1696684843887783936,4046473487155494912,5780625152656261120,8354855610354040832 |
| PARAM_VALUE | 0 | req->ops->set_feature | 0,6816270163718651904 |
| PARAM_VALUE | 0 | req->ops->type | 0-3,254 |
| PARAM_VALUE | 0 | req->sq | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl->port | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl->port->disc_addr.trtype | 1-255 |
| BUF_SIZE | 0 | req | (-1),512 |
| BUF_SIZE | 0 | req | (-1),512 |
| DATA_SOURCE | 0 | req | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | req->sg_cnt | |
| HALF_LOCKED2 | &pool->lock |
drivers/nvme/target/admin-cmd.c nvmet_execute_delete_cq() -> nvmet_report_invalid_opcode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->cmd | 4096-ptr_max |
| PARAM_VALUE | 0 | req->ops->add_port | 0,356005027391569920,2756795675082964992,6131046472731693056,8447161825212018688,9193204452182413312 |
| PARAM_VALUE | 0 | req->ops->create_cq | 0,7671863581302841344 |
| PARAM_VALUE | 0 | req->ops->create_sq | 0,826737582494945280 |
| PARAM_VALUE | 0 | req->ops->delete_cq | 0,3247279592098840576 |
| PARAM_VALUE | 0 | req->ops->delete_ctrl | 0,4635914789364793344,5518681643582025728,6323258353186226176,6803246519075205120 |
| PARAM_VALUE | 0 | req->ops->delete_sq | 0,1692952852207517696 |
| PARAM_VALUE | 0 | req->ops->disc_traddr | 0,4842197189540585472,7976362722472898560 |
| PARAM_VALUE | 0 | req->ops->discovery_chg | 0,4840688172820557824 |
| PARAM_VALUE | 0 | req->ops->flags | 0,3 |
| PARAM_VALUE | 0 | req->ops->get_feature | 0,4172988708510289920 |
| PARAM_VALUE | 0 | req->ops->get_max_queue_size | 0,3598994287643836416 |
| PARAM_VALUE | 0 | req->ops->get_mdts | 0,1240729637649383424,6215693805987676160 |
| PARAM_VALUE | 0 | req->ops->host_traddr | 0,143851659462438912,2625472028080357376,3281768194697232384 |
| PARAM_VALUE | 0 | req->ops->install_queue | 0,7656632576492318720 |
| PARAM_VALUE | 0 | req->ops->msdbd | 0-1 |
| PARAM_VALUE | 0 | req->ops->owner | 0 |
| PARAM_VALUE | 0 | req->ops->queue_response | 0,673261683347714048,1727589018327519232,4231234284187914240,6960797624507817984,8058313105858142208 |
| PARAM_VALUE | 0 | req->ops->remove_port | 0,1246405418997637120,1696684843887783936,4046473487155494912,5780625152656261120,8354855610354040832 |
| PARAM_VALUE | 0 | req->ops->set_feature | 0,6816270163718651904 |
| PARAM_VALUE | 0 | req->ops->type | 0-3,254 |
| PARAM_VALUE | 0 | req->sq | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl->port | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl->port->disc_addr.trtype | 1-255 |
| BUF_SIZE | 0 | req | (-1),512 |
| BUF_SIZE | 0 | req | (-1),512 |
| DATA_SOURCE | 0 | req | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | req->sg_cnt | |
| HALF_LOCKED2 | &pool->lock |
drivers/nvme/target/admin-cmd.c nvmet_execute_delete_sq() -> nvmet_report_invalid_opcode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->cmd | 4096-ptr_max |
| PARAM_VALUE | 0 | req->ops->add_port | 0,356005027391569920,2756795675082964992,6131046472731693056,8447161825212018688,9193204452182413312 |
| PARAM_VALUE | 0 | req->ops->create_cq | 0,7671863581302841344 |
| PARAM_VALUE | 0 | req->ops->create_sq | 0,826737582494945280 |
| PARAM_VALUE | 0 | req->ops->delete_cq | 0,3247279592098840576 |
| PARAM_VALUE | 0 | req->ops->delete_ctrl | 0,4635914789364793344,5518681643582025728,6323258353186226176,6803246519075205120 |
| PARAM_VALUE | 0 | req->ops->delete_sq | 0,1692952852207517696 |
| PARAM_VALUE | 0 | req->ops->disc_traddr | 0,4842197189540585472,7976362722472898560 |
| PARAM_VALUE | 0 | req->ops->discovery_chg | 0,4840688172820557824 |
| PARAM_VALUE | 0 | req->ops->flags | 0,3 |
| PARAM_VALUE | 0 | req->ops->get_feature | 0,4172988708510289920 |
| PARAM_VALUE | 0 | req->ops->get_max_queue_size | 0,3598994287643836416 |
| PARAM_VALUE | 0 | req->ops->get_mdts | 0,1240729637649383424,6215693805987676160 |
| PARAM_VALUE | 0 | req->ops->host_traddr | 0,143851659462438912,2625472028080357376,3281768194697232384 |
| PARAM_VALUE | 0 | req->ops->install_queue | 0,7656632576492318720 |
| PARAM_VALUE | 0 | req->ops->msdbd | 0-1 |
| PARAM_VALUE | 0 | req->ops->owner | 0 |
| PARAM_VALUE | 0 | req->ops->queue_response | 0,673261683347714048,1727589018327519232,4231234284187914240,6960797624507817984,8058313105858142208 |
| PARAM_VALUE | 0 | req->ops->remove_port | 0,1246405418997637120,1696684843887783936,4046473487155494912,5780625152656261120,8354855610354040832 |
| PARAM_VALUE | 0 | req->ops->set_feature | 0,6816270163718651904 |
| PARAM_VALUE | 0 | req->ops->type | 0-3,254 |
| PARAM_VALUE | 0 | req->sq | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl->port | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl->port->disc_addr.trtype | 1-255 |
| BUF_SIZE | 0 | req | (-1),512 |
| BUF_SIZE | 0 | req | (-1),512 |
| DATA_SOURCE | 0 | req | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | req->sg_cnt | |
| HALF_LOCKED2 | &pool->lock |
drivers/nvme/target/admin-cmd.c nvmet_parse_admin_cmd() -> nvmet_report_invalid_opcode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->cmd | 4096-ptr_max |
| PARAM_VALUE | 0 | req->cmd->common.opcode | 0-126,128-255 |
| PARAM_VALUE | 0 | req->cqe | 4096-ptr_max |
| PARAM_VALUE | 0 | req->cqe->result.u64 | 0 |
| PARAM_VALUE | 0 | req->cqe->sq_head | 0 |
| PARAM_VALUE | 0 | req->cqe->status | 0 |
| PARAM_VALUE | 0 | req->error_loc | u16max |
| PARAM_VALUE | 0 | req->error_slba | 0 |
| PARAM_VALUE | 0 | req->metadata_len | 0 |
| PARAM_VALUE | 0 | req->metadata_sg | 0 |
| PARAM_VALUE | 0 | req->metadata_sg_cnt | 0 |
| PARAM_VALUE | 0 | req->ns | 0 |
| PARAM_VALUE | 0 | req->ops | 1183018078345875456,4159979038405730304,4166078988315271168,4647111106762481664,7921859334008033280 |
| PARAM_VALUE | 0 | req->pc_ref | 0 |
| PARAM_VALUE | 0 | req->sg | 0 |
| PARAM_VALUE | 0 | req->sg_cnt | 0 |
| PARAM_VALUE | 0 | req->sq | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl->cc | 1-u32max |
| PARAM_VALUE | 0 | req->sq->ctrl->csts | 1-u32max |
| PARAM_VALUE | 0 | req->sq->ctrl->port | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->qid | 0 |
| PARAM_VALUE | 0 | req->transfer_len | 0 |
| BUF_SIZE | 0 | req | (-1),512 |
| BUF_SIZE | 0 | req | (-1),512 |
| DATA_SOURCE | 0 | req | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
drivers/nvme/target/io-cmd-bdev.c nvmet_bdev_parse_io_cmd() -> nvmet_report_invalid_opcode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->cmd | 4096-ptr_max |
| PARAM_VALUE | 0 | req->cmd->common.opcode | 3-7,10-126,128-255 |
| PARAM_VALUE | 0 | req->cqe | 4096-ptr_max |
| PARAM_VALUE | 0 | req->cqe->result.u64 | 0 |
| PARAM_VALUE | 0 | req->cqe->sq_head | 0 |
| PARAM_VALUE | 0 | req->cqe->status | 0 |
| PARAM_VALUE | 0 | req->error_loc | u16max |
| PARAM_VALUE | 0 | req->error_slba | 0 |
| PARAM_VALUE | 0 | req->metadata_len | 0 |
| PARAM_VALUE | 0 | req->metadata_sg | 0 |
| PARAM_VALUE | 0 | req->metadata_sg_cnt | 0 |
| PARAM_VALUE | 0 | req->ns | 4096-ptr_max |
| PARAM_VALUE | 0 | req->ns->csi | 0,2 |
| PARAM_VALUE | 0 | req->ns->ref.percpu_count_ptr | 1-u64max |
| PARAM_VALUE | 0 | req->ops | 1183018078345875456,4159979038405730304,4166078988315271168,4647111106762481664,7921859334008033280 |
| PARAM_VALUE | 0 | req->pc_ref | 0 |
| PARAM_VALUE | 0 | req->port | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sg | 0 |
| PARAM_VALUE | 0 | req->sg_cnt | 0 |
| PARAM_VALUE | 0 | req->sq | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl->cc | 1-u32max |
| PARAM_VALUE | 0 | req->sq->ctrl->csts | 1-u32max |
| PARAM_VALUE | 0 | req->sq->qid | 1-u16max |
| PARAM_VALUE | 0 | req->transfer_len | 0 |
| BUF_SIZE | 0 | req->cmd | (-1),64 |
| BUF_SIZE | 0 | req->cqe | (-1),16 |
| DATA_SOURCE | 0 | req | $0 |
| HARD_MAX | 0 | req->ns->csi | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
drivers/nvme/target/io-cmd-file.c nvmet_file_parse_io_cmd() -> nvmet_report_invalid_opcode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->cmd | 4096-ptr_max |
| PARAM_VALUE | 0 | req->cmd->common.opcode | 3-7,10-126,128-255 |
| PARAM_VALUE | 0 | req->cqe | 4096-ptr_max |
| PARAM_VALUE | 0 | req->cqe->result.u64 | 0 |
| PARAM_VALUE | 0 | req->cqe->sq_head | 0 |
| PARAM_VALUE | 0 | req->cqe->status | 0 |
| PARAM_VALUE | 0 | req->error_loc | u16max |
| PARAM_VALUE | 0 | req->error_slba | 0 |
| PARAM_VALUE | 0 | req->metadata_len | 0 |
| PARAM_VALUE | 0 | req->metadata_sg | 0 |
| PARAM_VALUE | 0 | req->metadata_sg_cnt | 0 |
| PARAM_VALUE | 0 | req->ns | 4096-ptr_max |
| PARAM_VALUE | 0 | req->ns->csi | 0 |
| PARAM_VALUE | 0 | req->ns->file | 1-u64max |
| PARAM_VALUE | 0 | req->ns->ref.percpu_count_ptr | 1-u64max |
| PARAM_VALUE | 0 | req->ops | 1183018078345875456,4159979038405730304,4166078988315271168,4647111106762481664,7921859334008033280 |
| PARAM_VALUE | 0 | req->pc_ref | 0 |
| PARAM_VALUE | 0 | req->port | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sg | 0 |
| PARAM_VALUE | 0 | req->sg_cnt | 0 |
| PARAM_VALUE | 0 | req->sq | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl->cc | 1-u32max |
| PARAM_VALUE | 0 | req->sq->ctrl->csts | 1-u32max |
| PARAM_VALUE | 0 | req->sq->qid | 1-u16max |
| PARAM_VALUE | 0 | req->transfer_len | 0 |
| BUF_SIZE | 0 | req->cmd | (-1),64 |
| BUF_SIZE | 0 | req->cqe | (-1),16 |
| DATA_SOURCE | 0 | req | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
drivers/nvme/target/passthru.c nvmet_parse_passthru_admin_cmd() -> nvmet_report_invalid_opcode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->cmd | 4096-ptr_max |
| PARAM_VALUE | 0 | req->cmd->common.flags | 0-254 |
| PARAM_VALUE | 0 | req->cmd->common.opcode | 0-1,3-5,7-8,11,13-23,25-126,128-191 |
| PARAM_VALUE | 0 | req->cqe | 4096-ptr_max |
| PARAM_VALUE | 0 | req->cqe->result.u64 | 0 |
| PARAM_VALUE | 0 | req->cqe->sq_head | 0 |
| PARAM_VALUE | 0 | req->cqe->status | 0 |
| PARAM_VALUE | 0 | req->error_loc | u16max |
| PARAM_VALUE | 0 | req->error_slba | 0 |
| PARAM_VALUE | 0 | req->metadata_len | 0 |
| PARAM_VALUE | 0 | req->metadata_sg | 0 |
| PARAM_VALUE | 0 | req->metadata_sg_cnt | 0 |
| PARAM_VALUE | 0 | req->ns | 0 |
| PARAM_VALUE | 0 | req->ops | 1183018078345875456,4159979038405730304,4166078988315271168,4647111106762481664,7921859334008033280 |
| PARAM_VALUE | 0 | req->pc_ref | 0 |
| PARAM_VALUE | 0 | req->sg | 0 |
| PARAM_VALUE | 0 | req->sg_cnt | 0 |
| PARAM_VALUE | 0 | req->sq | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->ctrl->cc | 1-u32max |
| PARAM_VALUE | 0 | req->sq->ctrl->csts | 1-u32max |
| PARAM_VALUE | 0 | req->sq->ctrl->port | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sq->qid | 0 |
| PARAM_VALUE | 0 | req->transfer_len | 0 |
| BUF_SIZE | 0 | req->cmd | (-1),64 |
| BUF_SIZE | 0 | req->cqe | (-1),16 |
| DATA_SOURCE | 0 | req | $0 |
| BIT_INFO | 0 | req->cmd->common.flags | 0x0,0xc0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |