Searched refs:clkevt (Results 1 – 7 of 7) sorted by relevance
| /linux-4.4.14/drivers/clocksource/ |
| D | timer-atmel-pit.c | 42 struct clock_event_device clkevt; member 57 static inline struct pit_data *clkevt_to_pit_data(struct clock_event_device *clkevt) in clkevt_to_pit_data() argument 59 return container_of(clkevt, struct pit_data, clkevt); in clkevt_to_pit_data() 159 if (clockevent_state_periodic(&data->clkevt) && in at91sam926x_pit_interrupt() 167 data->clkevt.event_handler(&data->clkevt); in at91sam926x_pit_interrupt() 217 data->clkevt.name = "pit"; in at91sam926x_pit_common_init() 218 data->clkevt.features = CLOCK_EVT_FEAT_PERIODIC; in at91sam926x_pit_common_init() 219 data->clkevt.shift = 32; in at91sam926x_pit_common_init() 220 data->clkevt.mult = div_sc(pit_rate, NSEC_PER_SEC, data->clkevt.shift); in at91sam926x_pit_common_init() 221 data->clkevt.rating = 100; in at91sam926x_pit_common_init() [all …]
|
| D | timer-sun5i.c | 60 struct clock_event_device clkevt; member 64 container_of(x, struct sun5i_timer_clkevt, clkevt) 106 static int sun5i_clkevt_shutdown(struct clock_event_device *clkevt) in sun5i_clkevt_shutdown() argument 108 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_shutdown() 114 static int sun5i_clkevt_set_oneshot(struct clock_event_device *clkevt) in sun5i_clkevt_set_oneshot() argument 116 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_set_oneshot() 123 static int sun5i_clkevt_set_periodic(struct clock_event_device *clkevt) in sun5i_clkevt_set_periodic() argument 125 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_set_periodic() 134 struct clock_event_device *clkevt) in sun5i_clkevt_next_event() argument 136 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_next_event() [all …]
|
| D | zevio-timer.c | 59 struct clock_event_device clkevt; member 70 clkevt); in zevio_timer_set_event() 82 clkevt); in zevio_timer_shutdown() 95 clkevt); in zevio_timer_set_oneshot() 115 if (timer->clkevt.event_handler) in zevio_timer_interrupt() 116 timer->clkevt.event_handler(&timer->clkevt); in zevio_timer_interrupt() 159 timer->clkevt.name = timer->clockevent_name; in zevio_timer_add() 160 timer->clkevt.set_next_event = zevio_timer_set_event; in zevio_timer_add() 161 timer->clkevt.set_state_shutdown = zevio_timer_shutdown; in zevio_timer_add() 162 timer->clkevt.set_state_oneshot = zevio_timer_set_oneshot; in zevio_timer_add() [all …]
|
| D | clps711x-timer.c | 67 struct clock_event_device *clkevt; in _clps711x_clkevt_init() local 77 clkevt = kzalloc(sizeof(*clkevt), GFP_KERNEL); in _clps711x_clkevt_init() 78 if (!clkevt) in _clps711x_clkevt_init() 86 clkevt->name = "clps711x-clockevent"; in _clps711x_clkevt_init() 87 clkevt->rating = 300; in _clps711x_clkevt_init() 88 clkevt->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_C3STOP; in _clps711x_clkevt_init() 89 clkevt->cpumask = cpumask_of(0); in _clps711x_clkevt_init() 90 clockevents_config_and_register(clkevt, HZ, 0, 0); in _clps711x_clkevt_init() 93 "clps711x-timer", clkevt); in _clps711x_clkevt_init()
|
| D | tcb_clksrc.c | 75 struct clock_event_device clkevt; member 80 static struct tc_clkevt_device *to_tc_clkevt(struct clock_event_device *clkevt) in to_tc_clkevt() argument 82 return container_of(clkevt, struct tc_clkevt_device, clkevt); in to_tc_clkevt() 163 static struct tc_clkevt_device clkevt = { variable 164 .clkevt = { 184 dev->clkevt.event_handler(&dev->clkevt); in ch2_irq() 210 clkevt.regs = tc->regs; in setup_clkevents() 211 clkevt.clk = t2_clk; in setup_clkevents() 215 clkevt.clkevt.cpumask = cpumask_of(0); in setup_clkevents() 217 ret = request_irq(irq, ch2_irq, IRQF_TIMER, "tc_clkevt", &clkevt); in setup_clkevents() [all …]
|
| D | timer-atmel-st.c | 35 static struct clock_event_device clkevt; variable 76 clkevt.event_handler(&clkevt); in at91rm9200_timer_interrupt() 86 clkevt.event_handler(&clkevt); in at91rm9200_timer_interrupt() 182 static struct clock_event_device clkevt = { variable 244 clkevt.cpumask = cpumask_of(0); in atmel_st_timer_init() 245 clockevents_config_and_register(&clkevt, sclk_rate, in atmel_st_timer_init()
|
| /linux-4.4.14/arch/arm/mach-spear/ |
| D | time.c | 146 static struct clock_event_device clkevt = { variable 175 struct clock_event_device *evt = &clkevt; in spear_timer_interrupt() 200 clkevt.cpumask = cpumask_of(0); in spear_clockevent_init() 202 clockevents_config_and_register(&clkevt, tick_rate, 3, 0xfff0); in spear_clockevent_init()
|