/openbmc/linux/drivers/hwmon/ |
H A D | lm80.c | 65 static inline unsigned char FAN_TO_REG(unsigned rpm, unsigned div) in FAN_TO_REG() function 328 data->fan[nr][index] = FAN_TO_REG(val, in fan_store() 393 data->fan[f_min][nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
H A D | w83l786ng.c | 71 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 304 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min() 374 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
|
H A D | sis5595.c | 127 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 448 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store() 520 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
H A D | lm78.c | 79 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 327 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store() 399 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
H A D | asb100.c | 113 static u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 326 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min() 380 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
|
H A D | vt8231.c | 134 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 602 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store() 648 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
H A D | lm87.c | 121 #define FAN_TO_REG(val, div) ((val) * (div) * 255 <= 1350000 ? 255 : \ macro 507 data->fan_min[nr] = FAN_TO_REG(val, in fan_min_store() 569 data->fan_min[nr] = FAN_TO_REG(min, val); in fan_div_store()
|
H A D | gl518sm.c | 80 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 357 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
|
H A D | via686a.c | 159 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 601 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
|
H A D | gl520sm.c | 334 #define FAN_TO_REG(val, div) ((val) == 0 ? 0 : \ macro 390 r = FAN_TO_REG(v, data->fan_div[n]); in fan_min_store()
|
H A D | lm63.c | 114 #define FAN_TO_REG(val) ((val) <= 82 ? 0xFFFC : \ macro 352 data->fan[1] = FAN_TO_REG(val); in set_fan()
|
H A D | w83792d.c | 221 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 420 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min() 478 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
|
H A D | adm1031.c | 212 static int FAN_TO_REG(int reg, int div) in FAN_TO_REG() function 600 FAN_TO_REG(val, FAN_DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
|
H A D | w83781d.c | 153 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 328 FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min() 674 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
|
H A D | w83627hf.c | 253 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 1128 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store() 1192 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
H A D | dme1737.c | 340 static inline int FAN_TO_REG(long val, int tpc) in FAN_TO_REG() function 1139 data->fan_min[ix] = FAN_TO_REG(val, 0); in set_fan() 1145 data->fan_min[ix] = FAN_TO_REG(val, in set_fan()
|
H A D | lm85.c | 136 static inline u16 FAN_TO_REG(unsigned long val) in FAN_TO_REG() function 583 data->fan_min[nr] = FAN_TO_REG(val); in fan_min_store()
|
H A D | pc87360.c | 126 #define FAN_TO_REG(val, div) ((val) <= 100 ? 0 : \ macro 1186 fan_min = FAN_TO_REG(fan_min, in fan_min_store()
|
H A D | w83793.c | 177 static inline u16 FAN_TO_REG(long rpm) in FAN_TO_REG() function 495 val = FAN_TO_REG(val); in store_fan_min()
|
H A D | adm1026.c | 197 #define FAN_TO_REG(val, div) ((val) <= 0 ? 0xff : \ macro 687 data->fan_min[nr] = FAN_TO_REG(val, data->fan_div[nr]); in fan_min_store()
|
H A D | it87.c | 667 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 1427 FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan() 1477 data->fan[nr][1] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
|