Lines Matching refs:idx
511 static inline void timer_set_idx(struct timer_list *timer, unsigned int idx) in timer_set_idx() argument
514 idx << TIMER_ARRAYSHIFT; in timer_set_idx()
543 unsigned int idx; in calc_wheel_index() local
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()
562 idx = clk & LVL_MASK; in calc_wheel_index()
572 idx = calc_index(expires, LVL_DEPTH - 1, bucket_expiry); in calc_wheel_index()
574 return idx; in calc_wheel_index()
608 unsigned int idx, unsigned long bucket_expiry) in enqueue_timer() argument
611 hlist_add_head(&timer->entry, base->vectors + idx); in enqueue_timer()
612 __set_bit(idx, base->pending_map); in enqueue_timer()
613 timer_set_idx(timer, idx); in enqueue_timer()
637 unsigned int idx; in internal_add_timer() local
639 idx = calc_wheel_index(timer->expires, base->clk, &bucket_expiry); in internal_add_timer()
640 enqueue_timer(base, timer, idx, bucket_expiry); in internal_add_timer()
895 unsigned idx = timer_get_idx(timer); in detach_if_pending() local
900 if (hlist_is_singular_node(&timer->entry, base->vectors + idx)) { in detach_if_pending()
901 __clear_bit(idx, base->pending_map); in detach_if_pending()
1023 unsigned int idx = UINT_MAX; in __mod_timer() local
1062 idx = calc_wheel_index(expires, clk, &bucket_expiry); in __mod_timer()
1069 if (idx == timer_get_idx(timer)) { in __mod_timer()
1118 if (idx != UINT_MAX && clk == base->clk) in __mod_timer()
1119 enqueue_timer(base, timer, idx, bucket_expiry); in __mod_timer()
1539 unsigned int idx; in collect_expired_timers() local
1542 idx = (clk & LVL_MASK) + i * LVL_SIZE; in collect_expired_timers()
1544 if (__test_and_clear_bit(idx, base->pending_map)) { in collect_expired_timers()
1545 vec = base->vectors + idx; in collect_expired_timers()