Lines Matching refs:ce
61 struct clock_event_device ce; member
67 static struct digicolor_timer *dc_timer(struct clock_event_device *ce) in dc_timer() argument
69 return container_of(ce, struct digicolor_timer, ce); in dc_timer()
72 static inline void dc_timer_disable(struct clock_event_device *ce) in dc_timer_disable() argument
74 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_disable()
78 static inline void dc_timer_enable(struct clock_event_device *ce, u32 mode) in dc_timer_enable() argument
80 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_enable()
84 static inline void dc_timer_set_count(struct clock_event_device *ce, in dc_timer_set_count() argument
87 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_set_count()
91 static int digicolor_clkevt_shutdown(struct clock_event_device *ce) in digicolor_clkevt_shutdown() argument
93 dc_timer_disable(ce); in digicolor_clkevt_shutdown()
97 static int digicolor_clkevt_set_oneshot(struct clock_event_device *ce) in digicolor_clkevt_set_oneshot() argument
99 dc_timer_disable(ce); in digicolor_clkevt_set_oneshot()
100 dc_timer_enable(ce, CONTROL_MODE_ONESHOT); in digicolor_clkevt_set_oneshot()
104 static int digicolor_clkevt_set_periodic(struct clock_event_device *ce) in digicolor_clkevt_set_periodic() argument
106 struct digicolor_timer *dt = dc_timer(ce); in digicolor_clkevt_set_periodic()
108 dc_timer_disable(ce); in digicolor_clkevt_set_periodic()
109 dc_timer_set_count(ce, dt->ticks_per_jiffy); in digicolor_clkevt_set_periodic()
110 dc_timer_enable(ce, CONTROL_MODE_PERIODIC); in digicolor_clkevt_set_periodic()
115 struct clock_event_device *ce) in digicolor_clkevt_next_event() argument
117 dc_timer_disable(ce); in digicolor_clkevt_next_event()
118 dc_timer_set_count(ce, evt); in digicolor_clkevt_next_event()
119 dc_timer_enable(ce, CONTROL_MODE_ONESHOT); in digicolor_clkevt_next_event()
125 .ce = {
193 &dc_timer_dev.ce); in digicolor_timer_init()
199 dc_timer_dev.ce.cpumask = cpu_possible_mask; in digicolor_timer_init()
200 dc_timer_dev.ce.irq = irq; in digicolor_timer_init()
202 clockevents_config_and_register(&dc_timer_dev.ce, rate, 0, 0xffffffff); in digicolor_timer_init()