• Home
  • Raw
  • Download

Lines Matching full:expires

85  * the timeout expires it indicates that normal operation is disturbed, so it
493 static inline unsigned calc_index(unsigned long expires, unsigned lvl, in calc_index() argument
505 expires = (expires + LVL_GRAN(lvl)) >> LVL_SHIFT(lvl); in calc_index()
506 *bucket_expiry = expires << LVL_SHIFT(lvl); in calc_index()
507 return LVL_OFFS(lvl) + (expires & LVL_MASK); in calc_index()
510 static int calc_wheel_index(unsigned long expires, unsigned long clk, in calc_wheel_index() argument
513 unsigned long delta = expires - clk; in calc_wheel_index()
517 idx = calc_index(expires, 0, bucket_expiry); in calc_wheel_index()
519 idx = calc_index(expires, 1, bucket_expiry); in calc_wheel_index()
521 idx = calc_index(expires, 2, bucket_expiry); in calc_wheel_index()
523 idx = calc_index(expires, 3, bucket_expiry); in calc_wheel_index()
525 idx = calc_index(expires, 4, bucket_expiry); in calc_wheel_index()
527 idx = calc_index(expires, 5, bucket_expiry); in calc_wheel_index()
529 idx = calc_index(expires, 6, bucket_expiry); in calc_wheel_index()
531 idx = calc_index(expires, 7, bucket_expiry); in calc_wheel_index()
541 expires = clk + WHEEL_TIMEOUT_MAX; in calc_wheel_index()
543 idx = calc_index(expires, LVL_DEPTH - 1, bucket_expiry); in calc_wheel_index()
586 trace_timer_start(timer, timer->expires, timer->flags); in enqueue_timer()
591 * (bucket_expiry) instead of timer->expires. in enqueue_timer()
610 idx = calc_wheel_index(timer->expires, base->clk, &bucket_expiry); in internal_add_timer()
960 __mod_timer(struct timer_list *timer, unsigned long expires, unsigned int options) in __mod_timer() argument
980 long diff = timer->expires - expires; in __mod_timer()
997 time_before_eq(timer->expires, expires)) { in __mod_timer()
1003 idx = calc_wheel_index(expires, clk, &bucket_expiry); in __mod_timer()
1008 * subsequent call will exit in the expires check above. in __mod_timer()
1012 timer->expires = expires; in __mod_timer()
1013 else if (time_after(timer->expires, expires)) in __mod_timer()
1014 timer->expires = expires; in __mod_timer()
1052 timer->expires = expires; in __mod_timer()
1073 * @expires: new timeout in jiffies
1080 int mod_timer_pending(struct timer_list *timer, unsigned long expires) in mod_timer_pending() argument
1082 return __mod_timer(timer, expires, MOD_TIMER_PENDING_ONLY); in mod_timer_pending()
1089 * @expires: new timeout in jiffies
1094 * mod_timer(timer, expires) is equivalent to:
1096 * del_timer(timer); timer->expires = expires; add_timer(timer);
1106 int mod_timer(struct timer_list *timer, unsigned long expires) in mod_timer() argument
1108 return __mod_timer(timer, expires, 0); in mod_timer()
1115 * @expires: New timeout in jiffies
1121 int timer_reduce(struct timer_list *timer, unsigned long expires) in timer_reduce() argument
1123 return __mod_timer(timer, expires, MOD_TIMER_REDUCE); in timer_reduce()
1132 * timer interrupt at the ->expires point in the future. The
1135 * The timer's ->expires, ->function fields must be set prior calling this
1138 * Timers with an ->expires field in the past will be executed in the next
1144 __mod_timer(timer, timer->expires, MOD_TIMER_NOTPENDING); in add_timer()
1592 static u64 cmp_next_hrtimer_event(u64 basem, u64 expires) in cmp_next_hrtimer_event() argument
1600 if (expires <= nextevt) in cmp_next_hrtimer_event()
1601 return expires; in cmp_next_hrtimer_event()
1613 * make sure that this tick really expires the timer to avoid in cmp_next_hrtimer_event()
1632 u64 expires = KTIME_MAX; in get_next_timer_interrupt() local
1640 return expires; in get_next_timer_interrupt()
1660 expires = basem; in get_next_timer_interrupt()
1664 expires = basem + (u64)(nextevt - basej) * TICK_NSEC; in get_next_timer_interrupt()
1672 if ((expires - basem) > TICK_NSEC) in get_next_timer_interrupt()
1677 return cmp_next_hrtimer_event(basem, expires); in get_next_timer_interrupt()