Lines Matching refs:pc
28 pci_msi_enable(pci_chipset_tag_t pc, pcitag_t tag, in pci_msi_enable() argument
34 if (pci_get_capability(pc, tag, PCI_CAP_MSI, &off, ®) == 0) in pci_msi_enable()
38 pci_conf_write(pc, tag, off + PCI_MSI_MA, addr); in pci_msi_enable()
39 pci_conf_write(pc, tag, off + PCI_MSI_MAU32, addr >> 32); in pci_msi_enable()
40 pci_conf_write(pc, tag, off + PCI_MSI_MD64, data); in pci_msi_enable()
42 pci_conf_write(pc, tag, off + PCI_MSI_MA, addr); in pci_msi_enable()
43 pci_conf_write(pc, tag, off + PCI_MSI_MD32, data); in pci_msi_enable()
45 pci_conf_write(pc, tag, off, reg | PCI_MSI_MC_MSIE); in pci_msi_enable()
49 pci_msix_table_map(pci_chipset_tag_t pc, pcitag_t tag, in pci_msix_table_map() argument
57 if (pci_get_capability(pc, tag, PCI_CAP_MSIX, &off, ®) == 0) in pci_msix_table_map()
60 table = pci_conf_read(pc, tag, off + PCI_MSIX_TABLE); in pci_msix_table_map()
66 type = pci_mapreg_type(pc, tag, bir); in pci_msix_table_map()
67 if (pci_mapreg_info(pc, tag, bir, type, &base, NULL, NULL) || in pci_msix_table_map()
75 pci_msix_table_unmap(pci_chipset_tag_t pc, pcitag_t tag, in pci_msix_table_unmap() argument
81 if (pci_get_capability(pc, tag, PCI_CAP_MSIX, NULL, ®) == 0) in pci_msix_table_unmap()
89 pci_msix_enable(pci_chipset_tag_t pc, pcitag_t tag, bus_space_tag_t memt, in pci_msix_enable() argument
97 if (pci_get_capability(pc, tag, PCI_CAP_MSIX, &off, ®) == 0) in pci_msix_enable()
102 if (pci_msix_table_map(pc, tag, memt, &memh)) in pci_msix_enable()
114 pci_msix_table_unmap(pc, tag, memt, memh); in pci_msix_enable()
116 pci_conf_write(pc, tag, off, reg | PCI_MSIX_MC_MSIXE); in pci_msix_enable()
122 pci_chipset_tag_t pc = pa->pa_pc; in _pci_intr_map_msi() local
126 pci_get_capability(pc, tag, PCI_CAP_MSI, NULL, NULL) == 0) in _pci_intr_map_msi()
148 pci_chipset_tag_t pc = pa->pa_pc; in _pci_intr_map_msix() local
154 pci_get_capability(pc, tag, PCI_CAP_MSIX, &off, ®) == 0) in _pci_intr_map_msix()
160 table = pci_conf_read(pc, tag, off + PCI_MSIX_TABLE); in _pci_intr_map_msix()
162 type = pci_mapreg_type(pc, tag, bir); in _pci_intr_map_msix()