Home
last modified time | relevance | path

Searched defs:IN_TO_REG (Results 1 – 19 of 19) sorted by relevance

/linux-6.15/drivers/hwmon/
H A Dlm80.c62 #define IN_TO_REG(val) (clamp_val(((val) + 5) / 10, 0, 255)) macro
H A Dadm1025.c82 #define IN_TO_REG(val, scale) ((val) <= 0 ? 0 : \ macro
H A Dgl518sm.c91 #define IN_TO_REG(val) DIV_ROUND_CLOSEST(IN_CLAMP(val), 19) macro
H A Dsmsc47m192.c65 static inline u8 IN_TO_REG(unsigned long val, int n) in IN_TO_REG() function
H A Dadm9240.c87 static inline u8 IN_TO_REG(unsigned long val, int n) in IN_TO_REG() function
H A Dw83l786ng.c94 #define IN_TO_REG(val) (clamp_val((((val) + 4) / 8), 0, 255)) macro
H A Dasb100.c102 static u8 IN_TO_REG(unsigned val) in IN_TO_REG() function
H A Dsis5595.c120 static inline u8 IN_TO_REG(unsigned long val) in IN_TO_REG() function
H A Dvia686a.c116 static inline u8 IN_TO_REG(long val, int in_num) in IN_TO_REG() function
H A Dlm78.c72 static inline u8 IN_TO_REG(unsigned long val) in IN_TO_REG() function
H A Dgl520sm.c203 #define IN_TO_REG(val) DIV_ROUND_CLOSEST(IN_CLAMP(val), 19) macro
H A Dlm87.c109 #define IN_TO_REG(val, scale) ((val) <= 0 ? 0 : \ macro
H A Dvt1211.c148 #define IN_TO_REG(ix, val) (clamp_val((ix) == 5 ? \ macro
H A Dw83791d.c210 #define IN_TO_REG(val) (clamp_val((((val) + 8) / 16), 0, 255)) macro
H A Dw83792d.c217 #define IN_TO_REG(nr, val) (((nr) <= 1) ? ((val) / 2) : \ macro
H A Dw83781d.c149 #define IN_TO_REG(val) clamp_val(((val) + 8) / 16, 0, 255) macro
H A Ddme1737.c267 static inline int IN_TO_REG(long val, int nominal) in IN_TO_REG() function
H A Dpc87360.c162 #define IN_TO_REG(val, ref) ((val) < 0 ? 0 : \ macro
H A Dw83627hf.c250 #define IN_TO_REG(val) (clamp_val((((val) + 8) / 16), 0, 255)) macro