Lines Matching refs:irq
29 static int acpi_gpe_read_and_clear(struct irq *irq) in acpi_gpe_read_and_clear() argument
31 struct acpi_gpe_priv *priv = dev_get_priv(irq->dev); in acpi_gpe_read_and_clear()
37 bank = irq->id / 32; in acpi_gpe_read_and_clear()
38 mask = 1 << (irq->id % 32); in acpi_gpe_read_and_clear()
67 static int acpi_gpe_of_xlate(struct irq *irq, struct ofnode_phandle_args *args) in acpi_gpe_of_xlate() argument
69 irq->id = args->args[0]; in acpi_gpe_of_xlate()
70 irq->flags = args->args[1]; in acpi_gpe_of_xlate()
76 static int acpi_gpe_get_acpi(const struct irq *irq, struct acpi_irq *acpi_irq) in acpi_gpe_get_acpi() argument
79 acpi_irq->pin = irq->id; in acpi_gpe_get_acpi()
80 acpi_irq->mode = irq->flags & IRQ_TYPE_EDGE_BOTH ? in acpi_gpe_get_acpi()
82 acpi_irq->polarity = irq->flags & in acpi_gpe_get_acpi()
85 acpi_irq->shared = irq->flags & X86_IRQ_TYPE_SHARED ? in acpi_gpe_get_acpi()
87 acpi_irq->wake = irq->flags & X86_IRQ_TYPE_WAKE ? ACPI_IRQ_WAKE : in acpi_gpe_get_acpi()