/arch/ia64/include/asm/ |
D | iosapic.h | 92 extern int gsi_to_irq (unsigned int gsi); 93 extern int iosapic_register_intr (unsigned int gsi, unsigned long polarity, 96 extern void iosapic_override_isa_irq (unsigned int isa_irq, unsigned int gsi, 100 unsigned int gsi, 113 #define iosapic_register_intr(gsi,polarity,trigger) (gsi) argument 115 #define iosapic_override_isa_irq(isa_irq,gsi,polarity,trigger) do { } while (0) argument 116 #define iosapic_register_platform_intr(type,gsi,pmi,eid,id, \ argument 117 polarity,trigger) (gsi)
|
D | acpi.h | 77 int acpi_gsi_to_irq (u32 gsi, unsigned int *irq);
|
/arch/x86/platform/intel-mid/device_libs/ |
D | platform_wdt.c | 29 int gsi; in tangier_probe() local 36 gsi = pdata->irq; in tangier_probe() 37 if (mp_set_gsi_attr(gsi, 1, 0, cpu_to_node(0)) || in tangier_probe() 38 mp_map_gsi_to_irq(gsi, IOAPIC_MAP_ALLOC) <= 0) { in tangier_probe() 40 gsi); in tangier_probe()
|
/arch/x86/kernel/acpi/ |
D | boot.c | 312 u8 trigger, u32 gsi); 315 u32 gsi) in mp_override_legacy_irq() argument 333 if (mp_register_ioapic_irq(bus_irq, polarity, trigger, gsi) < 0) in mp_override_legacy_irq() 340 if (gsi < nr_legacy_irqs() && isa_irq_to_gsi[gsi] == gsi) in mp_override_legacy_irq() 341 isa_irq_to_gsi[gsi] = ACPI_INVALID_GSI; in mp_override_legacy_irq() 342 isa_irq_to_gsi[bus_irq] = gsi; in mp_override_legacy_irq() 345 static int mp_config_acpi_gsi(struct device *dev, u32 gsi, int trigger, in mp_config_acpi_gsi() argument 372 ioapic = mp_find_ioapic(gsi); in mp_config_acpi_gsi() 374 mp_irq.dstirq = mp_find_ioapic_pin(ioapic, gsi); in mp_config_acpi_gsi() 381 static int mp_register_gsi(struct device *dev, u32 gsi, int trigger, in mp_register_gsi() argument [all …]
|
/arch/x86/pci/ |
D | xen.c | 33 u8 gsi; in xen_pcifront_enable_irq() local 35 rc = pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &gsi); in xen_pcifront_enable_irq() 42 pirq = gsi; in xen_pcifront_enable_irq() 44 if (gsi < nr_legacy_irqs()) in xen_pcifront_enable_irq() 47 rc = xen_bind_pirq_gsi_to_irq(gsi, pirq, share, "pcifront"); in xen_pcifront_enable_irq() 50 gsi, pirq, rc); in xen_pcifront_enable_irq() 55 dev_info(&dev->dev, "Xen PCI mapped GSI%d to IRQ%d\n", gsi, dev->irq); in xen_pcifront_enable_irq() 60 static int xen_register_pirq(u32 gsi, int gsi_override, int triggering, in xen_register_pirq() argument 68 irq = xen_irq_from_gsi(gsi); in xen_register_pirq() 73 pirq = gsi; in xen_register_pirq() [all …]
|
/arch/ia64/kernel/ |
D | iosapic.c | 166 find_iosapic (unsigned int gsi) in find_iosapic() argument 171 if ((unsigned) (gsi - iosapic_lists[i].gsi_base) < in find_iosapic() 179 static inline int __gsi_to_irq(unsigned int gsi) in __gsi_to_irq() argument 188 if (rte->iosapic->gsi_base + rte->rte_index == gsi) in __gsi_to_irq() 195 gsi_to_irq (unsigned int gsi) in gsi_to_irq() argument 201 irq = __gsi_to_irq(gsi); in gsi_to_irq() 206 static struct iosapic_rte_info *find_rte(unsigned int irq, unsigned int gsi) in find_rte() argument 211 if (rte->iosapic->gsi_base + rte->rte_index == gsi) in find_rte() 217 set_rte (unsigned int gsi, unsigned int irq, unsigned int dest, int mask) in set_rte() argument 228 rte = find_rte(irq, gsi); in set_rte() [all …]
|
D | acpi.c | 613 int acpi_register_gsi(struct device *dev, u32 gsi, int triggering, int polarity) in acpi_register_gsi() argument 616 return gsi; in acpi_register_gsi() 618 if (has_8259 && gsi < 16) in acpi_register_gsi() 619 return isa_irq_to_vector(gsi); in acpi_register_gsi() 621 return iosapic_register_intr(gsi, in acpi_register_gsi() 631 void acpi_unregister_gsi(u32 gsi) in acpi_unregister_gsi() argument 636 if (has_8259 && gsi < 16) in acpi_unregister_gsi() 639 iosapic_unregister_intr(gsi); in acpi_unregister_gsi() 778 int acpi_gsi_to_irq(u32 gsi, unsigned int *irq) in acpi_gsi_to_irq() argument 782 if (has_8259 && gsi < 16) in acpi_gsi_to_irq() [all …]
|
/arch/x86/include/asm/ |
D | io_apic.h | 186 extern int mp_find_ioapic(u32 gsi); 187 extern int mp_find_ioapic_pin(int ioapic, u32 gsi); 189 extern int mp_map_gsi_to_irq(u32 gsi, unsigned int flags); 196 extern int mp_set_gsi_attr(u32 gsi, int trigger, int polarity, int node); 238 static inline int mp_find_ioapic(u32 gsi) { return 0; } in mp_find_ioapic() argument 240 static inline int mp_map_gsi_to_irq(u32 gsi, unsigned int flags) { return gsi; } in mp_map_gsi_to_irq() argument
|
D | acpi.h | 51 extern int (*__acpi_register_gsi)(struct device *dev, u32 gsi, 53 extern void (*__acpi_unregister_gsi)(u32 gsi); 62 extern int acpi_gsi_to_irq(u32 gsi, unsigned int *irq);
|
/arch/x86/kernel/ |
D | devicetree.c | 205 u32 line, idx, gsi; in ioapic_xlate() local 218 gsi = mp_pin_to_gsi(idx, line); in ioapic_xlate() 219 if (mp_set_gsi_attr(gsi, it->trigger, it->polarity, cpu_to_node(0))) in ioapic_xlate()
|
/arch/x86/kernel/apic/ |
D | io_apic.c | 999 static int alloc_irq_from_domain(struct irq_domain *domain, u32 gsi, int pin) in alloc_irq_from_domain() argument 1011 if (gsi < nr_legacy_irqs()) in alloc_irq_from_domain() 1013 else if (irq_create_strict_mappings(domain, gsi, pin, 1) == 0) in alloc_irq_from_domain() 1014 irq = gsi; in alloc_irq_from_domain() 1017 if (irq_create_strict_mappings(domain, gsi, pin, 1) == 0) in alloc_irq_from_domain() 1018 irq = gsi; in alloc_irq_from_domain() 1031 static int mp_map_pin_to_irq(u32 gsi, int idx, int ioapic, int pin, in mp_map_pin_to_irq() argument 1069 irq = alloc_irq_from_domain(domain, gsi, pin); in mp_map_pin_to_irq() 1091 u32 gsi = mp_pin_to_gsi(ioapic, pin); in pin_2_irq() local 1119 return mp_map_pin_to_irq(gsi, idx, ioapic, pin, flags); in pin_2_irq() [all …]
|
/arch/powerpc/kvm/ |
D | book3s_xics.c | 1186 return kvm_set_irq(kvm, irq_source_id, irq_entry->gsi, in kvm_set_msi() 1323 return kvm_set_irq(kvm, irq_source_id, e->gsi, level, line_status); in xics_set_irq() 1327 struct kvm_kernel_irq_routing_entry *entries, int gsi) in kvm_irq_map_gsi() argument 1329 entries->gsi = gsi; in kvm_irq_map_gsi() 1333 entries->irqchip.pin = gsi; in kvm_irq_map_gsi()
|
/arch/x86/kvm/ |
D | i8254.c | 718 pit_state->irq_ack_notifier.gsi = 0; in kvm_create_pit()
|