/linux-6.1.9/drivers/hwmon/ |
D | lm92.c | 64 static inline int TEMP_FROM_REG(s16 reg) in TEMP_FROM_REG() function 143 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in temp_show() 174 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index]) in temp_hyst_show() 175 - TEMP_FROM_REG(data->temp[t_hyst])); in temp_hyst_show() 183 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[t_min]) in temp1_min_hyst_show() 184 + TEMP_FROM_REG(data->temp[t_hyst])); in temp1_min_hyst_show() 204 TEMP_TO_REG(TEMP_FROM_REG(data->temp[attr->index]) - val); in temp_hyst_store()
|
D | k8temp.c | 19 #define TEMP_FROM_REG(val) (((((val) >> 16) & 0xff) - 49) * 1000) macro 111 *val = TEMP_FROM_REG(temp) + data->temp_offset; in k8temp_read()
|
D | w83l785ts.c | 59 #define TEMP_FROM_REG(val) ((val) * 1000) macro 117 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in show_temp()
|
D | lm85.c | 150 #define TEMP_FROM_REG(val) ((val) * 1000) macro 949 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); in temp_min_show() 981 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in temp_max_show() 1135 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit) - in temp_auto_temp_off_show() 1155 min = TEMP_FROM_REG(data->zone[nr].limit); in temp_auto_temp_off_store() 1175 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit)); in temp_auto_temp_min_show() 1199 TEMP_FROM_REG(data->zone[nr].max_desired) - in temp_auto_temp_min_store() 1200 TEMP_FROM_REG(data->zone[nr].limit)); in temp_auto_temp_min_store() 1215 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit) + in temp_auto_temp_max_show() 1235 min = TEMP_FROM_REG(data->zone[nr].limit); in temp_auto_temp_max_store() [all …]
|
D | smsc47m192.c | 80 static inline int TEMP_FROM_REG(s8 val) in TEMP_FROM_REG() function 272 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); in temp_show() 281 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); in temp_min_show() 290 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in temp_max_show() 345 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_offset[nr])); in temp_offset_show()
|
D | adm1025.c | 86 #define TEMP_FROM_REG(reg) ((reg) * 1000) macro 195 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[index])); in temp_show() 203 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[index])); in temp_min_show() 211 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[index])); in temp_max_show()
|
D | lm87.c | 113 #define TEMP_FROM_REG(reg) ((reg) * 1000) macro 369 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); in temp_input_show() 379 TEMP_FROM_REG(data->temp_low[nr])); in temp_low_show() 389 TEMP_FROM_REG(data->temp_high[nr])); in temp_high_show() 448 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit_int)); in temp1_crit_show() 455 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit_ext)); in temp2_crit_show()
|
D | adm1029.c | 66 #define TEMP_FROM_REG(val) ((val) * 1000) macro 164 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in temp_show()
|
D | adm1031.c | 201 #define TEMP_FROM_REG(val) ((val) * 1000) macro 203 #define TEMP_FROM_REG_EXT(val, ext) (TEMP_FROM_REG(val) + (ext) * 125) 206 #define TEMP_OFFSET_FROM_REG(val) TEMP_FROM_REG((val) < 0 ? \ 689 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); in temp_min_show() 696 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in temp_max_show() 703 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit[nr])); in temp_crit_show()
|
D | dme1737.c | 279 static inline int TEMP_FROM_REG(int reg, int res) in TEMP_FROM_REG() function 889 res = TEMP_FROM_REG(data->temp[ix], 16); in show_temp() 892 res = TEMP_FROM_REG(data->temp_min[ix], 8); in show_temp() 895 res = TEMP_FROM_REG(data->temp_max[ix], 8); in show_temp() 898 res = TEMP_FROM_REG(data->temp_offset[ix], 8); in show_temp() 984 res = TEMP_FROM_REG(data->zone_low[ix], 8) - in show_zone() 988 res = TEMP_FROM_REG(data->zone_low[ix], 8); in show_zone() 992 res = TEMP_FROM_REG(data->zone_low[ix], 8) + in show_zone() 996 res = TEMP_FROM_REG(data->zone_abs[ix], 8); in show_zone() 1030 temp = TEMP_FROM_REG(data->zone_low[ix], 8); in set_zone() [all …]
|
D | via686a.c | 280 #define TEMP_FROM_REG(val) ((long)temp_lut[val] * 100) macro 290 return TEMP_FROM_REG(eight_bits); in TEMP_FROM_REG10() 503 return sprintf(buf, "%ld\n", TEMP_FROM_REG(data->temp_over[nr])); in temp_over_show() 510 return sprintf(buf, "%ld\n", TEMP_FROM_REG(data->temp_hyst[nr])); in temp_hyst_show()
|
D | sis5595.c | 145 static inline int TEMP_FROM_REG(s8 val) in TEMP_FROM_REG() function 354 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp)); in temp1_input_show() 361 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_over)); in temp1_max_show() 387 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_hyst)); in temp1_max_hyst_show()
|
D | adm1026.c | 208 #define TEMP_FROM_REG(val) ((val) * 1000) macro 797 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); in temp_show() 805 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); in temp_min_show() 835 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in temp_max_show() 876 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_offset[nr])); in temp_offset_show() 912 return sprintf(buf, "%d\n", TEMP_FROM_REG( in temp_auto_point1_temp_hyst_show() 922 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_tmin[nr] + in temp_auto_point2_temp_show() 932 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_tmin[nr])); in temp_auto_point1_temp_show() 1012 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit[nr])); in temp_crit_show()
|
D | lm78.c | 103 static inline int TEMP_FROM_REG(s8 val) in TEMP_FROM_REG() function 233 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp)); in temp1_input_show() 240 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_over)); in temp1_max_show() 266 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_hyst)); in temp1_max_hyst_show()
|
D | vt1211.c | 159 #define TEMP_FROM_REG(ix, reg) ((ix) == 0 ? (reg) * 1000 : \ macro 426 res = TEMP_FROM_REG(ix, data->temp[ix]); in show_temp() 429 res = TEMP_FROM_REG(ix, data->temp_max[ix]); in show_temp() 432 res = TEMP_FROM_REG(ix, data->temp_hyst[ix]); in show_temp() 760 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->pwm_ctl[ix] & 7, in show_pwm_auto_point_temp()
|
D | gl520sm.c | 497 #define TEMP_FROM_REG(val) (((val) - 130) * 1000) macro 507 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_input[n])); in temp_input_show() 516 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[n])); in temp_max_show() 525 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max_hyst[n])); in temp_max_hyst_show()
|
D | f75375s.c | 572 #define TEMP_FROM_REG(val) ((val) * 1000) macro 589 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_high[nr])); in show_temp_max() 597 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max_hyst[nr])); in show_temp_max_hyst()
|
D | w83793.c | 194 static inline long TEMP_FROM_REG(s8 reg) in TEMP_FROM_REG() function 569 long temp = TEMP_FROM_REG(data->temp[index][nr]); in show_temp() 705 val = TEMP_FROM_REG(data->temp_critical & 0x7f); in show_sf_setup() 802 val = TEMP_FROM_REG(data->temp_cruise[index] & 0x7f); in show_sf_ctrl() 805 val = TEMP_FROM_REG(val & 0x0f); in show_sf_ctrl() 920 TEMP_FROM_REG(data->sf2_temp[index][nr] & 0x7f)); in show_sf2_temp()
|
D | pc87360.c | 178 #define TEMP_FROM_REG(val) ((val) * 1000) macro 882 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in temp_input_show() 910 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[attr->index])); in temp_min_show() 945 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[attr->index])); in temp_max_show() 981 TEMP_FROM_REG(data->temp_crit[attr->index])); in temp_crit_show()
|
D | lm80.c | 76 #define TEMP_FROM_REG(reg) ((reg) * 125 / 32) macro 408 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in temp_show()
|
D | fschmd.c | 336 #define TEMP_FROM_REG(val) (((val) - 128) * 1000) macro 344 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_act[index])); in temp_value_show() 353 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[index])); in temp_max_show()
|
D | w83l786ng.c | 87 #define TEMP_FROM_REG(val) (((val) & 0x80 ? \ macro 413 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr][index])); in show_temp()
|
D | w83627hf.c | 275 static int TEMP_FROM_REG(u8 reg) in TEMP_FROM_REG() function 1211 : (long) TEMP_FROM_REG(tmp)); in temp_show() 1222 : (long) TEMP_FROM_REG(tmp)); in temp_max_show() 1256 : (long) TEMP_FROM_REG(tmp)); in temp_max_hyst_show()
|
D | asb100.c | 143 static int TEMP_FROM_REG(u8 reg) in TEMP_FROM_REG() function 410 ret = sprintf(buf, "%d\n", TEMP_FROM_REG(reg)); in sprintf_temp_from_reg()
|
D | vt8231.c | 91 #define TEMP_FROM_REG(reg) (((253 * 4 - (reg)) * 550 + 105) / 210) macro 471 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); in temp_show()
|