Lines Matching refs:wctmu
35 struct wcove_tmu *wctmu = data; in bxt_wcove_tmu_irq_handler() local
39 regmap_read(wctmu->regmap, BXTWC_TMUIRQ, &tmu_irq); in bxt_wcove_tmu_irq_handler()
42 regmap_write(wctmu->regmap, BXTWC_TMUIRQ, tmu_irq); in bxt_wcove_tmu_irq_handler()
52 struct wcove_tmu *wctmu; in bxt_wcove_tmu_probe() local
55 wctmu = devm_kzalloc(&pdev->dev, sizeof(*wctmu), GFP_KERNEL); in bxt_wcove_tmu_probe()
56 if (!wctmu) in bxt_wcove_tmu_probe()
59 wctmu->dev = &pdev->dev; in bxt_wcove_tmu_probe()
60 wctmu->regmap = pmic->regmap; in bxt_wcove_tmu_probe()
76 IRQF_ONESHOT, "bxt_wcove_tmu", wctmu); in bxt_wcove_tmu_probe()
82 wctmu->irq = virq; in bxt_wcove_tmu_probe()
85 regmap_update_bits(wctmu->regmap, BXTWC_MTMUIRQ_REG, in bxt_wcove_tmu_probe()
88 platform_set_drvdata(pdev, wctmu); in bxt_wcove_tmu_probe()
94 struct wcove_tmu *wctmu = platform_get_drvdata(pdev); in bxt_wcove_tmu_remove() local
98 regmap_read(wctmu->regmap, BXTWC_MIRQLVL1, &val); in bxt_wcove_tmu_remove()
99 regmap_write(wctmu->regmap, BXTWC_MIRQLVL1, in bxt_wcove_tmu_remove()
101 regmap_read(wctmu->regmap, BXTWC_MTMUIRQ_REG, &val); in bxt_wcove_tmu_remove()
102 regmap_write(wctmu->regmap, BXTWC_MTMUIRQ_REG, in bxt_wcove_tmu_remove()
109 struct wcove_tmu *wctmu = dev_get_drvdata(dev); in bxtwc_tmu_suspend() local
111 enable_irq_wake(wctmu->irq); in bxtwc_tmu_suspend()
117 struct wcove_tmu *wctmu = dev_get_drvdata(dev); in bxtwc_tmu_resume() local
119 disable_irq_wake(wctmu->irq); in bxtwc_tmu_resume()