Home
last modified time | relevance | path

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

12345678910>>...20

/freebsd-11-stable/usr.sbin/ypserv/
HDyp_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-11-stable/sys/netinet/
HDsctp_ss_functions.c87 strq = TAILQ_FIRST(&asoc->ss_data.out.wheel); in sctp_ss_default_clear()
197 strq = TAILQ_FIRST(&asoc->ss_data.out.wheel); in sctp_ss_default_select()
201 strq = TAILQ_FIRST(&asoc->ss_data.out.wheel); in sctp_ss_default_select()
216 if (TAILQ_FIRST(&strq->outqueue) && in sctp_ss_default_select()
217 TAILQ_FIRST(&strq->outqueue)->net != NULL && in sctp_ss_default_select()
218 TAILQ_FIRST(&strq->outqueue)->net != net) { in sctp_ss_default_select()
241 sp = TAILQ_FIRST(&strq->outqueue); in sctp_ss_default_scheduled()
290 sp = TAILQ_FIRST(&strq->outqueue); in sctp_ss_default_is_user_msgs_incomplete()
317 strqt = TAILQ_FIRST(&asoc->ss_data.out.wheel); in sctp_ss_rr_add()
356 strq = TAILQ_FIRST(&asoc->ss_data.out.wheel); in sctp_ss_rrp_packet_done()
[all …]
/freebsd-11-stable/sbin/pfctl/
HDpfctl_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-11-stable/sys/contrib/ngatm/netnatm/api/
HDcc_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()
HDcc_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-11-stable/contrib/ntp/sntp/libevent/
HDevrpc.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-11-stable/contrib/ngatm/libngatm/
HDsscopcust.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); \
HDsscfucust.h77 _s = TAILQ_FIRST(Q); \
87 _s1 = TAILQ_FIRST(Q); \
/freebsd-11-stable/sys/arm/arm/
HDfiq.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-11-stable/contrib/nvi/ex/
HDex_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-11-stable/sys/netgraph/atm/sscop/
HDng_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-11-stable/sys/kern/
HDsubr_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()
262 cur = TAILQ_FIRST(&head->queue); in bioq_disksort()
/freebsd-11-stable/contrib/openbsm/compat/
HDqueue.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-11-stable/sys/sys/
HDqueue.h608 TAILQ_FIRST((head))->field.tqe_prev != \
609 &TAILQ_FIRST((head))) \
649 #define TAILQ_FIRST(head) ((head)->tqh_first) macro
652 for ((var) = TAILQ_FIRST((head)); \
657 for ((var) = ((var) ? (var) : TAILQ_FIRST((head))); \
662 for ((var) = TAILQ_FIRST((head)); \
667 for ((var) = ((var) ? (var) : TAILQ_FIRST((head))); \
692 TAILQ_FIRST((head)) = NULL; \
693 (head)->tqh_last = &TAILQ_FIRST((head)); \
724 if ((TAILQ_NEXT((elm), field) = TAILQ_FIRST((head))) != NULL) \
[all …]
/freebsd-11-stable/sys/dev/iscsi_initiator/
HDiscsivar.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-11-stable/sys/dev/iwm/
HDif_iwm_power.c255 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps); in iwm_mvm_power_config_skip_dtim()
288 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps); in iwm_mvm_power_build_cmd()
375 struct ieee80211vap *vap = TAILQ_FIRST(&sc->sc_ic.ic_vaps); in iwm_mvm_power_set_ps()
419 struct ieee80211vap *vap = TAILQ_FIRST(&sc->sc_ic.ic_vaps); in iwm_mvm_power_update_ps()
435 struct ieee80211vap *vap = TAILQ_FIRST(&sc->sc_ic.ic_vaps); in iwm_mvm_power_update_mac()
/freebsd-11-stable/contrib/nvi/vi/
HDv_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-11-stable/contrib/bsnmp/snmpd/
HDsnmpmod.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-11-stable/sys/cam/scsi/
HDscsi_target.c508 while ((ccb_h = TAILQ_FIRST(&softc->user_ccb_queue)) != NULL) { in targdtor()
512 while ((descr = TAILQ_FIRST(&softc->abort_queue)) != NULL) { in targdtor()
625 descr = TAILQ_FIRST(&softc->work_queue); in targstart()
630 next_descr = TAILQ_FIRST(&softc->work_queue); in targstart()
822 ccb_h = TAILQ_FIRST(user_queue); in targread()
823 user_descr = TAILQ_FIRST(abort_queue); in targread()
828 ccb_h = TAILQ_FIRST(user_queue); in targread()
829 user_descr = TAILQ_FIRST(abort_queue); in targread()
864 ccb_h = TAILQ_FIRST(user_queue); in targread()
884 user_descr = TAILQ_FIRST(abort_queue); in targread()
[all …]
/freebsd-11-stable/usr.sbin/lpr/common_source/
HDrequest.c72 while ((ru = TAILQ_FIRST(&rp->users)) != NULL) { in free_request()
76 while ((rj = TAILQ_FIRST(&rp->jobids)) != NULL) { in free_request()
/freebsd-11-stable/contrib/openbsm/bin/auditdistd/
HDauditdistd.h227 while (((adreq) = TAILQ_FIRST(list)) == NULL) \
230 (adreq) = TAILQ_FIRST(list); \
234 (adreq) = TAILQ_FIRST(list); \
/freebsd-11-stable/sys/dev/acpica/
HDacpi_powerres.c168 srp = TAILQ_FIRST(&acpi_powerresources); in acpi_pwr_register_resource()
212 if (TAILQ_FIRST(&rp->ap_references) != NULL) in acpi_pwr_deregister_resource()
279 if (TAILQ_FIRST(&pc->ac_references) != NULL) in acpi_pwr_deregister_consumer()
590 while ((pr = TAILQ_FIRST(&pc->ac_references)) != NULL) { in acpi_pwr_dereference_resource()
622 if (TAILQ_FIRST(&rp->ap_references) == NULL) { in acpi_pwr_switch_power()
663 if (TAILQ_FIRST(&rp->ap_references) != NULL) { in acpi_pwr_switch_power()
/freebsd-11-stable/usr.sbin/bsnmpd/modules/snmp_pf/
HDpf_snmp.c1156 e = TAILQ_FIRST(&pfi_table); in pfi_refresh()
1204 e = TAILQ_FIRST(&pfi_table); in pfi_refresh()
1224 e = TAILQ_FIRST(&pfq_table); in pfq_refresh()
1273 e = TAILQ_FIRST(&pfq_table); in pfq_refresh()
1310 e = TAILQ_FIRST(&pft_table); in pft_refresh()
1357 e = TAILQ_FIRST(&pft_table); in pft_refresh()
1444 e = TAILQ_FIRST(&pfa_table); in pfa_refresh()
1499 e = TAILQ_FIRST(&pfa_table); in pfa_refresh()
1613 e = TAILQ_FIRST(&pfl_table); in pfl_refresh()
1629 e = TAILQ_FIRST(&pfl_table); in pfl_refresh()
[all …]
/freebsd-11-stable/sys/security/audit/
HDaudit_pipe.c368 while ((app = TAILQ_FIRST(&ap->ap_preselect_list)) != NULL) { in audit_pipe_preselect_flush_locked()
515 if (TAILQ_FIRST(&audit_pipe_list) == NULL) in audit_pipe_submit()
548 if (TAILQ_FIRST(&audit_pipe_list) == NULL) in audit_pipe_submit_user()
616 while ((ape = TAILQ_FIRST(&ap->ap_queue)) != NULL) { in audit_pipe_flush()
940 while ((ape = TAILQ_FIRST(&ap->ap_queue)) != NULL && in audit_pipe_read()
961 KASSERT(TAILQ_FIRST(&ap->ap_queue) == ape, in audit_pipe_read()
994 if (TAILQ_FIRST(&ap->ap_queue) != NULL) in audit_pipe_poll()
/freebsd-11-stable/sys/fs/nfsclient/
HDnfs_clnfsiod.c257 || !TAILQ_FIRST(&nmp->nm_bufq)) { in nfssvc_iod()
278 if (nmp && TAILQ_FIRST(&nmp->nm_bufq)) in nfssvc_iod()
285 while ((bp = TAILQ_FIRST(&nmp->nm_bufq)) != NULL) { in nfssvc_iod()

12345678910>>...20