Home
last modified time | relevance | path

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

12345678910>>...19

/freebsd-10-stable/sys/netinet/
Dsctp_ss_functions.c77 struct sctp_stream_out *strq = TAILQ_FIRST(&asoc->ss_data.out_wheel); in sctp_ss_default_clear()
79 …TAILQ_REMOVE(&asoc->ss_data.out_wheel, TAILQ_FIRST(&asoc->ss_data.out_wheel), ss_params.rr.next_sp… in sctp_ss_default_clear()
177 strq = TAILQ_FIRST(&asoc->ss_data.out_wheel); in sctp_ss_default_select()
181 strq = TAILQ_FIRST(&asoc->ss_data.out_wheel); in sctp_ss_default_select()
196 if (TAILQ_FIRST(&strq->outqueue) && in sctp_ss_default_select()
197 TAILQ_FIRST(&strq->outqueue)->net != NULL && in sctp_ss_default_select()
198 TAILQ_FIRST(&strq->outqueue)->net != net) { in sctp_ss_default_select()
263 strqt = TAILQ_FIRST(&asoc->ss_data.out_wheel); in sctp_ss_rr_add()
302 strq = TAILQ_FIRST(&asoc->ss_data.out_wheel); in sctp_ss_rrp_packet_done()
306 strq = TAILQ_FIRST(&asoc->ss_data.out_wheel); in sctp_ss_rrp_packet_done()
[all …]
/freebsd-10-stable/usr.sbin/ypserv/
Dyp_dblookup.c187 qptr = TAILQ_FIRST(&qhead); /* save this */ in yp_flush_all()
247 if (TAILQ_FIRST(&qhead)->dbptr->flags & flag) in yp_testflag()
333 if (qptr != TAILQ_FIRST(&qhead)) { in yp_find_db()
487 TAILQ_FIRST(&qhead)->dbptr->size = 0; in yp_get_record()
503 if (TAILQ_FIRST(&qhead)->dbptr->size) { in yp_get_record()
504 TAILQ_FIRST(&qhead)->dbptr->key = ""; in yp_get_record()
505 TAILQ_FIRST(&qhead)->dbptr->size = 0; in yp_get_record()
529 TAILQ_FIRST(&qhead)->dbptr->size = 0; in yp_first_record()
541 TAILQ_FIRST(&qhead)->dbptr->size = 0; in yp_first_record()
556 if (TAILQ_FIRST(&qhead)->dbptr->size) { in yp_first_record()
[all …]
/freebsd-10-stable/sbin/pfctl/
Dpfctl_optimize.c286 while ((r = TAILQ_FIRST(rs->rules[PF_RULESET_FILTER].inactive.ptr)) in pfctl_optimize_ruleset()
293 if (TAILQ_FIRST(&r->rpool.list) != NULL) { in pfctl_optimize_ruleset()
319 while ((block = TAILQ_FIRST(&superblocks))) { in pfctl_optimize_ruleset()
322 while ((por = TAILQ_FIRST(&block->sb_rules))) { in pfctl_optimize_ruleset()
341 while ((por = TAILQ_FIRST(&opt_queue))) { in pfctl_optimize_ruleset()
355 while ((block = TAILQ_FIRST(&superblocks))) { in pfctl_optimize_ruleset()
404 if (!TAILQ_NEXT(TAILQ_FIRST(&block->sb_rules), por_entry)) in optimize_superblock()
422 TAILQ_FIRST(&block->sb_rules)->por_rule.quick && in optimize_superblock()
453 for (por1 = TAILQ_FIRST(&block->sb_rules); por1; por1 = por_next) { in remove_identical_rules()
563 for (p1 = TAILQ_FIRST(&block->sb_rules); p1; p1 = por_next) { in combine_rules()
[all …]
/freebsd-10-stable/sys/arm/arm/
Dfiq.c105 if ((ofh = TAILQ_FIRST(&fiqhandler_stack)) != NULL) { in fiq_claim()
151 if (fh == TAILQ_FIRST(&fiqhandler_stack)) { in fiq_release()
155 if ((ofh = TAILQ_FIRST(&fiqhandler_stack)) != NULL) { in fiq_release()
163 if (TAILQ_FIRST(&fiqhandler_stack) == NULL) { in fiq_release()
/freebsd-10-stable/sys/contrib/ngatm/netnatm/api/
Dcc_sig.c95 if ((s = TAILQ_FIRST(&cc->free_sigs)) == NULL) { in sig_alloc()
232 s1 = TAILQ_FIRST(&conn->cc->def_sigs); in cc_conn_resp()
256 s = TAILQ_FIRST(&cc->sigs); in sig_flush()
268 s = TAILQ_FIRST(&cc->def_sigs); in sig_flush()
312 while ((s = TAILQ_FIRST(&cc->sigs)) != NULL) { in cc_work()
334 while ((s = TAILQ_FIRST(&cc->sigs)) != NULL) { in cc_sig_flush_all()
340 while ((s = TAILQ_FIRST(&cc->def_sigs)) != NULL) { in cc_sig_flush_all()
346 while ((s = TAILQ_FIRST(&cc->free_sigs)) != NULL) { in cc_sig_flush_all()
Dcc_user.c175 if ((conn = TAILQ_FIRST(&user->connq)) != NULL) { in cc_user_abort()
185 while ((conn = TAILQ_FIRST(&user->connq)) != NULL) { in cc_user_abort()
258 if ((conn = TAILQ_FIRST(&user->connq)) != NULL) { in do_arrival()
283 return (TAILQ_FIRST(&user->connq)); in cc_query_check()
543 return (TAILQ_FIRST(&user->connq)); in cc_set_check()
987 struct ccconn *conn = TAILQ_FIRST(&user->connq); in cc_user_active()
1071 struct ccconn *conn = TAILQ_FIRST(&user->connq); in cc_user_sig_handle()
1106 port = TAILQ_FIRST(&priv->port_list); in cc_user_sig_handle()
1134 conn = TAILQ_FIRST(&user->connq); in cc_user_sig_handle()
1182 cc_conn_sig(TAILQ_FIRST(&user->connq), in cc_user_sig_handle()
[all …]
/freebsd-10-stable/contrib/ngatm/libngatm/
Dsscopcust.h114 #define MSGQ_PEEK(Q) (TAILQ_EMPTY((Q)) ? NULL : TAILQ_FIRST((Q)))
120 _m = TAILQ_FIRST(Q); \
130 _m1 = TAILQ_FIRST(Q); \
152 _s = TAILQ_FIRST(Q); \
163 _s = TAILQ_FIRST(F); \
184 _s1 = TAILQ_FIRST(Q); \
Dsscfucust.h77 _s = TAILQ_FIRST(Q); \
87 _s1 = TAILQ_FIRST(Q); \
/freebsd-10-stable/contrib/ntp/sntp/libevent/
Devrpc.c100 while ((rpc = TAILQ_FIRST(&base->registered_rpcs)) != NULL) { in evrpc_free()
104 while ((pause = TAILQ_FIRST(&base->paused_requests)) != NULL) { in evrpc_free()
108 while ((hook = TAILQ_FIRST(&base->input_hooks)) != NULL) { in evrpc_free()
112 while ((hook = TAILQ_FIRST(&base->output_hooks)) != NULL) { in evrpc_free()
302 if (TAILQ_FIRST(&rpc->base->input_hooks) != NULL) { in evrpc_request_cb()
426 if (TAILQ_FIRST(&rpc->base->output_hooks) != NULL) { in evrpc_request_done()
545 while ((request = TAILQ_FIRST(&pool->requests)) != NULL) { in evrpc_pool_free()
550 while ((pause = TAILQ_FIRST(&pool->paused_requests)) != NULL) { in evrpc_pool_free()
555 while ((connection = TAILQ_FIRST(&pool->connections)) != NULL) { in evrpc_pool_free()
560 while ((hook = TAILQ_FIRST(&pool->input_hooks)) != NULL) { in evrpc_pool_free()
[all …]
/freebsd-10-stable/sys/geom/sched/
Dsubr_disk.c119 if (bp == TAILQ_FIRST(&head->queue)) in gs_bioq_remove()
158 return (TAILQ_FIRST(&head->queue)); in gs_bioq_first()
166 bp = TAILQ_FIRST(&head->queue); in gs_bioq_takefirst()
210 cur = TAILQ_FIRST(&head->queue); in gs_bioq_disksort()
/freebsd-10-stable/contrib/ofed/libcxgb4/src/
Dqueue.h463 TAILQ_FIRST((head))->field.tqe_prev != \
464 &TAILQ_FIRST((head))) \
504 #define TAILQ_FIRST(head) ((head)->tqh_first) macro
507 for ((var) = TAILQ_FIRST((head)); \
512 for ((var) = TAILQ_FIRST((head)); \
527 TAILQ_FIRST((head)) = NULL; \
528 (head)->tqh_last = &TAILQ_FIRST((head)); \
559 if ((TAILQ_NEXT((elm), field) = TAILQ_FIRST((head))) != NULL) \
560 TAILQ_FIRST((head))->field.tqe_prev = \
564 TAILQ_FIRST((head)) = (elm); \
[all …]
/freebsd-10-stable/contrib/nvi/ex/
Dex_tag.c152 if ((tqp = TAILQ_FIRST(exp->tq)) == NULL) { in ex_tag_next()
192 if ((tqp = TAILQ_FIRST(exp->tq)) == NULL) { in ex_tag_prev()
330 dtqp = TAILQ_FIRST(exp->tq); in ex_tag_pop()
355 for (tqp = TAILQ_FIRST(exp->tq); tqp; in ex_tag_pop()
358 if (tqp == TAILQ_FIRST(exp->tq)) in ex_tag_pop()
373 if (tqp == TAILQ_FIRST(exp->tq)) in ex_tag_pop()
443 tqp = TAILQ_FIRST(exp->tq); in tag_pop()
452 if (TAILQ_NEXT(TAILQ_FIRST(exp->tq), q) == NULL) in tag_pop()
453 tagq_free(sp, TAILQ_FIRST(exp->tq)); in tag_pop()
503 for (cnt = 1, tqp = TAILQ_FIRST(exp->tq); !INTERRUPTED(sp) && in ex_tag_display()
[all …]
/freebsd-10-stable/sys/netgraph/atm/sscop/
Dng_sscop_cust.h146 #define MSGQ_PEEK(Q) TAILQ_FIRST((Q))
156 m = TAILQ_FIRST(q); \
166 _m1 = TAILQ_FIRST(Q); \
191 s = TAILQ_FIRST(q); \
202 _s = TAILQ_FIRST(F); \
223 _s1 = TAILQ_FIRST(Q); \
/freebsd-10-stable/lib/libkse/thread/
Dthr_priority_queue.c230 while (((pql = TAILQ_FIRST(&pq->pq_queue)) != NULL) && in _pq_first()
232 if ((pthread = TAILQ_FIRST(&pql->pl_head)) == NULL) { in _pq_first()
265 for (pql = TAILQ_FIRST(&pq->pq_queue); in _pq_first_debug()
267 if ((pthread = TAILQ_FIRST(&pql->pl_head)) == NULL) { in _pq_first_debug()
315 pql = TAILQ_FIRST(&pq->pq_queue); in pq_insert_prio_list()
/freebsd-10-stable/sys/kern/
Dsubr_disk.c160 if (bp == TAILQ_FIRST(&head->queue)) in bioq_remove()
199 return (TAILQ_FIRST(&head->queue)); in bioq_first()
207 bp = TAILQ_FIRST(&head->queue); in bioq_takefirst()
251 cur = TAILQ_FIRST(&head->queue); in bioq_disksort()
/freebsd-10-stable/contrib/openbsm/compat/
Dqueue.h447 #define TAILQ_FIRST(head) ((head)->tqh_first) macro
450 for ((var) = TAILQ_FIRST((head)); \
455 for ((var) = TAILQ_FIRST((head)); \
470 TAILQ_FIRST((head)) = NULL; \
471 (head)->tqh_last = &TAILQ_FIRST((head)); \
499 if ((TAILQ_NEXT((elm), field) = TAILQ_FIRST((head))) != NULL) \
500 TAILQ_FIRST((head))->field.tqe_prev = \
504 TAILQ_FIRST((head)) = (elm); \
505 (elm)->field.tqe_prev = &TAILQ_FIRST((head)); \
/freebsd-10-stable/sys/sys/
Dqueue.h607 TAILQ_FIRST((head))->field.tqe_prev != \
608 &TAILQ_FIRST((head))) \
648 #define TAILQ_FIRST(head) ((head)->tqh_first) macro
651 for ((var) = TAILQ_FIRST((head)); \
656 for ((var) = ((var) ? (var) : TAILQ_FIRST((head))); \
661 for ((var) = TAILQ_FIRST((head)); \
666 for ((var) = ((var) ? (var) : TAILQ_FIRST((head))); \
691 TAILQ_FIRST((head)) = NULL; \
692 (head)->tqh_last = &TAILQ_FIRST((head)); \
723 if ((TAILQ_NEXT((elm), field) = TAILQ_FIRST((head))) != NULL) \
[all …]
/freebsd-10-stable/sys/dev/iscsi_initiator/
Discsivar.h354 if((pq = TAILQ_FIRST(&sp->rsp)) != NULL) { in i_dqueue_rsp()
379 if((pq = TAILQ_FIRST(&sp->rsv)) != NULL) { in i_dqueue_rsv()
404 if((pq = TAILQ_FIRST(&sp->csnd)) != NULL) { in i_dqueue_csnd()
429 if((pq = TAILQ_FIRST(&sp->isnd)) != NULL) { in i_dqueue_isnd()
454 if((pq = TAILQ_FIRST(&sp->wsnd)) != NULL) { in i_dqueue_wsnd()
470 if((which & BIT(0)) && (pq = TAILQ_FIRST(&sp->isnd)) != NULL) { in i_dqueue_snd()
475 if((which & BIT(1)) && (pq = TAILQ_FIRST(&sp->wsnd)) != NULL) { in i_dqueue_snd()
480 if((which & BIT(2)) && (pq = TAILQ_FIRST(&sp->csnd)) != NULL) { in i_dqueue_snd()
529 if((pq = TAILQ_FIRST(&sp->hld)) != NULL) { in i_dqueue_hld()
/freebsd-10-stable/contrib/nvi/vi/
Dv_screen.c54 else if (TAILQ_FIRST(sp->gp->dq) == sp) { in v_screen()
58 sp->nextdisp = TAILQ_FIRST(sp->gp->dq); in v_screen()
/freebsd-10-stable/contrib/bsnmp/snmpd/
Dsnmpmod.h108 __typeof (TAILQ_FIRST(LIST)) _lelem; \
117 __typeof (TAILQ_FIRST(LIST)) _lelem; \
126 __typeof (TAILQ_FIRST(LIST)) _lelem; \
138 __typeof (TAILQ_FIRST(LIST)) _lelem; \
141 _lelem = TAILQ_FIRST(LIST); \
150 __typeof (TAILQ_FIRST(LIST)) _lelem; \
159 __typeof (TAILQ_FIRST(LIST)) _lelem; \
/freebsd-10-stable/usr.sbin/lpr/common_source/
Drequest.c72 while ((ru = TAILQ_FIRST(&rp->users)) != 0) { in free_request()
76 while ((rj = TAILQ_FIRST(&rp->jobids)) != 0) { in free_request()
/freebsd-10-stable/contrib/openbsm/bin/auditdistd/
Dauditdistd.h227 while (((adreq) = TAILQ_FIRST(list)) == NULL) \
230 (adreq) = TAILQ_FIRST(list); \
234 (adreq) = TAILQ_FIRST(list); \
/freebsd-10-stable/sys/cam/scsi/
Dscsi_target.c510 while ((ccb_h = TAILQ_FIRST(&softc->user_ccb_queue)) != NULL) { in targdtor()
514 while ((descr = TAILQ_FIRST(&softc->abort_queue)) != NULL) { in targdtor()
627 descr = TAILQ_FIRST(&softc->work_queue); in targstart()
632 next_descr = TAILQ_FIRST(&softc->work_queue); in targstart()
824 ccb_h = TAILQ_FIRST(user_queue); in targread()
825 user_descr = TAILQ_FIRST(abort_queue); in targread()
830 ccb_h = TAILQ_FIRST(user_queue); in targread()
831 user_descr = TAILQ_FIRST(abort_queue); in targread()
866 ccb_h = TAILQ_FIRST(user_queue); in targread()
886 user_descr = TAILQ_FIRST(abort_queue); in targread()
[all …]
/freebsd-10-stable/sys/dev/acpica/
Dacpi_powerres.c177 srp = TAILQ_FIRST(&acpi_powerresources); in acpi_pwr_register_resource()
221 if (TAILQ_FIRST(&rp->ap_references) != NULL) in acpi_pwr_deregister_resource()
288 if (TAILQ_FIRST(&pc->ac_references) != NULL) in acpi_pwr_deregister_consumer()
599 while ((pr = TAILQ_FIRST(&pc->ac_references)) != NULL) { in acpi_pwr_dereference_resource()
631 if (TAILQ_FIRST(&rp->ap_references) == NULL) { in acpi_pwr_switch_power()
672 if (TAILQ_FIRST(&rp->ap_references) != NULL) { in acpi_pwr_switch_power()
/freebsd-10-stable/usr.sbin/jail/
Dstate.c70 if ((j = TAILQ_FIRST(&cfjails)) && in dep_setup()
132 while ((j = TAILQ_FIRST(&ready))) { in dep_setup()
136 while ((j = TAILQ_FIRST(&depend)) != NULL) { in dep_setup()
142 } while ((j = TAILQ_FIRST(&ready))); in dep_setup()
288 (j = TAILQ_FIRST(&ready)) && JF_DO_STOP(j->flags) && in next_jail()

12345678910>>...19