Searched refs:clk_period_ns (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/pwm/
H A Dpwm-atmel-hlcdc.c61 u64 clk_period_ns; atmel_hlcdc_pwm_config() local
70 clk_period_ns = (u64)NSEC_PER_SEC * 256; atmel_hlcdc_pwm_config()
71 do_div(clk_period_ns, clk_freq); atmel_hlcdc_pwm_config()
76 clk_period_ns > period_ns) { atmel_hlcdc_pwm_config()
82 clk_period_ns = (u64)NSEC_PER_SEC * 256; atmel_hlcdc_pwm_config()
83 do_div(clk_period_ns, clk_freq); atmel_hlcdc_pwm_config()
91 if ((clk_period_ns << pres) >= period_ns) atmel_hlcdc_pwm_config()

Completed in 167 milliseconds