Lines Matching refs:timer
124 static inline void internal_add_timer(struct timer_list *timer) in internal_add_timer() argument
129 unsigned long expires = timer->expires; in internal_add_timer()
157 INIT_LIST_HEAD(&timer->list); in internal_add_timer()
163 list_add(&timer->list, vec->prev); in internal_add_timer()
180 void add_timer(struct timer_list *timer) in add_timer() argument
185 if (timer_pending(timer)) in add_timer()
187 internal_add_timer(timer); in add_timer()
196 static inline int detach_timer (struct timer_list *timer) in detach_timer() argument
198 if (!timer_pending(timer)) in detach_timer()
200 list_del(&timer->list); in detach_timer()
204 int mod_timer(struct timer_list *timer, unsigned long expires) in mod_timer() argument
210 timer->expires = expires; in mod_timer()
211 ret = detach_timer(timer); in mod_timer()
212 internal_add_timer(timer); in mod_timer()
217 int del_timer(struct timer_list * timer) in del_timer() argument
223 ret = detach_timer(timer); in del_timer()
224 timer->list.next = timer->list.prev = NULL; in del_timer()
243 int del_timer_sync(struct timer_list * timer) in del_timer_sync() argument
252 ret += detach_timer(timer); in del_timer_sync()
253 timer->list.next = timer->list.prev = 0; in del_timer_sync()
254 running = timer_is_running(timer); in del_timer_sync()
260 timer_synchronize(timer); in del_timer_sync()
309 struct timer_list *timer; in run_timer_list() local
313 timer = list_entry(curr, struct timer_list, list); in run_timer_list()
314 fn = timer->function; in run_timer_list()
315 data= timer->data; in run_timer_list()
317 detach_timer(timer); in run_timer_list()
318 timer->list.next = timer->list.prev = NULL; in run_timer_list()
319 timer_enter(timer); in run_timer_list()
332 struct timer_list *timer; in run_timer_list() local
334 timer = list_entry(curr, struct timer_list, list); in run_timer_list()
336 internal_add_timer(timer); in run_timer_list()