Lines Matching refs:cd
57 static int sibyte_next_event(unsigned long delta, struct clock_event_device *cd) in sibyte_next_event() argument
75 struct clock_event_device *cd = dev_id; in sibyte_counter_handler() local
79 if (clockevent_state_periodic(cd)) in sibyte_counter_handler()
88 cd->event_handler(cd); in sibyte_counter_handler()
100 struct clock_event_device *cd = &per_cpu(sibyte_hpt_clockevent, cpu); in sb1480_clockevent_init() local
107 cd->name = name; in sb1480_clockevent_init()
108 cd->features = CLOCK_EVT_FEAT_PERIODIC | in sb1480_clockevent_init()
110 clockevent_set_clock(cd, V_SCD_TIMER_FREQ); in sb1480_clockevent_init()
111 cd->max_delta_ns = clockevent_delta2ns(0x7fffff, cd); in sb1480_clockevent_init()
112 cd->max_delta_ticks = 0x7fffff; in sb1480_clockevent_init()
113 cd->min_delta_ns = clockevent_delta2ns(2, cd); in sb1480_clockevent_init()
114 cd->min_delta_ticks = 2; in sb1480_clockevent_init()
115 cd->rating = 200; in sb1480_clockevent_init()
116 cd->irq = irq; in sb1480_clockevent_init()
117 cd->cpumask = cpumask_of(cpu); in sb1480_clockevent_init()
118 cd->set_next_event = sibyte_next_event; in sb1480_clockevent_init()
119 cd->set_state_shutdown = sibyte_shutdown; in sb1480_clockevent_init()
120 cd->set_state_periodic = sibyte_set_periodic; in sb1480_clockevent_init()
121 cd->set_state_oneshot = sibyte_shutdown; in sb1480_clockevent_init()
122 clockevents_register_device(cd); in sb1480_clockevent_init()
136 if (request_irq(irq, sibyte_counter_handler, flags, name, cd)) in sb1480_clockevent_init()