Lines Matching defs:ced
36 struct clock_event_device ced;
79 static int jcore_pit_set_state_shutdown(struct clock_event_device *ced)
81 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced);
86 static int jcore_pit_set_state_oneshot(struct clock_event_device *ced)
88 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced);
93 static int jcore_pit_set_state_periodic(struct clock_event_device *ced)
95 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced);
101 struct clock_event_device *ced)
103 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced);
119 clockevents_config_and_register(&pit->ced, freq, 1, ULONG_MAX);
128 if (clockevent_state_oneshot(&pit->ced))
131 pit->ced.event_handler(&pit->ced);
227 pit->ced.name = "jcore_pit";
228 pit->ced.features = CLOCK_EVT_FEAT_PERIODIC
231 pit->ced.cpumask = cpumask_of(cpu);
232 pit->ced.rating = 400;
233 pit->ced.irq = pit_irq;
234 pit->ced.set_state_shutdown = jcore_pit_set_state_shutdown;
235 pit->ced.set_state_periodic = jcore_pit_set_state_periodic;
236 pit->ced.set_state_oneshot = jcore_pit_set_state_oneshot;
237 pit->ced.set_next_event = jcore_pit_set_next_event;