Searched refs:msixcap (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | pci_passthru.c | 208 passthru_intr_limit(struct passthru_softc *sc, struct msixcap *msixcap) in passthru_intr_limit() argument 235 if (MSIX_TABLE_COUNT(msixcap->msgctrl) > sc->msix_limit) { in passthru_intr_limit() 236 msixcap->msgctrl &= ~PCIM_MSIXCTRL_TABLE_SIZE; in passthru_intr_limit() 237 msixcap->msgctrl |= sc->msix_limit - 1; in passthru_intr_limit() 238 pci_set_cfgdata16(pi, off + 2, msixcap->msgctrl); in passthru_intr_limit() 249 struct msixcap msixcap; in cfginitmsi() local 285 msixcap_ptr = (char *)&msixcap; in cfginitmsi() 301 passthru_intr_limit(sc, &msixcap); in cfginitmsi() 305 msixcap.pba_info & PCIM_MSIX_BIR_MASK; in cfginitmsi() 307 msixcap.pba_info & ~PCIM_MSIX_BIR_MASK; in cfginitmsi() [all …]
|
H A D | pci_emul.c | 1166 pci_populate_msixcap(struct msixcap *msixcap, int msgnum, int barnum, in pci_populate_msixcap() argument 1172 bzero(msixcap, sizeof(struct msixcap)); in pci_populate_msixcap() 1173 msixcap->capid = PCIY_MSIX; in pci_populate_msixcap() 1180 msixcap->msgctrl = msgnum - 1; in pci_populate_msixcap() 1187 msixcap->table_info = barnum & PCIM_MSIX_BIR_MASK; in pci_populate_msixcap() 1188 msixcap->pba_info = msix_tab_size | (barnum & PCIM_MSIX_BIR_MASK); in pci_populate_msixcap() 1211 struct msixcap msixcap; in pci_emul_add_msixcap() local 1230 pci_populate_msixcap(&msixcap, msgnum, barnum, tab_size); in pci_emul_add_msixcap() 1236 return (pci_emul_add_capability(pi, (u_char *)&msixcap, in pci_emul_add_msixcap() 1237 sizeof(msixcap))); in pci_emul_add_msixcap()
|
H A D | pci_emul.h | 181 struct msixcap { struct 188 static_assert(sizeof(struct msixcap) == 12, "compile-time assertion failed"); argument
|