Home
last modified time | relevance | path

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

/freebsd-11-stable/usr.sbin/bhyve/
HDpci_passthru.c235 pi->pi_msix.pba_bar = in cfginitmsi()
237 pi->pi_msix.pba_offset = in cfginitmsi()
239 pi->pi_msix.table_bar = in cfginitmsi()
241 pi->pi_msix.table_offset = in cfginitmsi()
243 pi->pi_msix.table_count = MSIX_TABLE_COUNT(msixcap.msgctrl); in cfginitmsi()
244 pi->pi_msix.pba_size = PBA_SIZE(pi->pi_msix.table_count); in cfginitmsi()
247 table_size = pi->pi_msix.table_count * MSIX_TABLE_ENTRY_SIZE; in cfginitmsi()
248 pi->pi_msix.table = calloc(1, table_size); in cfginitmsi()
251 for (i = 0; i < pi->pi_msix.table_count; i++) { in cfginitmsi()
252 pi->pi_msix.table[i].vector_control |= in cfginitmsi()
[all …]
HDpci_emul.c244 if (offset < pi->pi_msix.pba_offset) in pci_valid_pba_offset()
247 if (offset >= pi->pi_msix.pba_offset + pi->pi_msix.pba_size) { in pci_valid_pba_offset()
270 if (tab_index >= pi->pi_msix.table_count) in pci_emul_msix_twrite()
279 dest = (char *)(pi->pi_msix.table + tab_index); in pci_emul_msix_twrite()
315 if (tab_index < pi->pi_msix.table_count) { in pci_emul_msix_tread()
317 dest = (char *)(pi->pi_msix.table + tab_index); in pci_emul_msix_tread()
338 if (pi->pi_msix.table != NULL) in pci_msix_table_bar()
339 return (pi->pi_msix.table_bar); in pci_msix_table_bar()
348 if (pi->pi_msix.table != NULL) in pci_msix_pba_bar()
349 return (pi->pi_msix.pba_bar); in pci_msix_pba_bar()
[all …]
HDpci_emul.h149 } pi_msix; member