/linux-5.19.10/drivers/hwmon/ |
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()
|
D | w83l786ng.c | 72 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 305 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min() 375 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
|
D | sis5595.c | 126 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 393 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store() 465 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
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()
|
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()
|
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()
|
D | vt8231.c | 133 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 537 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store() 583 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
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()
|
D | via686a.c | 157 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 534 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
|
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()
|
D | lm63.c | 114 #define FAN_TO_REG(val) ((val) <= 82 ? 0xFFFC : \ macro 352 data->fan[1] = FAN_TO_REG(val); in set_fan()
|
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()
|
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()
|
D | w83627hf.c | 253 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 695 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store() 1024 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
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()
|
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()
|
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()
|
D | pc87360.c | 114 #define FAN_TO_REG(val, div) ((val) <= 100 ? 0 : \ macro 290 fan_min = FAN_TO_REG(fan_min, in fan_min_store()
|
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()
|
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()
|
D | it87.c | 592 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function 1211 FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan() 1258 data->fan[nr][1] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
|