Lines Matching refs:t

36 static inline long milli_kelvin_to_millicelsius(long t)  in milli_kelvin_to_millicelsius()  argument
38 return t + ABSOLUTE_ZERO_MILLICELSIUS; in milli_kelvin_to_millicelsius()
41 static inline long millicelsius_to_milli_kelvin(long t) in millicelsius_to_milli_kelvin() argument
43 return t - ABSOLUTE_ZERO_MILLICELSIUS; in millicelsius_to_milli_kelvin()
49 static inline long kelvin_to_millicelsius(long t) in kelvin_to_millicelsius() argument
51 return milli_kelvin_to_millicelsius(t * MILLIDEGREE_PER_DEGREE); in kelvin_to_millicelsius()
54 static inline long millicelsius_to_kelvin(long t) in millicelsius_to_kelvin() argument
56 t = millicelsius_to_milli_kelvin(t); in millicelsius_to_kelvin()
58 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DEGREE); in millicelsius_to_kelvin()
61 static inline long deci_kelvin_to_celsius(long t) in deci_kelvin_to_celsius() argument
63 t = milli_kelvin_to_millicelsius(t * MILLIDEGREE_PER_DECIDEGREE); in deci_kelvin_to_celsius()
65 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DEGREE); in deci_kelvin_to_celsius()
68 static inline long celsius_to_deci_kelvin(long t) in celsius_to_deci_kelvin() argument
70 t = millicelsius_to_milli_kelvin(t * MILLIDEGREE_PER_DEGREE); in celsius_to_deci_kelvin()
72 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DECIDEGREE); in celsius_to_deci_kelvin()
82 static inline long deci_kelvin_to_millicelsius_with_offset(long t, long offset) in deci_kelvin_to_millicelsius_with_offset() argument
84 return t * MILLIDEGREE_PER_DECIDEGREE - offset; in deci_kelvin_to_millicelsius_with_offset()
87 static inline long deci_kelvin_to_millicelsius(long t) in deci_kelvin_to_millicelsius() argument
89 return milli_kelvin_to_millicelsius(t * MILLIDEGREE_PER_DECIDEGREE); in deci_kelvin_to_millicelsius()
92 static inline long millicelsius_to_deci_kelvin(long t) in millicelsius_to_deci_kelvin() argument
94 t = millicelsius_to_milli_kelvin(t); in millicelsius_to_deci_kelvin()
96 return DIV_ROUND_CLOSEST(t, MILLIDEGREE_PER_DECIDEGREE); in millicelsius_to_deci_kelvin()
99 static inline long kelvin_to_celsius(long t) in kelvin_to_celsius() argument
101 return t + DIV_ROUND_CLOSEST(ABSOLUTE_ZERO_MILLICELSIUS, in kelvin_to_celsius()
105 static inline long celsius_to_kelvin(long t) in celsius_to_kelvin() argument
107 return t - DIV_ROUND_CLOSEST(ABSOLUTE_ZERO_MILLICELSIUS, in celsius_to_kelvin()