/drivers/hwmon/ |
D | adm9240.c | 100 static inline unsigned int FAN_FROM_REG(u8 reg, u8 div) in FAN_FROM_REG() function 389 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[attr->index], in fan_show() 398 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[attr->index], in fan_min_show() 451 nr + 1, FAN_FROM_REG(254, 1 << new_div)); in fan_min_store() 467 nr + 1, FAN_FROM_REG(new_min, 1 << new_div)); in fan_min_store()
|
D | sis5595.c | 135 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()
|
D | lm78.c | 88 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()
|
D | lm80.c | 73 #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()
|
D | asb100.c | 123 static int FAN_FROM_REG(u8 val, int div) in FAN_FROM_REG() function 292 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], in show_fan() 301 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min() 356 min = FAN_FROM_REG(data->fan_min[nr], in set_fan_div()
|
D | lm87.c | 119 #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()
|
D | vt8231.c | 140 #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()
|
D | w83l786ng.c | 80 #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()
|
D | gl518sm.c | 88 #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()
|
D | via686a.c | 165 #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()
|
D | adm1031.c | 209 #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()
|
D | max6639.c | 62 #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()
|
D | gl520sm.c | 329 #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()
|
D | smsc47m1.c | 108 #define FAN_FROM_REG(reg, div, preload) ((reg) <= (preload) || (reg) == 255 ? \ macro 210 FAN_FROM_REG(data->fan[nr], in fan_show()
|
D | w83627hf.c | 280 #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()
|
D | w83791d.c | 221 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : \ macro 528 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \ 593 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
|
D | lm85.c | 142 #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()
|
D | lm63.c | 112 #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()
|
D | pc87360.c | 112 #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()
|
D | w83792d.c | 229 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : \ macro 402 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \ 469 min = FAN_FROM_REG(data->fan_min[nr], in store_fan_div()
|
D | w83781d.c | 162 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()
|
D | adm1026.c | 200 #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()
|
D | dme1737.c | 332 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()
|
D | w83793.c | 170 static inline unsigned long FAN_FROM_REG(u16 val) in FAN_FROM_REG() function 479 return sprintf(buf, "%lu\n", FAN_FROM_REG(val)); in show_fan()
|
D | it87.c | 607 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : (val) == 255 ? 0 : \ macro 1120 FAN_FROM_REG(data->fan[nr][index], in show_fan() 1237 min = FAN_FROM_REG(data->fan[nr][1], DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
|