Lines Matching defs:value
136 * fluctuating around this value due to the load, we can receive
159 * The 'value' parameter is in milliCelsius.
161 static inline void hi6220_thermal_set_lag(void __iomem *addr, int value)
163 writel(DIV_ROUND_UP(value, HI6220_TEMP_STEP) & 0x1F,
167 static inline void hi6220_thermal_alarm_clear(void __iomem *addr, int value)
169 writel(value, addr + HI6220_TEMP0_INT_CLR);
172 static inline void hi6220_thermal_alarm_enable(void __iomem *addr, int value)
174 writel(value, addr + HI6220_TEMP0_INT_EN);
188 static inline void hi6220_thermal_reset_enable(void __iomem *addr, int value)
190 writel(value, addr + HI6220_TEMP0_RST_MSK);
193 static inline void hi6220_thermal_enable(void __iomem *addr, int value)
195 writel(value, addr + HI6220_TEMP0_EN);
213 int id, int value)
215 writel(DIV_ROUND_UP(value, HI3660_TEMP_STEP) & 0x7F,
220 int id, int value)
222 writel(value, addr + HI3660_INT_CLR(id));
226 int id, int value)
228 writel(value, addr + HI3660_INT_EN(id));
232 int id, int value)
234 writel(value, addr + HI3660_TH(id));
268 static inline void hi6220_thermal_hdak_set(void __iomem *addr, int value)
271 (value << 4), addr + HI6220_TEMP0_CFG);
347 /* setting lag value between current temp and the threshold */
367 unsigned int value;
373 /* setting lag value between current temp and the threshold */
377 value = hi3660_thermal_temp_to_step(sensor->thres_temp);
378 hi3660_thermal_alarm_set(data->regs, sensor->id, value);