Lines Matching refs:irq
146 const struct acpi_irq *irq) in acpi_device_write_interrupt() argument
151 if (!irq->pin) in acpi_device_write_interrupt()
155 if (irq->polarity == ACPI_IRQ_ACTIVE_BOTH) in acpi_device_write_interrupt()
174 if (irq->mode == ACPI_IRQ_EDGE_TRIGGERED) in acpi_device_write_interrupt()
176 if (irq->polarity == ACPI_IRQ_ACTIVE_LOW) in acpi_device_write_interrupt()
178 if (irq->shared == ACPI_IRQ_SHARED) in acpi_device_write_interrupt()
180 if (irq->wake == ACPI_IRQ_WAKE) in acpi_device_write_interrupt()
188 acpigen_emit_dword(ctx, irq->pin); in acpi_device_write_interrupt()
197 const struct irq *req_irq) in acpi_device_write_interrupt_irq()
199 struct acpi_irq irq; in acpi_device_write_interrupt_irq() local
202 ret = irq_get_acpi(req_irq, &irq); in acpi_device_write_interrupt_irq()
205 ret = acpi_device_write_interrupt(ctx, &irq); in acpi_device_write_interrupt_irq()
209 return irq.pin; in acpi_device_write_interrupt_irq()
254 if (gpio->irq.mode == ACPI_IRQ_EDGE_TRIGGERED) in acpi_device_write_gpio()
256 if (gpio->irq.shared == ACPI_IRQ_SHARED) in acpi_device_write_gpio()
258 if (gpio->irq.wake == ACPI_IRQ_WAKE) in acpi_device_write_gpio()
261 switch (gpio->irq.polarity) { in acpi_device_write_gpio()
365 struct irq req_irq; in acpi_device_write_interrupt_or_gpio()