Lines Matching defs:cs
33 struct clocksource cs;
181 static struct em_sti_priv *cs_to_em_sti(struct clocksource *cs)
183 return container_of(cs, struct em_sti_priv, cs);
186 static u64 em_sti_clocksource_read(struct clocksource *cs)
188 return em_sti_count(cs_to_em_sti(cs));
191 static int em_sti_clocksource_enable(struct clocksource *cs)
193 struct em_sti_priv *p = cs_to_em_sti(cs);
198 static void em_sti_clocksource_disable(struct clocksource *cs)
200 em_sti_stop(cs_to_em_sti(cs), USER_CLOCKSOURCE);
203 static void em_sti_clocksource_resume(struct clocksource *cs)
205 em_sti_clocksource_enable(cs);
210 struct clocksource *cs = &p->cs;
212 cs->name = dev_name(&p->pdev->dev);
213 cs->rating = 200;
214 cs->read = em_sti_clocksource_read;
215 cs->enable = em_sti_clocksource_enable;
216 cs->disable = em_sti_clocksource_disable;
217 cs->suspend = em_sti_clocksource_disable;
218 cs->resume = em_sti_clocksource_resume;
219 cs->mask = CLOCKSOURCE_MASK(48);
220 cs->flags = CLOCK_SOURCE_IS_CONTINUOUS;
224 clocksource_register_hz(cs, p->rate);