Lines Matching refs:rate
38 long rate; in sp804_get_clock_rate() local
56 rate = clk_get_rate(clk); in sp804_get_clock_rate()
57 if (rate < 0) { in sp804_get_clock_rate()
58 pr_err("sp804: clock failed to get rate: %ld\n", rate); in sp804_get_clock_rate()
64 return rate; in sp804_get_clock_rate()
79 long rate; in __sp804_clocksource_and_sched_clock_init() local
90 rate = sp804_get_clock_rate(clk); in __sp804_clocksource_and_sched_clock_init()
92 if (rate < 0) in __sp804_clocksource_and_sched_clock_init()
103 rate, 200, 32, clocksource_mmio_readl_down); in __sp804_clocksource_and_sched_clock_init()
107 sched_clock_register(sp804_read, 32, rate); in __sp804_clocksource_and_sched_clock_init()
186 long rate; in __sp804_clockevents_init() local
196 rate = sp804_get_clock_rate(clk); in __sp804_clockevents_init()
197 if (rate < 0) in __sp804_clockevents_init()
201 clkevt_reload = DIV_ROUND_CLOSEST(rate, HZ); in __sp804_clockevents_init()
209 clockevents_config_and_register(evt, rate, 0xf, 0xffffffff); in __sp804_clockevents_init()