Lines Matching refs:nvme_req
299 crd = (nvme_req(req)->status & NVME_SC_CRD) >> 11; in nvme_retry_req()
301 delay = nvme_req(req)->ctrl->crdt[crd - 1] * 100; in nvme_retry_req()
303 nvme_req(req)->retries++; in nvme_retry_req()
311 struct nvme_request *nr = nvme_req(req); in nvme_log_error()
348 if (likely(nvme_req(req)->status == 0)) in nvme_decide_disposition()
351 if ((nvme_req(req)->status & 0x7ff) == NVME_SC_AUTH_REQUIRED) in nvme_decide_disposition()
355 (nvme_req(req)->status & NVME_SC_DNR) || in nvme_decide_disposition()
356 nvme_req(req)->retries >= nvme_max_retries) in nvme_decide_disposition()
360 if (nvme_is_path_error(nvme_req(req)->status) || in nvme_decide_disposition()
376 le64_to_cpu(nvme_req(req)->result.u64)); in nvme_end_req_zoned()
381 blk_status_t status = nvme_error_status(nvme_req(req)->status); in nvme_end_req()
383 if (unlikely(nvme_req(req)->status && !(req->rq_flags & RQF_QUIET))) in nvme_end_req()
392 struct nvme_ctrl *ctrl = nvme_req(req)->ctrl; in nvme_complete_rq()
438 nvme_req(req)->status = NVME_SC_HOST_PATH_ERROR; in nvme_host_path_error()
454 nvme_req(req)->status = NVME_SC_HOST_ABORTED_CMD; in nvme_cancel_request()
455 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in nvme_cancel_request()
657 nvme_req(req)->status = 0; in nvme_clear_nvme_request()
658 nvme_req(req)->retries = 0; in nvme_clear_nvme_request()
659 nvme_req(req)->flags = 0; in nvme_clear_nvme_request()
679 memcpy(nvme_req(req)->cmd, cmd, sizeof(*cmd)); in nvme_init_request()
708 struct nvme_request *req = nvme_req(rq); in __nvme_check_ready()
931 struct nvme_ctrl *ctrl = nvme_req(req)->ctrl; in nvme_cleanup_cmd()
943 struct nvme_command *cmd = nvme_req(req)->cmd; in nvme_setup_cmd()
1007 if (nvme_req(rq)->flags & NVME_REQ_CANCELLED) in nvme_execute_rq()
1009 if (nvme_req(rq)->status) in nvme_execute_rq()
1010 return nvme_req(rq)->status; in nvme_execute_rq()
1043 *result = nvme_req(req)->result; in __nvme_submit_sync_cmd()
1175 struct nvme_command *cmd = nvme_req(rq)->cmd; in nvme_execute_passthru_rq()
1176 struct nvme_ctrl *ctrl = nvme_req(rq)->ctrl; in nvme_execute_passthru_rq()