Home
last modified time | relevance | path

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

/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.c71 fault_inject = &nvme_req(req)->ctrl->fault_inject; in nvme_should_fail()
79 nvme_req(req)->status = status; in nvme_should_fail()
Dioctl.c162 nvme_req(req)->flags |= NVME_REQ_USERCMD; in nvme_alloc_user_request()
247 ctrl = nvme_req(req)->ctrl; in nvme_submit_user_cmd()
252 *result = le64_to_cpu(nvme_req(req)->result.u64); in nvme_submit_user_cmd()
479 if (nvme_req(req)->flags & NVME_REQ_CANCELLED) in nvme_uring_task_meta_cb()
482 status = nvme_req(req)->status; in nvme_uring_task_meta_cb()
484 result = le64_to_cpu(nvme_req(req)->result.u64); in nvme_uring_task_meta_cb()
514 if (nvme_req(req)->flags & NVME_REQ_CANCELLED) { in nvme_uring_cmd_end_io()
517 pdu->nvme_status = nvme_req(req)->status; in nvme_uring_cmd_end_io()
521 pdu->u.result = le64_to_cpu(nvme_req(req)->result.u64); in nvme_uring_cmd_end_io()
Dcore.c300 crd = (nvme_req(req)->status & NVME_SC_CRD) >> 11; in nvme_retry_req()
302 delay = nvme_req(req)->ctrl->crdt[crd - 1] * 100; in nvme_retry_req()
304 nvme_req(req)->retries++; in nvme_retry_req()
312 struct nvme_request *nr = nvme_req(req); in nvme_log_error()
349 if (likely(nvme_req(req)->status == 0)) in nvme_decide_disposition()
352 if ((nvme_req(req)->status & 0x7ff) == NVME_SC_AUTH_REQUIRED) in nvme_decide_disposition()
356 (nvme_req(req)->status & NVME_SC_DNR) || in nvme_decide_disposition()
357 nvme_req(req)->retries >= nvme_max_retries) in nvme_decide_disposition()
361 if (nvme_is_path_error(nvme_req(req)->status) || in nvme_decide_disposition()
377 le64_to_cpu(nvme_req(req)->result.u64)); in nvme_end_req_zoned()
[all …]
Dnvme.h199 static inline struct nvme_request *nvme_req(struct request *req) in nvme_req() function
569 return nvme_cid_install_genctr(nvme_req(rq)->genctr) | rq->tag; in nvme_cid()
585 if (unlikely(nvme_genctr_mask(nvme_req(rq)->genctr) != genctr)) { in nvme_find_rq()
586 dev_err(nvme_req(rq)->ctrl->device, in nvme_find_rq()
588 tag, genctr, nvme_genctr_mask(nvme_req(rq)->genctr)); in nvme_find_rq()
713 struct nvme_request *rq = nvme_req(req); in nvme_try_complete_req()
Dmultipath.c86 u16 status = nvme_req(req)->status & 0x7ff; in nvme_failover_req()
121 nvme_req(req)->status = 0; in nvme_failover_req()
134 nvme_req(rq)->flags |= NVME_MPATH_IO_STATS; in nvme_mpath_start_request()
135 nvme_req(rq)->start_time = bdev_start_io_acct(disk->part0, req_op(rq), in nvme_mpath_start_request()
144 if (!(nvme_req(rq)->flags & NVME_MPATH_IO_STATS)) in nvme_mpath_end_request()
148 nvme_req(rq)->start_time); in nvme_mpath_end_request()
Dfabrics.h194 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()
1986 struct nvme_command *c = nvme_req(rq)->cmd; in nvme_rdma_queue_rq()
2075 nvme_req(rq)->status = NVME_SC_INVALID_PI; in nvme_rdma_check_pi_status()
2082 nvme_req(rq)->status = NVME_SC_GUARD_CHECK; in nvme_rdma_check_pi_status()
2085 nvme_req(rq)->status = NVME_SC_REFTAG_CHECK; in nvme_rdma_check_pi_status()
2088 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()
904 nvme_req(req)->status = NVME_SC_HOST_ABORTED_CMD; in apple_nvme_timeout()
905 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in apple_nvme_timeout()
930 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()
1043 !blk_mq_add_to_batch(req, iob, nvme_req(req)->status, in nvme_handle_cqe()
1225 "Abort status: 0x%x", nvme_req(req)->status); in abort_endio()
1338 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in nvme_timeout()
1356 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in nvme_timeout()
1373 nvme_get_opcode_str(nvme_req(req)->cmd->common.opcode), in nvme_timeout()
Dtcp.c493 nvme_req(rq)->ctrl = &ctrl->ctrl; in nvme_tcp_init_request()
494 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()
/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.c230 nvmet_req_to_fod(struct nvmet_req *nvme_req) in nvmet_req_to_fod() argument
232 return container_of(nvme_req, struct nvmet_fc_fcp_iod, req); in nvmet_req_to_fod()
1925 static void nvmet_fc_fcp_nvme_cmd_done(struct nvmet_req *nvme_req);
2507 nvmet_fc_fcp_nvme_cmd_done(struct nvmet_req *nvme_req) in nvmet_fc_fcp_nvme_cmd_done() argument
2509 struct nvmet_fc_fcp_iod *fod = nvmet_req_to_fod(nvme_req); in nvmet_fc_fcp_nvme_cmd_done()