Lines Matching refs:timer

5  * This interface provides a timer which is similar to hrtimers,
8 * This interface is influenced by the Android RTC Alarm timer
37 * struct alarm_base - Alarm timer bases
61 /* rtc timer and device for setting alarm wakeups at suspend */
151 * alarmtimer_enqueue - Adds an alarm timer to an alarm_base timerqueue
152 * @base: pointer to the base where the timer is being run
169 * alarmtimer_dequeue - Removes an alarm timer from an alarm_base timerqueue
170 * @base: pointer to the base where the timer is running
189 * @timer: pointer to hrtimer being run
191 * When a alarm timer fires, this runs through the timerqueue to
194 * the next future alarm timer expires.
196 static enum hrtimer_restart alarmtimer_fired(struct hrtimer *timer)
198 struct alarm *alarm = container_of(timer, struct alarm, timer);
213 hrtimer_set_expires(&alarm->timer, alarm->node.expires);
237 * to see which is the soonest timer to expire. We then
238 * set an rtc timer to fire that far into the future, which
261 /* Find the soonest timer to expire*/
289 /* Setup an rtc timer to fire that far in the future */
295 * If the RTC alarm timer only supports a limited time offset, set the
340 alarm->timer.function = alarmtimer_fired;
355 hrtimer_init(&alarm->timer, alarm_bases[type].base_clockid,
374 hrtimer_start(&alarm->timer, alarm->node.expires, HRTIMER_MODE_ABS);
401 hrtimer_set_expires(&alarm->timer, alarm->node.expires);
402 hrtimer_restart(&alarm->timer);
409 * alarm_try_to_cancel - Tries to cancel an alarm timer
412 * Returns 1 if the timer was canceled, 0 if it was not running,
422 ret = hrtimer_try_to_cancel(&alarm->timer);
434 * alarm_cancel - Spins trying to cancel an alarm timer until it is done
437 * Returns 1 if the timer was canceled, 0 if it was not active.
445 hrtimer_cancel_wait_running(&alarm->timer);
564 * @now: time at the timer expiration
566 * Posix timer callback for expired alarm timers.
568 * Return: whether the timer is to be restarted
587 * Handle ignored signals and rearm the timer. This will go
602 * alarm_timer_rearm - Posix timer callback for rearming timer
614 * alarm_timer_forward - Posix timer callback for forwarding timer
616 * @now: Current time to forward the timer against
626 * alarm_timer_remaining - Posix timer callback to retrieve remaining time
638 * alarm_timer_try_to_cancel - Posix timer callback to cancel a timer
647 * alarm_timer_wait_running - Posix timer callback to wait for a timer
650 * Called from the core code when timer cancel detected that the callback
656 hrtimer_cancel_wait_running(&timr->it.alarm.alarmtimer.timer);
660 * alarm_timer_arm - Posix timer callback to arm a timer
664 * @sigev_none: Posix timer does not deliver signals
756 * @now: time at the timer expiration
779 * Sets the alarm timer and sleeps until it is fired or interrupted.
797 destroy_hrtimer_on_stack(&alarm->timer);
824 hrtimer_init_on_stack(&alarm->timer, alarm_bases[type].base_clockid,
937 * alarmtimer_init - Initialize alarm timer code