Searched refs:nvme_req (Results 1 – 15 of 15) 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 | 89 u16 status = nvme_req(req)->status & NVME_SCT_SC_MASK; in nvme_failover_req() 124 nvme_req(req)->status = 0; in nvme_failover_req() 136 nvme_req(rq)->flags |= NVME_MPATH_CNT_ACTIVE; in nvme_mpath_start_request() 142 nvme_req(rq)->flags |= NVME_MPATH_IO_STATS; in nvme_mpath_start_request() 143 nvme_req(rq)->start_time = bdev_start_io_acct(disk->part0, req_op(rq), in nvme_mpath_start_request() 152 if (nvme_req(rq)->flags & NVME_MPATH_CNT_ACTIVE) in nvme_mpath_end_request() 155 if (!(nvme_req(rq)->flags & NVME_MPATH_IO_STATS)) in nvme_mpath_end_request() 159 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() 203 ctrl = nvme_req(req)->ctrl; in nvme_submit_user_cmd() 208 *result = le64_to_cpu(nvme_req(req)->result.u64); in nvme_submit_user_cmd() 431 if (nvme_req(req)->flags & NVME_REQ_CANCELLED) { in nvme_uring_cmd_end_io() 434 pdu->status = nvme_req(req)->status; in nvme_uring_cmd_end_io() 438 pdu->result = le64_to_cpu(nvme_req(req)->result.u64); in nvme_uring_cmd_end_io()
|
H A D | core.c | 325 crd = (nvme_req(req)->status & NVME_STATUS_CRD) >> 11; in nvme_retry_req() 327 delay = nvme_req(req)->ctrl->crdt[crd - 1] * 100; in nvme_retry_req() 329 nvme_req(req)->retries++; in nvme_retry_req() 337 struct nvme_request *nr = nvme_req(req); in nvme_log_error() 368 struct nvme_request *nr = nvme_req(req); in nvme_log_err_passthru() 398 if (likely(nvme_req(req)->status == 0)) in nvme_decide_disposition() 402 (nvme_req(req)->status & NVME_STATUS_DNR) || in nvme_decide_disposition() 403 nvme_req(req)->retries >= nvme_max_retries) in nvme_decide_disposition() 406 if ((nvme_req(req)->status & NVME_SCT_SC_MASK) == NVME_SC_AUTH_REQUIRED) in nvme_decide_disposition() 410 if (nvme_is_path_error(nvme_req(req)->status) || in nvme_decide_disposition() [all …]
|
H A D | nvme.h | 207 static inline struct nvme_request *nvme_req(struct request *req) in nvme_req() function 583 return nvme_cid_install_genctr(nvme_req(rq)->genctr) | rq->tag; in nvme_cid() 599 if (unlikely(nvme_genctr_mask(nvme_req(rq)->genctr) != genctr)) { in nvme_find_rq() 600 dev_err(nvme_req(rq)->ctrl->device, in nvme_find_rq() 602 tag, genctr, nvme_genctr_mask(nvme_req(rq)->genctr)); in nvme_find_rq() 718 struct nvme_request *rq = nvme_req(req); in nvme_try_complete_req()
|
H A D | fabrics.h | 205 nvme_req(rq)->status = NVME_SC_HOST_ABORTED_CMD; in nvmf_complete_timed_out_request()
|
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() 2001 struct nvme_command *c = nvme_req(rq)->cmd; in nvme_rdma_queue_rq() 2090 nvme_req(rq)->status = NVME_SC_INVALID_PI; in nvme_rdma_check_pi_status() 2097 nvme_req(rq)->status = NVME_SC_GUARD_CHECK; in nvme_rdma_check_pi_status() 2100 nvme_req(rq)->status = NVME_SC_REFTAG_CHECK; in nvme_rdma_check_pi_status() 2103 nvme_req(rq)->status = NVME_SC_APPTAG_CHECK; in nvme_rdma_check_pi_status()
|
H A D | apple.c | 602 !blk_mq_add_to_batch(req, iob, nvme_req(req)->status, in apple_nvme_handle_cqe() 789 struct nvme_request *nreq = nvme_req(req); in apple_nvme_init_request() 905 nvme_req(req)->status = NVME_SC_HOST_ABORTED_CMD; in apple_nvme_timeout() 906 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in apple_nvme_timeout() 931 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in apple_nvme_timeout()
|
H A D | pci.c | 431 nvme_req(req)->ctrl = set->driver_data; in nvme_pci_init_request() 432 nvme_req(req)->cmd = &iod->cmd; in nvme_pci_init_request() 519 nvme_req(req)->flags & NVME_REQ_USERCMD; in nvme_pci_metadata_use_sgls() 537 return nvme_req(req)->flags & NVME_REQ_USERCMD; in nvme_pci_use_sgls() 1134 !blk_mq_add_to_batch(req, iob, nvme_req(req)->status, in nvme_handle_cqe() 1351 "Abort status: 0x%x", nvme_req(req)->status); in abort_endio() 1465 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in nvme_timeout() 1479 opcode = nvme_req(req)->cmd->common.opcode; in nvme_timeout() 1485 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in nvme_timeout()
|
H A D | tcp.c | 546 nvme_req(rq)->ctrl = &ctrl->ctrl; in nvme_tcp_init_request() 547 nvme_req(rq)->cmd = &pdu->cmd; in nvme_tcp_init_request()
|
H A D | fc.c | 2155 nvme_req(rq)->ctrl = &ctrl->ctrl; in nvme_fc_init_request() 2156 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() 254 req->cqe->result = nvme_req(rq)->result; in nvmet_passthru_req_done() 255 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 64 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 | 229 nvmet_req_to_fod(struct nvmet_req *nvme_req) in nvmet_req_to_fod() argument 231 return container_of(nvme_req, struct nvmet_fc_fcp_iod, req); in nvmet_req_to_fod() 1929 static void nvmet_fc_fcp_nvme_cmd_done(struct nvmet_req *nvme_req); 2511 nvmet_fc_fcp_nvme_cmd_done(struct nvmet_req *nvme_req) in nvmet_fc_fcp_nvme_cmd_done() argument 2513 struct nvmet_fc_fcp_iod *fod = nvmet_req_to_fod(nvme_req); in nvmet_fc_fcp_nvme_cmd_done()
|