Lines Matching refs:type

106 pci_get_msi_ctrl(dev_info_t *dip, int type, ushort_t *msi_ctrl,
120 (type == DDI_INTR_TYPE_MSI)) {
132 (type == DDI_INTR_TYPE_MSIX)) {
155 pci_msi_get_cap(dev_info_t *rdip, int type, int *flagsp)
165 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl,
169 if (type == DDI_INTR_TYPE_MSI) {
177 } else if (type == DDI_INTR_TYPE_MSIX) {
200 pci_msi_configure(dev_info_t *rdip, int type, int count, int inum,
206 DDI_INTR_NEXDBG((CE_CONT, "pci_msi_configure: rdip = 0x%p type 0x%x "
208 (void *)rdip, type, count, inum, addr, data));
210 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl,
214 if (type == DDI_INTR_TYPE_MSI) {
250 } else if (type == DDI_INTR_TYPE_MSIX) {
296 pci_msi_unconfigure(dev_info_t *rdip, int type, int inum)
301 DDI_INTR_NEXDBG((CE_CONT, "pci_msi_unconfigure: rdip = 0x%p type 0x%x "
302 "inum 0x%x\n", (void *)rdip, type, inum));
304 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl, &caps_ptr, &h) !=
308 if (type == DDI_INTR_TYPE_MSI) {
327 } else if (type == DDI_INTR_TYPE_MSIX) {
362 pci_is_msi_enabled(dev_info_t *rdip, int type)
369 "type = 0x%x\n", (void *)rdip, type));
371 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl,
375 if ((type == DDI_INTR_TYPE_MSI) && (msi_ctrl & PCI_MSI_ENABLE_BIT))
378 if ((type == DDI_INTR_TYPE_MSIX) && (msi_ctrl & PCI_MSIX_ENABLE_BIT))
397 pci_msi_enable_mode(dev_info_t *rdip, int type)
405 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl,
409 if (type == DDI_INTR_TYPE_MSI) {
416 } else if (type == DDI_INTR_TYPE_MSIX) {
445 pci_msi_disable_mode(dev_info_t *rdip, int type)
453 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl,
458 if (type == DDI_INTR_TYPE_MSI) {
463 } else if (type == DDI_INTR_TYPE_MSIX) {
488 pci_msi_set_mask(dev_info_t *rdip, int type, int inum)
497 "type = 0x%x\n", (void *)rdip, type));
499 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl,
503 if (type == DDI_INTR_TYPE_MSI) {
518 } else if (type == DDI_INTR_TYPE_MSIX) {
552 pci_msi_clr_mask(dev_info_t *rdip, int type, int inum)
561 "type = 0x%x\n", (void *)rdip, type));
563 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl,
567 if (type == DDI_INTR_TYPE_MSI) {
581 } else if (type == DDI_INTR_TYPE_MSIX) {
614 pci_msi_get_pending(dev_info_t *rdip, int type, int inum, int *pendingp)
624 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl,
628 if (type == DDI_INTR_TYPE_MSI) {
646 } else if (type == DDI_INTR_TYPE_MSIX) {
670 * For a given type (MSI/X) returns the number of interrupts supported
673 pci_msi_get_nintrs(dev_info_t *rdip, int type, int *nintrs)
681 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl,
685 if (type == DDI_INTR_TYPE_MSI) {
688 } else if (type == DDI_INTR_TYPE_MSIX) {
704 * For a given type (MSI/X) sets the number of interrupts supported
710 pci_msi_set_nintrs(dev_info_t *rdip, int type, int navail)
719 if (((type == DDI_INTR_TYPE_MSI) && (navail > PCI_MSI_MAX_INTRS)) ||
720 ((type == DDI_INTR_TYPE_MSIX) && (navail > PCI_MSIX_MAX_INTRS)))
723 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl,
727 if (type == DDI_INTR_TYPE_MSI) {
731 } else if (type == DDI_INTR_TYPE_MSIX) {