Lines Matching refs:t
44 static inline long milli_kelvin_to_millicelsius(long t) in milli_kelvin_to_millicelsius() argument
46 return t + ABSOLUTE_ZERO_MILLICELSIUS; in milli_kelvin_to_millicelsius()
49 static inline long millicelsius_to_milli_kelvin(long t) in millicelsius_to_milli_kelvin() argument
51 return t - ABSOLUTE_ZERO_MILLICELSIUS; in millicelsius_to_milli_kelvin()
57 static inline long kelvin_to_millicelsius(long t) in kelvin_to_millicelsius() argument
59 return milli_kelvin_to_millicelsius(t * MILLIDEGREE_PER_DEGREE); in kelvin_to_millicelsius()
62 static inline long millicelsius_to_kelvin(long t) in millicelsius_to_kelvin() argument
64 t = millicelsius_to_milli_kelvin(t); in millicelsius_to_kelvin()
66 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DEGREE); in millicelsius_to_kelvin()
69 static inline long deci_kelvin_to_celsius(long t) in deci_kelvin_to_celsius() argument
71 t = milli_kelvin_to_millicelsius(t * MILLIDEGREE_PER_DECIDEGREE); in deci_kelvin_to_celsius()
73 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DEGREE); in deci_kelvin_to_celsius()
76 static inline long celsius_to_deci_kelvin(long t) in celsius_to_deci_kelvin() argument
78 t = millicelsius_to_milli_kelvin(t * MILLIDEGREE_PER_DEGREE); in celsius_to_deci_kelvin()
80 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DECIDEGREE); in celsius_to_deci_kelvin()
90 static inline long deci_kelvin_to_millicelsius_with_offset(long t, long offset) in deci_kelvin_to_millicelsius_with_offset() argument
92 return t * MILLIDEGREE_PER_DECIDEGREE - offset; in deci_kelvin_to_millicelsius_with_offset()
95 static inline long deci_kelvin_to_millicelsius(long t) in deci_kelvin_to_millicelsius() argument
97 return milli_kelvin_to_millicelsius(t * MILLIDEGREE_PER_DECIDEGREE); in deci_kelvin_to_millicelsius()
100 static inline long millicelsius_to_deci_kelvin(long t) in millicelsius_to_deci_kelvin() argument
102 t = millicelsius_to_milli_kelvin(t); in millicelsius_to_deci_kelvin()
104 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DECIDEGREE); in millicelsius_to_deci_kelvin()
107 static inline long kelvin_to_celsius(long t) in kelvin_to_celsius() argument
109 return t + DIV_ROUND_CLOSEST(ABSOLUTE_ZERO_MILLICELSIUS, in kelvin_to_celsius()
113 static inline long celsius_to_kelvin(long t) in celsius_to_kelvin() argument
115 return t - DIV_ROUND_CLOSEST(ABSOLUTE_ZERO_MILLICELSIUS, in celsius_to_kelvin()