Lines Matching refs:ced
39 struct clock_event_device ced; member
59 static struct ostm_device *ced_to_ostm(struct clock_event_device *ced) in ced_to_ostm() argument
61 return container_of(ced, struct ostm_device, ced); in ced_to_ostm()
109 struct clock_event_device *ced) in ostm_clock_event_next() argument
111 struct ostm_device *ostm = ced_to_ostm(ced); in ostm_clock_event_next()
122 static int ostm_shutdown(struct clock_event_device *ced) in ostm_shutdown() argument
124 struct ostm_device *ostm = ced_to_ostm(ced); in ostm_shutdown()
130 static int ostm_set_periodic(struct clock_event_device *ced) in ostm_set_periodic() argument
132 struct ostm_device *ostm = ced_to_ostm(ced); in ostm_set_periodic()
134 if (clockevent_state_oneshot(ced) || clockevent_state_periodic(ced)) in ostm_set_periodic()
144 static int ostm_set_oneshot(struct clock_event_device *ced) in ostm_set_oneshot() argument
146 struct ostm_device *ostm = ced_to_ostm(ced); in ostm_set_oneshot()
157 if (clockevent_state_oneshot(&ostm->ced)) in ostm_timer_interrupt()
161 if (ostm->ced.event_handler) in ostm_timer_interrupt()
162 ostm->ced.event_handler(&ostm->ced); in ostm_timer_interrupt()
170 struct clock_event_device *ced = &ostm->ced; in ostm_init_clkevt() local
181 ced->name = "ostm"; in ostm_init_clkevt()
182 ced->features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_PERIODIC; in ostm_init_clkevt()
183 ced->set_state_shutdown = ostm_shutdown; in ostm_init_clkevt()
184 ced->set_state_periodic = ostm_set_periodic; in ostm_init_clkevt()
185 ced->set_state_oneshot = ostm_set_oneshot; in ostm_init_clkevt()
186 ced->set_next_event = ostm_clock_event_next; in ostm_init_clkevt()
187 ced->shift = 32; in ostm_init_clkevt()
188 ced->rating = 300; in ostm_init_clkevt()
189 ced->cpumask = cpumask_of(0); in ostm_init_clkevt()
190 clockevents_config_and_register(ced, rate, 0xf, 0xffffffff); in ostm_init_clkevt()