Lines Matching refs:mp_irqs

166 struct mpc_intsrc mp_irqs[MAX_IRQ_SOURCES];  variable
209 if (!memcmp(&mp_irqs[i], m, sizeof(*m))) in mp_save_irq()
213 memcpy(&mp_irqs[mp_irq_entries], m, sizeof(*m)); in mp_save_irq()
622 if (mp_irqs[i].irqtype == type && in find_irq_entry()
623 (mp_irqs[i].dstapic == mpc_ioapic_id(ioapic_idx) || in find_irq_entry()
624 mp_irqs[i].dstapic == MP_APIC_ALL) && in find_irq_entry()
625 mp_irqs[i].dstirq == pin) in find_irq_entry()
640 int lbus = mp_irqs[i].srcbus; in find_isa_irq_pin()
642 if (test_bit(lbus, mp_bus_not_pci) && (mp_irqs[i].irqtype == type) && in find_isa_irq_pin()
643 (mp_irqs[i].srcbusirq == irq)) in find_isa_irq_pin()
644 return mp_irqs[i].dstirq; in find_isa_irq_pin()
654 int lbus = mp_irqs[i].srcbus; in find_isa_irq_apic()
656 if (test_bit(lbus, mp_bus_not_pci) && (mp_irqs[i].irqtype == type) && in find_isa_irq_apic()
657 (mp_irqs[i].srcbusirq == irq)) in find_isa_irq_apic()
665 if (mpc_ioapic_id(ioapic_idx) == mp_irqs[i].dstapic) in find_isa_irq_apic()
675 int bus = mp_irqs[idx].srcbus; in irq_active_low()
680 switch (mp_irqs[idx].irqflag & MP_IRQPOL_MASK) { in irq_active_low()
725 return EISA_ELCR(mp_irqs[idx].srcbusirq); in eisa_irq_is_level()
739 int bus = mp_irqs[idx].srcbus; in irq_is_level()
745 switch (mp_irqs[idx].irqflag & MP_IRQTRIG_MASK) { in irq_is_level()
965 if (idx >= 0 && test_bit(mp_irqs[idx].srcbus, mp_bus_not_pci)) { in mp_map_pin_to_irq()
966 irq = mp_irqs[idx].srcbusirq; in mp_map_pin_to_irq()
1009 if (mp_irqs[idx].dstirq != pin) in pin_2_irq()
1080 int lbus = mp_irqs[i].srcbus; in IO_APIC_get_PCI_irq_vector()
1083 if (bus != lbus || mp_irqs[i].irqtype != mp_INT || in IO_APIC_get_PCI_irq_vector()
1084 slot != ((mp_irqs[i].srcbusirq >> 2) & 0x1f)) in IO_APIC_get_PCI_irq_vector()
1088 if (mpc_ioapic_id(ioapic_idx) == mp_irqs[i].dstapic || in IO_APIC_get_PCI_irq_vector()
1089 mp_irqs[i].dstapic == MP_APIC_ALL) { in IO_APIC_get_PCI_irq_vector()
1097 irq = pin_2_irq(i, ioapic_idx, mp_irqs[i].dstirq, 0); in IO_APIC_get_PCI_irq_vector()
1101 if (pin == (mp_irqs[i].srcbusirq & 3)) { in IO_APIC_get_PCI_irq_vector()
1120 return pin_2_irq(best_idx, best_ioapic, mp_irqs[best_idx].dstirq, IOAPIC_MAP_ALLOC); in IO_APIC_get_PCI_irq_vector()
1422 if (mp_irqs[i].dstapic == old_id) in setup_ioapic_ids_from_mpc_nocheck()
1423 mp_irqs[i].dstapic = mpc_ioapic_id(ioapic_idx); in setup_ioapic_ids_from_mpc_nocheck()