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 (cd->mode == CLOCK_EVT_MODE_PERIODIC) 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 sb1250_clockevent_init() local
122 cd->name = name; in sb1250_clockevent_init()
123 cd->features = CLOCK_EVT_FEAT_PERIODIC | in sb1250_clockevent_init()
125 clockevent_set_clock(cd, V_SCD_TIMER_FREQ); in sb1250_clockevent_init()
126 cd->max_delta_ns = clockevent_delta2ns(0x7fffff, cd); in sb1250_clockevent_init()
127 cd->min_delta_ns = clockevent_delta2ns(2, cd); in sb1250_clockevent_init()
128 cd->rating = 200; in sb1250_clockevent_init()
129 cd->irq = irq; in sb1250_clockevent_init()
130 cd->cpumask = cpumask_of(cpu); in sb1250_clockevent_init()
131 cd->set_next_event = sibyte_next_event; in sb1250_clockevent_init()
132 cd->set_mode = sibyte_set_mode; in sb1250_clockevent_init()
133 clockevents_register_device(cd); in sb1250_clockevent_init()
149 action->dev_id = cd; in sb1250_clockevent_init()