Lines Matching refs:nvme_req

267 	crd = (nvme_req(req)->status & NVME_SC_CRD) >> 11;  in nvme_retry_req()
271 nvme_req(req)->retries++; in nvme_retry_req()
284 if (likely(nvme_req(req)->status == 0)) in nvme_decide_disposition()
288 (nvme_req(req)->status & NVME_SC_DNR) || in nvme_decide_disposition()
289 nvme_req(req)->retries >= nvme_max_retries) in nvme_decide_disposition()
293 if (nvme_is_path_error(nvme_req(req)->status) || in nvme_decide_disposition()
306 blk_status_t status = nvme_error_status(nvme_req(req)->status); in nvme_end_req()
311 le64_to_cpu(nvme_req(req)->result.u64)); in nvme_end_req()
322 if (nvme_req(req)->ctrl->kas) in nvme_complete_rq()
323 nvme_req(req)->ctrl->comp_seen = true; in nvme_complete_rq()
348 nvme_req(req)->status = NVME_SC_HOST_ABORTED_CMD; in nvme_cancel_request()
515 nvme_req(req)->retries = 0; in nvme_clear_nvme_request()
516 nvme_req(req)->flags = 0; in nvme_clear_nvme_request()
538 nvme_req(req)->cmd = cmd; in nvme_alloc_request()
649 memcpy(cmd, nvme_req(req)->cmd, sizeof(*cmd)); in nvme_setup_passthrough()
917 *result = nvme_req(req)->result; in __nvme_submit_sync_cmd()
918 if (nvme_req(req)->flags & NVME_REQ_CANCELLED) in __nvme_submit_sync_cmd()
921 ret = nvme_req(req)->status; in __nvme_submit_sync_cmd()
1045 struct nvme_command *cmd = nvme_req(rq)->cmd; in nvme_execute_passthru_rq()
1046 struct nvme_ctrl *ctrl = nvme_req(rq)->ctrl; in nvme_execute_passthru_rq()
1075 nvme_req(req)->flags |= NVME_REQ_USERCMD; in nvme_submit_user_cmd()
1096 if (nvme_req(req)->flags & NVME_REQ_CANCELLED) in nvme_submit_user_cmd()
1099 ret = nvme_req(req)->status; in nvme_submit_user_cmd()
1101 *result = le64_to_cpu(nvme_req(req)->result.u64); in nvme_submit_user_cmd()