/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_hwmon.c | 10 #define TEMP_FROM_REG(reg) ((reg) * 1000) macro 40 *val = TEMP_FROM_REG(resp.data.s0f0.temp); in ice_hwmon_read() 43 *val = TEMP_FROM_REG(resp.data.s0f0.temp_warning_threshold); in ice_hwmon_read() 46 *val = TEMP_FROM_REG(resp.data.s0f0.temp_critical_threshold); in ice_hwmon_read() 49 *val = TEMP_FROM_REG(resp.data.s0f0.temp_fatal_threshold); in ice_hwmon_read()
|
/linux/drivers/hwmon/ |
H A D | lm92.c | 61 static inline int TEMP_FROM_REG(s16 reg) in TEMP_FROM_REG() function 130 *val = TEMP_FROM_REG(temp); in lm92_temp_read() 139 *val = TEMP_FROM_REG(regvals[0]) + TEMP_FROM_REG(regvals[1]); in lm92_temp_read() 141 *val = TEMP_FROM_REG(regvals[0]) - TEMP_FROM_REG(regvals[1]); in lm92_temp_read() 206 val = TEMP_TO_REG(TEMP_FROM_REG(temp) - val, data->resolution); in lm92_temp_write()
|
H A 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()
|
H A 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 …]
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A D | f75375s.c | 547 #define TEMP_FROM_REG(val) ((val) * 1000) macro 564 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_high[nr])); in show_temp_max() 572 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max_hyst[nr])); in show_temp_max_hyst()
|
H A D | pc87360.c | 178 #define TEMP_FROM_REG(val) ((val) * 1000) macro 886 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in temp_input_show() 914 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[attr->index])); in temp_min_show() 949 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[attr->index])); in temp_max_show() 985 TEMP_FROM_REG(data->temp_crit[attr->index])); in temp_crit_show()
|
H A 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()
|
H A 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()
|
H A D | w83l786ng.c | 86 #define TEMP_FROM_REG(val) (((val) & 0x80 ? \ macro 412 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr][index])); in show_temp()
|
H A 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()
|
H A D | gl518sm.c | 78 #define TEMP_FROM_REG(val) (((val) - 119) * 1000) macro
|
H A D | it87.c | 691 #define TEMP_FROM_REG(val) ((val) * 1000) macro 1096 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr][index])); in show_temp() 1846 return sprintf(buf, "%d\n", TEMP_FROM_REG(reg)); in show_auto_temp()
|