Lines Matching refs:expires

86  * the timeout expires it indicates that normal operation is disturbed, so it
211 * timer, which expires at the moment. If no timer is
566 static inline unsigned calc_index(unsigned long expires, unsigned lvl,
578 expires = (expires >> LVL_SHIFT(lvl)) + 1;
579 *bucket_expiry = expires << LVL_SHIFT(lvl);
580 return LVL_OFFS(lvl) + (expires & LVL_MASK);
583 static int calc_wheel_index(unsigned long expires, unsigned long clk,
586 unsigned long delta = expires - clk;
590 idx = calc_index(expires, 0, bucket_expiry);
592 idx = calc_index(expires, 1, bucket_expiry);
594 idx = calc_index(expires, 2, bucket_expiry);
596 idx = calc_index(expires, 3, bucket_expiry);
598 idx = calc_index(expires, 4, bucket_expiry);
600 idx = calc_index(expires, 5, bucket_expiry);
602 idx = calc_index(expires, 6, bucket_expiry);
604 idx = calc_index(expires, 7, bucket_expiry);
614 expires = clk + WHEEL_TIMEOUT_MAX;
616 idx = calc_index(expires, LVL_DEPTH - 1, bucket_expiry);
667 * (bucket_expiry) instead of timer->expires.
686 idx = calc_wheel_index(timer->expires, base->clk, &bucket_expiry);
1060 __mod_timer(struct timer_list *timer, unsigned long expires, unsigned int options)
1080 long diff = timer->expires - expires;
1105 time_before_eq(timer->expires, expires)) {
1111 idx = calc_wheel_index(expires, clk, &bucket_expiry);
1116 * subsequent call will exit in the expires check above.
1120 timer->expires = expires;
1121 else if (time_after(timer->expires, expires))
1122 timer->expires = expires;
1168 timer->expires = expires;
1189 * @expires: New absolute timeout in jiffies
1200 * * %1 - The timer was active and requeued to expire at @expires
1202 int mod_timer_pending(struct timer_list *timer, unsigned long expires)
1204 return __mod_timer(timer, expires, MOD_TIMER_PENDING_ONLY);
1211 * @expires: New absolute timeout in jiffies
1213 * mod_timer(timer, expires) is equivalent to:
1215 * del_timer(timer); timer->expires = expires; add_timer(timer);
1219 * timer is in any case activated with the new expiry time @expires.
1231 * * %1 - The timer was active and requeued to expire at @expires or
1232 * the timer was active and not modified because @expires did
1235 int mod_timer(struct timer_list *timer, unsigned long expires)
1237 return __mod_timer(timer, expires, 0);
1244 * @expires: New absolute timeout in jiffies
1256 * * %1 - The timer was active and requeued to expire at @expires or
1257 * the timer was active and not modified because @expires
1261 int timer_reduce(struct timer_list *timer, unsigned long expires)
1263 return __mod_timer(timer, expires, MOD_TIMER_REDUCE);
1271 * Start @timer to expire at @timer->expires in the future. @timer->expires
1272 * is the absolute expiry time measured in 'jiffies'. When the timer expires
1275 * The @timer->expires and @timer->function fields must be set prior
1281 * If @timer->expires is already in the past @timer will be queued to
1291 __mod_timer(timer, timer->expires, MOD_TIMER_NOTPENDING);
1308 __mod_timer(timer, timer->expires, MOD_TIMER_NOTPENDING);
1325 __mod_timer(timer, timer->expires, MOD_TIMER_NOTPENDING);
1974 static u64 cmp_next_hrtimer_event(u64 basem, u64 expires)
1982 if (expires <= nextevt)
1983 return expires;
1995 * make sure that this tick really expires the timer to avoid
2069 * If the local queue expires first, then the global event can be
2091 * field is set to KTIME_MAX. If local event expires before global
2474 * 1. Remote CPU expires global timers of this CPU and updates