Lines Matching refs:cd
118 struct clock_event_device *cd = devid; in ls1x_clockevent_isr() local
121 cd->event_handler(cd); in ls1x_clockevent_isr()
126 static int ls1x_clockevent_set_state_periodic(struct clock_event_device *cd) in ls1x_clockevent_set_state_periodic() argument
137 static int ls1x_clockevent_tick_resume(struct clock_event_device *cd) in ls1x_clockevent_tick_resume() argument
146 static int ls1x_clockevent_set_state_shutdown(struct clock_event_device *cd) in ls1x_clockevent_set_state_shutdown() argument
157 struct clock_event_device *cd) in ls1x_clockevent_set_next() argument
188 struct clock_event_device *cd = &ls1x_clockevent; in ls1x_time_init() local
196 clockevent_set_clock(cd, mips_hpt_frequency); in ls1x_time_init()
197 cd->max_delta_ns = clockevent_delta2ns(0xffffff, cd); in ls1x_time_init()
198 cd->max_delta_ticks = 0xffffff; in ls1x_time_init()
199 cd->min_delta_ns = clockevent_delta2ns(0x000300, cd); in ls1x_time_init()
200 cd->min_delta_ticks = 0x000300; in ls1x_time_init()
201 cd->cpumask = cpumask_of(smp_processor_id()); in ls1x_time_init()
202 clockevents_register_device(cd); in ls1x_time_init()