Lines Matching refs:fin
151 uint32_t perc, pulc, ps1, cnt_on, cnt_off, cfg, fin, fpwm, flags; in prog_pwm_fd() local
154 fin = MEC5_PWM_FIN_HIGH; in prog_pwm_fd()
158 fpwm = fin / perc; in prog_pwm_fd()
160 fin = mec_hal_pcr_slow_clock_freq_get(); in prog_pwm_fd()
161 if (!fin) { /* slow clock turned off! */ in prog_pwm_fd()
165 perc = (uint32_t)(((uint64_t)fin * (uint64_t)period_cycles) / MEC5_PWM_FIN_HIGH); in prog_pwm_fd()
166 pulc = (uint32_t)(((uint64_t)fin * (uint64_t)pulse_cycles) / MEC5_PWM_FIN_HIGH); in prog_pwm_fd()
363 uint32_t fin = MEC5_PWM_FIN_HIGH; in mec_hal_pwm_get_freq_in() local
366 fin = mec_hal_pcr_slow_clock_freq_get(); in mec_hal_pwm_get_freq_in()
369 return fin; in mec_hal_pwm_get_freq_in()
383 uint32_t fin = MEC5_PWM_FIN_HIGH; in mec_hal_pwm_get_freq_out() local
387 fin = mec_hal_pcr_slow_clock_freq_get(); in mec_hal_pwm_get_freq_out()
390 if (!fin) { in mec_hal_pwm_get_freq_out()
399 fpwm = fin / (ps * (cnt_on + cnt_off)); in mec_hal_pwm_get_freq_out()