Searched refs:DIV_TO_REG (Results 1 – 10 of 10) sorted by relevance
114 #define DIV_TO_REG(divisor) (ilog2(divisor) >> 1) macro347 DIV_TO_REG(val) > 0xb) in aspeed_tach_hwmon_write()353 DIV_TO_REG(priv->tach_divisor)); in aspeed_tach_hwmon_write()420 DIV_TO_REG(priv->tach_divisor)); in aspeed_present_fan_tach()
203 #define DIV_TO_REG(val) ((val) >= 8 ? 3 : (val) >= 4 ? 2 : (val) >= 2 ? 1 : 0) macro754 new_div = DIV_TO_REG(val); in fan_div_store()762 (DIV_TO_REG(data->fan_div[0]) << 0) | in fan_div_store()763 (DIV_TO_REG(data->fan_div[1]) << 2) | in fan_div_store()764 (DIV_TO_REG(data->fan_div[2]) << 4) | in fan_div_store()765 (DIV_TO_REG(data->fan_div[3]) << 6)); in fan_div_store()768 (DIV_TO_REG(data->fan_div[4]) << 0) | in fan_div_store()769 (DIV_TO_REG(data->fan_div[5]) << 2) | in fan_div_store()770 (DIV_TO_REG(data->fan_div[6]) << 4) | in fan_div_store()771 (DIV_TO_REG(data->fan_div[7]) << 6)); in fan_div_store()
100 DIV_TO_REG(long val) in DIV_TO_REG() function352 data->fan_div[nr] = DIV_TO_REG(val); in store_fan_div()
298 #define DIV_TO_REG(val) ((val) == 8 ? 3 : (val) == 4 ? 2 : (val) == 1 ? 0 : 1) macro621 data->fan_div[nr] = DIV_TO_REG(val); in fan_div_store()
169 static u8 DIV_TO_REG(long val) in DIV_TO_REG() function357 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()
248 DIV_TO_REG(long val) in DIV_TO_REG() function468 data->fan_div[nr] = DIV_TO_REG(val); in store_fan_div()
159 static inline u8 DIV_TO_REG(int val) in DIV_TO_REG() function
182 DIV_TO_REG(long val, enum chips type) in DIV_TO_REG() function656 data->fan_div[nr] = DIV_TO_REG(val, data->type); in store_fan_div()
334 static inline u8 DIV_TO_REG(long val) in DIV_TO_REG() function1179 data->fan_div[nr] = DIV_TO_REG(val); in fan_div_store()
708 static int DIV_TO_REG(int val) in DIV_TO_REG() function1461 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()