Home
last modified time | relevance | path

Searched refs:nvme_req (Results 1 – 15 of 15) sorted by relevance

/linux-6.12.1/drivers/nvme/host/
Dtrace.h63 __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;
Dfault_inject.c72 fault_inject = &nvme_req(req)->ctrl->fault_inject; in nvme_should_fail()
80 nvme_req(req)->status = status; in nvme_should_fail()
Dmultipath.c89 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()
Dnvme.h207 static inline struct nvme_request *nvme_req(struct request *req) in nvme_req() function
582 return nvme_cid_install_genctr(nvme_req(rq)->genctr) | rq->tag; in nvme_cid()
598 if (unlikely(nvme_genctr_mask(nvme_req(rq)->genctr) != genctr)) { in nvme_find_rq()
599 dev_err(nvme_req(rq)->ctrl->device, in nvme_find_rq()
601 tag, genctr, nvme_genctr_mask(nvme_req(rq)->genctr)); in nvme_find_rq()
717 struct nvme_request *rq = nvme_req(req); in nvme_try_complete_req()
Dcore.c323 crd = (nvme_req(req)->status & NVME_STATUS_CRD) >> 11; in nvme_retry_req()
325 delay = nvme_req(req)->ctrl->crdt[crd - 1] * 100; in nvme_retry_req()
327 nvme_req(req)->retries++; in nvme_retry_req()
335 struct nvme_request *nr = nvme_req(req); in nvme_log_error()
366 struct nvme_request *nr = nvme_req(req); in nvme_log_err_passthru()
396 if (likely(nvme_req(req)->status == 0)) in nvme_decide_disposition()
400 (nvme_req(req)->status & NVME_STATUS_DNR) || in nvme_decide_disposition()
401 nvme_req(req)->retries >= nvme_max_retries) in nvme_decide_disposition()
404 if ((nvme_req(req)->status & NVME_SCT_SC_MASK) == NVME_SC_AUTH_REQUIRED) in nvme_decide_disposition()
408 if (nvme_is_path_error(nvme_req(req)->status) || in nvme_decide_disposition()
[all …]
Dioctl.c111 nvme_req(req)->flags |= NVME_REQ_USERCMD; in nvme_alloc_user_request()
196 ctrl = nvme_req(req)->ctrl; in nvme_submit_user_cmd()
201 *result = le64_to_cpu(nvme_req(req)->result.u64); in nvme_submit_user_cmd()
424 if (nvme_req(req)->flags & NVME_REQ_CANCELLED) { in nvme_uring_cmd_end_io()
427 pdu->status = nvme_req(req)->status; in nvme_uring_cmd_end_io()
431 pdu->result = le64_to_cpu(nvme_req(req)->result.u64); in nvme_uring_cmd_end_io()
Dfabrics.h205 nvme_req(rq)->status = NVME_SC_HOST_ABORTED_CMD; in nvmf_complete_timed_out_request()
Drdma.c302 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()
2007 struct nvme_command *c = nvme_req(rq)->cmd; in nvme_rdma_queue_rq()
2096 nvme_req(rq)->status = NVME_SC_INVALID_PI; in nvme_rdma_check_pi_status()
2103 nvme_req(rq)->status = NVME_SC_GUARD_CHECK; in nvme_rdma_check_pi_status()
2106 nvme_req(rq)->status = NVME_SC_REFTAG_CHECK; in nvme_rdma_check_pi_status()
2109 nvme_req(rq)->status = NVME_SC_APPTAG_CHECK; in nvme_rdma_check_pi_status()
Dapple.c602 !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()
Dpci.c425 nvme_req(req)->ctrl = set->driver_data; in nvme_pci_init_request()
426 nvme_req(req)->cmd = &iod->cmd; in nvme_pci_init_request()
1042 !blk_mq_add_to_batch(req, iob, nvme_req(req)->status, in nvme_handle_cqe()
1259 "Abort status: 0x%x", nvme_req(req)->status); in abort_endio()
1373 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in nvme_timeout()
1387 opcode = nvme_req(req)->cmd->common.opcode; in nvme_timeout()
1393 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in nvme_timeout()
Dtcp.c546 nvme_req(rq)->ctrl = &ctrl->ctrl; in nvme_tcp_init_request()
547 nvme_req(rq)->cmd = &pdu->cmd; in nvme_tcp_init_request()
Dfc.c2155 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-6.12.1/drivers/nvme/target/
Dpassthru.c218 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()
Dloop.c19 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()
Dfc.c229 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()