Lines Matching refs:t
9 static inline long milli_kelvin_to_millicelsius(long t) in milli_kelvin_to_millicelsius() argument
11 return t + ABSOLUTE_ZERO_MILLICELSIUS; in milli_kelvin_to_millicelsius()
14 static inline long millicelsius_to_milli_kelvin(long t) in millicelsius_to_milli_kelvin() argument
16 return t - ABSOLUTE_ZERO_MILLICELSIUS; in millicelsius_to_milli_kelvin()
22 static inline long kelvin_to_millicelsius(long t) in kelvin_to_millicelsius() argument
24 return milli_kelvin_to_millicelsius(t * MILLIDEGREE_PER_DEGREE); in kelvin_to_millicelsius()
27 static inline long millicelsius_to_kelvin(long t) in millicelsius_to_kelvin() argument
29 t = millicelsius_to_milli_kelvin(t); in millicelsius_to_kelvin()
31 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DEGREE); in millicelsius_to_kelvin()
34 static inline long deci_kelvin_to_celsius(long t) in deci_kelvin_to_celsius() argument
36 t = milli_kelvin_to_millicelsius(t * MILLIDEGREE_PER_DECIDEGREE); in deci_kelvin_to_celsius()
38 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DEGREE); in deci_kelvin_to_celsius()
41 static inline long celsius_to_deci_kelvin(long t) in celsius_to_deci_kelvin() argument
43 t = millicelsius_to_milli_kelvin(t * MILLIDEGREE_PER_DEGREE); in celsius_to_deci_kelvin()
45 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DECIDEGREE); in celsius_to_deci_kelvin()
55 static inline long deci_kelvin_to_millicelsius_with_offset(long t, long offset) in deci_kelvin_to_millicelsius_with_offset() argument
57 return t * MILLIDEGREE_PER_DECIDEGREE - offset; in deci_kelvin_to_millicelsius_with_offset()
60 static inline long deci_kelvin_to_millicelsius(long t) in deci_kelvin_to_millicelsius() argument
62 return milli_kelvin_to_millicelsius(t * MILLIDEGREE_PER_DECIDEGREE); in deci_kelvin_to_millicelsius()
65 static inline long millicelsius_to_deci_kelvin(long t) in millicelsius_to_deci_kelvin() argument
67 t = millicelsius_to_milli_kelvin(t); in millicelsius_to_deci_kelvin()
69 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DECIDEGREE); in millicelsius_to_deci_kelvin()
72 static inline long kelvin_to_celsius(long t) in kelvin_to_celsius() argument
74 return t + DIV_ROUND_CLOSEST(ABSOLUTE_ZERO_MILLICELSIUS, in kelvin_to_celsius()
78 static inline long celsius_to_kelvin(long t) in celsius_to_kelvin() argument
80 return t - DIV_ROUND_CLOSEST(ABSOLUTE_ZERO_MILLICELSIUS, in celsius_to_kelvin()