Searched refs:clk_period_ns (Results 1 – 2 of 2) sorted by relevance
54 u64 clk_period_ns; in atmel_hlcdc_pwm_apply() local63 clk_period_ns = (u64)NSEC_PER_SEC * 256; in atmel_hlcdc_pwm_apply()64 do_div(clk_period_ns, clk_freq); in atmel_hlcdc_pwm_apply()69 clk_period_ns > state->period) { in atmel_hlcdc_pwm_apply()75 clk_period_ns = (u64)NSEC_PER_SEC * 256; in atmel_hlcdc_pwm_apply()76 do_div(clk_period_ns, clk_freq); in atmel_hlcdc_pwm_apply()85 if ((clk_period_ns << pres) >= state->period) in atmel_hlcdc_pwm_apply()
115 unsigned int clk_period_ns = NSEC_PER_SEC / clk_rate; in atmel_ebi_xslate_smc_timings() local124 ncycles = DIV_ROUND_UP(val, clk_period_ns); in atmel_ebi_xslate_smc_timings()154 ncycles = DIV_ROUND_UP(val, clk_period_ns); in atmel_ebi_xslate_smc_timings()