Lines Matching refs:msgctrl
1095 uint16_t msgctrl; in pci_access_msi() local
1106 msgctrl = pci_get_cfgdata16(dev, offset + PCIR_MSI_CTRL); in pci_access_msi()
1107 if (msgctrl & PCIM_MSICTRL_64BIT) in pci_access_msi()
1178 msicap->msgctrl = PCIM_MSICTRL_64BIT | PCIM_MSICTRL_PVMC | (mmc << 1); in pci_populate_msicap()
1205 msixcap->msgctrl = msgnum - 1; in pci_populate_msixcap()
1285 uint16_t msgctrl, rwmask; in msixcap_cfgwrite() local
1293 msgctrl = pci_get_cfgdata16(dev, offset); in msixcap_cfgwrite()
1294 msgctrl &= ~rwmask; in msixcap_cfgwrite()
1295 msgctrl |= val & rwmask; in msixcap_cfgwrite()
1296 val = msgctrl; in msixcap_cfgwrite()
1310 uint16_t msgctrl, rwmask, msgdata, mme; in msicap_cfgwrite() local
1320 msgctrl = pci_get_cfgdata16(dev, offset); in msicap_cfgwrite()
1321 msgctrl &= ~rwmask; in msicap_cfgwrite()
1322 msgctrl |= val & rwmask; in msicap_cfgwrite()
1323 val = msgctrl; in msicap_cfgwrite()
1326 if (msgctrl & PCIM_MSICTRL_64BIT) in msicap_cfgwrite()
1331 mme = msgctrl & PCIM_MSICTRL_MME_MASK; in msicap_cfgwrite()
1332 dev->msi.enabled = msgctrl & PCIM_MSICTRL_MSI_ENABLE ? 1 : 0; in msicap_cfgwrite()