Lines Matching refs:ce
73 struct clock_event_device *ce = dev_id; in sirfsoc_timer_interrupt() local
79 if (ce->mode == CLOCK_EVT_MODE_ONESHOT) in sirfsoc_timer_interrupt()
82 ce->event_handler(ce); in sirfsoc_timer_interrupt()
102 struct clock_event_device *ce) in sirfsoc_timer_set_next_event() argument
121 struct clock_event_device *ce) in sirfsoc_timer_set_mode() argument
182 static int sirfsoc_local_timer_setup(struct clock_event_device *ce) in sirfsoc_local_timer_setup() argument
192 ce->irq = action->irq; in sirfsoc_local_timer_setup()
193 ce->name = "local_timer"; in sirfsoc_local_timer_setup()
194 ce->features = CLOCK_EVT_FEAT_ONESHOT; in sirfsoc_local_timer_setup()
195 ce->rating = 200; in sirfsoc_local_timer_setup()
196 ce->set_mode = sirfsoc_timer_set_mode; in sirfsoc_local_timer_setup()
197 ce->set_next_event = sirfsoc_timer_set_next_event; in sirfsoc_local_timer_setup()
198 clockevents_calc_mult_shift(ce, MARCO_CLOCK_FREQ, 60); in sirfsoc_local_timer_setup()
199 ce->max_delta_ns = clockevent_delta2ns(-2, ce); in sirfsoc_local_timer_setup()
200 ce->min_delta_ns = clockevent_delta2ns(2, ce); in sirfsoc_local_timer_setup()
201 ce->cpumask = cpumask_of(cpu); in sirfsoc_local_timer_setup()
203 action->dev_id = ce; in sirfsoc_local_timer_setup()
204 BUG_ON(setup_irq(ce->irq, action)); in sirfsoc_local_timer_setup()
207 clockevents_register_device(ce); in sirfsoc_local_timer_setup()
211 static void sirfsoc_local_timer_stop(struct clock_event_device *ce) in sirfsoc_local_timer_stop() argument