Lines Matching refs:irq_ctx
178 struct i2c_acpi_irq_context *irq_ctx = data; in i2c_acpi_add_irq_resource() local
181 if (irq_ctx->irq > 0) in i2c_acpi_add_irq_resource()
187 irq_ctx->irq = i2c_dev_irq_from_resources(&r, 1); in i2c_acpi_add_irq_resource()
188 irq_ctx->wake_capable = r.flags & IORESOURCE_IRQ_WAKECAPABLE; in i2c_acpi_add_irq_resource()
206 struct i2c_acpi_irq_context irq_ctx = { in i2c_acpi_get_irq() local
214 i2c_acpi_add_irq_resource, &irq_ctx); in i2c_acpi_get_irq()
220 if (irq_ctx.irq == -ENOENT) in i2c_acpi_get_irq()
221 irq_ctx.irq = acpi_dev_gpio_irq_wake_get(adev, 0, &irq_ctx.wake_capable); in i2c_acpi_get_irq()
223 if (irq_ctx.irq < 0) in i2c_acpi_get_irq()
224 return irq_ctx.irq; in i2c_acpi_get_irq()
227 *wake_capable = irq_ctx.wake_capable; in i2c_acpi_get_irq()
229 return irq_ctx.irq; in i2c_acpi_get_irq()