Lines Matching defs:irq
78 * For interrupt link devices, if uppc_unconditional_srs is set, an irq resource
80 * irq setting (via _CRS), but only if that irq is in the set of possible
88 * over other possible irq settings under same conditions.
661 "new irq %d for device %s, instance #%d\n",
669 * Configures the irq for the interrupt link device identified by
672 * Gets the current and the list of possible irq settings for the
674 * resource setting is in the list of possible irq settings,
675 * current irq resource setting is passed to the caller.
677 * Otherwise, picks an irq number from the list of possible irq
678 * settings, and sets the irq of the device to this value.
679 * If prefer_crs is set, among a set of irq numbers in the list that have
680 * the least number of devices sharing the interrupt, we pick current irq
683 * Passes the irq number in the value pointed to by pci_irqp, and
687 * Note that if setting the irq resource failed, but successfuly obtained
688 * the current irq resource settings, passes the current irq resources
695 * if a suitable irq was not found for this device, or if setting the
696 * irq resource and obtaining the current resource fails.
704 int32_t irq;
734 "current irq %d for device %s, instance #%d in ACPI's "
748 irq = irqlistp->irqs[i];
750 if ((irq > MAX_ISA_IRQ) ||
752 (irq == 0))
755 if (uppc_reserved_irqlist[irq])
758 if (uppc_irq_shared_table[irq] == 0) {
759 chosen_irq = irq;
761 if (!(uppc_prefer_crs) || (irq == cur_irq)) {
767 if ((uppc_irq_shared_table[irq] < min_share) ||
768 ((uppc_irq_shared_table[irq] == min_share) &&
769 (cur_irq == irq) && (uppc_prefer_crs))) {
770 min_share = uppc_irq_shared_table[irq];
771 share_irq = irq;
780 * irq list entry, since we found an irq from this
797 irq = chosen_irq;
799 irq = share_irq;
802 "suitable irq from the list of possible irqs for device "
810 UPPC_VERBOSE_IRQ((CE_CONT, "!uppc: Setting irq %d for device %s "
811 "instance #%d\n", irq, ddi_get_name(dip), ddi_get_instance(dip)));
813 if ((acpi_set_irq_resource(acpipsmlnkp, irq)) == ACPI_PSM_SUCCESS) {
815 * setting irq was successful, check to make sure CRS
817 * set, return the irq that was set.
823 if (cur_irq != irq)
828 irq, ddi_get_name(dip),
832 * return the irq that was set, and not what CRS reports,
835 cur_irq = irq;
837 UPPC_VERBOSE_IRQ((CE_WARN, "!uppc: set resource irq %d "
839 irq, ddi_get_name(dip), ddi_get_instance(dip)));
895 UPPC_VERBOSE_IRQ((CE_CONT, "!uppc: [ACPI] new irq "
896 "%d old irq %d device %s, instance %d\n", pci_irq,