Lines Matching refs:stdev
34 struct spear_thermal_dev *stdev = thermal_zone_device_priv(thermal);
40 *temp = (readl_relaxed(stdev->thermal_base) & 0x7F) * MD_FACTOR;
51 struct spear_thermal_dev *stdev = thermal_zone_device_priv(spear_thermal);
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 = thermal_zone_device_priv(spear_thermal);
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;
101 stdev = devm_kzalloc(&pdev->dev, sizeof(*stdev), GFP_KERNEL);
102 if (!stdev)
106 stdev->thermal_base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
107 if (IS_ERR(stdev->thermal_base))
108 return PTR_ERR(stdev->thermal_base);
110 stdev->clk = devm_clk_get(&pdev->dev, NULL);
111 if (IS_ERR(stdev->clk)) {
113 return PTR_ERR(stdev->clk);
116 ret = clk_enable(stdev->clk);
122 stdev->flags = val;
123 writel_relaxed(stdev->flags, stdev->thermal_base);
126 stdev, &ops, NULL);
141 stdev->thermal_base);
148 clk_disable(stdev->clk);
157 struct spear_thermal_dev *stdev = thermal_zone_device_priv(spear_thermal);
162 actual_mask = readl_relaxed(stdev->thermal_base);
163 writel_relaxed(actual_mask & ~stdev->flags, stdev->thermal_base);
165 clk_disable(stdev->clk);