Searched refs:IN_CLAMP (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | gl518sm.c | 90 #define IN_CLAMP(val) clamp_val(val, 0, 255 * 19) macro 91 #define IN_TO_REG(val) DIV_ROUND_CLOSEST(IN_CLAMP(val), 19)
|
H A D | gl520sm.c | 202 #define IN_CLAMP(val) clamp_val(val, 0, 255 * 19) macro 203 #define IN_TO_REG(val) DIV_ROUND_CLOSEST(IN_CLAMP(val), 19)
|
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | gl518sm.c | 90 #define IN_CLAMP(val) clamp_val(val, 0, 255 * 19) macro 91 #define IN_TO_REG(val) DIV_ROUND_CLOSEST(IN_CLAMP(val), 19)
|
H A D | gl520sm.c | 202 #define IN_CLAMP(val) clamp_val(val, 0, 255 * 19) macro 203 #define IN_TO_REG(val) DIV_ROUND_CLOSEST(IN_CLAMP(val), 19)
|
Completed in 5 milliseconds