• Home
  • Raw
  • Download

Lines Matching full:expires

86  * the timeout expires it indicates that normal operation is disturbed, so it
489 static inline unsigned calc_index(unsigned expires, unsigned lvl) in calc_index() argument
491 expires = (expires + LVL_GRAN(lvl)) >> LVL_SHIFT(lvl); in calc_index()
492 return LVL_OFFS(lvl) + (expires & LVL_MASK); in calc_index()
495 static int calc_wheel_index(unsigned long expires, unsigned long clk) in calc_wheel_index() argument
497 unsigned long delta = expires - clk; in calc_wheel_index()
501 idx = calc_index(expires, 0); in calc_wheel_index()
503 idx = calc_index(expires, 1); in calc_wheel_index()
505 idx = calc_index(expires, 2); in calc_wheel_index()
507 idx = calc_index(expires, 3); in calc_wheel_index()
509 idx = calc_index(expires, 4); in calc_wheel_index()
511 idx = calc_index(expires, 5); in calc_wheel_index()
513 idx = calc_index(expires, 6); in calc_wheel_index()
515 idx = calc_index(expires, 7); in calc_wheel_index()
524 expires = clk + WHEEL_TIMEOUT_MAX; in calc_wheel_index()
526 idx = calc_index(expires, LVL_DEPTH - 1); in calc_wheel_index()
548 idx = calc_wheel_index(timer->expires, base->clk); in __internal_add_timer()
577 if (time_after_eq(timer->expires, base->next_expiry)) in trigger_dyntick_cpu()
584 if (time_before(timer->expires, base->clk)) { in trigger_dyntick_cpu()
591 base->next_expiry = timer->expires; in trigger_dyntick_cpu()
771 debug_activate(struct timer_list *timer, unsigned long expires) in debug_activate() argument
774 trace_timer_start(timer, expires, timer->flags); in debug_activate()
963 __mod_timer(struct timer_list *timer, unsigned long expires, unsigned int options) in __mod_timer() argument
983 long diff = timer->expires - expires; in __mod_timer()
1000 time_before_eq(timer->expires, expires)) { in __mod_timer()
1006 idx = calc_wheel_index(expires, clk); in __mod_timer()
1011 * subsequent call will exit in the expires check above. in __mod_timer()
1015 timer->expires = expires; in __mod_timer()
1016 else if (time_after(timer->expires, expires)) in __mod_timer()
1017 timer->expires = expires; in __mod_timer()
1053 debug_activate(timer, expires); in __mod_timer()
1055 timer->expires = expires; in __mod_timer()
1079 * @expires: new timeout in jiffies
1086 int mod_timer_pending(struct timer_list *timer, unsigned long expires) in mod_timer_pending() argument
1088 return __mod_timer(timer, expires, MOD_TIMER_PENDING_ONLY); in mod_timer_pending()
1095 * @expires: new timeout in jiffies
1100 * mod_timer(timer, expires) is equivalent to:
1102 * del_timer(timer); timer->expires = expires; add_timer(timer);
1112 int mod_timer(struct timer_list *timer, unsigned long expires) in mod_timer() argument
1114 return __mod_timer(timer, expires, 0); in mod_timer()
1121 * @expires: New timeout in jiffies
1127 int timer_reduce(struct timer_list *timer, unsigned long expires) in timer_reduce() argument
1129 return __mod_timer(timer, expires, MOD_TIMER_REDUCE); in timer_reduce()
1138 * timer interrupt at the ->expires point in the future. The
1141 * The timer's ->expires, ->function fields must be set prior calling this
1144 * Timers with an ->expires field in the past will be executed in the next
1150 mod_timer(timer, timer->expires); in add_timer()
1187 debug_activate(timer, timer->expires); in add_timer_on()
1494 static u64 cmp_next_hrtimer_event(u64 basem, u64 expires) in cmp_next_hrtimer_event() argument
1502 if (expires <= nextevt) in cmp_next_hrtimer_event()
1503 return expires; in cmp_next_hrtimer_event()
1515 * make sure that this tick really expires the timer to avoid in cmp_next_hrtimer_event()
1534 u64 expires = KTIME_MAX; in get_next_timer_interrupt() local
1543 return expires; in get_next_timer_interrupt()
1562 expires = basem; in get_next_timer_interrupt()
1566 expires = basem + (u64)(nextevt - basej) * TICK_NSEC; in get_next_timer_interrupt()
1574 if ((expires - basem) > TICK_NSEC) { in get_next_timer_interrupt()
1581 return cmp_next_hrtimer_event(basem, expires); in get_next_timer_interrupt()