Lines Matching refs:cs
48 struct clocksource cs; member
53 #define to_pistachio_clocksource(cs) \ argument
54 container_of(cs, struct pistachio_clocksource, cs)
68 pistachio_clocksource_read_cycles(struct clocksource *cs) in pistachio_clocksource_read_cycles() argument
70 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clocksource_read_cycles()
90 return pistachio_clocksource_read_cycles(&pcs_gpt.cs); in pistachio_read_sched_clock()
93 static void pistachio_clksrc_set_mode(struct clocksource *cs, int timeridx, in pistachio_clksrc_set_mode() argument
96 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clksrc_set_mode()
108 static void pistachio_clksrc_enable(struct clocksource *cs, int timeridx) in pistachio_clksrc_enable() argument
110 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clksrc_enable()
113 pistachio_clksrc_set_mode(cs, timeridx, false); in pistachio_clksrc_enable()
115 pistachio_clksrc_set_mode(cs, timeridx, true); in pistachio_clksrc_enable()
118 static void pistachio_clksrc_disable(struct clocksource *cs, int timeridx) in pistachio_clksrc_disable() argument
121 pistachio_clksrc_set_mode(cs, timeridx, false); in pistachio_clksrc_disable()
124 static int pistachio_clocksource_enable(struct clocksource *cs) in pistachio_clocksource_enable() argument
126 pistachio_clksrc_enable(cs, 0); in pistachio_clocksource_enable()
130 static void pistachio_clocksource_disable(struct clocksource *cs) in pistachio_clocksource_disable() argument
132 pistachio_clksrc_disable(cs, 0); in pistachio_clocksource_disable()
137 .cs = {
213 return clocksource_register_hz(&pcs_gpt.cs, rate); in pistachio_clksrc_of_init()