Lines Matching refs:gsi
423 u8 trigger, u32 gsi);
426 u32 gsi) in mp_override_legacy_irq() argument
444 if (mp_register_ioapic_irq(bus_irq, polarity, trigger, gsi) < 0) in mp_override_legacy_irq()
451 if (gsi < nr_legacy_irqs() && isa_irq_to_gsi[gsi] == gsi) in mp_override_legacy_irq()
452 isa_irq_to_gsi[gsi] = INVALID_ACPI_IRQ; in mp_override_legacy_irq()
453 isa_irq_to_gsi[bus_irq] = gsi; in mp_override_legacy_irq()
456 static void mp_config_acpi_gsi(struct device *dev, u32 gsi, int trigger, in mp_config_acpi_gsi() argument
483 ioapic = mp_find_ioapic(gsi); in mp_config_acpi_gsi()
485 mp_irq.dstirq = mp_find_ioapic_pin(ioapic, gsi); in mp_config_acpi_gsi()
492 u8 trigger, u32 gsi) in mp_register_ioapic_irq() argument
498 ioapic = mp_find_ioapic(gsi); in mp_register_ioapic_irq()
500 pr_warn("Failed to find ioapic for gsi : %u\n", gsi); in mp_register_ioapic_irq()
504 pin = mp_find_ioapic_pin(ioapic, gsi); in mp_register_ioapic_irq()
548 static void __init acpi_sci_ioapic_setup(u8 bus_irq, u16 polarity, u16 trigger, u32 gsi) in acpi_sci_ioapic_setup() argument
564 mp_override_legacy_irq(bus_irq, polarity, trigger, gsi); in acpi_sci_ioapic_setup()
566 mp_register_ioapic_irq(bus_irq, polarity, trigger, gsi); in acpi_sci_ioapic_setup()
574 acpi_sci_override_gsi = gsi; in acpi_sci_ioapic_setup()
692 int acpi_gsi_to_irq(u32 gsi, unsigned int *irqp) in acpi_gsi_to_irq() argument
697 *irqp = gsi; in acpi_gsi_to_irq()
701 rc = acpi_get_override_irq(gsi, &trigger, &polarity); in acpi_gsi_to_irq()
707 irq = acpi_register_gsi(NULL, gsi, trigger, polarity); in acpi_gsi_to_irq()
716 int acpi_isa_irq_to_gsi(unsigned isa_irq, u32 *gsi) in acpi_isa_irq_to_gsi() argument
720 *gsi = isa_irq_to_gsi[isa_irq]; in acpi_isa_irq_to_gsi()
727 static int acpi_register_gsi_pic(struct device *dev, u32 gsi, in acpi_register_gsi_pic() argument
735 elcr_set_level_irq(gsi); in acpi_register_gsi_pic()
738 return gsi; in acpi_register_gsi_pic()
742 static int acpi_register_gsi_ioapic(struct device *dev, u32 gsi, in acpi_register_gsi_ioapic() argument
745 int irq = gsi; in acpi_register_gsi_ioapic()
756 irq = mp_map_gsi_to_irq(gsi, IOAPIC_MAP_ALLOC, &info); in acpi_register_gsi_ioapic()
758 if (irq >= 0 && enable_update_mptable && gsi != acpi_gbl_FADT.sci_interrupt) in acpi_register_gsi_ioapic()
759 mp_config_acpi_gsi(dev, gsi, trigger, polarity); in acpi_register_gsi_ioapic()
766 static void acpi_unregister_gsi_ioapic(u32 gsi) in acpi_unregister_gsi_ioapic() argument
772 irq = mp_map_gsi_to_irq(gsi, 0, NULL); in acpi_unregister_gsi_ioapic()
780 int (*__acpi_register_gsi)(struct device *dev, u32 gsi,
782 void (*__acpi_unregister_gsi)(u32 gsi) = NULL;
794 int acpi_register_gsi(struct device *dev, u32 gsi, int trigger, int polarity) in acpi_register_gsi() argument
796 return __acpi_register_gsi(dev, gsi, trigger, polarity); in acpi_register_gsi()
800 void acpi_unregister_gsi(u32 gsi) in acpi_unregister_gsi() argument
803 __acpi_unregister_gsi(gsi); in acpi_unregister_gsi()
1214 u32 gsi; in mp_config_acpi_legacy_irqs() local
1217 if (acpi_isa_irq_to_gsi(i, &gsi)) in mp_config_acpi_legacy_irqs()
1223 ioapic = mp_find_ioapic(gsi); in mp_config_acpi_legacy_irqs()
1226 pin = mp_find_ioapic_pin(ioapic, gsi); in mp_config_acpi_legacy_irqs()