/drivers/hwmon/ |
D | lm92.c | 75 static inline int TEMP_FROM_REG(s16 reg) in TEMP_FROM_REG() function 149 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->value)); \ 182 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp1_crit) in show_temp1_crit_hyst() 183 - TEMP_FROM_REG(data->temp1_hyst)); in show_temp1_crit_hyst() 189 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp1_max) in show_temp1_max_hyst() 190 - TEMP_FROM_REG(data->temp1_hyst)); in show_temp1_max_hyst() 196 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp1_min) in show_temp1_min_hyst() 197 + TEMP_FROM_REG(data->temp1_hyst)); in show_temp1_min_hyst() 214 data->temp1_hyst = TEMP_FROM_REG(data->temp1_crit) - val; in set_temp1_crit_hyst()
|
D | lm85.c | 164 #define TEMP_FROM_REG(val) ((val) * 1000) macro 765 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); in show_temp_min() 796 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in show_temp_max() 951 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit) - in show_temp_auto_temp_off() 970 min = TEMP_FROM_REG(data->zone[nr].limit); in set_temp_auto_temp_off() 989 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit)); in show_temp_auto_temp_min() 1012 TEMP_FROM_REG(data->zone[nr].max_desired) - in set_temp_auto_temp_min() 1013 TEMP_FROM_REG(data->zone[nr].limit)); in set_temp_auto_temp_min() 1027 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit) + in show_temp_auto_temp_max() 1046 min = TEMP_FROM_REG(data->zone[nr].limit); in set_temp_auto_temp_max() [all …]
|
D | smsc47m192.c | 92 static inline int TEMP_FROM_REG(s8 val) in TEMP_FROM_REG() function 236 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); in show_temp() 245 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); in show_temp_min() 254 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in show_temp_max() 307 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_offset[nr])); in show_temp_offset()
|
D | w83l785ts.c | 72 #define TEMP_FROM_REG(val) ((val) * 1000) macro 131 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in show_temp()
|
D | adm1025.c | 99 #define TEMP_FROM_REG(reg) ((reg) * 1000) macro 197 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[index])); in show_temp() 205 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[index])); in show_temp_min() 213 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[index])); in show_temp_max()
|
D | lm87.c | 127 #define TEMP_FROM_REG(reg) ((reg) * 1000) macro 373 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); in show_temp_input() 383 TEMP_FROM_REG(data->temp_low[nr])); in show_temp_low() 393 TEMP_FROM_REG(data->temp_high[nr])); in show_temp_high() 451 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit_int)); in show_temp_crit_int() 458 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit_ext)); in show_temp_crit_ext()
|
D | adm1031.c | 151 #define TEMP_FROM_REG(val) ((val) * 1000) macro 153 #define TEMP_FROM_REG_EXT(val, ext) (TEMP_FROM_REG(val) + (ext) * 125) 156 #define TEMP_OFFSET_FROM_REG(val) TEMP_FROM_REG((val) < 0 ? \ 648 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); in show_temp_min() 655 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in show_temp_max() 662 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit[nr])); in show_temp_crit()
|
D | dme1737.c | 289 static inline int TEMP_FROM_REG(int reg, int res) in TEMP_FROM_REG() function 898 res = TEMP_FROM_REG(data->temp[ix], 16); in show_temp() 901 res = TEMP_FROM_REG(data->temp_min[ix], 8); in show_temp() 904 res = TEMP_FROM_REG(data->temp_max[ix], 8); in show_temp() 907 res = TEMP_FROM_REG(data->temp_offset[ix], 8); in show_temp() 993 res = TEMP_FROM_REG(data->zone_low[ix], 8) - in show_zone() 997 res = TEMP_FROM_REG(data->zone_low[ix], 8); in show_zone() 1001 res = TEMP_FROM_REG(data->zone_low[ix], 8) + in show_zone() 1005 res = TEMP_FROM_REG(data->zone_abs[ix], 8); in show_zone() 1038 TEMP_FROM_REG(data->zone_low[ix], 8) - in set_zone() [all …]
|
D | k8temp.c | 36 #define TEMP_FROM_REG(val) (((((val) >> 16) & 0xff) - 49) * 1000) macro 126 temp = TEMP_FROM_REG(data->temp[core][place]) + data->temp_offset; in show_temp()
|
D | via686a.c | 295 #define TEMP_FROM_REG(val) ((long)tempLUT[val] * 100) macro 305 return TEMP_FROM_REG(eightBits); in TEMP_FROM_REG10() 450 return sprintf(buf, "%ld\n", TEMP_FROM_REG(data->temp_over[nr])); in show_temp_over() 457 return sprintf(buf, "%ld\n", TEMP_FROM_REG(data->temp_hyst[nr])); in show_temp_hyst()
|
D | sis5595.c | 156 static inline int TEMP_FROM_REG(s8 val) in TEMP_FROM_REG() function 310 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp)); in show_temp() 317 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_over)); in show_temp_over() 342 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_hyst)); in show_temp_hyst()
|
D | adm1026.c | 220 #define TEMP_FROM_REG(val) ((val) * 1000) macro 1012 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); in show_temp() 1020 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); in show_temp_min() 1049 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in show_temp_max() 1092 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_offset[nr])); in show_temp_offset() 1131 return sprintf(buf, "%d\n", TEMP_FROM_REG( in show_temp_auto_point1_temp_hyst() 1140 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_tmin[nr] + in show_temp_auto_point2_temp() 1149 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_tmin[nr])); in show_temp_auto_point1_temp() 1229 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit[nr])); in show_temp_crit()
|
D | lm83.c | 87 #define TEMP_FROM_REG(val) ((val) * 1000) macro 173 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in show_temp()
|
D | adm1029.c | 79 #define TEMP_FROM_REG(val) ((val) * 1000) macro 167 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in show_temp()
|
D | vt1211.c | 172 #define TEMP_FROM_REG(ix, reg) ((ix) == 0 ? (reg) * 1000 : \ macro 433 res = TEMP_FROM_REG(ix, data->temp[ix]); in show_temp() 436 res = TEMP_FROM_REG(ix, data->temp_max[ix]); in show_temp() 439 res = TEMP_FROM_REG(ix, data->temp_hyst[ix]); in show_temp() 764 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->pwm_ctl[ix] & 7, in show_pwm_auto_point_temp()
|
D | lm78.c | 115 static inline int TEMP_FROM_REG(s8 val) in TEMP_FROM_REG() function 242 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp)); in show_temp() 249 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_over)); in show_temp_over() 274 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_hyst)); in show_temp_hyst()
|
D | gl520sm.c | 452 #define TEMP_FROM_REG(val) (((val) - 130) * 1000) macro 462 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_input[n])); in get_temp_input() 471 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[n])); in get_temp_max() 480 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max_hyst[n])); in get_temp_max_hyst()
|
D | w83793.c | 206 static inline long TEMP_FROM_REG(s8 reg) in TEMP_FROM_REG() function 601 long temp = TEMP_FROM_REG(data->temp[index][nr]); in show_temp() 737 val = TEMP_FROM_REG(data->temp_critical & 0x7f); in show_sf_setup() 834 val = TEMP_FROM_REG(data->temp_cruise[index] & 0x7f); in show_sf_ctrl() 837 val = TEMP_FROM_REG(val & 0x0f); in show_sf_ctrl() 952 TEMP_FROM_REG(data->sf2_temp[index][nr] & 0x7f)); in show_sf2_temp()
|
D | f75375s.c | 587 #define TEMP_FROM_REG(val) ((val) * 1000) macro 604 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_high[nr])); in show_temp_max() 612 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max_hyst[nr])); in show_temp_max_hyst()
|
D | pc87360.c | 179 #define TEMP_FROM_REG(val) ((val) * 1000) macro 873 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in show_temp_input() 881 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[attr->index])); in show_temp_min() 889 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[attr->index])); in show_temp_max() 898 TEMP_FROM_REG(data->temp_crit[attr->index])); in show_temp_crit()
|
D | fschmd.c | 350 #define TEMP_FROM_REG(val) (((val) - 128) * 1000) macro 358 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_act[index])); in show_temp_value() 367 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[index])); in show_temp_max()
|
D | w83l786ng.c | 100 #define TEMP_FROM_REG(val) (((val) & 0x80 ? \ macro 381 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr][index])); in show_temp()
|
D | lm80.c | 89 static inline long TEMP_FROM_REG(u16 temp) in TEMP_FROM_REG() function 313 return sprintf(buf, "%ld\n", TEMP_FROM_REG(data->temp)); in show_temp_input1()
|
D | it87.c | 358 #define TEMP_FROM_REG(val) ((val) * 1000) macro 548 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); in show_temp() 557 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_high[nr])); in show_temp_max() 566 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_low[nr])); in show_temp_min() 1065 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->auto_temp[nr][point])); in show_auto_temp()
|
D | w83627hf.c | 283 static int TEMP_FROM_REG(u8 reg) in TEMP_FROM_REG() function 646 : (long) TEMP_FROM_REG(tmp)); in show_temp() 658 : (long) TEMP_FROM_REG(tmp)); in show_temp_max() 670 : (long) TEMP_FROM_REG(tmp)); in show_temp_max_hyst()
|