Home
last modified time | relevance | path

Searched refs:nruh (Results 1 – 6 of 6) sorted by relevance

/openbmc/qemu/hw/nvme/
H A Dsubsys.c117 static bool nvme_calc_rgif(uint16_t nruh, uint16_t nrg, uint8_t *rgif) in nvme_calc_rgif() argument
137 if (unlikely((UINT16_MAX >> i) < nruh)) { in nvme_calc_rgif()
163 if (!subsys->params.fdp.nruh || in nvme_subsys_setup_fdp()
164 subsys->params.fdp.nruh > NVME_FDP_MAXPIDS) { in nvme_subsys_setup_fdp()
170 endgrp->fdp.nruh = subsys->params.fdp.nruh; in nvme_subsys_setup_fdp()
172 if (!nvme_calc_rgif(endgrp->fdp.nruh, endgrp->fdp.nrg, &endgrp->fdp.rgif)) { in nvme_subsys_setup_fdp()
175 endgrp->fdp.nruh, endgrp->fdp.nrg); in nvme_subsys_setup_fdp()
179 endgrp->fdp.ruhs = g_new(NvmeRuHandle, endgrp->fdp.nruh); in nvme_subsys_setup_fdp()
181 for (uint16_t ruhid = 0; ruhid < endgrp->fdp.nruh; ruhid++) { in nvme_subsys_setup_fdp()
225 DEFINE_PROP_UINT16("fdp.nruh", NvmeSubsystem, params.fdp.nruh, 0),
H A Dns.c386 for (uint16_t i = 0; i < endgrp->fdp.nruh; i++) { in nvme_find_ruh_by_attr()
438 ruhid = ruhids = g_new0(unsigned int, endgrp->fdp.nruh); in nvme_ns_init_fdp()
469 if (ns->fdp.nphs++ == endgrp->fdp.nruh) { in nvme_ns_init_fdp()
498 if (*ruhid >= endgrp->fdp.nruh) { in nvme_ns_init_fdp()
H A Dnvme.h85 uint16_t nruh; member
116 uint16_t nruh; member
H A Dctrl.c4544 maxnpid = n->subsys->endgrp.fdp.nrg * n->subsys->endgrp.fdp.nruh; in nvme_io_mgmt_send_ruh_update()
5123 static size_t sizeof_fdp_conf_descr(size_t nruh, size_t vss) in sizeof_fdp_conf_descr() argument
5139 size_t nruh, fdp_descr_size; in nvme_fdp_confs() local
5149 nruh = endgrp->fdp.nruh; in nvme_fdp_confs()
5151 nruh = 1; in nvme_fdp_confs()
5154 fdp_descr_size = sizeof_fdp_conf_descr(nruh, FDPVSS); in nvme_fdp_confs()
5176 hdr->nruh = cpu_to_le16(endgrp->fdp.nruh); in nvme_fdp_confs()
5181 for (i = 0; i < nruh; i++) { in nvme_fdp_confs()
5188 hdr->nruh = cpu_to_le16(1); in nvme_fdp_confs()
5235 hdr->nruh = cpu_to_le16(endgrp->fdp.nruh); in nvme_fdp_ruh_usage()
[all …]
/openbmc/qemu/docs/system/devices/
H A Dnvme.rst228 -device nvme-subsys,id=nvme-subsys-0,nqn=subsys0,fdp=on,fdp.nruh=16
241 ``fdp.nruh`` (default: ``0``)
/openbmc/qemu/include/block/
H A Dnvme.h1718 uint16_t nruh; member
1737 uint16_t nruh; member