Lines Matching refs:cd
72 static int sibyte_next_event(unsigned long delta, struct clock_event_device *cd) in sibyte_next_event() argument
90 struct clock_event_device *cd = dev_id; in sibyte_counter_handler() local
94 if (cd->mode == CLOCK_EVT_MODE_PERIODIC) in sibyte_counter_handler()
103 cd->event_handler(cd); in sibyte_counter_handler()
117 struct clock_event_device *cd = &per_cpu(sibyte_hpt_clockevent, cpu); in sb1480_clockevent_init() local
123 cd->name = name; in sb1480_clockevent_init()
124 cd->features = CLOCK_EVT_FEAT_PERIODIC | in sb1480_clockevent_init()
126 clockevent_set_clock(cd, V_SCD_TIMER_FREQ); in sb1480_clockevent_init()
127 cd->max_delta_ns = clockevent_delta2ns(0x7fffff, cd); in sb1480_clockevent_init()
128 cd->min_delta_ns = clockevent_delta2ns(2, cd); in sb1480_clockevent_init()
129 cd->rating = 200; in sb1480_clockevent_init()
130 cd->irq = irq; in sb1480_clockevent_init()
131 cd->cpumask = cpumask_of(cpu); in sb1480_clockevent_init()
132 cd->set_next_event = sibyte_next_event; in sb1480_clockevent_init()
133 cd->set_mode = sibyte_set_mode; in sb1480_clockevent_init()
134 clockevents_register_device(cd); in sb1480_clockevent_init()
150 action->dev_id = cd; in sb1480_clockevent_init()