Lines Matching refs:msgctrl
73 int msgctrl; member
88 msi_caplen(int msgctrl) in msi_caplen() argument
94 if (msgctrl & PCIM_MSICTRL_64BIT) in msi_caplen()
102 if (msgctrl & PCIM_MSICTRL_VECTOR) in msi_caplen()
224 mmc = sc->psc_msi.msgctrl & PCIM_MSICTRL_MMC_MASK; in passthru_intr_limit()
227 sc->psc_msi.msgctrl &= ~PCIM_MSICTRL_MMC_MASK; in passthru_intr_limit()
228 sc->psc_msi.msgctrl |= msi_limit; in passthru_intr_limit()
229 pci_set_cfgdata16(pi, off + 2, sc->psc_msi.msgctrl); in passthru_intr_limit()
235 if (MSIX_TABLE_COUNT(msixcap->msgctrl) > sc->msix_limit) { in passthru_intr_limit()
236 msixcap->msgctrl &= ~PCIM_MSIXCTRL_TABLE_SIZE; in passthru_intr_limit()
237 msixcap->msgctrl |= sc->msix_limit - 1; in passthru_intr_limit()
238 pci_set_cfgdata16(pi, off + 2, msixcap->msgctrl); in passthru_intr_limit()
267 sc->psc_msi.msgctrl = passthru_read_config(sc, in cfginitmsi()
270 caplen = msi_caplen(sc->psc_msi.msgctrl); in cfginitmsi()
312 pi->pi_msix.table_count = MSIX_TABLE_COUNT(msixcap.msgctrl); in cfginitmsi()
337 sc->psc_msi.msgctrl = pci_get_cfgdata16(pi, msiptr + 2); in cfginitmsi()
848 caplen = msi_caplen(sc->psc_msi.msgctrl); in msicap_access()