Lines Matching defs:ced
84 struct clock_event_device *ced)
86 struct timer_of *to = to_timer_of(ced);
97 static int ostm_shutdown(struct clock_event_device *ced)
99 struct timer_of *to = to_timer_of(ced);
105 static int ostm_set_periodic(struct clock_event_device *ced)
107 struct timer_of *to = to_timer_of(ced);
109 if (clockevent_state_oneshot(ced) || clockevent_state_periodic(ced))
119 static int ostm_set_oneshot(struct clock_event_device *ced)
121 struct timer_of *to = to_timer_of(ced);
130 struct clock_event_device *ced = dev_id;
132 if (clockevent_state_oneshot(ced))
133 ostm_timer_stop(to_timer_of(ced));
136 if (ced->event_handler)
137 ced->event_handler(ced);
144 struct clock_event_device *ced = &to->clkevt;
146 ced->features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_PERIODIC;
147 ced->set_state_shutdown = ostm_shutdown;
148 ced->set_state_periodic = ostm_set_periodic;
149 ced->set_state_oneshot = ostm_set_oneshot;
150 ced->set_next_event = ostm_clock_event_next;
151 ced->shift = 32;
152 ced->rating = 300;
153 ced->cpumask = cpumask_of(0);
154 clockevents_config_and_register(ced, timer_of_rate(to), 0xf,