Searched refs:nr_ns (Results 1 – 5 of 5) sorted by relevance
535 ctrlr->nr_ns = 0; in nvme_ctrlr_destruct_namespaces()546 unsigned int i, nr_ns = ctrlr->cdata.nn; in nvme_ctrlr_construct_namespaces() local553 if (nr_ns != ctrlr->nr_ns) { in nvme_ctrlr_construct_namespaces()557 ctrlr->ns = calloc(nr_ns, sizeof(struct nvme_ns)); in nvme_ctrlr_construct_namespaces()561 nvme_debug("Allocate %u namespace data\n", nr_ns); in nvme_ctrlr_construct_namespaces()562 ctrlr->nsdata = nvme_calloc(nr_ns, sizeof(struct nvme_ns_data), in nvme_ctrlr_construct_namespaces()567 ctrlr->nr_ns = nr_ns; in nvme_ctrlr_construct_namespaces()571 for (i = 0; i < nr_ns; i++) { in nvme_ctrlr_construct_namespaces()
296 cstat->nr_ns = ctrlr->nr_ns; in nvme_ctrlr_stat()297 for (i = 0; i < ctrlr->nr_ns; i++) { in nvme_ctrlr_stat()
116 if (ns_id >= 1 && ns_id <= ctrlr->nr_ns) { in nvme_ns_open()139 ns->id > ctrlr->nr_ns || in nvme_ns_ctrlr_lock()149 if (ns->id > ctrlr->nr_ns || in nvme_ns_ctrlr_lock()
320 unsigned int nr_ns; member
500 unsigned int nr_ns; member