• Home
  • Raw
  • Download

Lines Matching refs:expires

491 static inline unsigned calc_index(unsigned expires, unsigned lvl)  in calc_index()  argument
493 expires = (expires + LVL_GRAN(lvl)) >> LVL_SHIFT(lvl); in calc_index()
494 return LVL_OFFS(lvl) + (expires & LVL_MASK); in calc_index()
497 static int calc_wheel_index(unsigned long expires, unsigned long clk) in calc_wheel_index() argument
499 unsigned long delta = expires - clk; in calc_wheel_index()
503 idx = calc_index(expires, 0); in calc_wheel_index()
505 idx = calc_index(expires, 1); in calc_wheel_index()
507 idx = calc_index(expires, 2); in calc_wheel_index()
509 idx = calc_index(expires, 3); in calc_wheel_index()
511 idx = calc_index(expires, 4); in calc_wheel_index()
513 idx = calc_index(expires, 5); in calc_wheel_index()
515 idx = calc_index(expires, 6); in calc_wheel_index()
517 idx = calc_index(expires, 7); in calc_wheel_index()
525 if (expires >= WHEEL_TIMEOUT_CUTOFF) in calc_wheel_index()
526 expires = WHEEL_TIMEOUT_MAX; in calc_wheel_index()
528 idx = calc_index(expires, LVL_DEPTH - 1); in calc_wheel_index()
544 trace_timer_start(timer, timer->expires, timer->flags); in enqueue_timer()
552 idx = calc_wheel_index(timer->expires, base->clk); in __internal_add_timer()
581 if (time_after_eq(timer->expires, base->next_expiry)) in trigger_dyntick_cpu()
588 base->next_expiry = timer->expires; in trigger_dyntick_cpu()
949 __mod_timer(struct timer_list *timer, unsigned long expires, unsigned int options) in __mod_timer() argument
969 long diff = timer->expires - expires; in __mod_timer()
986 time_before_eq(timer->expires, expires)) { in __mod_timer()
992 idx = calc_wheel_index(expires, clk); in __mod_timer()
1001 timer->expires = expires; in __mod_timer()
1002 else if (time_after(timer->expires, expires)) in __mod_timer()
1003 timer->expires = expires; in __mod_timer()
1041 timer->expires = expires; in __mod_timer()
1072 int mod_timer_pending(struct timer_list *timer, unsigned long expires) in mod_timer_pending() argument
1074 return __mod_timer(timer, expires, MOD_TIMER_PENDING_ONLY); in mod_timer_pending()
1098 int mod_timer(struct timer_list *timer, unsigned long expires) in mod_timer() argument
1100 return __mod_timer(timer, expires, 0); in mod_timer()
1113 int timer_reduce(struct timer_list *timer, unsigned long expires) in timer_reduce() argument
1115 return __mod_timer(timer, expires, MOD_TIMER_REDUCE); in timer_reduce()
1136 mod_timer(timer, timer->expires); in add_timer()
1570 static u64 cmp_next_hrtimer_event(u64 basem, u64 expires) in cmp_next_hrtimer_event() argument
1578 if (expires <= nextevt) in cmp_next_hrtimer_event()
1579 return expires; in cmp_next_hrtimer_event()
1610 u64 expires = KTIME_MAX; in get_next_timer_interrupt() local
1619 return expires; in get_next_timer_interrupt()
1638 expires = basem; in get_next_timer_interrupt()
1642 expires = basem + (u64)(nextevt - basej) * TICK_NSEC; in get_next_timer_interrupt()
1650 if ((expires - basem) > TICK_NSEC) { in get_next_timer_interrupt()
1657 return cmp_next_hrtimer_event(basem, expires); in get_next_timer_interrupt()