Lines Matching full:status
19 u16 status; in nvmet_execute_delete_sq() local
22 status = nvmet_report_invalid_opcode(req); in nvmet_execute_delete_sq()
27 status = NVME_SC_QID_INVALID | NVME_STATUS_DNR; in nvmet_execute_delete_sq()
31 status = nvmet_check_sqid(ctrl, sqid, false); in nvmet_execute_delete_sq()
32 if (status != NVME_SC_SUCCESS) in nvmet_execute_delete_sq()
35 status = ctrl->ops->delete_sq(ctrl, sqid); in nvmet_execute_delete_sq()
38 nvmet_req_complete(req, status); in nvmet_execute_delete_sq()
50 u16 status; in nvmet_execute_create_sq() local
53 status = nvmet_report_invalid_opcode(req); in nvmet_execute_create_sq()
58 status = NVME_SC_QID_INVALID | NVME_STATUS_DNR; in nvmet_execute_create_sq()
62 status = nvmet_check_sqid(ctrl, sqid, true); in nvmet_execute_create_sq()
63 if (status != NVME_SC_SUCCESS) in nvmet_execute_create_sq()
66 status = nvmet_check_io_cqid(ctrl, cqid, false); in nvmet_execute_create_sq()
67 if (status != NVME_SC_SUCCESS) { in nvmet_execute_create_sq()
73 status = NVME_SC_QUEUE_SIZE | NVME_STATUS_DNR; in nvmet_execute_create_sq()
77 status = ctrl->ops->create_sq(ctrl, sqid, cqid, sq_flags, qsize, prp1); in nvmet_execute_create_sq()
80 nvmet_req_complete(req, status); in nvmet_execute_create_sq()
87 u16 status; in nvmet_execute_delete_cq() local
90 status = nvmet_report_invalid_opcode(req); in nvmet_execute_delete_cq()
94 status = nvmet_check_io_cqid(ctrl, cqid, false); in nvmet_execute_delete_cq()
95 if (status != NVME_SC_SUCCESS) in nvmet_execute_delete_cq()
100 status = NVME_SC_QID_INVALID | NVME_STATUS_DNR; in nvmet_execute_delete_cq()
104 status = ctrl->ops->delete_cq(ctrl, cqid); in nvmet_execute_delete_cq()
107 nvmet_req_complete(req, status); in nvmet_execute_delete_cq()
119 u16 status; in nvmet_execute_create_cq() local
122 status = nvmet_report_invalid_opcode(req); in nvmet_execute_create_cq()
126 status = nvmet_check_io_cqid(ctrl, cqid, true); in nvmet_execute_create_cq()
127 if (status != NVME_SC_SUCCESS) in nvmet_execute_create_cq()
131 status = NVME_SC_QUEUE_SIZE | NVME_STATUS_DNR; in nvmet_execute_create_cq()
135 status = ctrl->ops->create_cq(ctrl, cqid, cq_flags, qsize, in nvmet_execute_create_cq()
139 nvmet_req_complete(req, status); in nvmet_execute_create_cq()
204 u16 status; in nvmet_execute_get_supported_log_pages() local
208 status = NVME_SC_INTERNAL; in nvmet_execute_get_supported_log_pages()
224 status = nvmet_copy_to_sgl(req, 0, logs, sizeof(*logs)); in nvmet_execute_get_supported_log_pages()
227 nvmet_req_complete(req, status); in nvmet_execute_get_supported_log_pages()
234 u16 status; in nvmet_get_smart_log_nsid() local
236 status = nvmet_req_find_ns(req); in nvmet_get_smart_log_nsid()
237 if (status) in nvmet_get_smart_log_nsid()
238 return status; in nvmet_get_smart_log_nsid()
293 u16 status; in nvmet_execute_get_log_page_rmi() local
297 status = nvmet_req_find_ns(req); in nvmet_execute_get_log_page_rmi()
298 if (status) in nvmet_execute_get_log_page_rmi()
302 status = NVME_SC_INVALID_FIELD | NVME_STATUS_DNR; in nvmet_execute_get_log_page_rmi()
307 status = NVME_SC_SGL_INVALID_DATA | NVME_STATUS_DNR; in nvmet_execute_get_log_page_rmi()
322 status = nvmet_copy_to_sgl(req, 0, log, sizeof(*log)); in nvmet_execute_get_log_page_rmi()
325 nvmet_req_complete(req, status); in nvmet_execute_get_log_page_rmi()
331 u16 status = NVME_SC_INTERNAL; in nvmet_execute_get_log_page_smart() local
342 status = nvmet_get_smart_log_all(req, log); in nvmet_execute_get_log_page_smart()
344 status = nvmet_get_smart_log_nsid(req, log); in nvmet_execute_get_log_page_smart()
345 if (status) in nvmet_execute_get_log_page_smart()
353 status = nvmet_copy_to_sgl(req, 0, log, sizeof(*log)); in nvmet_execute_get_log_page_smart()
357 nvmet_req_complete(req, status); in nvmet_execute_get_log_page_smart()
410 u16 status = NVME_SC_SUCCESS; in nvmet_execute_get_log_cmd_effects_ns() local
414 status = NVME_SC_INTERNAL; in nvmet_execute_get_log_cmd_effects_ns()
425 status = NVME_SC_INVALID_IO_CMD_SET; in nvmet_execute_get_log_cmd_effects_ns()
433 status = NVME_SC_INVALID_LOG_PAGE; in nvmet_execute_get_log_cmd_effects_ns()
437 status = nvmet_copy_to_sgl(req, 0, log, sizeof(*log)); in nvmet_execute_get_log_cmd_effects_ns()
441 nvmet_req_complete(req, status); in nvmet_execute_get_log_cmd_effects_ns()
447 u16 status = NVME_SC_INTERNAL; in nvmet_execute_get_log_changed_ns() local
458 status = nvmet_copy_to_sgl(req, 0, ctrl->changed_ns_list, len); in nvmet_execute_get_log_changed_ns()
459 if (!status) in nvmet_execute_get_log_changed_ns()
460 status = nvmet_zero_sgl(req, len, req->transfer_len - len); in nvmet_execute_get_log_changed_ns()
465 nvmet_req_complete(req, status); in nvmet_execute_get_log_changed_ns()
495 u16 status; in nvmet_execute_get_log_page_endgrp() local
503 status = nvmet_req_find_ns(req); in nvmet_execute_get_log_page_endgrp()
504 if (status) in nvmet_execute_get_log_page_endgrp()
509 status = NVME_SC_INTERNAL; in nvmet_execute_get_log_page_endgrp()
528 status = nvmet_copy_to_sgl(req, 0, log, sizeof(*log)); in nvmet_execute_get_log_page_endgrp()
531 nvmet_req_complete(req, status); in nvmet_execute_get_log_page_endgrp()
542 u16 status; in nvmet_execute_get_log_page_ana() local
544 status = NVME_SC_INTERNAL; in nvmet_execute_get_log_page_ana()
555 status = nvmet_copy_to_sgl(req, offset, desc, len); in nvmet_execute_get_log_page_ana()
556 if (status) in nvmet_execute_get_log_page_ana()
574 status = nvmet_copy_to_sgl(req, 0, &hdr, sizeof(hdr)); in nvmet_execute_get_log_page_ana()
576 nvmet_req_complete(req, status); in nvmet_execute_get_log_page_ana()
582 u16 status; in nvmet_execute_get_log_page_features() local
586 status = NVME_SC_INTERNAL; in nvmet_execute_get_log_page_features()
603 status = nvmet_copy_to_sgl(req, 0, features, sizeof(*features)); in nvmet_execute_get_log_page_features()
606 nvmet_req_complete(req, status); in nvmet_execute_get_log_page_features()
655 u16 status = 0; in nvmet_execute_identify_ctrl() local
665 status = NVME_SC_INTERNAL; in nvmet_execute_identify_ctrl()
794 status = nvmet_copy_to_sgl(req, 0, id, sizeof(*id)); in nvmet_execute_identify_ctrl()
798 nvmet_req_complete(req, status); in nvmet_execute_identify_ctrl()
804 u16 status; in nvmet_execute_identify_ns() local
808 status = NVME_SC_INVALID_NS | NVME_STATUS_DNR; in nvmet_execute_identify_ns()
814 status = NVME_SC_INTERNAL; in nvmet_execute_identify_ns()
819 status = nvmet_req_find_ns(req); in nvmet_execute_identify_ns()
820 if (status) { in nvmet_execute_identify_ns()
821 status = 0; in nvmet_execute_identify_ns()
895 if (!status) in nvmet_execute_identify_ns()
896 status = nvmet_copy_to_sgl(req, 0, id, sizeof(*id)); in nvmet_execute_identify_ns()
900 nvmet_req_complete(req, status); in nvmet_execute_identify_ns()
911 u16 status; in nvmet_execute_identify_endgrp_list() local
916 status = NVME_SC_INTERNAL; in nvmet_execute_identify_endgrp_list()
930 status = nvmet_copy_to_sgl(req, 0, list, buf_size); in nvmet_execute_identify_endgrp_list()
933 nvmet_req_complete(req, status); in nvmet_execute_identify_endgrp_list()
944 u16 status = 0; in nvmet_execute_identify_nslist() local
953 status = NVME_SC_INVALID_NS | NVME_STATUS_DNR; in nvmet_execute_identify_nslist()
959 status = NVME_SC_INTERNAL; in nvmet_execute_identify_nslist()
973 status = nvmet_copy_to_sgl(req, 0, list, buf_size); in nvmet_execute_identify_nslist()
977 nvmet_req_complete(req, status); in nvmet_execute_identify_nslist()
987 u16 status; in nvmet_copy_ns_identifier() local
989 status = nvmet_copy_to_sgl(req, *off, &desc, sizeof(desc)); in nvmet_copy_ns_identifier()
990 if (status) in nvmet_copy_ns_identifier()
991 return status; in nvmet_copy_ns_identifier()
994 status = nvmet_copy_to_sgl(req, *off, id, len); in nvmet_copy_ns_identifier()
995 if (status) in nvmet_copy_ns_identifier()
996 return status; in nvmet_copy_ns_identifier()
1005 u16 status; in nvmet_execute_identify_desclist() local
1007 status = nvmet_req_find_ns(req); in nvmet_execute_identify_desclist()
1008 if (status) in nvmet_execute_identify_desclist()
1012 status = nvmet_copy_ns_identifier(req, NVME_NIDT_UUID, in nvmet_execute_identify_desclist()
1015 if (status) in nvmet_execute_identify_desclist()
1019 status = nvmet_copy_ns_identifier(req, NVME_NIDT_NGUID, in nvmet_execute_identify_desclist()
1022 if (status) in nvmet_execute_identify_desclist()
1026 status = nvmet_copy_ns_identifier(req, NVME_NIDT_CSI, in nvmet_execute_identify_desclist()
1029 if (status) in nvmet_execute_identify_desclist()
1034 status = NVME_SC_INTERNAL | NVME_STATUS_DNR; in nvmet_execute_identify_desclist()
1037 nvmet_req_complete(req, status); in nvmet_execute_identify_desclist()
1049 u16 status; in nvme_execute_identify_ns_nvm() local
1052 status = nvmet_req_find_ns(req); in nvme_execute_identify_ns_nvm()
1053 if (status) in nvme_execute_identify_ns_nvm()
1058 status = NVME_SC_INTERNAL; in nvme_execute_identify_ns_nvm()
1061 status = nvmet_copy_to_sgl(req, 0, id, sizeof(*id)); in nvme_execute_identify_ns_nvm()
1064 nvmet_req_complete(req, status); in nvme_execute_identify_ns_nvm()
1070 u16 status; in nvmet_execute_id_cs_indep() local
1072 status = nvmet_req_find_ns(req); in nvmet_execute_id_cs_indep()
1073 if (status) in nvmet_execute_id_cs_indep()
1078 status = NVME_SC_INTERNAL; in nvmet_execute_id_cs_indep()
1097 status = nvmet_copy_to_sgl(req, 0, id, sizeof(*id)); in nvmet_execute_id_cs_indep()
1100 nvmet_req_complete(req, status); in nvmet_execute_id_cs_indep()
1181 u16 status; in nvmet_write_protect_flush_sync() local
1184 status = nvmet_file_flush(req); in nvmet_write_protect_flush_sync()
1186 status = nvmet_bdev_flush(req); in nvmet_write_protect_flush_sync()
1188 if (status) in nvmet_write_protect_flush_sync()
1190 return status; in nvmet_write_protect_flush_sync()
1197 u16 status; in nvmet_set_feat_write_protect() local
1199 status = nvmet_req_find_ns(req); in nvmet_set_feat_write_protect()
1200 if (status) in nvmet_set_feat_write_protect()
1201 return status; in nvmet_set_feat_write_protect()
1207 status = nvmet_write_protect_flush_sync(req); in nvmet_set_feat_write_protect()
1208 if (status) in nvmet_set_feat_write_protect()
1213 status = 0; in nvmet_set_feat_write_protect()
1219 if (!status) in nvmet_set_feat_write_protect()
1222 return status; in nvmet_set_feat_write_protect()
1344 u16 status = 0; in nvmet_execute_set_features() local
1353 status = nvmet_set_feat_arbitration(req); in nvmet_execute_set_features()
1359 status = NVME_SC_INVALID_FIELD | NVME_STATUS_DNR; in nvmet_execute_set_features()
1366 status = nvmet_set_feat_irq_coalesce(req); in nvmet_execute_set_features()
1369 status = nvmet_set_feat_irq_config(req); in nvmet_execute_set_features()
1372 status = nvmet_set_feat_kato(req); in nvmet_execute_set_features()
1375 status = nvmet_set_feat_async_event(req, NVMET_AEN_CFG_ALL); in nvmet_execute_set_features()
1378 status = nvmet_set_feat_host_id(req); in nvmet_execute_set_features()
1381 status = nvmet_set_feat_write_protect(req); in nvmet_execute_set_features()
1384 status = nvmet_set_feat_resv_notif_mask(req, cdw11); in nvmet_execute_set_features()
1388 status = NVME_SC_INVALID_FIELD | NVME_STATUS_DNR; in nvmet_execute_set_features()
1392 nvmet_req_complete(req, status); in nvmet_execute_set_features()
1419 u16 status; in nvmet_get_feat_irq_coalesce() local
1430 status = ctrl->ops->get_feature(ctrl, NVME_FEAT_IRQ_COALESCE, &irqc); in nvmet_get_feat_irq_coalesce()
1431 if (status != NVME_SC_SUCCESS) in nvmet_get_feat_irq_coalesce()
1432 return status; in nvmet_get_feat_irq_coalesce()
1444 u16 status; in nvmet_get_feat_irq_config() local
1455 status = ctrl->ops->get_feature(ctrl, NVME_FEAT_IRQ_CONFIG, &irqcfg); in nvmet_get_feat_irq_config()
1456 if (status != NVME_SC_SUCCESS) in nvmet_get_feat_irq_config()
1457 return status; in nvmet_get_feat_irq_config()
1468 u16 status; in nvmet_get_feat_arbitration() local
1475 status = ctrl->ops->get_feature(ctrl, NVME_FEAT_ARBITRATION, &arb); in nvmet_get_feat_arbitration()
1476 if (status != NVME_SC_SUCCESS) in nvmet_get_feat_arbitration()
1477 return status; in nvmet_get_feat_arbitration()
1502 u16 status = 0; in nvmet_execute_get_features() local
1524 status = nvmet_get_feat_arbitration(req); in nvmet_execute_get_features()
1527 status = nvmet_get_feat_irq_coalesce(req); in nvmet_execute_get_features()
1530 status = nvmet_get_feat_irq_config(req); in nvmet_execute_get_features()
1550 status = NVME_SC_INVALID_FIELD | NVME_STATUS_DNR; in nvmet_execute_get_features()
1554 status = nvmet_copy_to_sgl(req, 0, &req->sq->ctrl->hostid, in nvmet_execute_get_features()
1558 status = nvmet_get_feat_write_protect(req); in nvmet_execute_get_features()
1561 status = nvmet_get_feat_resv_notif_mask(req); in nvmet_execute_get_features()
1566 status = NVME_SC_INVALID_FIELD | NVME_STATUS_DNR; in nvmet_execute_get_features()
1570 nvmet_req_complete(req, status); in nvmet_execute_get_features()
1595 u16 status = 0; in nvmet_execute_keep_alive() local
1601 status = NVME_SC_KA_TIMEOUT_INVALID; in nvmet_execute_keep_alive()
1609 nvmet_req_complete(req, status); in nvmet_execute_keep_alive()