Home
last modified time | relevance | path

Searched defs:TEMP_TO_REG (Results 1 – 24 of 24) sorted by relevance

/openbmc/linux/drivers/hwmon/
H A Dlm92.c69 static inline s16 TEMP_TO_REG(long val) in TEMP_TO_REG() function
H A Dlm80.c77 #define TEMP_TO_REG(temp) (DIV_ROUND_CLOSEST(clamp_val((temp), \ macro
H A Dadm1025.c87 #define TEMP_TO_REG(val) ((val) <= -127500 ? -128 : \ macro
H A Dgl518sm.c77 #define TEMP_TO_REG(val) (DIV_ROUND_CLOSEST(TEMP_CLAMP(val), 1000) + 119) macro
H A Dadm9240.c94 static inline s8 TEMP_TO_REG(long val) in TEMP_TO_REG() function
H A Dsmsc47m192.c75 static inline s8 TEMP_TO_REG(long val) in TEMP_TO_REG() function
H A Dw83l786ng.c84 #define TEMP_TO_REG(val) (clamp_val(((val) < 0 ? (val) + 0x100 * 1000 \ macro
H A Dasb100.c136 static u8 TEMP_TO_REG(long temp) in TEMP_TO_REG() function
H A Dsis5595.c149 static inline s8 TEMP_TO_REG(long val) in TEMP_TO_REG() function
H A Dvia686a.c273 static inline u8 TEMP_TO_REG(long val) in TEMP_TO_REG() function
H A Dlm78.c97 static inline s8 TEMP_TO_REG(long val) in TEMP_TO_REG() function
H A Df75375s.c573 #define TEMP_TO_REG(val) ((val) / 1000) macro
H A Dgl520sm.c499 #define TEMP_TO_REG(val) (DIV_ROUND_CLOSEST(TEMP_CLAMP(val), 1000) + 130) macro
H A Dlm87.c114 #define TEMP_TO_REG(val) ((val) <= -127500 ? -128 : \ macro
H A Dvt1211.c163 #define TEMP_TO_REG(ix, val) clamp_val( \ macro
H A Dadm1031.c198 #define TEMP_TO_REG(val) (((val) < 0 ? ((val - 500) / 1000) : \ macro
H A Dw83781d.c171 #define TEMP_TO_REG(val) clamp_val((val) / 1000, -127, 128) macro
H A Dw83793.c199 static inline s8 TEMP_TO_REG(long val, s8 min, s8 max) in TEMP_TO_REG() function
H A Dw83627hf.c268 static u8 TEMP_TO_REG(long temp) in TEMP_TO_REG() function
H A Dlm85.c146 #define TEMP_TO_REG(val) \ macro
H A Dpc87360.c179 #define TEMP_TO_REG(val) ((val) < -55000 ? -55 : \ macro
H A Ddme1737.c284 static inline int TEMP_TO_REG(long val) in TEMP_TO_REG() function
H A Dadm1026.c206 #define TEMP_TO_REG(val) DIV_ROUND_CLOSEST(clamp_val(val, -128000, 127000), \ macro
H A Dit87.c688 #define TEMP_TO_REG(val) (clamp_val(((val) < 0 ? (((val) - 500) / 1000) : \ macro