/linux-2.6.39/drivers/hwmon/ |
D | adm9240.c | 110 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()
|
D | sis5595.c | 139 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()
|
D | lm80.c | 80 #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()
|
D | asb100.c | 132 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()
|
D | lm78.c | 98 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()
|
D | w83l786ng.c | 92 #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()
|
D | vt8231.c | 147 #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()
|
D | lm87.c | 132 #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()
|
D | gl518sm.c | 101 #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()
|
D | via686a.c | 169 #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()
|
D | adm1031.c | 158 #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()
|
D | lm63.c | 106 #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()
|
D | max6639.c | 75 #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()
|
D | gl520sm.c | 275 #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()
|
D | smsc47m1.c | 116 #define FAN_FROM_REG(reg,div,preload) ((reg)<=(preload) || (reg)==255 ? 0 : \ macro 179 FAN_FROM_REG(data->fan[nr], in get_fan()
|
D | w83627hf.c | 284 #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()
|
D | lm85.c | 155 #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()
|
D | w83791d.c | 229 #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()
|
D | it87.c | 317 #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()
|
D | w83792d.c | 239 #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()
|
D | w83781d.c | 173 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()
|
D | adm1026.c | 206 #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()
|
D | pc87360.c | 125 #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()
|
D | dme1737.c | 328 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()
|
D | w83793.c | 180 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()
|