Lines Matching refs:status
142 u16 status = NVME_SC_INTERNAL; in nvmet_execute_get_log_page_smart() local
153 status = nvmet_get_smart_log_all(req, log); in nvmet_execute_get_log_page_smart()
155 status = nvmet_get_smart_log_nsid(req, log); in nvmet_execute_get_log_page_smart()
156 if (status) in nvmet_execute_get_log_page_smart()
164 status = nvmet_copy_to_sgl(req, 0, log, sizeof(*log)); in nvmet_execute_get_log_page_smart()
168 nvmet_req_complete(req, status); in nvmet_execute_get_log_page_smart()
173 u16 status = NVME_SC_INTERNAL; in nvmet_execute_get_log_cmd_effects_ns() local
194 status = nvmet_copy_to_sgl(req, 0, log, sizeof(*log)); in nvmet_execute_get_log_cmd_effects_ns()
198 nvmet_req_complete(req, status); in nvmet_execute_get_log_cmd_effects_ns()
204 u16 status = NVME_SC_INTERNAL; in nvmet_execute_get_log_changed_ns() local
215 status = nvmet_copy_to_sgl(req, 0, ctrl->changed_ns_list, len); in nvmet_execute_get_log_changed_ns()
216 if (!status) in nvmet_execute_get_log_changed_ns()
217 status = nvmet_zero_sgl(req, len, req->transfer_len - len); in nvmet_execute_get_log_changed_ns()
222 nvmet_req_complete(req, status); in nvmet_execute_get_log_changed_ns()
255 u16 status; in nvmet_execute_get_log_page_ana() local
257 status = NVME_SC_INTERNAL; in nvmet_execute_get_log_page_ana()
268 status = nvmet_copy_to_sgl(req, offset, desc, len); in nvmet_execute_get_log_page_ana()
269 if (status) in nvmet_execute_get_log_page_ana()
287 status = nvmet_copy_to_sgl(req, 0, &hdr, sizeof(hdr)); in nvmet_execute_get_log_page_ana()
289 nvmet_req_complete(req, status); in nvmet_execute_get_log_page_ana()
341 u16 status = 0; in nvmet_execute_identify_ctrl() local
345 status = NVME_SC_INTERNAL; in nvmet_execute_identify_ctrl()
462 status = nvmet_copy_to_sgl(req, 0, id, sizeof(*id)); in nvmet_execute_identify_ctrl()
466 nvmet_req_complete(req, status); in nvmet_execute_identify_ctrl()
473 u16 status = 0; in nvmet_execute_identify_ns() local
477 status = NVME_SC_INVALID_NS | NVME_SC_DNR; in nvmet_execute_identify_ns()
483 status = NVME_SC_INTERNAL; in nvmet_execute_identify_ns()
490 status = 0; in nvmet_execute_identify_ns()
545 if (!status) in nvmet_execute_identify_ns()
546 status = nvmet_copy_to_sgl(req, 0, id, sizeof(*id)); in nvmet_execute_identify_ns()
550 nvmet_req_complete(req, status); in nvmet_execute_identify_ns()
561 u16 status = 0; in nvmet_execute_identify_nslist() local
566 status = NVME_SC_INTERNAL; in nvmet_execute_identify_nslist()
578 status = nvmet_copy_to_sgl(req, 0, list, buf_size); in nvmet_execute_identify_nslist()
582 nvmet_req_complete(req, status); in nvmet_execute_identify_nslist()
592 u16 status; in nvmet_copy_ns_identifier() local
594 status = nvmet_copy_to_sgl(req, *off, &desc, sizeof(desc)); in nvmet_copy_ns_identifier()
595 if (status) in nvmet_copy_ns_identifier()
596 return status; in nvmet_copy_ns_identifier()
599 status = nvmet_copy_to_sgl(req, *off, id, len); in nvmet_copy_ns_identifier()
600 if (status) in nvmet_copy_ns_identifier()
601 return status; in nvmet_copy_ns_identifier()
610 u16 status = 0; in nvmet_execute_identify_desclist() local
616 status = NVME_SC_INVALID_NS | NVME_SC_DNR; in nvmet_execute_identify_desclist()
621 status = nvmet_copy_ns_identifier(req, NVME_NIDT_UUID, in nvmet_execute_identify_desclist()
624 if (status) in nvmet_execute_identify_desclist()
628 status = nvmet_copy_ns_identifier(req, NVME_NIDT_NGUID, in nvmet_execute_identify_desclist()
631 if (status) in nvmet_execute_identify_desclist()
637 status = NVME_SC_INTERNAL | NVME_SC_DNR; in nvmet_execute_identify_desclist()
641 nvmet_req_complete(req, status); in nvmet_execute_identify_desclist()
683 u16 status; in nvmet_write_protect_flush_sync() local
686 status = nvmet_file_flush(req); in nvmet_write_protect_flush_sync()
688 status = nvmet_bdev_flush(req); in nvmet_write_protect_flush_sync()
690 if (status) in nvmet_write_protect_flush_sync()
692 return status; in nvmet_write_protect_flush_sync()
699 u16 status = NVME_SC_FEATURE_NOT_CHANGEABLE; in nvmet_set_feat_write_protect() local
704 return status; in nvmet_set_feat_write_protect()
711 status = nvmet_write_protect_flush_sync(req); in nvmet_set_feat_write_protect()
712 if (status) in nvmet_set_feat_write_protect()
717 status = 0; in nvmet_set_feat_write_protect()
723 if (!status) in nvmet_set_feat_write_protect()
726 return status; in nvmet_set_feat_write_protect()
762 u16 status = 0; in nvmet_execute_set_features() local
774 status = NVME_SC_INVALID_FIELD | NVME_SC_DNR; in nvmet_execute_set_features()
781 status = nvmet_set_feat_kato(req); in nvmet_execute_set_features()
784 status = nvmet_set_feat_async_event(req, NVMET_AEN_CFG_ALL); in nvmet_execute_set_features()
787 status = NVME_SC_CMD_SEQ_ERROR | NVME_SC_DNR; in nvmet_execute_set_features()
790 status = nvmet_set_feat_write_protect(req); in nvmet_execute_set_features()
794 status = NVME_SC_INVALID_FIELD | NVME_SC_DNR; in nvmet_execute_set_features()
798 nvmet_req_complete(req, status); in nvmet_execute_set_features()
836 u16 status = 0; in nvmet_execute_get_features() local
881 status = NVME_SC_INVALID_FIELD | NVME_SC_DNR; in nvmet_execute_get_features()
885 status = nvmet_copy_to_sgl(req, 0, &req->sq->ctrl->hostid, in nvmet_execute_get_features()
889 status = nvmet_get_feat_write_protect(req); in nvmet_execute_get_features()
894 status = NVME_SC_INVALID_FIELD | NVME_SC_DNR; in nvmet_execute_get_features()
898 nvmet_req_complete(req, status); in nvmet_execute_get_features()