Lines Matching refs:ced
86 struct clock_event_device *ced) in ostm_clock_event_next() argument
88 struct timer_of *to = to_timer_of(ced); in ostm_clock_event_next()
99 static int ostm_shutdown(struct clock_event_device *ced) in ostm_shutdown() argument
101 struct timer_of *to = to_timer_of(ced); in ostm_shutdown()
107 static int ostm_set_periodic(struct clock_event_device *ced) in ostm_set_periodic() argument
109 struct timer_of *to = to_timer_of(ced); in ostm_set_periodic()
111 if (clockevent_state_oneshot(ced) || clockevent_state_periodic(ced)) in ostm_set_periodic()
121 static int ostm_set_oneshot(struct clock_event_device *ced) in ostm_set_oneshot() argument
123 struct timer_of *to = to_timer_of(ced); in ostm_set_oneshot()
132 struct clock_event_device *ced = dev_id; in ostm_timer_interrupt() local
134 if (clockevent_state_oneshot(ced)) in ostm_timer_interrupt()
135 ostm_timer_stop(to_timer_of(ced)); in ostm_timer_interrupt()
138 if (ced->event_handler) in ostm_timer_interrupt()
139 ced->event_handler(ced); in ostm_timer_interrupt()
146 struct clock_event_device *ced = &to->clkevt; in ostm_init_clkevt() local
148 ced->features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_PERIODIC; in ostm_init_clkevt()
149 ced->set_state_shutdown = ostm_shutdown; in ostm_init_clkevt()
150 ced->set_state_periodic = ostm_set_periodic; in ostm_init_clkevt()
151 ced->set_state_oneshot = ostm_set_oneshot; in ostm_init_clkevt()
152 ced->set_next_event = ostm_clock_event_next; in ostm_init_clkevt()
153 ced->shift = 32; in ostm_init_clkevt()
154 ced->rating = 300; in ostm_init_clkevt()
155 ced->cpumask = cpumask_of(0); in ostm_init_clkevt()
156 clockevents_config_and_register(ced, timer_of_rate(to), 0xf, in ostm_init_clkevt()