Lines Matching refs:clk
31 static struct clk *twd_clk;
40 static int twd_shutdown(struct clock_event_device *clk) in twd_shutdown() argument
46 static int twd_set_oneshot(struct clock_event_device *clk) in twd_set_oneshot() argument
54 static int twd_set_periodic(struct clock_event_device *clk) in twd_set_periodic() argument
97 struct clock_event_device *clk = raw_cpu_ptr(twd_evt); in twd_timer_stop() local
99 twd_shutdown(clk); in twd_timer_stop()
100 disable_percpu_irq(clk->irq); in twd_timer_stop()
274 struct clock_event_device *clk = raw_cpu_ptr(twd_evt); in twd_timer_setup() local
283 clockevents_register_device(clk); in twd_timer_setup()
284 enable_percpu_irq(clk->irq, 0); in twd_timer_setup()
297 clk->name = "local_timer"; in twd_timer_setup()
298 clk->features = twd_features; in twd_timer_setup()
299 clk->rating = 350; in twd_timer_setup()
300 clk->set_state_shutdown = twd_shutdown; in twd_timer_setup()
301 clk->set_state_periodic = twd_set_periodic; in twd_timer_setup()
302 clk->set_state_oneshot = twd_set_oneshot; in twd_timer_setup()
303 clk->tick_resume = twd_shutdown; in twd_timer_setup()
304 clk->set_next_event = twd_set_next_event; in twd_timer_setup()
305 clk->irq = twd_ppi; in twd_timer_setup()
306 clk->cpumask = cpumask_of(cpu); in twd_timer_setup()
308 clockevents_config_and_register(clk, twd_timer_rate, in twd_timer_setup()
310 enable_percpu_irq(clk->irq, 0); in twd_timer_setup()