Lines Matching refs:ced
30 struct clock_event_device ced; member
50 static struct ostm_device *ced_to_ostm(struct clock_event_device *ced) in ced_to_ostm() argument
52 return container_of(ced, struct ostm_device, ced); in ced_to_ostm()
100 struct clock_event_device *ced) in ostm_clock_event_next() argument
102 struct ostm_device *ostm = ced_to_ostm(ced); in ostm_clock_event_next()
113 static int ostm_shutdown(struct clock_event_device *ced) in ostm_shutdown() argument
115 struct ostm_device *ostm = ced_to_ostm(ced); in ostm_shutdown()
121 static int ostm_set_periodic(struct clock_event_device *ced) in ostm_set_periodic() argument
123 struct ostm_device *ostm = ced_to_ostm(ced); in ostm_set_periodic()
125 if (clockevent_state_oneshot(ced) || clockevent_state_periodic(ced)) in ostm_set_periodic()
135 static int ostm_set_oneshot(struct clock_event_device *ced) in ostm_set_oneshot() argument
137 struct ostm_device *ostm = ced_to_ostm(ced); in ostm_set_oneshot()
148 if (clockevent_state_oneshot(&ostm->ced)) in ostm_timer_interrupt()
152 if (ostm->ced.event_handler) in ostm_timer_interrupt()
153 ostm->ced.event_handler(&ostm->ced); in ostm_timer_interrupt()
161 struct clock_event_device *ced = &ostm->ced; in ostm_init_clkevt() local
172 ced->name = "ostm"; in ostm_init_clkevt()
173 ced->features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_PERIODIC; in ostm_init_clkevt()
174 ced->set_state_shutdown = ostm_shutdown; in ostm_init_clkevt()
175 ced->set_state_periodic = ostm_set_periodic; in ostm_init_clkevt()
176 ced->set_state_oneshot = ostm_set_oneshot; in ostm_init_clkevt()
177 ced->set_next_event = ostm_clock_event_next; in ostm_init_clkevt()
178 ced->shift = 32; in ostm_init_clkevt()
179 ced->rating = 300; in ostm_init_clkevt()
180 ced->cpumask = cpumask_of(0); in ostm_init_clkevt()
181 clockevents_config_and_register(ced, rate, 0xf, 0xffffffff); in ostm_init_clkevt()