Lines Matching full:subsys

269 	nvmet_for_each_enabled_ns(&ctrl->subsys->namespaces, idx, ns) {  in nvmet_get_smart_log_all()
477 nvmet_for_each_enabled_ns(&ctrl->subsys->namespaces, idx, ns) { in nvmet_format_ana_group()
652 struct nvmet_subsys *subsys = ctrl->subsys; in nvmet_execute_identify_ctrl() local
657 if (!subsys->subsys_discovered) { in nvmet_execute_identify_ctrl()
658 mutex_lock(&subsys->lock); in nvmet_execute_identify_ctrl()
659 subsys->subsys_discovered = true; in nvmet_execute_identify_ctrl()
660 mutex_unlock(&subsys->lock); in nvmet_execute_identify_ctrl()
669 id->vid = cpu_to_le16(subsys->vendor_id); in nvmet_execute_identify_ctrl()
670 id->ssvid = cpu_to_le16(subsys->subsys_vendor_id); in nvmet_execute_identify_ctrl()
672 memcpy(id->sn, ctrl->subsys->serial, NVMET_SN_MAX_SIZE); in nvmet_execute_identify_ctrl()
673 memcpy_and_pad(id->mn, sizeof(id->mn), subsys->model_number, in nvmet_execute_identify_ctrl()
674 strlen(subsys->model_number), ' '); in nvmet_execute_identify_ctrl()
676 subsys->firmware_rev, strlen(subsys->firmware_rev), ' '); in nvmet_execute_identify_ctrl()
678 put_unaligned_le24(subsys->ieee_oui, id->ieee); in nvmet_execute_identify_ctrl()
682 if (nvmet_is_disc_subsys(ctrl->subsys)) in nvmet_execute_identify_ctrl()
698 id->ver = cpu_to_le32(ctrl->subsys->ver); in nvmet_execute_identify_ctrl()
756 strscpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn)); in nvmet_execute_identify_ctrl()
826 mutex_lock(&req->ns->subsys->lock); in nvmet_execute_identify_ns()
827 nvmet_ns_changed(req->ns->subsys, req->ns->nsid); in nvmet_execute_identify_ns()
828 mutex_unlock(&req->ns->subsys->lock); in nvmet_execute_identify_ns()
920 nvmet_for_each_enabled_ns(&ctrl->subsys->namespaces, idx, ns) { in nvmet_execute_identify_endgrp_list()
963 nvmet_for_each_enabled_ns(&ctrl->subsys->namespaces, idx, ns) { in nvmet_execute_identify_nslist()
1196 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_set_feat_write_protect() local
1203 mutex_lock(&subsys->lock); in nvmet_set_feat_write_protect()
1220 nvmet_ns_changed(subsys, req->ns->nsid); in nvmet_set_feat_write_protect()
1221 mutex_unlock(&subsys->lock); in nvmet_set_feat_write_protect()
1341 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_execute_set_features() local
1363 (subsys->max_qid - 1) | ((subsys->max_qid - 1) << 16)); in nvmet_execute_set_features()
1397 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_get_feat_write_protect() local
1404 mutex_lock(&subsys->lock); in nvmet_get_feat_write_protect()
1410 mutex_unlock(&subsys->lock); in nvmet_get_feat_write_protect()
1500 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_execute_get_features() local
1540 (subsys->max_qid-1) | ((subsys->max_qid-1) << 16)); in nvmet_execute_get_features()