Lines Matching refs:ce
121 struct clock_event_device *ce = &timer_ce; in setup_timer_ce() local
125 ce->name = "timer_ce"; in setup_timer_ce()
126 ce->rating = 100; in setup_timer_ce()
127 ce->features = CLOCK_EVT_FEAT_PERIODIC; in setup_timer_ce()
128 ce->set_state_shutdown = timer_ce_shutdown; in setup_timer_ce()
129 ce->set_state_periodic = timer_ce_set_periodic; in setup_timer_ce()
130 ce->tick_resume = timer_ce_set_periodic; in setup_timer_ce()
131 ce->cpumask = cpu_possible_mask; in setup_timer_ce()
132 ce->shift = 32; in setup_timer_ce()
133 ce->mult = div_sc(sparc_config.clock_rate, NSEC_PER_SEC, in setup_timer_ce()
134 ce->shift); in setup_timer_ce()
135 clockevents_register_device(ce); in setup_timer_ce()
214 struct clock_event_device *ce = &per_cpu(sparc32_clockevent, cpu); in register_percpu_ce() local
220 ce->name = "percpu_ce"; in register_percpu_ce()
221 ce->rating = 200; in register_percpu_ce()
222 ce->features = features; in register_percpu_ce()
223 ce->set_state_shutdown = percpu_ce_shutdown; in register_percpu_ce()
224 ce->set_state_periodic = percpu_ce_set_periodic; in register_percpu_ce()
225 ce->set_state_oneshot = percpu_ce_shutdown; in register_percpu_ce()
226 ce->set_next_event = percpu_ce_set_next_event; in register_percpu_ce()
227 ce->cpumask = cpumask_of(cpu); in register_percpu_ce()
228 ce->shift = 32; in register_percpu_ce()
229 ce->mult = div_sc(sparc_config.clock_rate, NSEC_PER_SEC, in register_percpu_ce()
230 ce->shift); in register_percpu_ce()
231 ce->max_delta_ns = clockevent_delta2ns(sparc_config.clock_rate, ce); in register_percpu_ce()
232 ce->max_delta_ticks = (unsigned long)sparc_config.clock_rate; in register_percpu_ce()
233 ce->min_delta_ns = clockevent_delta2ns(100, ce); in register_percpu_ce()
234 ce->min_delta_ticks = 100; in register_percpu_ce()
236 clockevents_register_device(ce); in register_percpu_ce()