Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/pwm/
Dpwm-meson.c165 unsigned int duty, period, pre_div, cnt, duty_cnt; in meson_pwm_calc() local
207 duty_cnt = div64_u64(fin_freq * (u64)duty, in meson_pwm_calc()
209 if (duty_cnt > 0xffff) { in meson_pwm_calc()
215 duty, pre_div, duty_cnt); in meson_pwm_calc()
218 channel->hi = duty_cnt; in meson_pwm_calc()
219 channel->lo = cnt - duty_cnt; in meson_pwm_calc()