Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/pwm/
Dpwm-atmel-hlcdc.c54 u64 clk_period_ns; in atmel_hlcdc_pwm_apply() local
63 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()
/Linux-v6.6/drivers/memory/
Datmel-ebi.c115 unsigned int clk_period_ns = NSEC_PER_SEC / clk_rate; in atmel_ebi_xslate_smc_timings() local
124 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()