Lines Matching full:subsys
113 xa_for_each(&ctrl->subsys->namespaces, idx, ns) { in nvmet_get_smart_log_all()
257 xa_for_each(&ctrl->subsys->namespaces, idx, ns) in nvmet_format_ana_group()
348 struct nvmet_subsys *subsys = ctrl->subsys; in nvmet_execute_identify_ctrl() local
353 if (!subsys->subsys_discovered) { in nvmet_execute_identify_ctrl()
354 mutex_lock(&subsys->lock); in nvmet_execute_identify_ctrl()
355 subsys->subsys_discovered = true; in nvmet_execute_identify_ctrl()
356 mutex_unlock(&subsys->lock); in nvmet_execute_identify_ctrl()
369 memcpy(id->sn, ctrl->subsys->serial, NVMET_SN_MAX_SIZE); in nvmet_execute_identify_ctrl()
370 memcpy_and_pad(id->mn, sizeof(id->mn), subsys->model_number, in nvmet_execute_identify_ctrl()
371 strlen(subsys->model_number), ' '); in nvmet_execute_identify_ctrl()
377 if (nvmet_is_disc_subsys(ctrl->subsys)) in nvmet_execute_identify_ctrl()
398 id->ver = cpu_to_le32(ctrl->subsys->ver); in nvmet_execute_identify_ctrl()
452 strscpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn)); in nvmet_execute_identify_ctrl()
515 mutex_lock(&req->ns->subsys->lock); in nvmet_execute_identify_ns()
516 nvmet_ns_changed(req->ns->subsys, req->ns->nsid); in nvmet_execute_identify_ns()
517 mutex_unlock(&req->ns->subsys->lock); in nvmet_execute_identify_ns()
594 xa_for_each(&ctrl->subsys->namespaces, idx, ns) { in nvmet_execute_identify_nslist()
775 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_set_feat_write_protect() local
782 mutex_lock(&subsys->lock); in nvmet_set_feat_write_protect()
799 nvmet_ns_changed(subsys, req->ns->nsid); in nvmet_set_feat_write_protect()
800 mutex_unlock(&subsys->lock); in nvmet_set_feat_write_protect()
834 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_execute_set_features() local
853 (subsys->max_qid - 1) | ((subsys->max_qid - 1) << 16)); in nvmet_execute_set_features()
878 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_get_feat_write_protect() local
885 mutex_lock(&subsys->lock); in nvmet_get_feat_write_protect()
891 mutex_unlock(&subsys->lock); in nvmet_get_feat_write_protect()
908 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_execute_get_features() local
945 (subsys->max_qid-1) | ((subsys->max_qid-1) << 16)); in nvmet_execute_get_features()