Home
last modified time | relevance | path

Searched refs:MILLIDEGREE_PER_DEGREE (Results 1 – 10 of 10) sorted by relevance

/linux/include/linux/
H A Dunits.h54 #define MILLIDEGREE_PER_DEGREE 1000 macro
59 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()
/linux/drivers/hwmon/peci/
H A Dcputemp.c101 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()
H A Ddimmtemp.c108 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()
/linux/drivers/thermal/intel/
H A Dintel_pch_thermal.c65 #define GET_WPT_TEMP(x) ((x) * MILLIDEGREE_PER_DEGREE / 2 + WPT_TEMP_OFFSET)
66 #define WPT_TEMP_OFFSET (PCH_TEMP_OFFSET * MILLIDEGREE_PER_DEGREE)
/linux/drivers/thermal/
H A Dqoriq_thermal.c126 *temp = (val & GENMASK(7, 0)) * MILLIDEGREE_PER_DEGREE; in tmu_get_temp()
130 MILLIDEGREE_PER_DEGREE + 500); in tmu_get_temp()
/linux/drivers/ufs/core/
H A Dufs-hwmon.c45 *val = ((long)value - 80) * MILLIDEGREE_PER_DEGREE; in ufs_get_temp()
/linux/drivers/thermal/renesas/
H A Drzg2l_thermal.c49 #define MCELSIUS(temp) ((temp) * MILLIDEGREE_PER_DEGREE)
/linux/drivers/hwmon/
H A Dasus_wmi_sensors.c409 return value * MILLIDEGREE_PER_DEGREE; in asus_wmi_scale_sensor_value()
H A Dspd5118.c70 #define SPD5118_TEMP_UNIT (MILLIDEGREE_PER_DEGREE / 4)
/linux/drivers/platform/x86/
H A Dthinkpad_acpi.c6127 *value = tmp * MILLIDEGREE_PER_DEGREE; in thermal_get_sensor()