Lines Matching refs:mp_irqs
169 struct mpc_intsrc mp_irqs[MAX_IRQ_SOURCES]; variable
213 if (!memcmp(&mp_irqs[i], m, sizeof(*m))) in mp_save_irq()
217 memcpy(&mp_irqs[mp_irq_entries], m, sizeof(*m)); in mp_save_irq()
684 if (mp_irqs[i].irqtype == type && in find_irq_entry()
685 (mp_irqs[i].dstapic == mpc_ioapic_id(ioapic_idx) || in find_irq_entry()
686 mp_irqs[i].dstapic == MP_APIC_ALL) && in find_irq_entry()
687 mp_irqs[i].dstirq == pin) in find_irq_entry()
701 int lbus = mp_irqs[i].srcbus; in find_isa_irq_pin()
704 (mp_irqs[i].irqtype == type) && in find_isa_irq_pin()
705 (mp_irqs[i].srcbusirq == irq)) in find_isa_irq_pin()
707 return mp_irqs[i].dstirq; in find_isa_irq_pin()
717 int lbus = mp_irqs[i].srcbus; in find_isa_irq_apic()
720 (mp_irqs[i].irqtype == type) && in find_isa_irq_apic()
721 (mp_irqs[i].srcbusirq == irq)) in find_isa_irq_apic()
729 if (mpc_ioapic_id(ioapic_idx) == mp_irqs[i].dstapic) in find_isa_irq_apic()
738 int bus = mp_irqs[idx].srcbus; in irq_active_low()
743 switch (mp_irqs[idx].irqflag & MP_IRQPOL_MASK) { in irq_active_low()
789 return EISA_ELCR(mp_irqs[idx].srcbusirq); in eisa_irq_is_level()
803 int bus = mp_irqs[idx].srcbus; in irq_is_level()
809 switch (mp_irqs[idx].irqflag & MP_IRQTRIG_MASK) { in irq_is_level()
1033 if (idx >= 0 && test_bit(mp_irqs[idx].srcbus, mp_bus_not_pci)) { in mp_map_pin_to_irq()
1034 irq = mp_irqs[idx].srcbusirq; in mp_map_pin_to_irq()
1081 if (mp_irqs[idx].dstirq != pin) in pin_2_irq()
1159 int lbus = mp_irqs[i].srcbus; in IO_APIC_get_PCI_irq_vector()
1162 if (bus != lbus || mp_irqs[i].irqtype != mp_INT || in IO_APIC_get_PCI_irq_vector()
1163 slot != ((mp_irqs[i].srcbusirq >> 2) & 0x1f)) in IO_APIC_get_PCI_irq_vector()
1167 if (mpc_ioapic_id(ioapic_idx) == mp_irqs[i].dstapic || in IO_APIC_get_PCI_irq_vector()
1168 mp_irqs[i].dstapic == MP_APIC_ALL) { in IO_APIC_get_PCI_irq_vector()
1176 irq = pin_2_irq(i, ioapic_idx, mp_irqs[i].dstirq, 0); in IO_APIC_get_PCI_irq_vector()
1180 if (pin == (mp_irqs[i].srcbusirq & 3)) { in IO_APIC_get_PCI_irq_vector()
1199 return pin_2_irq(best_idx, best_ioapic, mp_irqs[best_idx].dstirq, in IO_APIC_get_PCI_irq_vector()
1528 if (mp_irqs[i].dstapic == old_id) in setup_ioapic_ids_from_mpc_nocheck()
1529 mp_irqs[i].dstapic in setup_ioapic_ids_from_mpc_nocheck()