Lines Matching defs:ctl

164 static void insert_common_timeout_inorder(struct common_timeout_list *ctl,
794 struct common_timeout_list *ctl =
796 event_del(&ctl->timeout_event); /* Internal; doesn't count */
797 event_debug_unassign(&ctl->timeout_event);
798 for (ev = TAILQ_FIRST(&ctl->events); ev; ) {
807 mm_free(ctl);
1360 common_timeout_schedule(struct common_timeout_list *ctl,
1365 event_add_nolock_(&ctl->timeout_event, &timeout, 1);
1375 struct common_timeout_list *ctl = arg;
1376 struct event_base *base = ctl->base;
1381 ev = TAILQ_FIRST(&ctl->events);
1390 common_timeout_schedule(ctl, &now, ev);
1415 const struct common_timeout_list *ctl =
1417 if (duration->tv_sec == ctl->duration.tv_sec &&
1419 (ctl->duration.tv_usec & MICROSECONDS_MASK)) {
1420 EVUTIL_ASSERT(is_common_timeout(&ctl->duration, base));
1421 result = &ctl->duration;
2641 struct common_timeout_list *ctl =
2643 if (ev == TAILQ_FIRST(&ctl->events)) {
2644 common_timeout_schedule(ctl, &now, ev);
3178 struct common_timeout_list *ctl =
3180 TAILQ_REMOVE(&ctl->events, ev,
3193 struct common_timeout_list *ctl;
3201 ctl = base->common_timeout_queues[old_timeout_idx];
3202 TAILQ_REMOVE(&ctl->events, ev,
3204 ctl = get_common_timeout_list(base, &ev->ev_timeout);
3205 insert_common_timeout_inorder(ctl, ev);
3208 ctl = base->common_timeout_queues[old_timeout_idx];
3209 TAILQ_REMOVE(&ctl->events, ev,
3215 ctl = get_common_timeout_list(base, &ev->ev_timeout);
3216 insert_common_timeout_inorder(ctl, ev);
3230 insert_common_timeout_inorder(struct common_timeout_list *ctl,
3235 * ctl->events, since the timeout on each 'ev' is set to {the common
3241 TAILQ_FOREACH_REVERSE(e, &ctl->events,
3250 TAILQ_INSERT_AFTER(&ctl->events, e, ev,
3255 TAILQ_INSERT_HEAD(&ctl->events, ev,
3329 struct common_timeout_list *ctl =
3331 insert_common_timeout_inorder(ctl, ev);
3605 struct common_timeout_list *ctl =
3607 TAILQ_FOREACH(ev, &ctl->events,
3855 struct common_timeout_list *ctl = base->common_timeout_queues[i];
3858 EVUTIL_ASSERT_TAILQ_OK(&ctl->events, event, ev_timeout_pos.ev_next_with_common_timeout);
3860 TAILQ_FOREACH(ev, &ctl->events, ev_timeout_pos.ev_next_with_common_timeout) {