Lines Matching refs:nsid
80 ns = nvmet_find_namespace(req->sq->ctrl, req->cmd->get_log_page.nsid); in nvmet_get_smart_log_nsid()
83 le32_to_cpu(req->cmd->get_log_page.nsid)); in nvmet_get_smart_log_nsid()
84 req->error_loc = offsetof(struct nvme_rw_command, nsid); in nvmet_get_smart_log_nsid()
152 if (req->cmd->get_log_page.nsid == cpu_to_le32(NVME_NSID_ALL)) in nvmet_execute_get_log_page_smart()
236 desc->nsids[count++] = cpu_to_le32(ns->nsid); in nvmet_format_ana_group()
476 if (le32_to_cpu(req->cmd->identify.nsid) == NVME_NSID_ALL) { in nvmet_execute_identify_ns()
477 req->error_loc = offsetof(struct nvme_identify, nsid); in nvmet_execute_identify_ns()
489 ns = nvmet_find_namespace(ctrl, req->cmd->identify.nsid); in nvmet_execute_identify_ns()
556 u32 min_nsid = le32_to_cpu(req->cmd->identify.nsid); in nvmet_execute_identify_nslist()
568 if (ns->nsid <= min_nsid) in nvmet_execute_identify_nslist()
570 list[i++] = cpu_to_le32(ns->nsid); in nvmet_execute_identify_nslist()
610 ns = nvmet_find_namespace(req->sq->ctrl, req->cmd->identify.nsid); in nvmet_execute_identify_desclist()
612 req->error_loc = offsetof(struct nvme_identify, nsid); in nvmet_execute_identify_desclist()
688 pr_err("write protect flush failed nsid: %u\n", req->ns->nsid); in nvmet_write_protect_flush_sync()
698 req->ns = nvmet_find_namespace(req->sq->ctrl, req->cmd->rw.nsid); in nvmet_set_feat_write_protect()
700 req->error_loc = offsetof(struct nvme_common_command, nsid); in nvmet_set_feat_write_protect()
721 nvmet_ns_changed(subsys, req->ns->nsid); in nvmet_set_feat_write_protect()
803 req->ns = nvmet_find_namespace(req->sq->ctrl, req->cmd->common.nsid); in nvmet_get_feat_write_protect()
805 req->error_loc = offsetof(struct nvme_common_command, nsid); in nvmet_get_feat_write_protect()