Home
last modified time | relevance | path

Searched refs:msicap (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/cmd/bhyve/
H A Dpci_emul.h171 struct msicap { struct
179 static_assert(sizeof(struct msicap) == 14, "compile-time assertion failed"); argument
256 void pci_populate_msicap(struct msicap *cap, int msgs, int nextptr);
H A Dpci_emul.c1106 pci_populate_msicap(struct msicap *msicap, int msgnum, int nextptr) in pci_populate_msicap() argument
1114 bzero(msicap, sizeof(struct msicap)); in pci_populate_msicap()
1115 msicap->capid = PCIY_MSI; in pci_populate_msicap()
1116 msicap->nextptr = nextptr; in pci_populate_msicap()
1117 msicap->msgctrl = PCIM_MSICTRL_64BIT | (mmc << 1); in pci_populate_msicap()
1123 struct msicap msicap; in pci_emul_add_msicap() local
1125 pci_populate_msicap(&msicap, msgnum, 0); in pci_emul_add_msicap()
1127 return (pci_emul_add_capability(pi, (u_char *)&msicap, sizeof(msicap))); in pci_emul_add_msicap()
H A Dpci_passthru.c188 struct msicap msicap; in passthru_add_msicap() local
191 pci_populate_msicap(&msicap, msgnum, nextptr); in passthru_add_msicap()
199 capoff = 256 - roundup(sizeof(msicap), 4); in passthru_add_msicap()
200 capdata = (u_char *)&msicap; in passthru_add_msicap()
201 for (size_t i = 0; i < sizeof(msicap); i++) in passthru_add_msicap()