Lines Matching refs:gsi

38 	u8 gsi;  in xen_pcifront_enable_irq()  local
40 rc = pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &gsi); in xen_pcifront_enable_irq()
47 pirq = gsi; in xen_pcifront_enable_irq()
49 if (gsi < nr_legacy_irqs()) in xen_pcifront_enable_irq()
52 rc = xen_bind_pirq_gsi_to_irq(gsi, pirq, share, "pcifront"); in xen_pcifront_enable_irq()
55 gsi, pirq, rc); in xen_pcifront_enable_irq()
60 dev_info(&dev->dev, "Xen PCI mapped GSI%d to IRQ%d\n", gsi, dev->irq); in xen_pcifront_enable_irq()
65 static int xen_register_pirq(u32 gsi, int triggering, bool set_pirq) in xen_register_pirq() argument
72 irq = xen_irq_from_gsi(gsi); in xen_register_pirq()
77 pirq = gsi; in xen_register_pirq()
81 map_irq.index = gsi; in xen_register_pirq()
98 irq = xen_bind_pirq_gsi_to_irq(gsi, map_irq.pirq, shareable, name); in xen_register_pirq()
102 printk(KERN_DEBUG "xen: --> pirq=%d -> irq=%d (gsi=%d)\n", map_irq.pirq, irq, gsi); in xen_register_pirq()
107 static int acpi_register_gsi_xen_hvm(struct device *dev, u32 gsi, in acpi_register_gsi_xen_hvm() argument
113 return xen_register_pirq(gsi, trigger, in acpi_register_gsi_xen_hvm()
118 static int xen_register_gsi(u32 gsi, int triggering, int polarity) in xen_register_gsi() argument
127 gsi, triggering, polarity); in xen_register_gsi()
129 irq = xen_register_pirq(gsi, triggering, true); in xen_register_gsi()
131 setup_gsi.gsi = gsi; in xen_register_gsi()
137 printk(KERN_INFO "Already setup the GSI :%d\n", gsi); in xen_register_gsi()
140 gsi, rc); in xen_register_gsi()
146 static int acpi_register_gsi_xen(struct device *dev, u32 gsi, in acpi_register_gsi_xen() argument
149 return xen_register_gsi(gsi, trigger, polarity); in acpi_register_gsi_xen()