Lines Matching refs:cd
70 static int sibyte_next_event(unsigned long delta, struct clock_event_device *cd) in sibyte_next_event() argument
88 struct clock_event_device *cd = dev_id; in sibyte_counter_handler() local
92 if (clockevent_state_periodic(cd)) in sibyte_counter_handler()
101 cd->event_handler(cd); in sibyte_counter_handler()
115 struct clock_event_device *cd = &per_cpu(sibyte_hpt_clockevent, cpu); in sb1480_clockevent_init() local
121 cd->name = name; in sb1480_clockevent_init()
122 cd->features = CLOCK_EVT_FEAT_PERIODIC | in sb1480_clockevent_init()
124 clockevent_set_clock(cd, V_SCD_TIMER_FREQ); in sb1480_clockevent_init()
125 cd->max_delta_ns = clockevent_delta2ns(0x7fffff, cd); in sb1480_clockevent_init()
126 cd->min_delta_ns = clockevent_delta2ns(2, cd); in sb1480_clockevent_init()
127 cd->rating = 200; in sb1480_clockevent_init()
128 cd->irq = irq; in sb1480_clockevent_init()
129 cd->cpumask = cpumask_of(cpu); in sb1480_clockevent_init()
130 cd->set_next_event = sibyte_next_event; in sb1480_clockevent_init()
131 cd->set_state_shutdown = sibyte_shutdown; in sb1480_clockevent_init()
132 cd->set_state_periodic = sibyte_set_periodic; in sb1480_clockevent_init()
133 cd->set_state_oneshot = sibyte_shutdown; in sb1480_clockevent_init()
134 clockevents_register_device(cd); in sb1480_clockevent_init()
150 action->dev_id = cd; in sb1480_clockevent_init()