Searched refs:TEMP_FROM_REG (Results 1 – 4 of 4) sorted by relevance
10 #define TEMP_FROM_REG(reg) ((reg) * 1000) macro40 *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()
194 static inline long TEMP_FROM_REG(s8 reg) in TEMP_FROM_REG() function569 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()
178 #define TEMP_FROM_REG(val) ((val) * 1000) macro886 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()
275 static int TEMP_FROM_REG(u8 reg) in TEMP_FROM_REG() function1211 : (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()