Home
last modified time | relevance | path

Searched refs:fan_to_reg (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/drivers/hwmon/
H A Df71805f.c235 static inline u16 fan_to_reg(long rpm) in fan_to_reg() function
607 data->fan_low[nr] = fan_to_reg(val); in set_fan_min()
628 data->fan_target[nr] = fan_to_reg(val); in set_fan_target()
851 data->auto_points[pwmnr].fan[apnr] = fan_to_reg(val); in set_pwm_auto_point_fan()
H A Dw83791d.c213 static u8 fan_to_reg(long rpm, int div) in fan_to_reg() function
545 data->fan_min[nr] = fan_to_reg(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min()
646 data->fan_min[nr] = fan_to_reg(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
H A Dpc87427.c209 static inline u16 fan_to_reg(unsigned long val) in fan_to_reg() function
445 data->fan_min[nr] = fan_to_reg(val); in fan_min_store()
H A Dw83795.c249 static inline u16 fan_to_reg(long rpm) in fan_to_reg() function
805 val = fan_to_reg(val); in store_fan_min()
1165 val = fan_to_reg(clamp_val(val, 0, 0xfff)); in store_fanin()
H A Df71882fg.c313 static inline u16 fan_to_reg(int fan) in fan_to_reg() function
1066 val = fan_to_reg(val); in store_fan_full_speed()
1139 target = fan_to_reg(val * fan_from_reg(full_speed) / 255); in store_pwm()
H A Dnct6775-core.c968 static u16 fan_to_reg(u32 fan, unsigned int divreg) in fan_to_reg() function
2922 speed = fan_to_reg(val, data->fan_div[nr]); in store_target_speed()
3035 val = (fan_to_reg(low, data->fan_div[nr]) - in store_speed_tolerance()
3036 fan_to_reg(high, data->fan_div[nr])) / 2; in store_speed_tolerance()