Lines Matching defs:sr_thermal
24 struct sr_thermal *priv;
27 struct sr_thermal {
36 struct sr_thermal *sr_thermal = tmon->priv;
38 *temp = readl(sr_thermal->regs + SR_TMON_TEMP_BASE(tmon->tmon_id));
51 struct sr_thermal *sr_thermal;
58 sr_thermal = devm_kzalloc(dev, sizeof(*sr_thermal), GFP_KERNEL);
59 if (!sr_thermal)
66 sr_thermal->regs = (void __iomem *)devm_memremap(&pdev->dev, res->start,
69 if (IS_ERR(sr_thermal->regs)) {
71 return PTR_ERR(sr_thermal->regs);
78 tmon = sr_thermal->tmon;
84 writel(0, sr_thermal->regs + SR_TMON_TEMP_BASE(i));
86 tmon->priv = sr_thermal;