Lines Matching full:subsys
278 nvmet_for_each_enabled_ns(&ctrl->subsys->namespaces, idx, ns) { in nvmet_get_smart_log_all()
486 nvmet_for_each_enabled_ns(&ctrl->subsys->namespaces, idx, ns) { in nvmet_format_ana_group()
661 struct nvmet_subsys *subsys = ctrl->subsys; in nvmet_execute_identify_ctrl() local
666 if (!subsys->subsys_discovered) { in nvmet_execute_identify_ctrl()
667 mutex_lock(&subsys->lock); in nvmet_execute_identify_ctrl()
668 subsys->subsys_discovered = true; in nvmet_execute_identify_ctrl()
669 mutex_unlock(&subsys->lock); in nvmet_execute_identify_ctrl()
678 id->vid = cpu_to_le16(subsys->vendor_id); in nvmet_execute_identify_ctrl()
679 id->ssvid = cpu_to_le16(subsys->subsys_vendor_id); in nvmet_execute_identify_ctrl()
681 memcpy(id->sn, ctrl->subsys->serial, NVMET_SN_MAX_SIZE); in nvmet_execute_identify_ctrl()
682 memcpy_and_pad(id->mn, sizeof(id->mn), subsys->model_number, in nvmet_execute_identify_ctrl()
683 strlen(subsys->model_number), ' '); in nvmet_execute_identify_ctrl()
685 subsys->firmware_rev, strlen(subsys->firmware_rev), ' '); in nvmet_execute_identify_ctrl()
687 put_unaligned_le24(subsys->ieee_oui, id->ieee); in nvmet_execute_identify_ctrl()
691 if (nvmet_is_disc_subsys(ctrl->subsys)) in nvmet_execute_identify_ctrl()
707 id->ver = cpu_to_le32(ctrl->subsys->ver); in nvmet_execute_identify_ctrl()
765 strscpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn)); in nvmet_execute_identify_ctrl()
835 mutex_lock(&req->ns->subsys->lock); in nvmet_execute_identify_ns()
836 nvmet_ns_changed(req->ns->subsys, req->ns->nsid); in nvmet_execute_identify_ns()
837 mutex_unlock(&req->ns->subsys->lock); in nvmet_execute_identify_ns()
929 nvmet_for_each_enabled_ns(&ctrl->subsys->namespaces, idx, ns) { in nvmet_execute_identify_endgrp_list()
972 nvmet_for_each_enabled_ns(&ctrl->subsys->namespaces, idx, ns) { in nvmet_execute_identify_nslist()
1205 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_set_feat_write_protect() local
1212 mutex_lock(&subsys->lock); in nvmet_set_feat_write_protect()
1229 nvmet_ns_changed(subsys, req->ns->nsid); in nvmet_set_feat_write_protect()
1230 mutex_unlock(&subsys->lock); in nvmet_set_feat_write_protect()
1350 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_execute_set_features() local
1372 (subsys->max_qid - 1) | ((subsys->max_qid - 1) << 16)); in nvmet_execute_set_features()
1406 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_get_feat_write_protect() local
1413 mutex_lock(&subsys->lock); in nvmet_get_feat_write_protect()
1419 mutex_unlock(&subsys->lock); in nvmet_get_feat_write_protect()
1509 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_execute_get_features() local
1549 (subsys->max_qid-1) | ((subsys->max_qid-1) << 16)); in nvmet_execute_get_features()