Lines Matching refs:value
161 static inline void hi6220_thermal_set_lag(void __iomem *addr, int value) in hi6220_thermal_set_lag() argument
163 writel(DIV_ROUND_UP(value, HI6220_TEMP_STEP) & 0x1F, in hi6220_thermal_set_lag()
167 static inline void hi6220_thermal_alarm_clear(void __iomem *addr, int value) in hi6220_thermal_alarm_clear() argument
169 writel(value, addr + HI6220_TEMP0_INT_CLR); in hi6220_thermal_alarm_clear()
172 static inline void hi6220_thermal_alarm_enable(void __iomem *addr, int value) in hi6220_thermal_alarm_enable() argument
174 writel(value, addr + HI6220_TEMP0_INT_EN); in hi6220_thermal_alarm_enable()
188 static inline void hi6220_thermal_reset_enable(void __iomem *addr, int value) in hi6220_thermal_reset_enable() argument
190 writel(value, addr + HI6220_TEMP0_RST_MSK); in hi6220_thermal_reset_enable()
193 static inline void hi6220_thermal_enable(void __iomem *addr, int value) in hi6220_thermal_enable() argument
195 writel(value, addr + HI6220_TEMP0_EN); in hi6220_thermal_enable()
213 int id, int value) in hi3660_thermal_set_lag() argument
215 writel(DIV_ROUND_UP(value, HI3660_TEMP_STEP) & 0x7F, in hi3660_thermal_set_lag()
220 int id, int value) in hi3660_thermal_alarm_clear() argument
222 writel(value, addr + HI3660_INT_CLR(id)); in hi3660_thermal_alarm_clear()
226 int id, int value) in hi3660_thermal_alarm_enable() argument
228 writel(value, addr + HI3660_INT_EN(id)); in hi3660_thermal_alarm_enable()
232 int id, int value) in hi3660_thermal_alarm_set() argument
234 writel(value, addr + HI3660_TH(id)); in hi3660_thermal_alarm_set()
268 static inline void hi6220_thermal_hdak_set(void __iomem *addr, int value) in hi6220_thermal_hdak_set() argument
271 (value << 4), addr + HI6220_TEMP0_CFG); in hi6220_thermal_hdak_set()
367 unsigned int value; in hi3660_thermal_enable_sensor() local
377 value = hi3660_thermal_temp_to_step(sensor->thres_temp); in hi3660_thermal_enable_sensor()
378 hi3660_thermal_alarm_set(data->regs, sensor->id, value); in hi3660_thermal_enable_sensor()