Home
last modified time | relevance | path

Searched refs:TEMP_FROM_REG (Results 1 – 16 of 16) sorted by relevance

/linux/drivers/net/ethernet/intel/ice/
H A Dice_hwmon.c10 #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 Dk8temp.c19 #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 Dlm85.c150 #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 Dw83l785ts.c59 #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 Dsmsc47m192.c80 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 Dadm1025.c86 #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 Dadm1031.c201 #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 Dgl520sm.c497 #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 Dw83793.c194 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 Df75375s.c547 #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 Dpc87360.c178 #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 Dlm80.c76 #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 Dfschmd.c336 #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 Dasb100.c143 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 Dgl518sm.c78 #define TEMP_FROM_REG(val) (((val) - 119) * 1000) macro
H A Dit87.c702 #define TEMP_FROM_REG(val) ((val) * 1000) macro
1107 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr][index])); in show_temp()
1857 return sprintf(buf, "%d\n", TEMP_FROM_REG(reg)); in show_auto_temp()