Lines Matching refs:counts
203 pci_intr_alloc(const struct pci_attach_args *pa, pci_intr_handle_t **ihps, int *counts, pci_intr_type_t max_type)
209 if (counts != NULL) {
214 msix_count = counts[PCI_INTR_TYPE_MSIX];
217 msi_count = counts[PCI_INTR_TYPE_MSI];
220 intx_count = counts[PCI_INTR_TYPE_INTX];
227 memset(counts, 0, sizeof(*counts) * PCI_INTR_TYPE_SIZE);
235 if (counts != NULL)
236 counts[PCI_INTR_TYPE_MSIX] = msix_count;
243 if (counts != NULL)
244 counts[PCI_INTR_TYPE_MSI] = msi_count;
249 if (counts != NULL)
250 counts[PCI_INTR_TYPE_INTX] = intx_count;