Lines Matching full:msi
92 len = 10; /* minimum length of msi capability */ in msi_caplen()
99 * Ignore the 'mask' and 'pending' bits in the MSI capability. in msi_caplen()
194 * Copy the msi capability structure in the last 16 bytes of the in passthru_add_msicap()
213 /* Reduce the number of MSI vectors if higher than OS limit */ in passthru_intr_limit()
233 /* Reduce the number of MSI-X vectors if higher than OS limit */ in passthru_intr_limit()
253 * Parse the capabilities and cache the location of the MSI in cfginitmsi()
254 * and MSI-X capabilities. in cfginitmsi()
263 * Copy the MSI capability into the config in cfginitmsi()
281 * Copy the MSI-X capability in cfginitmsi()
315 /* Allocate the emulated MSI-X table array */ in cfginitmsi()
328 * If the passthrough device does not support MSI then craft a in cfginitmsi()
329 * MSI capability for it. We link the new MSI capability at the in cfginitmsi()
479 /* If MSI-X hasn't been enabled, do nothing */ in msix_table_write()
502 * Map the region of the BAR containing the MSI-X table. This is in init_msix_table()
504 * 1. The PBA may reside in the first or last page containing the MSI-X in init_msix_table()
507 * the MSI-X table for other purposes, some do in practice. in init_msix_table()
511 * Mapping pptfd provides access to the BAR containing the MSI-X in init_msix_table()
515 * to prevent access to pages that don't contain the MSI-X table. in init_msix_table()
516 * When porting this, it was tempting to just map the MSI-X table pages in init_msix_table()
525 warn("Failed to map MSI-X table BAR on %d", sc->pptfd); in init_msix_table()
543 warn("Failed to unmap MSI-X table BAR region"); in init_msix_table()
549 warn("Failed to unmap MSI-X table BAR region"); in init_msix_table()
643 warnx("failed to initialize MSI for PCI %d", sc->pptfd); in cfginit()
655 warnx("failed to initialize MSI-X table for PCI %d", in cfginit()
871 * MSI capability is emulated. in passthru_cfgread_default()
877 * MSI-X is also emulated since a limit on interrupts may be imposed by in passthru_cfgread_default()
932 * MSI capability is emulated in passthru_cfgwrite_default()