• Home
  • Raw
  • Download

Lines Matching refs:idx

481 static inline void timer_set_idx(struct timer_list *timer, unsigned int idx)  in timer_set_idx()  argument
484 idx << TIMER_ARRAYSHIFT; in timer_set_idx()
500 unsigned int idx; in calc_wheel_index() local
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()
519 idx = clk & LVL_MASK; in calc_wheel_index()
528 idx = calc_index(expires, LVL_DEPTH - 1); in calc_wheel_index()
530 return idx; in calc_wheel_index()
538 unsigned int idx) in enqueue_timer() argument
540 hlist_add_head(&timer->entry, base->vectors + idx); in enqueue_timer()
541 __set_bit(idx, base->pending_map); in enqueue_timer()
542 timer_set_idx(timer, idx); in enqueue_timer()
550 unsigned int idx; in __internal_add_timer() local
552 idx = calc_wheel_index(timer->expires, base->clk); in __internal_add_timer()
553 enqueue_timer(base, timer, idx); in __internal_add_timer()
824 unsigned idx = timer_get_idx(timer); in detach_if_pending() local
829 if (hlist_is_singular_node(&timer->entry, base->vectors + idx)) in detach_if_pending()
830 __clear_bit(idx, base->pending_map); in detach_if_pending()
952 unsigned int idx = UINT_MAX; in __mod_timer() local
992 idx = calc_wheel_index(expires, clk); in __mod_timer()
999 if (idx == timer_get_idx(timer)) { in __mod_timer()
1049 if (idx != UINT_MAX && clk == base->clk) { in __mod_timer()
1050 enqueue_timer(base, timer, idx); in __mod_timer()
1463 unsigned int idx; in __collect_expired_timers() local
1466 idx = (clk & LVL_MASK) + i * LVL_SIZE; in __collect_expired_timers()
1468 if (__test_and_clear_bit(idx, base->pending_map)) { in __collect_expired_timers()
1469 vec = base->vectors + idx; in __collect_expired_timers()