Lines Matching refs:evt
48 struct clock_event_device evt; member
58 return container_of(evtdev, struct hpet_dev, evt); in EVT_TO_HPET_DEV()
294 static int hpet_set_periodic(struct clock_event_device *evt, int timer) in hpet_set_periodic() argument
300 delta = ((uint64_t)(NSEC_PER_SEC / HZ)) * evt->mult; in hpet_set_periodic()
301 delta >>= evt->shift; in hpet_set_periodic()
324 static int hpet_set_oneshot(struct clock_event_device *evt, int timer) in hpet_set_oneshot() argument
336 static int hpet_shutdown(struct clock_event_device *evt, int timer) in hpet_shutdown() argument
347 static int hpet_resume(struct clock_event_device *evt, int timer) in hpet_resume() argument
352 struct hpet_dev *hdev = EVT_TO_HPET_DEV(evt); in hpet_resume()
365 struct clock_event_device *evt, int timer) in hpet_next_event() argument
401 static int hpet_legacy_shutdown(struct clock_event_device *evt) in hpet_legacy_shutdown() argument
403 return hpet_shutdown(evt, 0); in hpet_legacy_shutdown()
406 static int hpet_legacy_set_oneshot(struct clock_event_device *evt) in hpet_legacy_set_oneshot() argument
408 return hpet_set_oneshot(evt, 0); in hpet_legacy_set_oneshot()
411 static int hpet_legacy_set_periodic(struct clock_event_device *evt) in hpet_legacy_set_periodic() argument
413 return hpet_set_periodic(evt, 0); in hpet_legacy_set_periodic()
416 static int hpet_legacy_resume(struct clock_event_device *evt) in hpet_legacy_resume() argument
418 return hpet_resume(evt, 0); in hpet_legacy_resume()
422 struct clock_event_device *evt) in hpet_legacy_next_event() argument
424 return hpet_next_event(delta, evt, 0); in hpet_legacy_next_event()
487 static int hpet_msi_shutdown(struct clock_event_device *evt) in hpet_msi_shutdown() argument
489 struct hpet_dev *hdev = EVT_TO_HPET_DEV(evt); in hpet_msi_shutdown()
491 return hpet_shutdown(evt, hdev->num); in hpet_msi_shutdown()
494 static int hpet_msi_set_oneshot(struct clock_event_device *evt) in hpet_msi_set_oneshot() argument
496 struct hpet_dev *hdev = EVT_TO_HPET_DEV(evt); in hpet_msi_set_oneshot()
498 return hpet_set_oneshot(evt, hdev->num); in hpet_msi_set_oneshot()
501 static int hpet_msi_set_periodic(struct clock_event_device *evt) in hpet_msi_set_periodic() argument
503 struct hpet_dev *hdev = EVT_TO_HPET_DEV(evt); in hpet_msi_set_periodic()
505 return hpet_set_periodic(evt, hdev->num); in hpet_msi_set_periodic()
508 static int hpet_msi_resume(struct clock_event_device *evt) in hpet_msi_resume() argument
510 struct hpet_dev *hdev = EVT_TO_HPET_DEV(evt); in hpet_msi_resume()
512 return hpet_resume(evt, hdev->num); in hpet_msi_resume()
516 struct clock_event_device *evt) in hpet_msi_next_event() argument
518 struct hpet_dev *hdev = EVT_TO_HPET_DEV(evt); in hpet_msi_next_event()
519 return hpet_next_event(delta, evt, hdev->num); in hpet_msi_next_event()
525 struct clock_event_device *hevt = &dev->evt; in hpet_interrupt_handler()
558 struct clock_event_device *evt = &hdev->evt; in init_one_hpet_msi_clockevent() local
566 evt->name = hdev->name; in init_one_hpet_msi_clockevent()
568 evt->irq = hdev->irq; in init_one_hpet_msi_clockevent()
570 evt->rating = 110; in init_one_hpet_msi_clockevent()
571 evt->features = CLOCK_EVT_FEAT_ONESHOT; in init_one_hpet_msi_clockevent()
573 evt->features |= CLOCK_EVT_FEAT_PERIODIC; in init_one_hpet_msi_clockevent()
574 evt->set_state_periodic = hpet_msi_set_periodic; in init_one_hpet_msi_clockevent()
577 evt->set_state_shutdown = hpet_msi_shutdown; in init_one_hpet_msi_clockevent()
578 evt->set_state_oneshot = hpet_msi_set_oneshot; in init_one_hpet_msi_clockevent()
579 evt->tick_resume = hpet_msi_resume; in init_one_hpet_msi_clockevent()
580 evt->set_next_event = hpet_msi_next_event; in init_one_hpet_msi_clockevent()
581 evt->cpumask = cpumask_of(hdev->cpu); in init_one_hpet_msi_clockevent()
583 clockevents_config_and_register(evt, hpet_freq, HPET_MIN_PROG_DELTA, in init_one_hpet_msi_clockevent()