Lines Matching refs:timer
80 #include <linux/timer.h>
1927 struct timer_list *timer;
1929 timer = context;
1933 callout_reset(&timer->callout, 1,
1934 &linux_timer_callback_wrapper, timer);
1938 timer->function(timer->data);
1942 mod_timer(struct timer_list *timer, int expires)
1946 timer->expires = expires;
1947 ret = callout_reset(&timer->callout,
1949 &linux_timer_callback_wrapper, timer);
1957 add_timer(struct timer_list *timer)
1960 callout_reset(&timer->callout,
1961 linux_timer_jiffies_until(timer->expires),
1962 &linux_timer_callback_wrapper, timer);
1966 add_timer_on(struct timer_list *timer, int cpu)
1969 callout_reset_on(&timer->callout,
1970 linux_timer_jiffies_until(timer->expires),
1971 &linux_timer_callback_wrapper, timer, cpu);
1975 del_timer(struct timer_list *timer)
1978 if (callout_stop(&(timer)->callout) == -1)
1984 del_timer_sync(struct timer_list *timer)
1987 if (callout_drain(&(timer)->callout) == -1)
2027 * avoid timer rounding problems when the tick value wraps