Lines Matching refs:nsid

36 	u32 nsid;  member
125 unsigned nsid);
765 cmnd->common.nsid = cpu_to_le32(ns->head->ns_id); in nvme_setup_flush()
827 cmnd->dsm.nsid = cpu_to_le32(ns->head->ns_id); in nvme_setup_discard()
870 cmnd->write_zeroes.nsid = cpu_to_le32(ns->head->ns_id); in nvme_setup_write_zeroes()
910 cmnd->rw.nsid = cpu_to_le32(ns->head->ns_id); in nvme_setup_rw()
1407 c.identify.nsid = cpu_to_le32(info->nsid); in nvme_identify_ns_descs()
1419 info->nsid, status); in nvme_identify_ns_descs()
1438 info->nsid); in nvme_identify_ns_descs()
1447 static int nvme_identify_ns(struct nvme_ctrl *ctrl, unsigned nsid, in nvme_identify_ns() argument
1455 c.identify.nsid = cpu_to_le32(nsid); in nvme_identify_ns()
1477 ret = nvme_identify_ns(ctrl, info->nsid, &id); in nvme_ns_info_from_identify()
1515 .identify.nsid = cpu_to_le32(info->nsid), in nvme_ns_info_from_id_cs_indep()
1784 c.identify.nsid = cpu_to_le32(ns->head->ns_id); in nvme_init_ms()
2034 ret = nvme_identify_ns(ns->ctrl, info->nsid, &id); in nvme_update_ns_info_block()
2119 info->nsid); in nvme_update_ns_info()
2128 info->nsid, info->ids.csi); in nvme_update_ns_info()
2144 cmd.common.nsid = 0; in nvme_sec_submit()
2855 int nvme_get_log(struct nvme_ctrl *ctrl, u32 nsid, u8 log_page, u8 lsp, u8 csi, in nvme_get_log() argument
2862 c.get_log_page.nsid = cpu_to_le32(nsid); in nvme_get_log()
3270 unsigned nsid) in nvme_find_ns_head() argument
3282 if (h->ns_id != nsid || !nvme_is_unique_nsid(ctrl, h)) in nvme_find_ns_head()
3405 head->ns_id = info->nsid; in nvme_alloc_ns_head()
3494 info->nsid); in nvme_init_ns_head()
3499 "clearing duplicate IDs for nsid %d\n", info->nsid); in nvme_init_ns_head()
3509 head = nvme_find_ns_head(ctrl, info->nsid); in nvme_init_ns_head()
3515 info->nsid); in nvme_init_ns_head()
3528 info->nsid); in nvme_init_ns_head()
3534 info->nsid); in nvme_init_ns_head()
3541 info->nsid); in nvme_init_ns_head()
3559 struct nvme_ns *nvme_find_get_ns(struct nvme_ctrl *ctrl, unsigned nsid) in nvme_find_get_ns() argument
3565 if (ns->head->ns_id == nsid) { in nvme_find_get_ns()
3571 if (ns->head->ns_id > nsid) in nvme_find_get_ns()
3741 static void nvme_ns_remove_by_nsid(struct nvme_ctrl *ctrl, u32 nsid) in nvme_ns_remove_by_nsid() argument
3743 struct nvme_ns *ns = nvme_find_get_ns(ctrl, nsid); in nvme_ns_remove_by_nsid()
3773 static void nvme_scan_ns(struct nvme_ctrl *ctrl, unsigned nsid) in nvme_scan_ns() argument
3775 struct nvme_ns_info info = { .nsid = nsid }; in nvme_scan_ns()
3784 "command set not reported for nsid: %d\n", nsid); in nvme_scan_ns()
3800 nvme_ns_remove_by_nsid(ctrl, nsid); in nvme_scan_ns()
3809 ns = nvme_find_get_ns(ctrl, nsid); in nvme_scan_ns()
3819 unsigned nsid) in nvme_remove_invalid_namespaces() argument
3826 if (ns->head->ns_id > nsid) in nvme_remove_invalid_namespaces()
3851 .identify.nsid = cpu_to_le32(prev), in nvme_scan_ns_list()
3863 u32 nsid = le32_to_cpu(ns_list[i]); in nvme_scan_ns_list() local
3865 if (!nsid) /* end of the list? */ in nvme_scan_ns_list()
3867 nvme_scan_ns(ctrl, nsid); in nvme_scan_ns_list()
3868 while (++prev < nsid) in nvme_scan_ns_list()