Home
last modified time | relevance | path

Searched refs:TAILQ_FIRST (Results 1 – 25 of 27) sorted by relevance

12

/external/libevent/
Devrpc.c99 while ((rpc = TAILQ_FIRST(&base->registered_rpcs)) != NULL) { in evrpc_free()
103 while ((pause = TAILQ_FIRST(&base->paused_requests)) != NULL) { in evrpc_free()
107 while ((hook = TAILQ_FIRST(&base->input_hooks)) != NULL) { in evrpc_free()
111 while ((hook = TAILQ_FIRST(&base->output_hooks)) != NULL) { in evrpc_free()
301 if (TAILQ_FIRST(&rpc->base->input_hooks) != NULL) { in evrpc_request_cb()
427 if (TAILQ_FIRST(&rpc->base->output_hooks) != NULL) { in evrpc_request_done()
548 while ((request = TAILQ_FIRST(&pool->requests)) != NULL) { in evrpc_pool_free()
553 while ((pause = TAILQ_FIRST(&pool->paused_requests)) != NULL) { in evrpc_pool_free()
558 while ((connection = TAILQ_FIRST(&pool->connections)) != NULL) { in evrpc_pool_free()
563 while ((hook = TAILQ_FIRST(&pool->input_hooks)) != NULL) { in evrpc_pool_free()
[all …]
Devent-internal.h314 #ifndef TAILQ_FIRST
315 #define TAILQ_FIRST(head) ((head)->tqh_first) macro
326 for ((var) = TAILQ_FIRST(head); \
Dhttp.c701 struct evhttp_request* req = TAILQ_FIRST(&evcon->requests); in evhttp_connection_fail()
743 if (TAILQ_FIRST(&evcon->requests) != NULL) in evhttp_connection_fail()
773 struct evhttp_request *req = TAILQ_FIRST(&evcon->requests); in evhttp_connection_done()
792 if (TAILQ_FIRST(&evcon->requests) != NULL) { in evhttp_connection_done()
1047 struct evhttp_request *req = TAILQ_FIRST(&evcon->requests); in evhttp_read_cb()
1109 struct evhttp_request *req = TAILQ_FIRST(&evcon->requests); in evhttp_write_connectioncb()
1140 while ((req = TAILQ_FIRST(&evcon->requests)) != NULL) { in evhttp_connection_free()
1197 struct evhttp_request *req = TAILQ_FIRST(&evcon->requests); in evhttp_request_dispatch()
1304 while (TAILQ_FIRST(&evcon->requests) != NULL) { in evhttp_connection_cb_cleanup()
1305 struct evhttp_request *request = TAILQ_FIRST(&evcon->requests); in evhttp_connection_cb_cleanup()
[all …]
Devent.c725 for (ev = TAILQ_FIRST(&base->eventqueue); ev; ) { in event_base_free()
742 for (ev = TAILQ_FIRST(&ctl->events); ev; ) { in event_base_free()
757 for (ev = TAILQ_FIRST(&base->activequeues[i]); ev; ) { in event_base_free()
948 while ((entry = TAILQ_FIRST(&cfg->entries)) != NULL) { in event_config_free()
1166 ev = TAILQ_FIRST(&ctl->events); in common_timeout_callback()
1338 for (ev = TAILQ_FIRST(activeq); ev; ev = TAILQ_FIRST(activeq)) { in event_process_active_single_queue()
1403 while ((cb = TAILQ_FIRST(&queue->deferred_cb_list))) { in event_process_deferred_callbacks()
1435 if (TAILQ_FIRST(&base->activequeues[i]) != NULL) { in event_process_active()
2172 if (ev == TAILQ_FIRST(&ctl->events)) { in event_add_internal()
Devmap.c308 (old_ev = TAILQ_FIRST(&ctx->events)) && in evmap_io_add()
455 if (TAILQ_FIRST(&ctx->events) == TAILQ_LAST(&ctx->events, event_list)) { in evmap_signal_del()
Dbufferevent_ratelim.c459 bev = TAILQ_FIRST(&group->members); in _bev_group_random_element()
480 for (bev = TAILQ_FIRST(&g->members); bev && bev != first; \
Dbuffer.c481 for (cbent = TAILQ_FIRST(&buffer->callbacks); in evbuffer_run_callbacks()
541 while ((cbent = TAILQ_FIRST(&buffer->callbacks))) { in evbuffer_remove_all_callbacks()
/external/ipsec-tools/src/include-glibc/sys/
Dqueue.h340 #define TAILQ_FIRST(head) ((head)->tqh_first) macro
343 for ((var) = TAILQ_FIRST((head)); \
353 TAILQ_FIRST((head)) = NULL; \
354 (head)->tqh_last = &TAILQ_FIRST((head)); \
375 if ((TAILQ_NEXT((elm), field) = TAILQ_FIRST((head))) != NULL) \
376 TAILQ_FIRST((head))->field.tqe_prev = \
380 TAILQ_FIRST((head)) = (elm); \
381 (elm)->field.tqe_prev = &TAILQ_FIRST((head)); \
/external/dhcpcd-6.8.2/compat/
Dqueue.h66 #ifndef TAILQ_FIRST
67 #define TAILQ_FIRST(head) ((head)->tqh_first) macro
73 #define TAILQ_EMPTY(head) (TAILQ_FIRST(head) == TAILQ_END(head))
154 for ((var) = TAILQ_FIRST(head); \
/external/ipsec-tools/src/racoon/
Dschedule.c58 for (elm = TAILQ_FIRST(head); elm; elm = TAILQ_NEXT(elm, field))
88 for (p = TAILQ_FIRST(&sctree); p; p = next) { in schedular()
110 p = TAILQ_FIRST(&sctree); in schedular()
255 p = TAILQ_FIRST(&sctree);
Dpolicy.c74 for (p = TAILQ_FIRST(&sptree); p; p = TAILQ_NEXT(p, chain)) {
95 for (p = TAILQ_FIRST(&sptree); p; p = TAILQ_NEXT(p, chain)) {
154 for (p = TAILQ_FIRST(&sptree); p; p = TAILQ_NEXT(p, chain)) {
169 for (p = TAILQ_FIRST(&sptree); p; p = TAILQ_NEXT(p, chain)) {
412 for (p = TAILQ_FIRST(&sptree); p; p = next) { in flushsp()
Devt.c129 if ((evt = TAILQ_FIRST(&evtlist)) == NULL) in evt_pop()
Dgenlist.c87 p = TAILQ_FIRST(head); in genlist_next()
Dnattraversal.c340 for (ka = TAILQ_FIRST(&ka_tree); ka; ka = next) { in natt_keepalive_send()
434 for (ka = TAILQ_FIRST(&ka_tree); ka; ka = next) { in natt_keepalive_remove()
Dremoteconf.c386 for (p = TAILQ_FIRST(&rmtree); p; p = next) { in flushrmconf()
Disakmp_agg.c514 while ((natd = TAILQ_FIRST(&natd_tree)) != NULL) {
/external/dhcpcd-6.8.2/
Dcontrol.c78 while ((fdp = TAILQ_FIRST(&fd->queue))) { in control_queue_free()
84 while ((fdp = TAILQ_FIRST(&fd->free_queue))) { in control_queue_free()
321 while ((l = TAILQ_FIRST(&ctx->control_fds))) { in control_stop()
381 data = TAILQ_FIRST(&fd->queue); in control_writeone()
401 if (TAILQ_FIRST(&fd->queue) == NULL) in control_writeone()
411 d = TAILQ_FIRST(&fd->free_queue); in control_queue()
Deloop.c140 if ((e = TAILQ_FIRST(&ctx->free_events))) { in eloop_event_add()
283 if ((t = TAILQ_FIRST(&ctx->free_timeouts))) { in eloop_q_timeout_add_tv()
494 while ((e = TAILQ_FIRST(&ctx->events))) { in eloop_free()
498 while ((e = TAILQ_FIRST(&ctx->free_events))) { in eloop_free()
502 while ((t = TAILQ_FIRST(&ctx->timeouts))) { in eloop_free()
506 while ((t = TAILQ_FIRST(&ctx->free_timeouts))) { in eloop_free()
546 if ((t = TAILQ_FIRST(&ctx->timeouts))) { in eloop_start()
Ddhcpcd.c1003 while ((ifp = TAILQ_FIRST(ifs))) { in dhcpcd_handleinterface()
1134 while ((ifp = TAILQ_FIRST(ifs))) { in reconf_reboot()
1668 ifp = TAILQ_FIRST(ctx.ifaces); in main()
1897 if (TAILQ_FIRST(ctx.ifaces) == NULL) { in main()
1926 else if ((ifp = TAILQ_FIRST(ctx.ifaces))) in main()
1968 while ((ifp = TAILQ_FIRST(ctx.ifaces))) { in main()
Dif.c702 (ifp = TAILQ_FIRST(ctx->ifaces)) == NULL || in if_sortinterfaces()
709 while ((ifp = TAILQ_FIRST(ctx->ifaces))) { in if_sortinterfaces()
Dipv4.c322 while ((rt = TAILQ_FIRST(routes))) { in ipv4_freerts()
506 if (ifp->options->routes && TAILQ_FIRST(ifp->options->routes)) { in get_routes()
1092 while ((addr = TAILQ_FIRST(&state->addrs))) { in ipv4_free()
Dipv6.c1029 TAILQ_FIRST(&state->ll_callbacks))) in ipv6_handleifa()
1276 while ((cb = TAILQ_FIRST(&state->ll_callbacks))) { in ipv6_freedrop()
1787 while ((rt = TAILQ_FIRST(routes))) { in ipv6_freerts()
2038 have_default = (TAILQ_FIRST(&dnr) != NULL); in ipv6_buildroutes()
2097 while ((rt = TAILQ_FIRST(&dnr))) { in ipv6_buildroutes()
Darp.c396 while ((astate = TAILQ_FIRST(&state->arp_states))) { in arp_close()
Dipv6nd.c402 while ((rao = TAILQ_FIRST(&rap->options))) { in ipv6nd_free_opts()
1500 if (!valid && TAILQ_FIRST(&rap->addrs) == NULL) in ipv6nd_expirera()
1539 while ((rap = TAILQ_FIRST(&rtrs))) { in ipv6nd_drop()
Ddhcp6.c2960 ap = TAILQ_FIRST(&state->addrs); in dhcp6_handledata()
3203 ifn = TAILQ_FIRST(ifs); in dhcp6_start1()
3227 while ((ifn = TAILQ_FIRST(ifs))) { in dhcp6_start1()

12