Lines Matching full:timers
40 for (size_t i = 0; i < clock->timers.nr; i++) in bch2_io_timer_add()
41 if (clock->timers.data[i] == timer) in bch2_io_timer_add()
44 BUG_ON(!min_heap_push(&clock->timers, &timer, &callbacks, NULL)); in bch2_io_timer_add()
58 for (size_t i = 0; i < clock->timers.nr; i++) in bch2_io_timer_del()
59 if (clock->timers.data[i] == timer) { in bch2_io_timer_del()
60 min_heap_del(&clock->timers, i, &callbacks, NULL); in bch2_io_timer_del()
150 if (clock->timers.nr && in get_expired_timer()
151 time_after_eq64(now, clock->timers.data[0]->expire)) { in get_expired_timer()
152 ret = *min_heap_peek(&clock->timers); in get_expired_timer()
153 min_heap_pop(&clock->timers, &callbacks, NULL); in get_expired_timer()
179 for (unsigned i = 0; i < clock->timers.nr; i++) in bch2_io_timers_to_text()
181 clock->timers.data[i]->fn, in bch2_io_timers_to_text()
182 clock->timers.data[i]->fn2, in bch2_io_timers_to_text()
183 clock->timers.data[i]->expire); in bch2_io_timers_to_text()
190 free_heap(&clock->timers); in bch2_io_clock_exit()
205 if (!init_heap(&clock->timers, NR_IO_TIMERS, GFP_KERNEL)) in bch2_io_clock_init()