Lines Matching full: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, in calc_index() argument
578 expires = (expires >> LVL_SHIFT(lvl)) + 1; in calc_index()
579 *bucket_expiry = expires << LVL_SHIFT(lvl); in calc_index()
580 return LVL_OFFS(lvl) + (expires & LVL_MASK); in calc_index()
583 static int calc_wheel_index(unsigned long expires, unsigned long clk, in calc_wheel_index() argument
586 unsigned long delta = expires - clk; in calc_wheel_index()
590 idx = calc_index(expires, 0, bucket_expiry); in calc_wheel_index()
592 idx = calc_index(expires, 1, bucket_expiry); in calc_wheel_index()
594 idx = calc_index(expires, 2, bucket_expiry); in calc_wheel_index()
596 idx = calc_index(expires, 3, bucket_expiry); in calc_wheel_index()
598 idx = calc_index(expires, 4, bucket_expiry); in calc_wheel_index()
600 idx = calc_index(expires, 5, bucket_expiry); in calc_wheel_index()
602 idx = calc_index(expires, 6, bucket_expiry); in calc_wheel_index()
604 idx = calc_index(expires, 7, bucket_expiry); in calc_wheel_index()
614 expires = clk + WHEEL_TIMEOUT_MAX; in calc_wheel_index()
616 idx = calc_index(expires, LVL_DEPTH - 1, bucket_expiry); in calc_wheel_index()
667 * (bucket_expiry) instead of timer->expires. in enqueue_timer()
686 idx = calc_wheel_index(timer->expires, base->clk, &bucket_expiry); in internal_add_timer()
1060 __mod_timer(struct timer_list *timer, unsigned long expires, unsigned int options) in __mod_timer() argument
1080 long diff = timer->expires - expires; in __mod_timer()
1105 time_before_eq(timer->expires, expires)) { in __mod_timer()
1111 idx = calc_wheel_index(expires, clk, &bucket_expiry); in __mod_timer()
1116 * subsequent call will exit in the expires check above. in __mod_timer()
1120 timer->expires = expires; in __mod_timer()
1121 else if (time_after(timer->expires, expires)) in __mod_timer()
1122 timer->expires = expires; in __mod_timer()
1168 timer->expires = expires; in __mod_timer()
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) in mod_timer_pending() argument
1204 return __mod_timer(timer, expires, MOD_TIMER_PENDING_ONLY); in mod_timer_pending()
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) in mod_timer() argument
1237 return __mod_timer(timer, expires, 0); in mod_timer()
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) in timer_reduce() argument
1263 return __mod_timer(timer, expires, MOD_TIMER_REDUCE); in 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); in add_timer()
1308 __mod_timer(timer, timer->expires, MOD_TIMER_NOTPENDING); in add_timer_local()
1325 __mod_timer(timer, timer->expires, MOD_TIMER_NOTPENDING); in add_timer_global()
1974 static u64 cmp_next_hrtimer_event(u64 basem, u64 expires) in cmp_next_hrtimer_event() argument
1982 if (expires <= nextevt) in cmp_next_hrtimer_event()
1983 return expires; in cmp_next_hrtimer_event()
1995 * make sure that this tick really expires the timer to avoid in cmp_next_hrtimer_event()
2069 * If the local queue expires first, then the global event can be in fetch_next_timer_interrupt()
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 in run_local_timers()