Searched refs:MILLIDEGREE_PER_DEGREE (Results 1 – 9 of 9) sorted by relevance
/linux/include/linux/ |
H A D | units.h | 54 #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 D | cputemp.c | 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()
|
H A D | dimmtemp.c | 108 priv->dimm[dimm_no].temp.value = __dimm_temp(data, dimm_order) * MILLIDEGREE_PER_DEGREE; in get_dimm_temp() 133 priv->dimm[dimm_no].thresholds.temp_max = GET_TEMP_MAX(data) * MILLIDEGREE_PER_DEGREE; in update_thresholds() 134 priv->dimm[dimm_no].thresholds.temp_crit = GET_TEMP_CRIT(data) * MILLIDEGREE_PER_DEGREE; in update_thresholds()
|
/linux/drivers/thermal/intel/ |
H A D | intel_pch_thermal.c | 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)
|
/linux/drivers/thermal/ |
H A D | qoriq_thermal.c | 126 *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 D | ufs-hwmon.c | 45 *val = ((long)value - 80) * MILLIDEGREE_PER_DEGREE; in ufs_get_temp()
|
/linux/drivers/hwmon/ |
H A D | asus_wmi_sensors.c | 409 return value * MILLIDEGREE_PER_DEGREE; in asus_wmi_scale_sensor_value()
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_hwmon.c | 340 *val = REG_FIELD_GET(TEMP_MASK, reg_val) * MILLIDEGREE_PER_DEGREE; in hwm_temp_read()
|
/linux/drivers/platform/x86/ |
H A D | thinkpad_acpi.c | 6130 *value = tmp * MILLIDEGREE_PER_DEGREE; in thermal_get_sensor()
|