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