Searched defs:TEMP_TO_REG (Results 1 – 18 of 18) sorted by relevance
66 static inline s16 TEMP_TO_REG(long val, int resolution) in TEMP_TO_REG() function
77 #define TEMP_TO_REG(temp) (DIV_ROUND_CLOSEST(clamp_val((temp), \ macro
87 #define TEMP_TO_REG(val) ((val) <= -127500 ? -128 : \ macro
75 static inline s8 TEMP_TO_REG(long val) in TEMP_TO_REG() function
94 static inline s8 TEMP_TO_REG(long val) in TEMP_TO_REG() function
77 #define TEMP_TO_REG(val) (DIV_ROUND_CLOSEST(TEMP_CLAMP(val), 1000) + 119) macro
84 #define TEMP_TO_REG(val) (clamp_val(((val) < 0 ? (val) + 0x100 * 1000 \ macro
136 static u8 TEMP_TO_REG(long temp) in TEMP_TO_REG() function
97 static inline s8 TEMP_TO_REG(long val) in TEMP_TO_REG() function
499 #define TEMP_TO_REG(val) (DIV_ROUND_CLOSEST(TEMP_CLAMP(val), 1000) + 130) macro
114 #define TEMP_TO_REG(val) ((val) <= -127500 ? -128 : \ macro
548 #define TEMP_TO_REG(val) ((val) / 1000) macro
198 #define TEMP_TO_REG(val) (((val) < 0 ? ((val - 500) / 1000) : \ macro
146 #define TEMP_TO_REG(val) \ macro
199 static inline s8 TEMP_TO_REG(long val, s8 min, s8 max) in TEMP_TO_REG() function
179 #define TEMP_TO_REG(val) ((val) < -55000 ? -55 : \ macro
206 #define TEMP_TO_REG(val) DIV_ROUND_CLOSEST(clamp_val(val, -128000, 127000), \ macro
689 #define TEMP_TO_REG(val) (clamp_val(((val) < 0 ? (((val) - 500) / 1000) : \ macro