Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/hwmon/
Dlm80.c65 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()
Dw83l786ng.c72 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()
Dsis5595.c126 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()
Dlm78.c79 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()
Dasb100.c113 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()
Dlm87.c121 #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()
Dvt8231.c133 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()
Dgl518sm.c80 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()
Dvia686a.c157 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()
Dgl520sm.c334 #define FAN_TO_REG(val, div) ((val) == 0 ? 0 : \ macro
390 r = FAN_TO_REG(v, data->fan_div[n]); in fan_min_store()
Dlm63.c114 #define FAN_TO_REG(val) ((val) <= 82 ? 0xFFFC : \ macro
352 data->fan[1] = FAN_TO_REG(val); in set_fan()
Dw83792d.c221 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()
Dadm1031.c212 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()
Dw83627hf.c253 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()
Dw83781d.c153 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()
Ddme1737.c340 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()
Dlm85.c136 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()
Dpc87360.c114 #define FAN_TO_REG(val, div) ((val) <= 100 ? 0 : \ macro
290 fan_min = FAN_TO_REG(fan_min, in fan_min_store()
Dadm1026.c197 #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()
Dw83793.c177 static inline u16 FAN_TO_REG(long rpm) in FAN_TO_REG() function
495 val = FAN_TO_REG(val); in store_fan_min()
Dit87.c592 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()