• Home
  • Raw
  • Download

Lines Matching refs:expires

521 static inline unsigned calc_index(unsigned long expires, unsigned lvl,  in calc_index()  argument
533 trace_android_vh_timer_calc_index(lvl, &expires); in calc_index()
534 expires = (expires >> LVL_SHIFT(lvl)) + 1; in calc_index()
535 *bucket_expiry = expires << LVL_SHIFT(lvl); in calc_index()
536 return LVL_OFFS(lvl) + (expires & LVL_MASK); in calc_index()
539 static int calc_wheel_index(unsigned long expires, unsigned long clk, in calc_wheel_index() argument
542 unsigned long delta = expires - clk; in calc_wheel_index()
546 idx = calc_index(expires, 0, bucket_expiry); in calc_wheel_index()
548 idx = calc_index(expires, 1, bucket_expiry); in calc_wheel_index()
550 idx = calc_index(expires, 2, bucket_expiry); in calc_wheel_index()
552 idx = calc_index(expires, 3, bucket_expiry); in calc_wheel_index()
554 idx = calc_index(expires, 4, bucket_expiry); in calc_wheel_index()
556 idx = calc_index(expires, 5, bucket_expiry); in calc_wheel_index()
558 idx = calc_index(expires, 6, bucket_expiry); in calc_wheel_index()
560 idx = calc_index(expires, 7, bucket_expiry); in calc_wheel_index()
570 expires = clk + WHEEL_TIMEOUT_MAX; in calc_wheel_index()
572 idx = calc_index(expires, LVL_DEPTH - 1, bucket_expiry); in calc_wheel_index()
615 trace_timer_start(timer, timer->expires, timer->flags); in enqueue_timer()
639 idx = calc_wheel_index(timer->expires, base->clk, &bucket_expiry); in internal_add_timer()
1019 __mod_timer(struct timer_list *timer, unsigned long expires, unsigned int options) in __mod_timer() argument
1039 long diff = timer->expires - expires; in __mod_timer()
1056 time_before_eq(timer->expires, expires)) { in __mod_timer()
1062 idx = calc_wheel_index(expires, clk, &bucket_expiry); in __mod_timer()
1071 timer->expires = expires; in __mod_timer()
1072 else if (time_after(timer->expires, expires)) in __mod_timer()
1073 timer->expires = expires; in __mod_timer()
1111 timer->expires = expires; in __mod_timer()
1139 int mod_timer_pending(struct timer_list *timer, unsigned long expires) in mod_timer_pending() argument
1141 return __mod_timer(timer, expires, MOD_TIMER_PENDING_ONLY); in mod_timer_pending()
1165 int mod_timer(struct timer_list *timer, unsigned long expires) in mod_timer() argument
1167 return __mod_timer(timer, expires, 0); in mod_timer()
1180 int timer_reduce(struct timer_list *timer, unsigned long expires) in timer_reduce() argument
1182 return __mod_timer(timer, expires, MOD_TIMER_REDUCE); in timer_reduce()
1203 __mod_timer(timer, timer->expires, MOD_TIMER_NOTPENDING); in add_timer()
1658 static u64 cmp_next_hrtimer_event(u64 basem, u64 expires) in cmp_next_hrtimer_event() argument
1666 if (expires <= nextevt) in cmp_next_hrtimer_event()
1667 return expires; in cmp_next_hrtimer_event()
1698 u64 expires = KTIME_MAX; in get_next_timer_interrupt() local
1706 return expires; in get_next_timer_interrupt()
1726 expires = basem; in get_next_timer_interrupt()
1730 expires = basem + (u64)(nextevt - basej) * TICK_NSEC; in get_next_timer_interrupt()
1738 if ((expires - basem) > TICK_NSEC) in get_next_timer_interrupt()
1743 return cmp_next_hrtimer_event(basem, expires); in get_next_timer_interrupt()