Home
last modified time | relevance | path

Searched refs:tach_div (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/hwmon/
H A Daspeed-pwm-tacho.c529 u32 raw_data, tach_div, clk_source, msec, usec, val; in aspeed_get_fan_tach_ch_rpm() local
559 tach_div = priv->type_fan_tach_clock_division[type]; in aspeed_get_fan_tach_ch_rpm()
567 tach_div = (0x4 << both) << (tach_div * 2); in aspeed_get_fan_tach_ch_rpm()
573 return (clk_source * 60) / (2 * raw_data * tach_div); in aspeed_get_fan_tach_ch_rpm()
/kernel/linux/linux-6.6/drivers/hwmon/
H A Daspeed-pwm-tacho.c528 u32 raw_data, tach_div, clk_source, msec, usec, val; in aspeed_get_fan_tach_ch_rpm() local
558 tach_div = priv->type_fan_tach_clock_division[type]; in aspeed_get_fan_tach_ch_rpm()
566 tach_div = (0x4 << both) << (tach_div * 2); in aspeed_get_fan_tach_ch_rpm()
572 return (clk_source * 60) / (2 * raw_data * tach_div); in aspeed_get_fan_tach_ch_rpm()

Completed in 4 milliseconds