Lines Matching refs:evt

27 	struct clock_event_device	evt;  member
73 struct hpet_channel *clockevent_to_channel(struct clock_event_device *evt) in clockevent_to_channel() argument
75 return container_of(evt, struct hpet_channel, evt); in clockevent_to_channel()
298 static int hpet_clkevt_set_state_periodic(struct clock_event_device *evt) in hpet_clkevt_set_state_periodic() argument
300 unsigned int channel = clockevent_to_channel(evt)->num; in hpet_clkevt_set_state_periodic()
305 delta = ((uint64_t)(NSEC_PER_SEC / HZ)) * evt->mult; in hpet_clkevt_set_state_periodic()
306 delta >>= evt->shift; in hpet_clkevt_set_state_periodic()
329 static int hpet_clkevt_set_state_oneshot(struct clock_event_device *evt) in hpet_clkevt_set_state_oneshot() argument
331 unsigned int channel = clockevent_to_channel(evt)->num; in hpet_clkevt_set_state_oneshot()
342 static int hpet_clkevt_set_state_shutdown(struct clock_event_device *evt) in hpet_clkevt_set_state_shutdown() argument
344 unsigned int channel = clockevent_to_channel(evt)->num; in hpet_clkevt_set_state_shutdown()
354 static int hpet_clkevt_legacy_resume(struct clock_event_device *evt) in hpet_clkevt_legacy_resume() argument
362 hpet_clkevt_set_next_event(unsigned long delta, struct clock_event_device *evt) in hpet_clkevt_set_next_event() argument
364 unsigned int channel = clockevent_to_channel(evt)->num; in hpet_clkevt_set_next_event()
401 struct clock_event_device *evt = &hc->evt; in hpet_init_clockevent() local
403 evt->rating = rating; in hpet_init_clockevent()
404 evt->irq = hc->irq; in hpet_init_clockevent()
405 evt->name = hc->name; in hpet_init_clockevent()
406 evt->cpumask = cpumask_of(hc->cpu); in hpet_init_clockevent()
407 evt->set_state_oneshot = hpet_clkevt_set_state_oneshot; in hpet_init_clockevent()
408 evt->set_next_event = hpet_clkevt_set_next_event; in hpet_init_clockevent()
409 evt->set_state_shutdown = hpet_clkevt_set_state_shutdown; in hpet_init_clockevent()
411 evt->features = CLOCK_EVT_FEAT_ONESHOT; in hpet_init_clockevent()
413 evt->features |= CLOCK_EVT_FEAT_PERIODIC; in hpet_init_clockevent()
414 evt->set_state_periodic = hpet_clkevt_set_state_periodic; in hpet_init_clockevent()
428 hc->evt.tick_resume = hpet_clkevt_legacy_resume; in hpet_legacy_clockevent_register()
458 hc->evt.features |= CLOCK_EVT_FEAT_PERIODIC; in hpet_legacy_clockevent_register()
459 hc->evt.set_state_periodic = hpet_clkevt_set_state_periodic; in hpet_legacy_clockevent_register()
464 clockevents_config_and_register(&hc->evt, hpet_freq, in hpet_legacy_clockevent_register()
466 global_clock_event = &hc->evt; in hpet_legacy_clockevent_register()
602 static int hpet_clkevt_msi_resume(struct clock_event_device *evt) in hpet_clkevt_msi_resume() argument
604 struct hpet_channel *hc = clockevent_to_channel(evt); in hpet_clkevt_msi_resume()
618 struct clock_event_device *evt = &hc->evt; in hpet_msi_interrupt_handler() local
620 if (!evt->event_handler) { in hpet_msi_interrupt_handler()
625 evt->event_handler(evt); in hpet_msi_interrupt_handler()
648 struct clock_event_device *evt = &hc->evt; in init_one_hpet_msi_clockevent() local
655 evt->tick_resume = hpet_clkevt_msi_resume; in init_one_hpet_msi_clockevent()
657 clockevents_config_and_register(evt, hpet_freq, HPET_MIN_PROG_DELTA, in init_one_hpet_msi_clockevent()
1274 struct clock_event_device *evt = &hpet_base.channels[0].evt; in hpet_rtc_timer_init() local
1277 clc = (uint64_t) evt->mult * NSEC_PER_SEC; in hpet_rtc_timer_init()
1278 clc >>= evt->shift + DEFAULT_RTC_SHIFT; in hpet_rtc_timer_init()
1372 struct clock_event_device *evt = &hpet_base.channels[0].evt; in hpet_set_periodic_freq() local
1374 clc = (uint64_t) evt->mult * NSEC_PER_SEC; in hpet_set_periodic_freq()
1376 clc >>= evt->shift; in hpet_set_periodic_freq()