Lines Matching defs:ced
33 struct clock_event_device ced;
76 static int jcore_pit_set_state_shutdown(struct clock_event_device *ced)
78 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced);
83 static int jcore_pit_set_state_oneshot(struct clock_event_device *ced)
85 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced);
90 static int jcore_pit_set_state_periodic(struct clock_event_device *ced)
92 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced);
98 struct clock_event_device *ced)
100 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced);
116 clockevents_config_and_register(&pit->ced, freq, 1, ULONG_MAX);
125 if (clockevent_state_oneshot(&pit->ced))
128 pit->ced.event_handler(&pit->ced);
224 pit->ced.name = "jcore_pit";
225 pit->ced.features = CLOCK_EVT_FEAT_PERIODIC
228 pit->ced.cpumask = cpumask_of(cpu);
229 pit->ced.rating = 400;
230 pit->ced.irq = pit_irq;
231 pit->ced.set_state_shutdown = jcore_pit_set_state_shutdown;
232 pit->ced.set_state_periodic = jcore_pit_set_state_periodic;
233 pit->ced.set_state_oneshot = jcore_pit_set_state_oneshot;
234 pit->ced.set_next_event = jcore_pit_set_next_event;