Lines Matching refs:cs

109 	struct clocksource cs;  member
610 static struct sh_cmt_channel *cs_to_sh_cmt(struct clocksource *cs) in cs_to_sh_cmt() argument
612 return container_of(cs, struct sh_cmt_channel, cs); in cs_to_sh_cmt()
615 static cycle_t sh_cmt_clocksource_read(struct clocksource *cs) in sh_cmt_clocksource_read() argument
617 struct sh_cmt_channel *ch = cs_to_sh_cmt(cs); in sh_cmt_clocksource_read()
633 static int sh_cmt_clocksource_enable(struct clocksource *cs) in sh_cmt_clocksource_enable() argument
636 struct sh_cmt_channel *ch = cs_to_sh_cmt(cs); in sh_cmt_clocksource_enable()
644 __clocksource_update_freq_hz(cs, ch->rate); in sh_cmt_clocksource_enable()
650 static void sh_cmt_clocksource_disable(struct clocksource *cs) in sh_cmt_clocksource_disable() argument
652 struct sh_cmt_channel *ch = cs_to_sh_cmt(cs); in sh_cmt_clocksource_disable()
660 static void sh_cmt_clocksource_suspend(struct clocksource *cs) in sh_cmt_clocksource_suspend() argument
662 struct sh_cmt_channel *ch = cs_to_sh_cmt(cs); in sh_cmt_clocksource_suspend()
671 static void sh_cmt_clocksource_resume(struct clocksource *cs) in sh_cmt_clocksource_resume() argument
673 struct sh_cmt_channel *ch = cs_to_sh_cmt(cs); in sh_cmt_clocksource_resume()
685 struct clocksource *cs = &ch->cs; in sh_cmt_register_clocksource() local
687 cs->name = name; in sh_cmt_register_clocksource()
688 cs->rating = 125; in sh_cmt_register_clocksource()
689 cs->read = sh_cmt_clocksource_read; in sh_cmt_register_clocksource()
690 cs->enable = sh_cmt_clocksource_enable; in sh_cmt_register_clocksource()
691 cs->disable = sh_cmt_clocksource_disable; in sh_cmt_register_clocksource()
692 cs->suspend = sh_cmt_clocksource_suspend; in sh_cmt_register_clocksource()
693 cs->resume = sh_cmt_clocksource_resume; in sh_cmt_register_clocksource()
694 cs->mask = CLOCKSOURCE_MASK(sizeof(unsigned long) * 8); in sh_cmt_register_clocksource()
695 cs->flags = CLOCK_SOURCE_IS_CONTINUOUS; in sh_cmt_register_clocksource()
701 clocksource_register_hz(cs, 1); in sh_cmt_register_clocksource()