Home
last modified time | relevance | path

Searched refs:TEMP_FROM_REG (Results 1 – 4 of 4) 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 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 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 Dw83627hf.c275 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()