Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/bhyve/common/
H A Dpci_passthru.c304 pi->pi_msix.pba_bar = in cfginitmsi()
306 pi->pi_msix.pba_offset = in cfginitmsi()
308 pi->pi_msix.table_bar = in cfginitmsi()
310 pi->pi_msix.table_offset = in cfginitmsi()
312 pi->pi_msix.table_count = MSIX_TABLE_COUNT(msixcap.msgctrl); in cfginitmsi()
313 pi->pi_msix.pba_size = PBA_SIZE(pi->pi_msix.table_count); in cfginitmsi()
316 table_size = pi->pi_msix.table_count * MSIX_TABLE_ENTRY_SIZE; in cfginitmsi()
317 pi->pi_msix.table = calloc(1, table_size); in cfginitmsi()
320 for (i = 0; i < pi->pi_msix.table_count; i++) { in cfginitmsi()
321 pi->pi_msix.table[i].vector_control |= in cfginitmsi()
[all …]
H A Dpci_emul.c401 if (offset < pi->pi_msix.pba_offset) in pci_valid_pba_offset()
404 if (offset >= pi->pi_msix.pba_offset + pi->pi_msix.pba_size) { in pci_valid_pba_offset()
427 if (tab_index >= pi->pi_msix.table_count) in pci_emul_msix_twrite()
436 dest = (char *)(pi->pi_msix.table + tab_index); in pci_emul_msix_twrite()
472 if (tab_index < pi->pi_msix.table_count) { in pci_emul_msix_tread()
474 dest = (char *)(pi->pi_msix.table + tab_index); in pci_emul_msix_tread()
495 if (pi->pi_msix.table != NULL) in pci_msix_table_bar()
496 return (pi->pi_msix.table_bar); in pci_msix_table_bar()
505 if (pi->pi_msix.table != NULL) in pci_msix_pba_bar()
506 return (pi->pi_msix.pba_bar); in pci_msix_pba_bar()
[all …]
H A Dpci_emul.h161 } pi_msix; member
H A Dpci_virtio_viona.c852 mte = pi->pi_msix.table[tab_index]; in pci_viona_ring_set_msix()
872 msix_on = pci_msix_enabled(pi) && (pi->pi_msix.function_mask == 0); in pci_viona_lintrupdate()