Lines Matching refs:stdev
34 struct spear_thermal_dev *stdev = thermal->devdata;
40 *temp = (readl_relaxed(stdev->thermal_base) & 0x7F) * MD_FACTOR;
51 struct spear_thermal_dev *stdev = spear_thermal->devdata;
55 actual_mask = readl_relaxed(stdev->thermal_base);
56 writel_relaxed(actual_mask & ~stdev->flags, stdev->thermal_base);
58 clk_disable(stdev->clk);
67 struct spear_thermal_dev *stdev = spear_thermal->devdata;
71 ret = clk_enable(stdev->clk);
78 actual_mask = readl_relaxed(stdev->thermal_base);
79 writel_relaxed(actual_mask | stdev->flags, stdev->thermal_base);
92 struct spear_thermal_dev *stdev;
102 stdev = devm_kzalloc(&pdev->dev, sizeof(*stdev), GFP_KERNEL);
103 if (!stdev)
108 stdev->thermal_base = devm_ioremap_resource(&pdev->dev, res);
109 if (IS_ERR(stdev->thermal_base))
110 return PTR_ERR(stdev->thermal_base);
112 stdev->clk = devm_clk_get(&pdev->dev, NULL);
113 if (IS_ERR(stdev->clk)) {
115 return PTR_ERR(stdev->clk);
118 ret = clk_enable(stdev->clk);
124 stdev->flags = val;
125 writel_relaxed(stdev->flags, stdev->thermal_base);
128 stdev, &ops, NULL, 0, 0);
143 stdev->thermal_base);
150 clk_disable(stdev->clk);
159 struct spear_thermal_dev *stdev = spear_thermal->devdata;
164 actual_mask = readl_relaxed(stdev->thermal_base);
165 writel_relaxed(actual_mask & ~stdev->flags, stdev->thermal_base);
167 clk_disable(stdev->clk);