Searched refs:nvme_req (Results 1 – 14 of 14) sorted by relevance
| /linux/drivers/nvme/host/ |
| H A D | trace.h | 63 __entry->ctrl_id = nvme_req(req)->ctrl->instance; 99 __entry->ctrl_id = nvme_req(req)->ctrl->instance; 101 __entry->cid = nvme_req(req)->cmd->common.command_id; 102 __entry->result = le64_to_cpu(nvme_req(req)->result.u64); 103 __entry->retries = nvme_req(req)->retries; 104 __entry->flags = nvme_req(req)->flags; 105 __entry->status = nvme_req(req)->status; 152 __entry->ctrl_id = nvme_req(req)->ctrl->instance;
|
| H A D | fault_inject.c | 72 fault_inject = &nvme_req(req)->ctrl->fault_inject; in nvme_should_fail() 80 nvme_req(req)->status = status; in nvme_should_fail()
|
| H A D | multipath.c | 140 u16 status = nvme_req(req)->status & NVME_SCT_SC_MASK; in nvme_failover_req() 175 nvme_req(req)->status = 0; in nvme_failover_req() 186 !(nvme_req(rq)->flags & NVME_MPATH_CNT_ACTIVE)) { in nvme_mpath_start_request() 188 nvme_req(rq)->flags |= NVME_MPATH_CNT_ACTIVE; in nvme_mpath_start_request() 192 (nvme_req(rq)->flags & NVME_MPATH_IO_STATS)) in nvme_mpath_start_request() 195 nvme_req(rq)->flags |= NVME_MPATH_IO_STATS; in nvme_mpath_start_request() 196 nvme_req(rq)->start_time = bdev_start_io_acct(disk->part0, req_op(rq), in nvme_mpath_start_request() 205 if (nvme_req(rq)->flags & NVME_MPATH_CNT_ACTIVE) in nvme_mpath_end_request() 208 if (!(nvme_req(rq)->flags & NVME_MPATH_IO_STATS)) in nvme_mpath_end_request() 212 nvme_req(rq)->start_time); in nvme_mpath_end_request()
|
| H A D | ioctl.c | 111 nvme_req(req)->flags |= NVME_REQ_USERCMD; in nvme_alloc_user_request() 123 struct nvme_ctrl *ctrl = nvme_req(req)->ctrl; in nvme_map_user_request() 187 ctrl = nvme_req(req)->ctrl; in nvme_submit_user_cmd() 192 *result = le64_to_cpu(nvme_req(req)->result.u64); in nvme_submit_user_cmd() 419 if (nvme_req(req)->flags & NVME_REQ_CANCELLED) { in nvme_uring_cmd_end_io() 422 pdu->status = nvme_req(req)->status; in nvme_uring_cmd_end_io() 426 pdu->result = le64_to_cpu(nvme_req(req)->result.u64); in nvme_uring_cmd_end_io()
|
| H A D | core.c | 328 crd = (nvme_req(req)->status & NVME_STATUS_CRD) >> 11; in nvme_retry_req() 330 delay = nvme_req(req)->ctrl->crdt[crd - 1] * 100; in nvme_retry_req() 332 nvme_req(req)->retries++; in nvme_retry_req() 340 struct nvme_request *nr = nvme_req(req); in nvme_log_error() 371 struct nvme_request *nr = nvme_req(req); in nvme_log_err_passthru() 401 if (likely(nvme_req(req)->status == 0)) in nvme_decide_disposition() 405 (nvme_req(req)->status & NVME_STATUS_DNR) || in nvme_decide_disposition() 406 nvme_req(req)->retries >= nvme_max_retries) in nvme_decide_disposition() 409 if ((nvme_req(req)->status & NVME_SCT_SC_MASK) == NVME_SC_AUTH_REQUIRED) in nvme_decide_disposition() 413 if (nvme_is_path_error(nvme_req(req)->status) || in nvme_decide_disposition() [all …]
|
| H A D | nvme.h | 266 static inline struct nvme_request *nvme_req(struct request *req) in nvme_req() function 657 return nvme_cid_install_genctr(nvme_req(rq)->genctr) | rq->tag; in nvme_cid() 673 if (unlikely(nvme_genctr_mask(nvme_req(rq)->genctr) != genctr)) { in nvme_find_rq() 674 dev_err(nvme_req(rq)->ctrl->device, in nvme_find_rq() 676 tag, genctr, nvme_genctr_mask(nvme_req(rq)->genctr)); in nvme_find_rq() 792 struct nvme_request *rq = nvme_req(req); in nvme_try_complete_req()
|
| H A D | rdma.c | 302 nvme_req(rq)->ctrl = &ctrl->ctrl; in nvme_rdma_init_request() 309 req->metadata_sgl = (void *)nvme_req(rq) + in nvme_rdma_init_request() 314 nvme_req(rq)->cmd = req->sqe.data; in nvme_rdma_init_request() 2000 struct nvme_command *c = nvme_req(rq)->cmd; in nvme_rdma_queue_rq() 2089 nvme_req(rq)->status = NVME_SC_INVALID_PI; in nvme_rdma_check_pi_status() 2096 nvme_req(rq)->status = NVME_SC_GUARD_CHECK; in nvme_rdma_check_pi_status() 2099 nvme_req(rq)->status = NVME_SC_REFTAG_CHECK; in nvme_rdma_check_pi_status() 2102 nvme_req(rq)->status = NVME_SC_APPTAG_CHECK; in nvme_rdma_check_pi_status()
|
| H A D | apple.c | 635 nvme_req(req)->status != NVME_SC_SUCCESS, in apple_nvme_handle_cqe() 827 struct nvme_request *nreq = nvme_req(req); in apple_nvme_init_request() 943 nvme_req(req)->status = NVME_SC_HOST_ABORTED_CMD; in apple_nvme_timeout() 944 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in apple_nvme_timeout() 969 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in apple_nvme_timeout()
|
| H A D | pci.c | 667 nvme_req(req)->ctrl = set->driver_data; in nvme_pci_init_request() 668 nvme_req(req)->cmd = &iod->cmd; in nvme_pci_init_request() 763 nvme_req(req)->flags & NVME_REQ_USERCMD; in nvme_pci_metadata_use_sgls() 786 nvme_req(req)->flags & NVME_REQ_USERCMD || in nvme_pci_use_sgls() 1306 (entries == 1 && !(nvme_req(req)->flags & NVME_REQ_USERCMD))) { in nvme_pci_setup_meta_iter() 1561 nvme_req(req)->status != NVME_SC_SUCCESS, in nvme_handle_cqe() 1787 "Abort status: 0x%x", nvme_req(req)->status); in abort_endio() 1912 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in nvme_timeout() 1926 opcode = nvme_req(req)->cmd->common.opcode; in nvme_timeout() 1932 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in nvme_timeout()
|
| H A D | tcp.c | 568 nvme_req(rq)->ctrl = &ctrl->ctrl; in nvme_tcp_init_request() 569 nvme_req(rq)->cmd = &pdu->cmd; in nvme_tcp_init_request()
|
| H A D | fc.c | 2125 nvme_req(rq)->ctrl = &ctrl->ctrl; in nvme_fc_init_request() 2126 nvme_req(rq)->cmd = &op->op.cmd_iu.sqe; in nvme_fc_init_request()
|
| /linux/drivers/nvme/target/ |
| H A D | passthru.c | 218 struct nvme_ctrl *ctrl = nvme_req(rq)->ctrl; in nvmet_passthru_execute_cmd_work() 241 req->cqe->result = nvme_req(rq)->result; in nvmet_passthru_execute_cmd_work() 255 req->cqe->result = nvme_req(rq)->result; in nvmet_passthru_req_done() 256 nvmet_req_complete(req, nvme_req(rq)->status); in nvmet_passthru_req_done()
|
| H A D | loop.c | 19 struct nvme_request nvme_req; member 66 static void nvme_loop_queue_response(struct nvmet_req *nvme_req); 210 nvme_req(req)->ctrl = &ctrl->ctrl; in nvme_loop_init_request() 211 nvme_req(req)->cmd = &iod->cmd; in nvme_loop_init_request()
|
| H A D | fc.c | 215 nvmet_req_to_fod(struct nvmet_req *nvme_req) in nvmet_req_to_fod() argument 217 return container_of(nvme_req, struct nvmet_fc_fcp_iod, req); in nvmet_req_to_fod() 1927 static void nvmet_fc_fcp_nvme_cmd_done(struct nvmet_req *nvme_req); 2509 nvmet_fc_fcp_nvme_cmd_done(struct nvmet_req *nvme_req) in nvmet_fc_fcp_nvme_cmd_done() argument 2511 struct nvmet_fc_fcp_iod *fod = nvmet_req_to_fod(nvme_req); in nvmet_fc_fcp_nvme_cmd_done()
|