• Home
  • Raw
  • Download

Lines Matching refs:cs

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