Lines Matching refs:cd
176 struct clock_event_device *cd; in hpet_irq_handler() local
183 cd = &per_cpu(hpet_clockevent_device, cpu); in hpet_irq_handler()
184 cd->event_handler(cd); in hpet_irq_handler()
228 struct clock_event_device *cd; in setup_hpet_timer() local
232 cd = &per_cpu(hpet_clockevent_device, cpu); in setup_hpet_timer()
233 cd->name = "hpet"; in setup_hpet_timer()
234 cd->rating = 100; in setup_hpet_timer()
235 cd->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; in setup_hpet_timer()
236 cd->set_state_shutdown = hpet_set_state_shutdown; in setup_hpet_timer()
237 cd->set_state_periodic = hpet_set_state_periodic; in setup_hpet_timer()
238 cd->set_state_oneshot = hpet_set_state_oneshot; in setup_hpet_timer()
239 cd->tick_resume = hpet_tick_resume; in setup_hpet_timer()
240 cd->set_next_event = hpet_next_event; in setup_hpet_timer()
241 cd->irq = HPET_T0_IRQ; in setup_hpet_timer()
242 cd->cpumask = cpumask_of(cpu); in setup_hpet_timer()
243 clockevent_set_clock(cd, HPET_FREQ); in setup_hpet_timer()
244 cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd); in setup_hpet_timer()
245 cd->max_delta_ticks = 0x7fffffff; in setup_hpet_timer()
246 cd->min_delta_ns = clockevent_delta2ns(HPET_MIN_PROG_DELTA, cd); in setup_hpet_timer()
247 cd->min_delta_ticks = HPET_MIN_PROG_DELTA; in setup_hpet_timer()
249 clockevents_register_device(cd); in setup_hpet_timer()