Lines Matching full:active
52 * If a link is initialized, we never change its active and initialized
53 * later even the link is disable. Instead, we just repick the active irq
56 u32 active; /* Current IRQ */ member
222 * Run _CRS and set link->irq.active
235 link->irq.active = 0; in acpi_pci_link_get_current()
269 link->irq.active = irq; in acpi_pci_link_get_current()
271 acpi_handle_debug(handle, "Link at IRQ %d \n", link->irq.active); in acpi_pci_link_get_current()
361 /* Query _CRS, set link->irq.active */ in acpi_pci_link_set()
369 * set link->irq.active in acpi_pci_link_set()
371 if (link->irq.active != irq) { in acpi_pci_link_set()
377 link->irq.active, irq); in acpi_pci_link_set()
378 link->irq.active = irq; in acpi_pci_link_set()
381 acpi_handle_debug(handle, "Set IRQ %d\n", link->irq.active); in acpi_pci_link_set()
397 * that the BIOS has already set to active. This is necessary because
399 * if the BIOS doesn't set a Link Device active, ACPI needs to program it
416 * by multiple active devices -- it is not optimal.
459 * If a link is active, penalize its IRQ heavily in acpi_irq_pci_sharing_penalty()
462 if (link->irq.active && link->irq.active == irq) in acpi_irq_pci_sharing_penalty()
501 * reflect the possible and active irqs in the penalty table -- in acpi_irq_penalty_init()
516 } else if (link->irq.active && in acpi_irq_penalty_init()
517 (link->irq.active < ACPI_MAX_ISA_IRQS)) { in acpi_irq_penalty_init()
518 acpi_isa_irq_penalty[link->irq.active] += in acpi_irq_penalty_init()
537 acpi_pci_link_set(link, link->irq.active); in acpi_pci_link_allocate()
542 * search for active IRQ in list of possible IRQs. in acpi_pci_link_allocate()
545 if (link->irq.active == link->irq.possible[i]) in acpi_pci_link_allocate()
549 * forget active IRQ that is not in possible list in acpi_pci_link_allocate()
554 link->irq.active); in acpi_pci_link_allocate()
555 link->irq.active = 0; in acpi_pci_link_allocate()
559 * if active found, use it; else pick entry from end of possible list. in acpi_pci_link_allocate()
561 if (link->irq.active) in acpi_pci_link_allocate()
562 irq = link->irq.active; in acpi_pci_link_allocate()
566 if (acpi_irq_balance || !link->irq.active) { in acpi_pci_link_allocate()
589 if (link->irq.active < ACPI_MAX_ISA_IRQS) in acpi_pci_link_allocate()
590 acpi_isa_irq_penalty[link->irq.active] += in acpi_pci_link_allocate()
594 link->irq.active); in acpi_pci_link_allocate()
635 if (!link->irq.active) { in acpi_pci_link_allocate_irq()
637 acpi_handle_err(handle, "Link active IRQ is 0!\n"); in acpi_pci_link_allocate_irq()
650 return link->irq.active; in acpi_pci_link_allocate_irq()
697 return link->irq.active; in acpi_pci_link_free_irq()
726 /* query and set link->irq.active */ in acpi_pci_link_add()
730 acpi_device_bid(device), link->irq.active); in acpi_pci_link_add()
733 if (link->irq.active != link->irq.possible[i]) in acpi_pci_link_add()
758 if (link->refcnt && link->irq.active && link->irq.initialized) in acpi_pci_link_resume()
759 return (acpi_pci_link_set(link, link->irq.active)); in acpi_pci_link_resume()
827 void acpi_penalize_isa_irq(int irq, int active) in acpi_penalize_isa_irq() argument
831 (active ? PIRQ_PENALTY_ISA_USED : PIRQ_PENALTY_PCI_USING); in acpi_penalize_isa_irq()