Home
last modified time | relevance | path

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

12345678910>>...19

/freebsd/usr.sbin/ypserv/
H A Dyp_dblookup.c327 if (qptr != TAILQ_FIRST(&qhead)) { in yp_find_db()
481 TAILQ_FIRST(&qhead)->dbptr->size = 0; in yp_get_record()
497 if (TAILQ_FIRST(&qhead)->dbptr->size) { in yp_get_record()
498 TAILQ_FIRST(&qhead)->dbptr->key = ""; in yp_get_record()
499 TAILQ_FIRST(&qhead)->dbptr->size = 0; in yp_get_record()
523 TAILQ_FIRST(&qhead)->dbptr->size = 0; in yp_first_record()
535 TAILQ_FIRST(&qhead)->dbptr->size = 0; in yp_first_record()
550 if (TAILQ_FIRST(&qhead)->dbptr->size) { in yp_first_record()
612 TAILQ_FIRST(&qhead)->dbptr->size = 0; in yp_next_record()
621 TAILQ_FIRST(&qhead)->dbptr->size = 0; in yp_next_record()
[all …]
/freebsd/sys/netinet/
H A Dsctp_ss_functions.c205 if (TAILQ_FIRST(&strq->outqueue) && in sctp_ss_default_select()
234 sp = TAILQ_FIRST(&strq->outqueue); in sctp_ss_default_scheduled()
291 sp = TAILQ_FIRST(&strq->outqueue); in sctp_ss_default_is_user_msgs_incomplete()
379 if (TAILQ_FIRST(&strq->outqueue) && in sctp_ss_rrp_packet_done()
545 if (TAILQ_FIRST(&strq->outqueue) && in sctp_ss_prio_select()
705 … (net == NULL || (TAILQ_FIRST(&strqt->outqueue) && TAILQ_FIRST(&strqt->outqueue)->net == NULL) || in sctp_ss_fb_select()
706 (net != NULL && TAILQ_FIRST(&strqt->outqueue) && TAILQ_FIRST(&strqt->outqueue)->net != NULL && in sctp_ss_fb_select()
735 sp = TAILQ_FIRST(&strq->outqueue); in sctp_ss_fb_scheduled()
750 if (TAILQ_FIRST(&strq->outqueue)) { in sctp_ss_fb_scheduled()
903 if (TAILQ_FIRST(&strq->outqueue) && in sctp_ss_fcfs_select()
[all …]
/freebsd/sys/arm/arm/
H A Dfiq.c96 if ((ofh = TAILQ_FIRST(&fiqhandler_stack)) != NULL) { in fiq_claim()
142 if (fh == TAILQ_FIRST(&fiqhandler_stack)) { in fiq_release()
146 if ((ofh = TAILQ_FIRST(&fiqhandler_stack)) != NULL) { in fiq_release()
154 if (TAILQ_FIRST(&fiqhandler_stack) == NULL) { in fiq_release()
/freebsd/sbin/pfctl/
H A Dpfctl_optimize.c292 if (TAILQ_FIRST(&r->rpool.list) != NULL) { in pfctl_optimize_ruleset()
318 while ((block = TAILQ_FIRST(&superblocks))) { in pfctl_optimize_ruleset()
340 while ((por = TAILQ_FIRST(&opt_queue))) { in pfctl_optimize_ruleset()
354 while ((block = TAILQ_FIRST(&superblocks))) { in pfctl_optimize_ruleset()
732 while ((por = TAILQ_FIRST(&head))) { in reorder_rules()
747 largest, TAILQ_FIRST(&TAILQ_FIRST(&block-> in reorder_rules()
771 TAILQ_FIRST(&skiplist->ps_rules)-> in reorder_rules()
933 block = TAILQ_FIRST(superblocks); in load_feedback_profile()
934 blockcur = TAILQ_FIRST(&prof_superblocks); in load_feedback_profile()
1016 sk = TAILQ_FIRST(&block->sb_skipsteps[i]); in remove_from_skipsteps()
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Devrpc.c108 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()
427 if (TAILQ_FIRST(&rpc->base->output_hooks) != NULL) { in evrpc_request_done()
604 if (TAILQ_FIRST(&pool->requests) != NULL) { in evrpc_pool_add_connection()
606 TAILQ_FIRST(&pool->requests); in evrpc_pool_add_connection()
642 if (TAILQ_FIRST(&connection->requests) == NULL) in evrpc_pool_find_connection()
678 if (TAILQ_FIRST(&pool->output_hooks) != NULL) { in evrpc_schedule_request()
808 EVUTIL_ASSERT(TAILQ_FIRST(&pool->connections) != NULL); in evrpc_make_request()
877 if (TAILQ_FIRST(&pool->input_hooks) != NULL) { in evrpc_reply_done()
[all …]
H A Devent-internal.h375 #ifndef TAILQ_FIRST
376 #define TAILQ_FIRST(head) ((head)->tqh_first) macro
387 for ((var) = TAILQ_FIRST(head); \
/freebsd/contrib/libevent/
H A Devrpc.c108 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()
427 if (TAILQ_FIRST(&rpc->base->output_hooks) != NULL) { in evrpc_request_done()
604 if (TAILQ_FIRST(&pool->requests) != NULL) { in evrpc_pool_add_connection()
606 TAILQ_FIRST(&pool->requests); in evrpc_pool_add_connection()
642 if (TAILQ_FIRST(&connection->requests) == NULL) in evrpc_pool_find_connection()
678 if (TAILQ_FIRST(&pool->output_hooks) != NULL) { in evrpc_schedule_request()
808 EVUTIL_ASSERT(TAILQ_FIRST(&pool->connections) != NULL); in evrpc_make_request()
877 if (TAILQ_FIRST(&pool->input_hooks) != NULL) { in evrpc_reply_done()
[all …]
H A Devent-internal.h375 #ifndef TAILQ_FIRST
376 #define TAILQ_FIRST(head) ((head)->tqh_first) macro
387 for ((var) = TAILQ_FIRST(head); \
/freebsd/contrib/nvi/ex/
H A Dex_tag.c147 if ((tqp = TAILQ_FIRST(exp->tq)) == NULL) { in ex_tag_next()
187 if ((tqp = TAILQ_FIRST(exp->tq)) == NULL) { in ex_tag_prev()
325 dtqp = TAILQ_FIRST(exp->tq); in ex_tag_pop()
350 for (tqp = TAILQ_FIRST(exp->tq); tqp; in ex_tag_pop()
353 if (tqp == TAILQ_FIRST(exp->tq)) in ex_tag_pop()
368 if (tqp == TAILQ_FIRST(exp->tq)) in ex_tag_pop()
438 tqp = TAILQ_FIRST(exp->tq); in tag_pop()
448 tagq_free(sp, TAILQ_FIRST(exp->tq)); in tag_pop()
501 if (tp == TAILQ_FIRST(tqp->tagq)) in ex_tag_display()
767 rtqp = TAILQ_FIRST(exp->tq); in tagq_push()
[all …]
/freebsd/sys/kern/
H A Dsubr_disk.c167 if (bp == TAILQ_FIRST(&head->queue)) in bioq_remove()
213 return (TAILQ_FIRST(&head->queue)); in bioq_first()
221 bp = TAILQ_FIRST(&head->queue); in bioq_takefirst()
281 cur = TAILQ_FIRST(&head->queue); in bioq_disksort()
/freebsd/contrib/bsnmp/snmpd/
H A Dsnmpmod.h80 __typeof (TAILQ_FIRST((LIST))) _lelem; \
89 __typeof (TAILQ_FIRST((LIST))) _lelem; \
150 __typeof (TAILQ_FIRST(LIST)) _lelem; \
159 __typeof (TAILQ_FIRST(LIST)) _lelem; \
168 __typeof (TAILQ_FIRST(LIST)) _lelem; \
180 __typeof (TAILQ_FIRST(LIST)) _lelem; \
183 _lelem = TAILQ_FIRST(LIST); \
192 __typeof (TAILQ_FIRST(LIST)) _lelem; \
201 __typeof (TAILQ_FIRST(LIST)) _lelem; \
/freebsd/contrib/openbsm/compat/
H A 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/sys/sys/
H A Dqueue.h686 TAILQ_FIRST((head))->field.tqe_prev != \
687 &TAILQ_FIRST((head))) \
743 #define TAILQ_FIRST(head) ((head)->tqh_first) macro
746 for ((var) = TAILQ_FIRST((head)); \
756 for ((var) = TAILQ_FIRST((head)); \
786 TAILQ_FIRST((head)) = NULL; \
787 (head)->tqh_last = &TAILQ_FIRST((head)); \
819 TAILQ_FIRST((head))->field.tqe_prev = \
823 TAILQ_FIRST((head)) = (elm); \
824 (elm)->field.tqe_prev = &TAILQ_FIRST((head)); \
[all …]
/freebsd/contrib/libarchive/unzip/
H A Dla_queue.h630 TAILQ_FIRST((head))->field.tqe_prev != \
631 &TAILQ_FIRST((head))) \
687 #define TAILQ_FIRST(head) ((head)->tqh_first) macro
690 for ((var) = TAILQ_FIRST((head)); \
695 for ((var) = ((var) ? (var) : TAILQ_FIRST((head))); \
700 for ((var) = TAILQ_FIRST((head)); \
730 TAILQ_FIRST((head)) = NULL; \
731 (head)->tqh_last = &TAILQ_FIRST((head)); \
763 TAILQ_FIRST((head))->field.tqe_prev = \
767 TAILQ_FIRST((head)) = (elm); \
[all …]
/freebsd/contrib/nvi/vi/
H A Dv_screen.c50 else if (TAILQ_FIRST(sp->gp->dq) == sp) { in v_screen()
54 sp->nextdisp = TAILQ_FIRST(sp->gp->dq); in v_screen()
/freebsd/usr.sbin/lpr/common_source/
H A Drequest.c70 while ((ru = TAILQ_FIRST(&rp->users)) != NULL) { in free_request()
74 while ((rj = TAILQ_FIRST(&rp->jobids)) != NULL) { in free_request()
/freebsd/sys/cam/scsi/
H A Dscsi_target.c505 while ((ccb_h = TAILQ_FIRST(&softc->user_ccb_queue)) != NULL) { in targdtor()
509 while ((descr = TAILQ_FIRST(&softc->abort_queue)) != NULL) { in targdtor()
622 descr = TAILQ_FIRST(&softc->work_queue); in targstart()
627 next_descr = TAILQ_FIRST(&softc->work_queue); in targstart()
816 ccb_h = TAILQ_FIRST(user_queue); in targread()
817 user_descr = TAILQ_FIRST(abort_queue); in targread()
822 ccb_h = TAILQ_FIRST(user_queue); in targread()
823 user_descr = TAILQ_FIRST(abort_queue); in targread()
858 ccb_h = TAILQ_FIRST(user_queue); in targread()
881 user_descr = TAILQ_FIRST(abort_queue); in targread()
[all …]
/freebsd/contrib/openbsm/bin/auditdistd/
H A Dauditdistd.h227 while (((adreq) = TAILQ_FIRST(list)) == NULL) \
230 (adreq) = TAILQ_FIRST(list); \
234 (adreq) = TAILQ_FIRST(list); \
/freebsd/sys/fs/nfsclient/
H A Dnfs_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()
/freebsd/sys/dev/acpica/
H A Dacpi_powerres.c166 srp = TAILQ_FIRST(&acpi_powerresources); in acpi_pwr_register_resource()
210 if (TAILQ_FIRST(&rp->ap_references) != NULL) in acpi_pwr_deregister_resource()
277 if (TAILQ_FIRST(&pc->ac_references) != NULL) in acpi_pwr_deregister_consumer()
588 while ((pr = TAILQ_FIRST(&pc->ac_references)) != NULL) { in acpi_pwr_dereference_resource()
620 if (TAILQ_FIRST(&rp->ap_references) == NULL) { in acpi_pwr_switch_power()
660 if (TAILQ_FIRST(&rp->ap_references) != NULL) { in acpi_pwr_switch_power()
/freebsd/usr.sbin/nscd/
H A Dcacheplcs.c141 return ((struct cache_policy_item_ *)TAILQ_FIRST(&queue_policy->head)); in cache_queue_policy_get_first_item()
224 queue_item = TAILQ_FIRST(&queue_policy->head); in destroy_cache_queue_policy()
444 lfu_item = TAILQ_FIRST(&(lfu_policy->groups[i])); in cache_lfu_policy_get_first_item()
489 lfu_item = TAILQ_FIRST(&(lfu_policy->groups[i])); in cache_lfu_policy_get_next_item()
575 lfu_item = TAILQ_FIRST(&(lfu_policy->groups[i])); in destroy_cache_lfu_policy()
/freebsd/sys/security/audit/
H A Daudit_pipe.c365 while ((app = TAILQ_FIRST(&ap->ap_preselect_list)) != NULL) { in audit_pipe_preselect_flush_locked()
512 if (TAILQ_FIRST(&audit_pipe_list) == NULL) in audit_pipe_submit()
545 if (TAILQ_FIRST(&audit_pipe_list) == NULL) in audit_pipe_submit_user()
613 while ((ape = TAILQ_FIRST(&ap->ap_queue)) != NULL) { in audit_pipe_flush()
937 while ((ape = TAILQ_FIRST(&ap->ap_queue)) != NULL && in audit_pipe_read()
958 KASSERT(TAILQ_FIRST(&ap->ap_queue) == ape, in audit_pipe_read()
991 if (TAILQ_FIRST(&ap->ap_queue) != NULL) in audit_pipe_poll()
H A Daudit_trigger.c88 ti = TAILQ_FIRST(&trigger_list); in audit_close()
111 ti = TAILQ_FIRST(&trigger_list); in audit_read()
/freebsd/sbin/quotacheck/
H A Dpreen.c153 p = TAILQ_FIRST(&d->d_part); in checkfstab()
188 p = TAILQ_FIRST(&badh); in checkfstab()
272 struct partentry *p = TAILQ_FIRST(&d->d_part); in startdisk()
/freebsd/usr.sbin/bsnmpd/modules/snmp_pf/
H A Dpf_snmp.c1159 e = TAILQ_FIRST(&pfi_table); in pfi_refresh()
1207 e = TAILQ_FIRST(&pfi_table); in pfi_refresh()
1227 e = TAILQ_FIRST(&pfq_table); in pfq_refresh()
1276 e = TAILQ_FIRST(&pfq_table); in pfq_refresh()
1314 e = TAILQ_FIRST(&pft_table); in pft_refresh()
1361 e = TAILQ_FIRST(&pft_table); in pft_refresh()
1448 e = TAILQ_FIRST(&pfa_table); in pfa_refresh()
1503 e = TAILQ_FIRST(&pfa_table); in pfa_refresh()
1616 e = TAILQ_FIRST(&pfl_table); in pfl_refresh()
1632 e = TAILQ_FIRST(&pfl_table); in pfl_refresh()
[all …]

12345678910>>...19