Home
last modified time | relevance | path

Searched refs:nr_ns (Results 1 – 5 of 5) sorted by relevance

/haiku/src/add-ons/kernel/drivers/disk/nvme/libnvme/
H A Dnvme_ctrlr.c535 ctrlr->nr_ns = 0; in nvme_ctrlr_destruct_namespaces()
546 unsigned int i, nr_ns = ctrlr->cdata.nn; in nvme_ctrlr_construct_namespaces() local
553 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()
H A Dnvme.c296 cstat->nr_ns = ctrlr->nr_ns; in nvme_ctrlr_stat()
297 for (i = 0; i < ctrlr->nr_ns; i++) { in nvme_ctrlr_stat()
H A Dnvme_ns.c116 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()
H A Dnvme.h320 unsigned int nr_ns; member
H A Dnvme_internal.h500 unsigned int nr_ns; member