Lines Matching refs:msgnum
1141 pci_populate_msicap(struct msicap *msicap, int msgnum, int nextptr) in pci_populate_msicap() argument
1146 assert((msgnum & (msgnum - 1)) == 0 && msgnum >= 1 && msgnum <= 32); in pci_populate_msicap()
1147 mmc = ffs(msgnum) - 1; in pci_populate_msicap()
1156 pci_emul_add_msicap(struct pci_devinst *pi, int msgnum) in pci_emul_add_msicap() argument
1160 pci_populate_msicap(&msicap, msgnum, 0); in pci_emul_add_msicap()
1166 pci_populate_msixcap(struct msixcap *msixcap, int msgnum, int barnum, in pci_populate_msixcap() argument
1180 msixcap->msgctrl = msgnum - 1; in pci_populate_msixcap()
1208 pci_emul_add_msixcap(struct pci_devinst *pi, int msgnum, int barnum) in pci_emul_add_msixcap() argument
1213 assert(msgnum >= 1 && msgnum <= MAX_MSIX_TABLE_ENTRIES); in pci_emul_add_msixcap()
1216 tab_size = msgnum * MSIX_TABLE_ENTRY_SIZE; in pci_emul_add_msixcap()
1224 pi->pi_msix.table_count = msgnum; in pci_emul_add_msixcap()
1226 pi->pi_msix.pba_size = PBA_SIZE(msgnum); in pci_emul_add_msixcap()
1228 pci_msix_table_init(pi, msgnum); in pci_emul_add_msixcap()
1230 pci_populate_msixcap(&msixcap, msgnum, barnum, tab_size); in pci_emul_add_msixcap()