Lines Matching refs:cs

51 	struct clocksource cs;  member
56 #define to_pistachio_clocksource(cs) \ argument
57 container_of(cs, struct pistachio_clocksource, cs)
71 pistachio_clocksource_read_cycles(struct clocksource *cs) in pistachio_clocksource_read_cycles() argument
73 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clocksource_read_cycles()
92 return pistachio_clocksource_read_cycles(&pcs_gpt.cs); in pistachio_read_sched_clock()
95 static void pistachio_clksrc_set_mode(struct clocksource *cs, int timeridx, in pistachio_clksrc_set_mode() argument
98 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clksrc_set_mode()
110 static void pistachio_clksrc_enable(struct clocksource *cs, int timeridx) in pistachio_clksrc_enable() argument
112 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clksrc_enable()
115 pistachio_clksrc_set_mode(cs, timeridx, false); in pistachio_clksrc_enable()
117 pistachio_clksrc_set_mode(cs, timeridx, true); in pistachio_clksrc_enable()
120 static void pistachio_clksrc_disable(struct clocksource *cs, int timeridx) in pistachio_clksrc_disable() argument
123 pistachio_clksrc_set_mode(cs, timeridx, false); in pistachio_clksrc_disable()
126 static int pistachio_clocksource_enable(struct clocksource *cs) in pistachio_clocksource_enable() argument
128 pistachio_clksrc_enable(cs, 0); in pistachio_clocksource_enable()
132 static void pistachio_clocksource_disable(struct clocksource *cs) in pistachio_clocksource_disable() argument
134 pistachio_clksrc_disable(cs, 0); in pistachio_clocksource_disable()
139 .cs = {
215 return clocksource_register_hz(&pcs_gpt.cs, rate); in pistachio_clksrc_of_init()