Lines Matching defs:timer
48 struct timer_list *timer;
50 timer = context;
51 timer->function(timer->data);
54 #define setup_timer(timer, func, dat) \
56 (timer)->function = (func); \
57 (timer)->data = (dat); \
58 callout_init(&(timer)->timer_callout, CALLOUT_MPSAFE); \
61 #define init_timer(timer) \
63 (timer)->function = NULL; \
64 (timer)->data = 0; \
65 callout_init(&(timer)->timer_callout, CALLOUT_MPSAFE); \
68 #define mod_timer(timer, expire) \
69 callout_reset(&(timer)->timer_callout, (expire) - jiffies, \
70 _timer_fn, (timer))
72 #define add_timer(timer) \
73 callout_reset(&(timer)->timer_callout, \
74 (timer)->timer_callout.c_time - jiffies, _timer_fn, (timer))
76 #define del_timer(timer) callout_stop(&(timer)->timer_callout)
77 #define del_timer_sync(timer) callout_drain(&(timer)->timer_callout)
79 #define timer_pending(timer) callout_pending(&(timer)->timer_callout)