Lines Matching refs:expires
567 static inline unsigned calc_index(unsigned long expires, unsigned lvl, in calc_index() argument
579 expires = (expires >> LVL_SHIFT(lvl)) + 1; in calc_index()
580 *bucket_expiry = expires << LVL_SHIFT(lvl); in calc_index()
581 return LVL_OFFS(lvl) + (expires & LVL_MASK); in calc_index()
584 static int calc_wheel_index(unsigned long expires, unsigned long clk, in calc_wheel_index() argument
587 unsigned long delta = expires - clk; in calc_wheel_index()
591 idx = calc_index(expires, 0, bucket_expiry); in calc_wheel_index()
593 idx = calc_index(expires, 1, bucket_expiry); in calc_wheel_index()
595 idx = calc_index(expires, 2, bucket_expiry); in calc_wheel_index()
597 idx = calc_index(expires, 3, bucket_expiry); in calc_wheel_index()
599 idx = calc_index(expires, 4, bucket_expiry); in calc_wheel_index()
601 idx = calc_index(expires, 5, bucket_expiry); in calc_wheel_index()
603 idx = calc_index(expires, 6, bucket_expiry); in calc_wheel_index()
605 idx = calc_index(expires, 7, bucket_expiry); in calc_wheel_index()
615 expires = clk + WHEEL_TIMEOUT_MAX; in calc_wheel_index()
617 idx = calc_index(expires, LVL_DEPTH - 1, bucket_expiry); in calc_wheel_index()
687 idx = calc_wheel_index(timer->expires, base->clk, &bucket_expiry); in internal_add_timer()
1065 __mod_timer(struct timer_list *timer, unsigned long expires, unsigned int options) in __mod_timer() argument
1085 long diff = timer->expires - expires; in __mod_timer()
1110 time_before_eq(timer->expires, expires)) { in __mod_timer()
1116 idx = calc_wheel_index(expires, clk, &bucket_expiry); in __mod_timer()
1125 timer->expires = expires; in __mod_timer()
1126 else if (time_after(timer->expires, expires)) in __mod_timer()
1127 timer->expires = expires; in __mod_timer()
1173 timer->expires = expires; in __mod_timer()
1207 int mod_timer_pending(struct timer_list *timer, unsigned long expires) in mod_timer_pending() argument
1209 return __mod_timer(timer, expires, MOD_TIMER_PENDING_ONLY); in mod_timer_pending()
1240 int mod_timer(struct timer_list *timer, unsigned long expires) in mod_timer() argument
1242 return __mod_timer(timer, expires, 0); in mod_timer()
1266 int timer_reduce(struct timer_list *timer, unsigned long expires) in timer_reduce() argument
1268 return __mod_timer(timer, expires, MOD_TIMER_REDUCE); in timer_reduce()
1296 __mod_timer(timer, timer->expires, MOD_TIMER_NOTPENDING); in add_timer()
1313 __mod_timer(timer, timer->expires, MOD_TIMER_NOTPENDING); in add_timer_local()
1330 __mod_timer(timer, timer->expires, MOD_TIMER_NOTPENDING); in add_timer_global()
1979 static u64 cmp_next_hrtimer_event(u64 basem, u64 expires) in cmp_next_hrtimer_event() argument
1987 if (expires <= nextevt) in cmp_next_hrtimer_event()
1988 return expires; in cmp_next_hrtimer_event()