Lines Matching defs:value
145 * fluctuating around this value due to the load, we can receive
168 * The 'value' parameter is in milliCelsius.
170 static inline void hi6220_thermal_set_lag(void __iomem *addr, int value)
172 writel(DIV_ROUND_UP(value, HI6220_TEMP_STEP) & 0x1F,
176 static inline void hi6220_thermal_alarm_clear(void __iomem *addr, int value)
178 writel(value, addr + HI6220_TEMP0_INT_CLR);
181 static inline void hi6220_thermal_alarm_enable(void __iomem *addr, int value)
183 writel(value, addr + HI6220_TEMP0_INT_EN);
197 static inline void hi6220_thermal_reset_enable(void __iomem *addr, int value)
199 writel(value, addr + HI6220_TEMP0_RST_MSK);
202 static inline void hi6220_thermal_enable(void __iomem *addr, int value)
204 writel(value, addr + HI6220_TEMP0_EN);
222 int id, int value)
224 writel(DIV_ROUND_UP(value, HI3660_TEMP_STEP) & 0x7F,
229 int id, int value)
231 writel(value, addr + HI3660_INT_CLR(id));
235 int id, int value)
237 writel(value, addr + HI3660_INT_EN(id));
241 int id, int value)
243 writel(value, addr + HI3660_TH(id));
277 static inline void hi6220_thermal_hdak_set(void __iomem *addr, int value)
280 (value << 4), addr + HI6220_TEMP0_CFG);
356 /* setting lag value between current temp and the threshold */
376 unsigned int value;
382 /* setting lag value between current temp and the threshold */
386 value = hi3660_thermal_temp_to_step(sensor->thres_temp);
387 hi3660_thermal_alarm_set(data->regs, sensor->id, value);