Lines Matching refs:clksrc
53 struct clocksource clksrc; member
57 container_of(x, struct sun5i_timer_clksrc, clksrc)
156 static u64 sun5i_clksrc_read(struct clocksource *clksrc) in sun5i_clksrc_read() argument
158 struct sun5i_timer_clksrc *cs = to_sun5i_timer_clksrc(clksrc); in sun5i_clksrc_read()
172 clocksource_unregister(&cs->clksrc); in sun5i_rate_cb_clksrc()
176 clocksource_register_hz(&cs->clksrc, ndata->new_rate); in sun5i_rate_cb_clksrc()
226 cs->clksrc.name = node->name; in sun5i_setup_clocksource()
227 cs->clksrc.rating = 340; in sun5i_setup_clocksource()
228 cs->clksrc.read = sun5i_clksrc_read; in sun5i_setup_clocksource()
229 cs->clksrc.mask = CLOCKSOURCE_MASK(32); in sun5i_setup_clocksource()
230 cs->clksrc.flags = CLOCK_SOURCE_IS_CONTINUOUS; in sun5i_setup_clocksource()
232 ret = clocksource_register_hz(&cs->clksrc, rate); in sun5i_setup_clocksource()