Home
last modified time | relevance | path

Searched refs:scale_pow (Results 1 – 1 of 1) sorted by relevance

/drivers/pwm/
Dpwm-sifive.c85 unsigned long scale_pow; in pwm_sifive_update_clock() local
95 scale_pow = div64_ul(ddata->approx_period * (u64)rate, NSEC_PER_SEC); in pwm_sifive_update_clock()
96 scale = clamp(ilog2(scale_pow) - PWM_SIFIVE_CMPWIDTH, 0, 0xf); in pwm_sifive_update_clock()