Lines Matching refs:t

33 static inline long milli_kelvin_to_millicelsius(long t)  in milli_kelvin_to_millicelsius()  argument
35 return t + ABSOLUTE_ZERO_MILLICELSIUS; in milli_kelvin_to_millicelsius()
38 static inline long millicelsius_to_milli_kelvin(long t) in millicelsius_to_milli_kelvin() argument
40 return t - ABSOLUTE_ZERO_MILLICELSIUS; in millicelsius_to_milli_kelvin()
46 static inline long kelvin_to_millicelsius(long t) in kelvin_to_millicelsius() argument
48 return milli_kelvin_to_millicelsius(t * MILLIDEGREE_PER_DEGREE); in kelvin_to_millicelsius()
51 static inline long millicelsius_to_kelvin(long t) in millicelsius_to_kelvin() argument
53 t = millicelsius_to_milli_kelvin(t); in millicelsius_to_kelvin()
55 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DEGREE); in millicelsius_to_kelvin()
58 static inline long deci_kelvin_to_celsius(long t) in deci_kelvin_to_celsius() argument
60 t = milli_kelvin_to_millicelsius(t * MILLIDEGREE_PER_DECIDEGREE); in deci_kelvin_to_celsius()
62 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DEGREE); in deci_kelvin_to_celsius()
65 static inline long celsius_to_deci_kelvin(long t) in celsius_to_deci_kelvin() argument
67 t = millicelsius_to_milli_kelvin(t * MILLIDEGREE_PER_DEGREE); in celsius_to_deci_kelvin()
69 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DECIDEGREE); in celsius_to_deci_kelvin()
79 static inline long deci_kelvin_to_millicelsius_with_offset(long t, long offset) in deci_kelvin_to_millicelsius_with_offset() argument
81 return t * MILLIDEGREE_PER_DECIDEGREE - offset; in deci_kelvin_to_millicelsius_with_offset()
84 static inline long deci_kelvin_to_millicelsius(long t) in deci_kelvin_to_millicelsius() argument
86 return milli_kelvin_to_millicelsius(t * MILLIDEGREE_PER_DECIDEGREE); in deci_kelvin_to_millicelsius()
89 static inline long millicelsius_to_deci_kelvin(long t) in millicelsius_to_deci_kelvin() argument
91 t = millicelsius_to_milli_kelvin(t); in millicelsius_to_deci_kelvin()
93 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DECIDEGREE); in millicelsius_to_deci_kelvin()
96 static inline long kelvin_to_celsius(long t) in kelvin_to_celsius() argument
98 return t + DIV_ROUND_CLOSEST(ABSOLUTE_ZERO_MILLICELSIUS, in kelvin_to_celsius()
102 static inline long celsius_to_kelvin(long t) in celsius_to_kelvin() argument
104 return t - DIV_ROUND_CLOSEST(ABSOLUTE_ZERO_MILLICELSIUS, in celsius_to_kelvin()