Home
last modified time | relevance | path

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

/linux/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 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 Dgl518sm.c91 #define IN_TO_REG(val) DIV_ROUND_CLOSEST(IN_CLAMP(val), 19) macro
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 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 Dw83792d.c217 #define IN_TO_REG(nr, val) (((nr) <= 1) ? ((val) / 2) : \ macro
H A Dw83791d.c210 #define IN_TO_REG(val) (clamp_val((((val) + 8) / 16), 0, 255)) macro
H A Dpc87360.c162 #define IN_TO_REG(val, ref) ((val) < 0 ? 0 : \ macro