Searched refs:MILLIDEGREE_PER_DEGREE (Results 1 – 8 of 8) sorted by relevance
46 #define MILLIDEGREE_PER_DEGREE 1000 macro51 return milli_kelvin_to_millicelsius(t * MILLIDEGREE_PER_DEGREE); in kelvin_to_millicelsius()58 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DEGREE); in millicelsius_to_kelvin()65 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DEGREE); in deci_kelvin_to_celsius()70 t = millicelsius_to_milli_kelvin(t * MILLIDEGREE_PER_DEGREE); in celsius_to_deci_kelvin()102 MILLIDEGREE_PER_DEGREE); in kelvin_to_celsius()108 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)
122 *temp = (val & GENMASK(7, 0)) * MILLIDEGREE_PER_DEGREE; in tmu_get_temp()126 MILLIDEGREE_PER_DEGREE + 500); in tmu_get_temp()
49 #define MCELSIUS(temp) ((temp) * MILLIDEGREE_PER_DEGREE)
45 *val = ((long)value - 80) * MILLIDEGREE_PER_DEGREE; in ufs_get_temp()
409 return value * MILLIDEGREE_PER_DEGREE; in asus_wmi_scale_sensor_value()