Lines Matching defs:irq

61  * For interrupt link devices, if xen_uppc_unconditional_srs is set, an irq
63 * irq setting (via _CRS), but only if that irq is in the set of possible
71 * over other possible irq settings under same conditions.
293 * unbind if no more sharers of this irq/evtchn
422 * If the clock irq is pending on this cpu then we need to
430 * Configures the irq for the interrupt link device identified by
433 * Gets the current and the list of possible irq settings for the
435 * resource setting is in the list of possible irq settings,
436 * current irq resource setting is passed to the caller.
438 * Otherwise, picks an irq number from the list of possible irq
439 * settings, and sets the irq of the device to this value.
440 * If prefer_crs is set, among a set of irq numbers in the list that have
441 * the least number of devices sharing the interrupt, we pick current irq
444 * Passes the irq number in the value pointed to by pci_irqp, and
448 * Note that if setting the irq resource failed, but successfuly obtained
449 * the current irq resource settings, passes the current irq resources
456 * if a suitable irq was not found for this device, or if setting the
457 * irq resource and obtaining the current resource fails.
465 int32_t irq;
496 "current irq %d for device %s, instance #%d in ACPI's "
510 irq = irqlistp->irqs[i];
512 if ((irq > MAX_ISA_IRQ) ||
514 (irq == 0))
517 if (xen_uppc_reserved_irqlist[irq])
520 if (xen_uppc_irq_shared_table[irq] == 0) {
521 chosen_irq = irq;
524 (irq == cur_irq)) {
530 if ((xen_uppc_irq_shared_table[irq] < min_share) ||
531 ((xen_uppc_irq_shared_table[irq] == min_share) &&
532 (cur_irq == irq) && (xen_uppc_prefer_crs))) {
533 min_share = xen_uppc_irq_shared_table[irq];
534 share_irq = irq;
543 * irq list entry, since we found an irq from this
560 irq = chosen_irq;
562 irq = share_irq;
565 "suitable irq from the list of possible irqs for device "
573 XEN_UPPC_VERBOSE_IRQ((CE_CONT, "!xVM_uppc: Setting irq %d "
574 "for device %s instance #%d\n", irq, ddi_get_name(dip),
577 if ((acpi_set_irq_resource(acpipsmlnkp, irq)) == ACPI_PSM_SUCCESS) {
579 * setting irq was successful, check to make sure CRS
581 * set, return the irq that was set.
587 if (cur_irq != irq)
592 irq, ddi_get_name(dip),
596 * return the irq that was set, and not what CRS reports,
599 cur_irq = irq;
601 XEN_UPPC_VERBOSE_IRQ((CE_WARN, "!xVM_uppc: set resource irq %d "
603 irq, ddi_get_name(dip), ddi_get_instance(dip)));
655 "new irq %d for device %s, instance #%d\n",
709 "new irq %d old irq %d device %s, instance %d\n",