Home
last modified time | relevance | path

Searched refs:gsi (Results 1 – 20 of 20) sorted by relevance

/arch/ia64/include/asm/
Diosapic.h89 extern int gsi_to_irq (unsigned int gsi);
90 extern int iosapic_register_intr (unsigned int gsi, unsigned long polarity,
93 extern void iosapic_override_isa_irq (unsigned int isa_irq, unsigned int gsi,
97 unsigned int gsi,
110 #define iosapic_register_intr(gsi,polarity,trigger) (gsi) argument
112 #define iosapic_override_isa_irq(isa_irq,gsi,polarity,trigger) do { } while (0) argument
113 #define iosapic_register_platform_intr(type,gsi,pmi,eid,id, \ argument
114 polarity,trigger) (gsi)
Dacpi.h77 int acpi_gsi_to_irq (u32 gsi, unsigned int *irq);
/arch/x86/pci/
Dxen.c35 u8 gsi; in xen_pcifront_enable_irq() local
37 rc = pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &gsi); in xen_pcifront_enable_irq()
44 pirq = gsi; in xen_pcifront_enable_irq()
46 if (gsi < nr_legacy_irqs()) in xen_pcifront_enable_irq()
49 rc = xen_bind_pirq_gsi_to_irq(gsi, pirq, share, "pcifront"); in xen_pcifront_enable_irq()
52 gsi, pirq, rc); in xen_pcifront_enable_irq()
57 dev_info(&dev->dev, "Xen PCI mapped GSI%d to IRQ%d\n", gsi, dev->irq); in xen_pcifront_enable_irq()
62 static int xen_register_pirq(u32 gsi, int gsi_override, int triggering, in xen_register_pirq() argument
70 irq = xen_irq_from_gsi(gsi); in xen_register_pirq()
75 pirq = gsi; in xen_register_pirq()
[all …]
Dintel_mid_pci.c219 u8 gsi; in intel_mid_pci_irq_enable() local
224 ret = pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &gsi); in intel_mid_pci_irq_enable()
235 if (gsi == 0) { in intel_mid_pci_irq_enable()
264 ret = mp_map_gsi_to_irq(gsi, IOAPIC_MAP_ALLOC, &info); in intel_mid_pci_irq_enable()
/arch/ia64/kernel/
Diosapic.c167 find_iosapic (unsigned int gsi) in find_iosapic() argument
172 if ((unsigned) (gsi - iosapic_lists[i].gsi_base) < in find_iosapic()
180 static inline int __gsi_to_irq(unsigned int gsi) in __gsi_to_irq() argument
189 if (rte->iosapic->gsi_base + rte->rte_index == gsi) in __gsi_to_irq()
196 gsi_to_irq (unsigned int gsi) in gsi_to_irq() argument
202 irq = __gsi_to_irq(gsi); in gsi_to_irq()
207 static struct iosapic_rte_info *find_rte(unsigned int irq, unsigned int gsi) in find_rte() argument
212 if (rte->iosapic->gsi_base + rte->rte_index == gsi) in find_rte()
218 set_rte (unsigned int gsi, unsigned int irq, unsigned int dest, int mask) in set_rte() argument
229 rte = find_rte(irq, gsi); in set_rte()
[all …]
Dacpi.c610 int acpi_register_gsi(struct device *dev, u32 gsi, int triggering, int polarity) in acpi_register_gsi() argument
613 return gsi; in acpi_register_gsi()
615 if (has_8259 && gsi < 16) in acpi_register_gsi()
616 return isa_irq_to_vector(gsi); in acpi_register_gsi()
618 return iosapic_register_intr(gsi, in acpi_register_gsi()
628 void acpi_unregister_gsi(u32 gsi) in acpi_unregister_gsi() argument
633 if (has_8259 && gsi < 16) in acpi_unregister_gsi()
636 iosapic_unregister_intr(gsi); in acpi_unregister_gsi()
772 int acpi_gsi_to_irq(u32 gsi, unsigned int *irq) in acpi_gsi_to_irq() argument
776 if (has_8259 && gsi < 16) in acpi_gsi_to_irq()
[all …]
/arch/x86/kernel/acpi/
Dboot.c350 u8 trigger, u32 gsi);
353 u32 gsi) in mp_override_legacy_irq() argument
371 if (mp_register_ioapic_irq(bus_irq, polarity, trigger, gsi) < 0) in mp_override_legacy_irq()
378 if (gsi < nr_legacy_irqs() && isa_irq_to_gsi[gsi] == gsi) in mp_override_legacy_irq()
379 isa_irq_to_gsi[gsi] = ACPI_INVALID_GSI; in mp_override_legacy_irq()
380 isa_irq_to_gsi[bus_irq] = gsi; in mp_override_legacy_irq()
383 static int mp_config_acpi_gsi(struct device *dev, u32 gsi, int trigger, in mp_config_acpi_gsi() argument
410 ioapic = mp_find_ioapic(gsi); in mp_config_acpi_gsi()
412 mp_irq.dstirq = mp_find_ioapic_pin(ioapic, gsi); in mp_config_acpi_gsi()
420 u8 trigger, u32 gsi) in mp_register_ioapic_irq() argument
[all …]
/arch/x86/include/asm/
Dio_apic.h167 extern int mp_find_ioapic(u32 gsi);
168 extern int mp_find_ioapic_pin(int ioapic, u32 gsi);
169 extern int mp_map_gsi_to_irq(u32 gsi, unsigned int flags,
208 static inline int mp_find_ioapic(u32 gsi) { return 0; } in mp_find_ioapic() argument
209 static inline int mp_map_gsi_to_irq(u32 gsi, unsigned int flags, in mp_map_gsi_to_irq() argument
212 return gsi; in mp_map_gsi_to_irq()
Dacpi.h57 extern int (*__acpi_register_gsi)(struct device *dev, u32 gsi,
59 extern void (*__acpi_unregister_gsi)(u32 gsi);
68 extern int acpi_gsi_to_irq(u32 gsi, unsigned int *irq);
/arch/x86/platform/intel-mid/device_libs/
Dplatform_mrfld_wdt.c34 int gsi = TANGIER_EXT_TIMER0_MSI; in tangier_probe() local
42 irq = mp_map_gsi_to_irq(gsi, IOAPIC_MAP_ALLOC, &info); in tangier_probe()
44 dev_warn(&pdev->dev, "cannot find interrupt %d in ioapic\n", gsi); in tangier_probe()
/arch/x86/kernel/apic/
Dio_apic.c880 int acpi_get_override_irq(u32 gsi, int *trigger, int *polarity);
885 u32 gsi, int ioapic_idx, int pin) in ioapic_copy_alloc_attr() argument
900 if (acpi_get_override_irq(gsi, &trigger, &polarity) >= 0) { in ioapic_copy_alloc_attr()
956 static int alloc_irq_from_domain(struct irq_domain *domain, int ioapic, u32 gsi, in alloc_irq_from_domain() argument
969 if (!ioapic_initialized || gsi >= nr_legacy_irqs()) in alloc_irq_from_domain()
970 irq = gsi; in alloc_irq_from_domain()
974 irq = gsi; in alloc_irq_from_domain()
1030 static int mp_map_pin_to_irq(u32 gsi, int idx, int ioapic, int pin, in mp_map_pin_to_irq() argument
1055 ioapic_copy_alloc_attr(&tmp, info, gsi, ioapic, pin); in mp_map_pin_to_irq()
1060 irq = alloc_irq_from_domain(domain, ioapic, gsi, &tmp); in mp_map_pin_to_irq()
[all …]
/arch/x86/kvm/
Dirq_comm.c266 int idx, gsi; in kvm_fire_mask_notifiers() local
269 gsi = kvm_irq_map_chip_pin(kvm, irqchip, pin); in kvm_fire_mask_notifiers()
270 if (gsi != -1) in kvm_fire_mask_notifiers()
272 if (kimn->irq == gsi) in kvm_fire_mask_notifiers()
363 { .gsi = irq, .type = KVM_IRQ_ROUTING_IRQCHIP, \
368 { .gsi = irq, .type = KVM_IRQ_ROUTING_IRQCHIP, \
Dhyperv.c168 int gsi, idx, stimers_pending; in kvm_hv_notify_acked_sint() local
191 gsi = atomic_read(&synic->sint_to_gsi[sint]); in kvm_hv_notify_acked_sint()
192 if (gsi != -1) in kvm_hv_notify_acked_sint()
193 kvm_notify_acked_gsi(kvm, gsi); in kvm_hv_notify_acked_sint()
359 static int kvm_hv_set_sint_gsi(struct kvm *kvm, u32 vpidx, u32 sint, int gsi) in kvm_hv_set_sint_gsi() argument
370 atomic_set(&synic->sint_to_gsi[sint], gsi); in kvm_hv_set_sint_gsi()
378 u32 gsi; in kvm_hv_irq_routing_update() local
383 for (gsi = 0; gsi < irq_rt->nr_rt_entries; gsi++) { in kvm_hv_irq_routing_update()
384 hlist_for_each_entry(e, &irq_rt->map[gsi], link) { in kvm_hv_irq_routing_update()
387 e->hv_sint.sint, gsi); in kvm_hv_irq_routing_update()
Dtrace.h1003 unsigned int gsi, unsigned int gvec,
1005 TP_ARGS(host_irq, vcpu_id, gsi, gvec, pi_desc_addr, set),
1010 __field( unsigned int, gsi )
1019 __entry->gsi = gsi;
1030 __entry->gsi,
Di8254.c682 pit_state->irq_ack_notifier.gsi = 0; in kvm_create_pit()
Dx86.c9091 prod->irq, irqfd->gsi, 1); in kvm_arch_irq_bypass_add_producer()
9110 ret = kvm_x86_ops->update_pi_irte(irqfd->kvm, prod->irq, irqfd->gsi, 0); in kvm_arch_irq_bypass_del_producer()
Dsvm.c4886 e->gsi, vcpu_info.vector, in svm_update_pi_irte()
Dvmx.c12755 trace_kvm_pi_irte_update(host_irq, vcpu->vcpu_id, e->gsi, in vmx_update_pi_irte()
/arch/powerpc/kvm/
Dbook3s.c971 return kvm_set_irq(kvm, irq_source_id, irq_entry->gsi, in kvm_arch_set_irq_inatomic()
978 return kvm_set_irq(kvm, irq_source_id, e->gsi, level, line_status); in kvmppc_book3s_set_irq()
982 struct kvm_kernel_irq_routing_entry *entries, int gsi) in kvm_irq_map_gsi() argument
984 entries->gsi = gsi; in kvm_irq_map_gsi()
988 entries->irqchip.pin = gsi; in kvm_irq_map_gsi()
Dbook3s_hv.c4084 ret = kvmppc_set_passthru_irq(irqfd->kvm, prod->irq, irqfd->gsi); in kvmppc_irq_bypass_add_producer_hv()
4087 prod->irq, irqfd->gsi, ret); in kvmppc_irq_bypass_add_producer_hv()
4106 ret = kvmppc_clr_passthru_irq(irqfd->kvm, prod->irq, irqfd->gsi); in kvmppc_irq_bypass_del_producer_hv()
4109 prod->irq, irqfd->gsi, ret); in kvmppc_irq_bypass_del_producer_hv()