Lines Matching refs:gsi
35 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()
79 map_irq.index = gsi; in xen_register_pirq()
97 gsi = gsi_override; in xen_register_pirq()
99 irq = xen_bind_pirq_gsi_to_irq(gsi, map_irq.pirq, shareable, name); in xen_register_pirq()
103 printk(KERN_DEBUG "xen: --> pirq=%d -> irq=%d (gsi=%d)\n", map_irq.pirq, irq, gsi); in xen_register_pirq()
108 static int acpi_register_gsi_xen_hvm(struct device *dev, u32 gsi, in acpi_register_gsi_xen_hvm() argument
114 return xen_register_pirq(gsi, -1 /* no GSI override */, trigger, in acpi_register_gsi_xen_hvm()
119 static int xen_register_gsi(u32 gsi, int gsi_override, int triggering, int polarity) in xen_register_gsi() argument
128 gsi, triggering, polarity); in xen_register_gsi()
130 irq = xen_register_pirq(gsi, gsi_override, triggering, true); in xen_register_gsi()
132 setup_gsi.gsi = gsi; in xen_register_gsi()
138 printk(KERN_INFO "Already setup the GSI :%d\n", gsi); in xen_register_gsi()
141 gsi, rc); in xen_register_gsi()
147 static int acpi_register_gsi_xen(struct device *dev, u32 gsi, in acpi_register_gsi_xen() argument
150 return xen_register_gsi(gsi, -1 /* no GSI override */, trigger, polarity); in acpi_register_gsi_xen()