Lines Matching refs:expires
492 static inline unsigned calc_index(unsigned long expires, unsigned lvl, in calc_index() argument
504 expires = (expires + LVL_GRAN(lvl)) >> LVL_SHIFT(lvl); in calc_index()
505 *bucket_expiry = expires << LVL_SHIFT(lvl); in calc_index()
506 return LVL_OFFS(lvl) + (expires & LVL_MASK); in calc_index()
509 static int calc_wheel_index(unsigned long expires, unsigned long clk, in calc_wheel_index() argument
512 unsigned long delta = expires - clk; in calc_wheel_index()
516 idx = calc_index(expires, 0, bucket_expiry); in calc_wheel_index()
518 idx = calc_index(expires, 1, bucket_expiry); in calc_wheel_index()
520 idx = calc_index(expires, 2, bucket_expiry); in calc_wheel_index()
522 idx = calc_index(expires, 3, bucket_expiry); in calc_wheel_index()
524 idx = calc_index(expires, 4, bucket_expiry); in calc_wheel_index()
526 idx = calc_index(expires, 5, bucket_expiry); in calc_wheel_index()
528 idx = calc_index(expires, 6, bucket_expiry); in calc_wheel_index()
530 idx = calc_index(expires, 7, bucket_expiry); in calc_wheel_index()
540 expires = clk + WHEEL_TIMEOUT_MAX; in calc_wheel_index()
542 idx = calc_index(expires, LVL_DEPTH - 1, bucket_expiry); in calc_wheel_index()
585 trace_timer_start(timer, timer->expires, timer->flags); in enqueue_timer()
608 idx = calc_wheel_index(timer->expires, base->clk, &bucket_expiry); in internal_add_timer()
958 __mod_timer(struct timer_list *timer, unsigned long expires, unsigned int options) in __mod_timer() argument
978 long diff = timer->expires - expires; in __mod_timer()
995 time_before_eq(timer->expires, expires)) { in __mod_timer()
1001 idx = calc_wheel_index(expires, clk, &bucket_expiry); in __mod_timer()
1010 timer->expires = expires; in __mod_timer()
1011 else if (time_after(timer->expires, expires)) in __mod_timer()
1012 timer->expires = expires; in __mod_timer()
1050 timer->expires = expires; in __mod_timer()
1078 int mod_timer_pending(struct timer_list *timer, unsigned long expires) in mod_timer_pending() argument
1080 return __mod_timer(timer, expires, MOD_TIMER_PENDING_ONLY); in mod_timer_pending()
1104 int mod_timer(struct timer_list *timer, unsigned long expires) in mod_timer() argument
1106 return __mod_timer(timer, expires, 0); in mod_timer()
1119 int timer_reduce(struct timer_list *timer, unsigned long expires) in timer_reduce() argument
1121 return __mod_timer(timer, expires, MOD_TIMER_REDUCE); in timer_reduce()
1142 __mod_timer(timer, timer->expires, MOD_TIMER_NOTPENDING); in add_timer()
1587 static u64 cmp_next_hrtimer_event(u64 basem, u64 expires) in cmp_next_hrtimer_event() argument
1595 if (expires <= nextevt) in cmp_next_hrtimer_event()
1596 return expires; in cmp_next_hrtimer_event()
1627 u64 expires = KTIME_MAX; in get_next_timer_interrupt() local
1636 return expires; in get_next_timer_interrupt()
1657 expires = basem; in get_next_timer_interrupt()
1661 expires = basem + (u64)(nextevt - basej) * TICK_NSEC; in get_next_timer_interrupt()
1669 if ((expires - basem) > TICK_NSEC) in get_next_timer_interrupt()
1674 return cmp_next_hrtimer_event(basem, expires); in get_next_timer_interrupt()