Home
last modified time | relevance | path

Searched refs:FAN_FROM_REG (Results 1 – 25 of 25) sorted by relevance

/drivers/hwmon/
Dadm9240.c101 static inline unsigned int FAN_FROM_REG(u8 reg, u8 div) in FAN_FROM_REG() function
464 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[attr->index], in fan_show()
477 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[attr->index], in fan_min_show()
534 nr + 1, FAN_FROM_REG(254, 1 << new_div)); in fan_min_store()
550 nr + 1, FAN_FROM_REG(new_min, 1 << new_div)); in fan_min_store()
Dsis5595.c135 static inline int FAN_FROM_REG(u8 val, int div) in FAN_FROM_REG() function
365 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], in fan_show()
375 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in fan_min_show()
430 min = FAN_FROM_REG(data->fan_min[nr], in fan_div_store()
Dlm78.c88 static inline int FAN_FROM_REG(u8 val, int div) in FAN_FROM_REG() function
299 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], in fan_show()
309 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in fan_min_show()
363 min = FAN_FROM_REG(data->fan_min[nr], in fan_div_store()
Dlm80.c73 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : \ macro
301 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr][index], in fan_show()
359 min = FAN_FROM_REG(data->fan[f_min][nr], in fan_div_store()
Dasb100.c123 static int FAN_FROM_REG(u8 val, int div) in FAN_FROM_REG() function
291 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], in show_fan()
300 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
355 min = FAN_FROM_REG(data->fan_min[nr], in set_fan_div()
Dlm87.c119 #define FAN_FROM_REG(reg, div) ((reg) == 255 || (reg) == 0 ? 0 : \ macro
468 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], in fan_input_show()
478 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in fan_min_show()
537 min = FAN_FROM_REG(data->fan_min[nr], in fan_div_store()
Dvt8231.c140 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : 1310720 / ((val) * (div))) macro
499 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], in fan_show()
509 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in fan_min_show()
552 long min = FAN_FROM_REG(data->fan_min[nr], in fan_div_store()
Dw83l786ng.c80 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : \ macro
284 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
351 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
Dgl518sm.c88 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : (480000 / ((val) * (div)))) macro
259 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_in[nr], in fan_input_show()
268 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in fan_min_show()
Dvia686a.c165 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : (val) == 255 ? 0 : 1350000 / \ macro
502 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], in fan_show()
511 FAN_FROM_REG(data->fan_min[nr], in fan_min_show()
Dadm1031.c209 #define FAN_FROM_REG(reg, div) ((reg) ? \ macro
215 tmp = FAN_FROM_REG(clamp_val(reg, 0, 65535), div); in FAN_TO_REG()
563 value = trust_fan_readings(data, nr) ? FAN_FROM_REG(data->fan[nr], in fan_show()
581 FAN_FROM_REG(data->fan_min[nr], in fan_min_show()
Dmax6639.c62 #define FAN_FROM_REG(val, rpm_range) ((val) == 0 || (val) == 255 ? \ macro
318 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[attr->index], in fan_input_show()
Dgl520sm.c329 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : (480000 / ((val) << (div)))) macro
344 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_input[n], in fan_input_show()
354 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[n], in fan_min_show()
Dsmsc47m1.c108 #define FAN_FROM_REG(reg, div, preload) ((reg) <= (preload) || (reg) == 255 ? \ macro
210 FAN_FROM_REG(data->fan[nr], in fan_show()
Dw83627hf.c280 #define FAN_FROM_REG(val,div) ((val)==0?-1:(val)==255?0:1350000/((val)*(div))) macro
670 return sprintf(buf, "%ld\n", FAN_FROM_REG(data->fan[nr], in fan_input_show()
678 return sprintf(buf, "%ld\n", FAN_FROM_REG(data->fan_min[nr], in fan_min_show()
1008 min = FAN_FROM_REG(data->fan_min[nr], in fan_div_store()
Dlm85.c142 #define FAN_FROM_REG(val) ((val) == 0 ? -1 : (val) == 0xffff ? 0 : \ macro
557 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr])); in fan_show()
565 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr])); in fan_min_show()
Dw83791d.c221 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : \ macro
524 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
589 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
Dlm63.c112 #define FAN_FROM_REG(reg) ((reg) == 0xFFFC || (reg) == 0 ? 0 : \ macro
336 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[attr->index])); in show_fan()
Dw83792d.c229 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : \ macro
398 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
465 min = FAN_FROM_REG(data->fan_min[nr], in store_fan_div()
Dpc87360.c112 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : \ macro
249 return sprintf(buf, "%u\n", FAN_FROM_REG(data->fan[attr->index], in fan_input_show()
257 return sprintf(buf, "%u\n", FAN_FROM_REG(data->fan_min[attr->index], in fan_min_show()
Dw83781d.c162 FAN_FROM_REG(u8 val, int div) in FAN_FROM_REG() function
306 FAN_FROM_REG(data->reg[attr->index], \
653 min = FAN_FROM_REG(data->fan_min[nr], in store_fan_div()
Dadm1026.c200 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : (val) == 0xff ? 0 : \ macro
659 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], in fan_show()
668 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in fan_min_show()
Ddme1737.c332 static inline int FAN_FROM_REG(int reg, int tpc) in FAN_FROM_REG() function
1092 res = FAN_FROM_REG(data->fan[ix], in show_fan()
1097 res = FAN_FROM_REG(data->fan_min[ix], in show_fan()
Dw83793.c170 static inline unsigned long FAN_FROM_REG(u16 val) in FAN_FROM_REG() function
477 return sprintf(buf, "%lu\n", FAN_FROM_REG(val)); in show_fan()
Dit87.c609 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : (val) == 255 ? 0 : \ macro
1122 FAN_FROM_REG(data->fan[nr][index], in show_fan()
1239 min = FAN_FROM_REG(data->fan[nr][1], DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()