Home
last modified time | relevance | path

Searched refs:rgif (Results 1 – 3 of 3) 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
124 *rgif = 0; in nvme_calc_rgif()
134 *rgif = i; in nvme_calc_rgif()
138 *rgif = 0; in nvme_calc_rgif()
172 if (!nvme_calc_rgif(endgrp->fdp.nruh, endgrp->fdp.nrg, &endgrp->fdp.rgif)) { in nvme_subsys_setup_fdp()
H A Dnvme.h87 uint8_t rgif; member
H A Dctrl.c325 uint16_t rgif = ns->endgrp->fdp.rgif; in nvme_make_pid() local
327 if (!rgif) { in nvme_make_pid()
331 return (rg << (16 - rgif)) | ph; in nvme_make_pid()
346 uint16_t rgif = ns->endgrp->fdp.rgif; in nvme_pid2ph() local
348 if (!rgif) { in nvme_pid2ph()
352 return pid & ((1 << (15 - rgif)) - 1); in nvme_pid2ph()
357 uint16_t rgif = ns->endgrp->fdp.rgif; in nvme_pid2rg() local
359 if (!rgif) { in nvme_pid2rg()
363 return pid >> (16 - rgif); in nvme_pid2rg()
5174 hdr->fdpa = FIELD_DP8(hdr->fdpa, FDPA, RGIF, endgrp->fdp.rgif); in nvme_fdp_confs()