Lines Matching full:madera

3  * Interrupt support for Cirrus Logic Madera codecs
19 #include <linux/irqchip/irq-madera.h>
20 #include <linux/mfd/madera/core.h>
21 #include <linux/mfd/madera/pdata.h>
22 #include <linux/mfd/madera/registers.h>
30 /* Mappings are the same for all Madera codecs */
90 .name = "madera IRQ",
103 struct madera *madera = dev_get_drvdata(dev->parent); in madera_suspend() local
105 dev_dbg(madera->irq_dev, "Suspend, disabling IRQ\n"); in madera_suspend()
112 disable_irq(madera->irq); in madera_suspend()
119 struct madera *madera = dev_get_drvdata(dev->parent); in madera_suspend_noirq() local
121 dev_dbg(madera->irq_dev, "No IRQ suspend, reenabling IRQ\n"); in madera_suspend_noirq()
124 enable_irq(madera->irq); in madera_suspend_noirq()
131 struct madera *madera = dev_get_drvdata(dev->parent); in madera_resume_noirq() local
133 dev_dbg(madera->irq_dev, "No IRQ resume, disabling IRQ\n"); in madera_resume_noirq()
139 disable_irq(madera->irq); in madera_resume_noirq()
146 struct madera *madera = dev_get_drvdata(dev->parent); in madera_resume() local
148 dev_dbg(madera->irq_dev, "Resume, reenabling IRQ\n"); in madera_resume()
151 enable_irq(madera->irq); in madera_resume()
165 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in madera_irq_probe() local
176 irq_flags = madera->pdata.irq_flags; in madera_irq_probe()
178 irq_data = irq_get_irq_data(madera->irq); in madera_irq_probe()
180 dev_err(&pdev->dev, "Invalid IRQ: %d\n", madera->irq); in madera_irq_probe()
201 ret = regmap_update_bits(madera->regmap, MADERA_IRQ1_CTRL, in madera_irq_probe()
214 ret = regmap_add_irq_chip(madera->regmap, madera->irq, IRQF_ONESHOT, 0, in madera_irq_probe()
215 &madera_irq_chip, &madera->irq_data); in madera_irq_probe()
222 madera->irq_dev = &pdev->dev; in madera_irq_probe()
229 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in madera_irq_remove() local
235 madera->irq_dev = NULL; in madera_irq_remove()
236 regmap_del_irq_chip(madera->irq, madera->irq_data); in madera_irq_remove()
245 .name = "madera-irq",
251 MODULE_SOFTDEP("pre: madera");
252 MODULE_DESCRIPTION("Madera IRQ driver");