Searched refs:fin_freq (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/pwm/ |
H A D | pwm-meson.c | 167 unsigned long fin_freq; in meson_pwm_calc() local 182 fin_freq = clk_get_rate(channel->clk); in meson_pwm_calc() 183 if (fin_freq == 0) { in meson_pwm_calc() 188 dev_dbg(meson->chip.dev, "fin_freq: %lu Hz\n", fin_freq); in meson_pwm_calc() 190 pre_div = div64_u64(fin_freq * period, NSEC_PER_SEC * 0xffffLL); in meson_pwm_calc() 196 cnt = div64_u64(fin_freq * period, NSEC_PER_SEC * (pre_div + 1)); in meson_pwm_calc() 215 duty_cnt = div64_u64(fin_freq * duty, NSEC_PER_SEC * (pre_div + 1)); in meson_pwm_calc() 322 unsigned long fin_freq; in meson_pwm_cnt_to_ns() local 328 fin_freq in meson_pwm_cnt_to_ns() [all...] |
/kernel/linux/linux-6.6/drivers/pwm/ |
H A D | pwm-meson.c | 151 unsigned long fin_freq; in meson_pwm_calc() local 170 fin_freq = clk_round_rate(channel->clk, freq); in meson_pwm_calc() 171 if (fin_freq == 0) { in meson_pwm_calc() 176 dev_dbg(meson->chip.dev, "fin_freq: %lu Hz\n", fin_freq); in meson_pwm_calc() 178 cnt = div_u64(fin_freq * period, NSEC_PER_SEC); in meson_pwm_calc() 193 duty_cnt = div_u64(fin_freq * duty, NSEC_PER_SEC); in meson_pwm_calc() 201 channel->rate = fin_freq; in meson_pwm_calc() 292 unsigned long fin_freq; in meson_pwm_cnt_to_ns() local 297 fin_freq in meson_pwm_cnt_to_ns() [all...] |
Completed in 2 milliseconds