Lines Matching full:subsys

113 	xa_for_each(&ctrl->subsys->namespaces, idx, ns) {  in nvmet_get_smart_log_all()
262 xa_for_each(&ctrl->subsys->namespaces, idx, ns) in nvmet_format_ana_group()
353 struct nvmet_subsys *subsys = ctrl->subsys; in nvmet_execute_identify_ctrl() local
358 if (!subsys->subsys_discovered) { in nvmet_execute_identify_ctrl()
359 mutex_lock(&subsys->lock); in nvmet_execute_identify_ctrl()
360 subsys->subsys_discovered = true; in nvmet_execute_identify_ctrl()
361 mutex_unlock(&subsys->lock); in nvmet_execute_identify_ctrl()
374 memcpy(id->sn, ctrl->subsys->serial, NVMET_SN_MAX_SIZE); in nvmet_execute_identify_ctrl()
375 memcpy_and_pad(id->mn, sizeof(id->mn), subsys->model_number, in nvmet_execute_identify_ctrl()
376 strlen(subsys->model_number), ' '); in nvmet_execute_identify_ctrl()
378 subsys->firmware_rev, strlen(subsys->firmware_rev), ' '); in nvmet_execute_identify_ctrl()
380 put_unaligned_le24(subsys->ieee_oui, id->ieee); in nvmet_execute_identify_ctrl()
384 if (nvmet_is_disc_subsys(ctrl->subsys)) in nvmet_execute_identify_ctrl()
400 id->ver = cpu_to_le32(ctrl->subsys->ver); in nvmet_execute_identify_ctrl()
454 strscpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn)); in nvmet_execute_identify_ctrl()
517 mutex_lock(&req->ns->subsys->lock); in nvmet_execute_identify_ns()
518 nvmet_ns_changed(req->ns->subsys, req->ns->nsid); in nvmet_execute_identify_ns()
519 mutex_unlock(&req->ns->subsys->lock); in nvmet_execute_identify_ns()
606 xa_for_each(&ctrl->subsys->namespaces, idx, ns) { in nvmet_execute_identify_nslist()
772 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_set_feat_write_protect() local
779 mutex_lock(&subsys->lock); in nvmet_set_feat_write_protect()
796 nvmet_ns_changed(subsys, req->ns->nsid); in nvmet_set_feat_write_protect()
797 mutex_unlock(&subsys->lock); in nvmet_set_feat_write_protect()
831 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_execute_set_features() local
850 (subsys->max_qid - 1) | ((subsys->max_qid - 1) << 16)); in nvmet_execute_set_features()
875 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_get_feat_write_protect() local
882 mutex_lock(&subsys->lock); in nvmet_get_feat_write_protect()
888 mutex_unlock(&subsys->lock); in nvmet_get_feat_write_protect()
905 struct nvmet_subsys *subsys = nvmet_req_subsys(req); in nvmet_execute_get_features() local
942 (subsys->max_qid-1) | ((subsys->max_qid-1) << 16)); in nvmet_execute_get_features()