Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/hwmon/
Dadm9240.c110 static inline unsigned int FAN_FROM_REG(u8 reg, u8 div) in FAN_FROM_REG() function
306 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[attr->index], in show_fan()
315 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[attr->index], in show_fan_min()
378 nr + 1, FAN_FROM_REG(254, 1 << new_div)); in set_fan_min()
394 nr + 1, FAN_FROM_REG(new_min, 1 << new_div)); in set_fan_min()
Dsis5595.c139 static inline int FAN_FROM_REG(u8 val, int div) in FAN_FROM_REG() function
337 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], in show_fan()
347 return sprintf(buf,"%d\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
390 min = FAN_FROM_REG(data->fan_min[nr], in set_fan_div()
Dlm80.c80 #define FAN_FROM_REG(val,div) ((val)==0?-1:\ macro
200 return sprintf(buf, "%d\n", FAN_FROM_REG(data->value[nr], \
244 min = FAN_FROM_REG(data->fan_min[nr], in set_fan_div()
Dasb100.c132 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()
343 min = FAN_FROM_REG(data->fan_min[nr], in set_fan_div()
Dlm78.c98 static inline int FAN_FROM_REG(u8 val, int div) in FAN_FROM_REG() function
322 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], in show_fan()
332 return sprintf(buf,"%d\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
374 min = FAN_FROM_REG(data->fan_min[nr], in set_fan_div()
Dw83l786ng.c92 #define FAN_FROM_REG(val,div) ((val) == 0 ? -1 : \ macro
245 FAN_FROM_REG(data->fan[nr], DIV_FROM_REG(data->fan_div[nr]))); \
299 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
Dvt8231.c147 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : 1310720 / ((val) * (div))) macro
454 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], in show_fan()
464 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
500 long min = FAN_FROM_REG(data->fan_min[nr], in set_fan_div()
Dlm87.c132 #define FAN_FROM_REG(reg,div) ((reg) == 255 || (reg) == 0 ? 0 : \ macro
403 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[offset-1], \
409 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[offset-1], \
449 min = FAN_FROM_REG(data->fan_min[nr], in set_fan_div()
Dgl518sm.c101 #define FAN_FROM_REG(val,div) ((val)==0 ? 0 : (480000/((val)*(div)))) macro
203 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_in[nr], in show_fan_input()
212 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
Dvia686a.c169 #define FAN_FROM_REG(val,div) ((val)==0?0:(val)==255?0:1350000/((val)*(div))) macro
473 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], in show_fan()
482 FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])) ); in show_fan_min()
Dadm1031.c158 #define FAN_FROM_REG(reg, div) ((reg) ? (11250 * 60) / ((reg) * (div)) : 0) macro
163 tmp = FAN_FROM_REG(SENSORS_LIMIT(reg, 0, 65535), div); in FAN_TO_REG()
491 value = trust_fan_readings(data, nr) ? FAN_FROM_REG(data->fan[nr], in show_fan()
509 FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
Dlm63.c106 #define FAN_FROM_REG(reg) ((reg) == 0xFFFC || (reg) == 0 ? 0 : \ macro
199 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[attr->index])); in show_fan()
Dmax6639.c75 #define FAN_FROM_REG(val, div, rpm_range) ((val) == 0 ? -1 : \ macro
335 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[attr->index], in show_fan_input()
Dgl520sm.c275 #define FAN_FROM_REG(val,div) ((val)==0 ? 0 : (480000/((val) << (div)))) macro
284 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_input[n], in get_fan_input()
294 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[n], in get_fan_min()
Dsmsc47m1.c116 #define FAN_FROM_REG(reg,div,preload) ((reg)<=(preload) || (reg)==255 ? 0 : \ macro
179 FAN_FROM_REG(data->fan[nr], in get_fan()
Dw83627hf.c284 #define FAN_FROM_REG(val,div) ((val)==0?-1:(val)==255?0:1350000/((val)*(div))) macro
570 return sprintf(buf, "%ld\n", FAN_FROM_REG(data->fan[nr], in show_fan_input()
578 return sprintf(buf, "%ld\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
892 min = FAN_FROM_REG(data->fan_min[nr], in store_fan_div()
Dlm85.c155 #define FAN_FROM_REG(val) ((val) == 0 ? -1 : (val) == 0xffff ? 0 : \ macro
377 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr])); in show_fan()
385 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr])); in show_fan_min()
Dw83791d.c229 #define FAN_FROM_REG(val,div) ((val) == 0 ? -1 : \ macro
525 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
577 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
Dit87.c317 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : (val) == 255 ? 0 : \ macro
659 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], in show_fan()
669 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
758 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
Dw83792d.c239 #define FAN_FROM_REG(val,div) ((val) == 0 ? -1 : \ macro
406 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
461 min = FAN_FROM_REG(data->fan_min[nr], in store_fan_div()
Dw83781d.c173 FAN_FROM_REG(u8 val, int div) in FAN_FROM_REG() function
315 FAN_FROM_REG(data->reg[attr->index], \
641 min = FAN_FROM_REG(data->fan_min[nr], in store_fan_div()
Dadm1026.c206 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1:(val) == 0xff ? 0 : \ macro
840 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], in show_fan()
849 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in show_fan_min()
Dpc87360.c125 #define FAN_FROM_REG(val,div) ((val) == 0 ? 0: \ macro
262 return sprintf(buf, "%u\n", FAN_FROM_REG(data->fan[attr->index], in show_fan_input()
269 return sprintf(buf, "%u\n", FAN_FROM_REG(data->fan_min[attr->index], in show_fan_min()
Ddme1737.c328 static inline int FAN_FROM_REG(int reg, int tpc) in FAN_FROM_REG() function
1062 res = FAN_FROM_REG(data->fan[ix], in show_fan()
1067 res = FAN_FROM_REG(data->fan_min[ix], in show_fan()
Dw83793.c180 static inline unsigned long FAN_FROM_REG(u16 val) in FAN_FROM_REG() function
482 return sprintf(buf, "%lu\n", FAN_FROM_REG(val)); in show_fan()