Lines Matching full:madera

3  * Interrupt support for Cirrus Logic Madera codecs
17 #include <linux/irqchip/irq-madera.h>
18 #include <linux/mfd/madera/core.h>
19 #include <linux/mfd/madera/pdata.h>
20 #include <linux/mfd/madera/registers.h>
28 /* Mappings are the same for all Madera codecs */
88 .name = "madera IRQ",
101 struct madera *madera = dev_get_drvdata(dev->parent); in madera_suspend() local
103 dev_dbg(madera->irq_dev, "Suspend, disabling IRQ\n"); in madera_suspend()
110 disable_irq(madera->irq); in madera_suspend()
117 struct madera *madera = dev_get_drvdata(dev->parent); in madera_suspend_noirq() local
119 dev_dbg(madera->irq_dev, "No IRQ suspend, reenabling IRQ\n"); in madera_suspend_noirq()
122 enable_irq(madera->irq); in madera_suspend_noirq()
129 struct madera *madera = dev_get_drvdata(dev->parent); in madera_resume_noirq() local
131 dev_dbg(madera->irq_dev, "No IRQ resume, disabling IRQ\n"); in madera_resume_noirq()
137 disable_irq(madera->irq); in madera_resume_noirq()
144 struct madera *madera = dev_get_drvdata(dev->parent); in madera_resume() local
146 dev_dbg(madera->irq_dev, "Resume, reenabling IRQ\n"); in madera_resume()
149 enable_irq(madera->irq); in madera_resume()
163 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in madera_irq_probe() local
174 irq_flags = madera->pdata.irq_flags; in madera_irq_probe()
176 irq_data = irq_get_irq_data(madera->irq); in madera_irq_probe()
178 dev_err(&pdev->dev, "Invalid IRQ: %d\n", madera->irq); in madera_irq_probe()
199 ret = regmap_update_bits(madera->regmap, MADERA_IRQ1_CTRL, in madera_irq_probe()
212 ret = regmap_add_irq_chip(madera->regmap, madera->irq, IRQF_ONESHOT, 0, in madera_irq_probe()
213 &madera_irq_chip, &madera->irq_data); in madera_irq_probe()
220 madera->irq_dev = &pdev->dev; in madera_irq_probe()
227 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in madera_irq_remove() local
233 madera->irq_dev = NULL; in madera_irq_remove()
234 regmap_del_irq_chip(madera->irq, madera->irq_data); in madera_irq_remove()
241 .name = "madera-irq",
247 MODULE_SOFTDEP("pre: madera");
248 MODULE_DESCRIPTION("Madera IRQ driver");