Searched refs:scale_pow (Results 1 – 1 of 1) sorted by relevance
85 unsigned long scale_pow; in pwm_sifive_update_clock() local95 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()