Lines Matching refs:cs

45 	struct clocksource cs;  member
196 static struct em_sti_priv *cs_to_em_sti(struct clocksource *cs) in cs_to_em_sti() argument
198 return container_of(cs, struct em_sti_priv, cs); in cs_to_em_sti()
201 static cycle_t em_sti_clocksource_read(struct clocksource *cs) in em_sti_clocksource_read() argument
203 return em_sti_count(cs_to_em_sti(cs)); in em_sti_clocksource_read()
206 static int em_sti_clocksource_enable(struct clocksource *cs) in em_sti_clocksource_enable() argument
209 struct em_sti_priv *p = cs_to_em_sti(cs); in em_sti_clocksource_enable()
213 __clocksource_update_freq_hz(cs, p->rate); in em_sti_clocksource_enable()
217 static void em_sti_clocksource_disable(struct clocksource *cs) in em_sti_clocksource_disable() argument
219 em_sti_stop(cs_to_em_sti(cs), USER_CLOCKSOURCE); in em_sti_clocksource_disable()
222 static void em_sti_clocksource_resume(struct clocksource *cs) in em_sti_clocksource_resume() argument
224 em_sti_clocksource_enable(cs); in em_sti_clocksource_resume()
229 struct clocksource *cs = &p->cs; in em_sti_register_clocksource() local
231 cs->name = dev_name(&p->pdev->dev); in em_sti_register_clocksource()
232 cs->rating = 200; in em_sti_register_clocksource()
233 cs->read = em_sti_clocksource_read; in em_sti_register_clocksource()
234 cs->enable = em_sti_clocksource_enable; in em_sti_register_clocksource()
235 cs->disable = em_sti_clocksource_disable; in em_sti_register_clocksource()
236 cs->suspend = em_sti_clocksource_disable; in em_sti_register_clocksource()
237 cs->resume = em_sti_clocksource_resume; in em_sti_register_clocksource()
238 cs->mask = CLOCKSOURCE_MASK(48); in em_sti_register_clocksource()
239 cs->flags = CLOCK_SOURCE_IS_CONTINUOUS; in em_sti_register_clocksource()
244 clocksource_register_hz(cs, 1); in em_sti_register_clocksource()