Lines Matching refs:timer
27 * struct alarm - Alarm timer structure
31 * @function: Function pointer to be executed when the timer fires.
56 static inline int alarmtimer_active(const struct alarm *timer)
58 return timer->state != ALARMTIMER_STATE_INACTIVE;
62 * Helper function to check, whether the timer is on one of the queues
64 static inline int alarmtimer_is_queued(struct alarm *timer)
66 return timer->state & ALARMTIMER_STATE_ENQUEUED;
70 * Helper function to check, whether the timer is running the callback
73 static inline int alarmtimer_callback_running(struct alarm *timer)
75 return timer->state & ALARMTIMER_STATE_CALLBACK;