Home
last modified time | relevance | path

Searched refs:FAN_TO_REG (Results 1 – 21 of 21) sorted by relevance

/drivers/hwmon/
Dw83l786ng.c84 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function
273 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min()
343 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
Dlm80.c78 static inline unsigned char FAN_TO_REG(unsigned rpm, unsigned div) in FAN_TO_REG() function
246 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
300 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
Dsis5595.c140 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function
404 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
475 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
Dasb100.c126 static u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function
340 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
394 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
Dlm78.c93 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function
336 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
407 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
Dlm87.c135 #define FAN_TO_REG(val, div) ((val) * (div) * 255 <= 1350000 ? 255 : \ macro
509 data->fan_min[nr] = FAN_TO_REG(val, in set_fan_min()
570 data->fan_min[nr] = FAN_TO_REG(min, val); in set_fan_div()
Dvt8231.c146 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function
539 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
583 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
Dgl518sm.c94 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function
302 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
Dvia686a.c174 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function
547 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
Dgl520sm.c287 #define FAN_TO_REG(val, div) ((val) <= 0 ? 0 : \ macro
342 r = FAN_TO_REG(v, data->fan_div[n]); in set_fan_min()
Dadm1031.c162 static int FAN_TO_REG(int reg, int div) in FAN_TO_REG() function
555 FAN_TO_REG(val, FAN_DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
Dlm63.c126 #define FAN_TO_REG(val) ((val) <= 82 ? 0xFFFC : \ macro
372 data->fan[1] = FAN_TO_REG(val); in set_fan()
Dw83792d.c233 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function
441 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min()
499 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
Dw83781d.c166 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function
342 FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min()
689 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
Dw83627hf.c260 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function
621 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min()
968 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
Dit87.c334 static inline u8 FAN_TO_REG(long rpm, int div) in FAN_TO_REG() function
771 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
815 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
Ddme1737.c349 static inline int FAN_TO_REG(int val, int tpc) in FAN_TO_REG() function
1147 data->fan_min[ix] = FAN_TO_REG(val, 0); in set_fan()
1153 data->fan_min[ix] = FAN_TO_REG(val, in set_fan()
Dlm85.c150 static inline u16 FAN_TO_REG(unsigned long val) in FAN_TO_REG() function
410 data->fan_min[nr] = FAN_TO_REG(val); in set_fan_min()
Dpc87360.c127 #define FAN_TO_REG(val, div) ((val) <= 100 ? 0 : \ macro
304 fan_min = FAN_TO_REG(fan_min, in set_fan_min()
Dw83793.c189 static inline u16 FAN_TO_REG(long rpm) in FAN_TO_REG() function
527 val = FAN_TO_REG(val); in store_fan_min()
Dadm1026.c209 #define FAN_TO_REG(val, div) ((val) <= 0 ? 0xff : \ macro
901 data->fan_min[nr] = FAN_TO_REG(val, data->fan_div[nr]); in set_fan_min()