Searched refs:MILLIDEGREE_PER_DEGREE (Results 1 – 10 of 10) sorted by relevance
54 #define MILLIDEGREE_PER_DEGREE 1000 macro59 return milli_kelvin_to_millicelsius(t * MILLIDEGREE_PER_DEGREE); in kelvin_to_millicelsius()66 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DEGREE); in millicelsius_to_kelvin()73 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DEGREE); in deci_kelvin_to_celsius()78 t = millicelsius_to_milli_kelvin(t * MILLIDEGREE_PER_DEGREE); in celsius_to_deci_kelvin()110 MILLIDEGREE_PER_DEGREE); in kelvin_to_celsius()116 MILLIDEGREE_PER_DEGREE); in celsius_to_kelvin()
101 FIELD_GET(TEMP_TARGET_REF_TEMP_MASK, pcs) * MILLIDEGREE_PER_DEGREE; in update_temp_target()104 tcontrol_margin = sign_extend32(tcontrol_margin, 7) * MILLIDEGREE_PER_DEGREE; in update_temp_target()107 tthrottle_offset = FIELD_GET(TEMP_TARGET_TJ_OFFSET_MASK, pcs) * MILLIDEGREE_PER_DEGREE; in update_temp_target()166 return sign_extend32(val, 15) * MILLIDEGREE_PER_DEGREE / 64; in dts_ten_dot_six_to_millidegree()175 return sign_extend32(val, 15) * MILLIDEGREE_PER_DEGREE / 256; in dts_eight_dot_eight_to_millidegree()
108 priv->dimm[dimm_no].temp.value = __dimm_temp(data, dimm_order) * MILLIDEGREE_PER_DEGREE; in get_dimm_temp()135 priv->dimm[dimm_no].thresholds.temp_max = GET_TEMP_MAX(data) * MILLIDEGREE_PER_DEGREE; in update_thresholds()136 priv->dimm[dimm_no].thresholds.temp_crit = GET_TEMP_CRIT(data) * MILLIDEGREE_PER_DEGREE; in update_thresholds()
65 #define GET_WPT_TEMP(x) ((x) * MILLIDEGREE_PER_DEGREE / 2 + WPT_TEMP_OFFSET)66 #define WPT_TEMP_OFFSET (PCH_TEMP_OFFSET * MILLIDEGREE_PER_DEGREE)
126 *temp = (val & GENMASK(7, 0)) * MILLIDEGREE_PER_DEGREE; in tmu_get_temp()130 MILLIDEGREE_PER_DEGREE + 500); in tmu_get_temp()
45 *val = ((long)value - 80) * MILLIDEGREE_PER_DEGREE; in ufs_get_temp()
49 #define MCELSIUS(temp) ((temp) * MILLIDEGREE_PER_DEGREE)
409 return value * MILLIDEGREE_PER_DEGREE; in asus_wmi_scale_sensor_value()
70 #define SPD5118_TEMP_UNIT (MILLIDEGREE_PER_DEGREE / 4)
6127 *value = tmp * MILLIDEGREE_PER_DEGREE; in thermal_get_sensor()