Searched refs:DIV_TO_REG (Results 1 – 7 of 7) sorted by relevance
114 #define DIV_TO_REG(divisor) (ilog2(divisor) >> 1) macro 346 DIV_TO_REG(val) > 0xb) in aspeed_tach_hwmon_write() 352 DIV_TO_REG(priv->tach_divisor)); in aspeed_tach_hwmon_write() 419 DIV_TO_REG(priv->tach_divisor)); in aspeed_present_fan_tach()
100 DIV_TO_REG(long val) in DIV_TO_REG() function 352 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) macro 621 data->fan_div[nr] = DIV_TO_REG(val); in fan_div_store()
169 static u8 DIV_TO_REG(long val) in DIV_TO_REG() function 357 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()
248 DIV_TO_REG(long val) in DIV_TO_REG() function 468 data->fan_div[nr] = DIV_TO_REG(val); in store_fan_div()
334 static inline u8 DIV_TO_REG(long val) in DIV_TO_REG() function 1179 data->fan_div[nr] = DIV_TO_REG(val); in fan_div_store()
709 static int DIV_TO_REG(int val) in DIV_TO_REG() function 1462 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()