Lines Matching defs:freq
179 static int __init ftm_clockevent_init(unsigned long freq, int irq)
199 freq / (1 << priv->ps),
207 static int __init ftm_clocksource_init(unsigned long freq)
216 sched_clock_register(ftm_read_sched_clock, 16, freq / (1 << priv->ps));
218 freq / (1 << priv->ps), 300, 16,
263 long freq;
265 freq = __ftm_clk_init(np, "ftm-evt-counter-en", "ftm-evt");
266 if (freq <= 0)
269 freq = __ftm_clk_init(np, "ftm-src-counter-en", "ftm-src");
270 if (freq <= 0)
273 return freq;
276 static int __init ftm_calc_closest_round_cyc(unsigned long freq)
281 * if the 'freq' value is to big here, then the periodic_cyc
285 priv->periodic_cyc = DIV_ROUND_CLOSEST(freq,
300 unsigned long freq;
329 freq = ftm_clk_init(np);
330 if (!freq)
333 ret = ftm_calc_closest_round_cyc(freq);
337 ret = ftm_clocksource_init(freq);
341 ret = ftm_clockevent_init(freq, irq);