Lines Matching refs:subsys

113 	xa_for_each(&ctrl->subsys->namespaces, idx, ns) {  in nvmet_get_smart_log_all()
260 xa_for_each(&ctrl->subsys->namespaces, idx, ns) in nvmet_format_ana_group()
351 struct nvmet_subsys *subsys = ctrl->subsys; in nvmet_execute_identify_ctrl() local
356 if (!subsys->subsys_discovered) { in nvmet_execute_identify_ctrl()
357 mutex_lock(&subsys->lock); in nvmet_execute_identify_ctrl()
358 subsys->subsys_discovered = true; in nvmet_execute_identify_ctrl()
359 mutex_unlock(&subsys->lock); in nvmet_execute_identify_ctrl()
372 memcpy(id->sn, ctrl->subsys->serial, NVMET_SN_MAX_SIZE); in nvmet_execute_identify_ctrl()
373 memcpy_and_pad(id->mn, sizeof(id->mn), subsys->model_number, in nvmet_execute_identify_ctrl()
374 strlen(subsys->model_number), ' '); in nvmet_execute_identify_ctrl()
380 if (nvmet_is_disc_subsys(ctrl->subsys)) in nvmet_execute_identify_ctrl()
401 id->ver = cpu_to_le32(ctrl->subsys->ver); in nvmet_execute_identify_ctrl()
455 strscpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn)); in nvmet_execute_identify_ctrl()
518 mutex_lock(&req->ns->subsys->lock); in nvmet_execute_identify_ns()
519 nvmet_ns_changed(req->ns->subsys, req->ns->nsid); in nvmet_execute_identify_ns()
520 mutex_unlock(&req->ns->subsys->lock); in nvmet_execute_identify_ns()
597 xa_for_each(&ctrl->subsys->namespaces, idx, ns) { in nvmet_execute_identify_nslist()
778 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_set_feat_write_protect() local
785 mutex_lock(&subsys->lock); in nvmet_set_feat_write_protect()
802 nvmet_ns_changed(subsys, req->ns->nsid); in nvmet_set_feat_write_protect()
803 mutex_unlock(&subsys->lock); in nvmet_set_feat_write_protect()
837 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_execute_set_features() local
856 (subsys->max_qid - 1) | ((subsys->max_qid - 1) << 16)); in nvmet_execute_set_features()
881 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_get_feat_write_protect() local
888 mutex_lock(&subsys->lock); in nvmet_get_feat_write_protect()
894 mutex_unlock(&subsys->lock); in nvmet_get_feat_write_protect()
911 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_execute_get_features() local
948 (subsys->max_qid-1) | ((subsys->max_qid-1) << 16)); in nvmet_execute_get_features()