Home
last modified time | relevance | path

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

12345678910>>...18

/freebsd/usr.sbin/ypserv/
H A Dyp_dblookup.c182 qptr = TAILQ_FIRST(&qhead); /* save this */ in yp_flush_all()
241 if (TAILQ_FIRST(&qhead)->dbptr->flags & flag) in yp_testflag()
327 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()
[all …]
/freebsd/sys/netinet/
H A Dsctp_ss_functions.c81 strq = TAILQ_FIRST(&asoc->ss_data.out.wheel); in sctp_ss_default_clear()
184 strq = TAILQ_FIRST(&asoc->ss_data.out.wheel); in sctp_ss_default_select()
188 strq = TAILQ_FIRST(&asoc->ss_data.out.wheel); in sctp_ss_default_select()
205 if (TAILQ_FIRST(&strq->outqueue) && in sctp_ss_default_select()
206 TAILQ_FIRST(&strq->outqueue)->net != NULL && in sctp_ss_default_select()
207 TAILQ_FIRST(&strq->outqueue)->net != net) { 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()
315 strqt = TAILQ_FIRST(&asoc->ss_data.out.wheel); in sctp_ss_rr_add()
358 strq = TAILQ_FIRST(&asoc->ss_data.out.wheel); in sctp_ss_rrp_packet_done()
[all …]
/freebsd/sbin/pfctl/
H A Dpfctl_optimize.c288 while ((r = TAILQ_FIRST(rs->rules[PF_RULESET_FILTER].inactive.ptr)) in pfctl_optimize_ruleset()
295 if (TAILQ_FIRST(&r->rdr.list) != NULL) { in pfctl_optimize_ruleset()
301 if (TAILQ_FIRST(&r->nat.list) != NULL) { in pfctl_optimize_ruleset()
307 if (TAILQ_FIRST(&r->route.list) != NULL) { in pfctl_optimize_ruleset()
332 while ((block = TAILQ_FIRST(&superblocks))) { in pfctl_optimize_ruleset()
335 while ((por = TAILQ_FIRST(&block->sb_rules))) { in pfctl_optimize_ruleset()
356 while ((por = TAILQ_FIRST(&opt_queue))) { in pfctl_optimize_ruleset()
370 while ((block = TAILQ_FIRST(&superblocks))) { in pfctl_optimize_ruleset()
419 if (!TAILQ_NEXT(TAILQ_FIRST(&block->sb_rules), por_entry)) in optimize_superblock()
437 TAILQ_FIRST(&block->sb_rules)->por_rule.quick && in optimize_superblock()
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A 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()
427 if (TAILQ_FIRST(&rpc->base->output_hooks) != NULL) { in evrpc_request_done()
546 while ((request = TAILQ_FIRST(&pool->requests)) != NULL) { in evrpc_pool_free()
551 while ((pause = TAILQ_FIRST(&pool->paused_requests)) != NULL) { in evrpc_pool_free()
556 while ((connection = TAILQ_FIRST(&pool->connections)) != NULL) { in evrpc_pool_free()
561 while ((hook = TAILQ_FIRST(&pool->input_hooks)) != NULL) { in evrpc_pool_free()
[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.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()
427 if (TAILQ_FIRST(&rpc->base->output_hooks) != NULL) { in evrpc_request_done()
546 while ((request = TAILQ_FIRST(&pool->requests)) != NULL) { in evrpc_pool_free()
551 while ((pause = TAILQ_FIRST(&pool->paused_requests)) != NULL) { in evrpc_pool_free()
556 while ((connection = TAILQ_FIRST(&pool->connections)) != NULL) { in evrpc_pool_free()
561 while ((hook = TAILQ_FIRST(&pool->input_hooks)) != NULL) { in evrpc_pool_free()
[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()
447 if (TAILQ_NEXT(TAILQ_FIRST(exp->tq), q) == NULL) in tag_pop()
448 tagq_free(sp, TAILQ_FIRST(exp->tq)); in tag_pop()
498 for (cnt = 1, tqp = TAILQ_FIRST(exp->tq); !INTERRUPTED(sp) && in ex_tag_display()
[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/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/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/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)); \
705 for ((var) = ((var) ? (var) : TAILQ_FIRST((head))); \
730 TAILQ_FIRST((head)) = NULL; \
731 (head)->tqh_last = &TAILQ_FIRST((head)); \
762 if ((TAILQ_NEXT((elm), field) = TAILQ_FIRST((head))) != NULL) \
[all …]
/freebsd/sys/sys/
H A Dqueue.h734 TAILQ_FIRST((head))->field.tqe_prev != \
735 &TAILQ_FIRST((head))) \
794 #define TAILQ_FIRST(head) ((head)->tqh_first) macro
797 for ((var) = TAILQ_FIRST((head)); \
802 for ((var) = ((var) ? (var) : TAILQ_FIRST((head))); \
807 for ((var) = TAILQ_FIRST((head)); \
812 for ((var) = ((var) ? (var) : TAILQ_FIRST((head))); \
837 TAILQ_FIRST((head)) = NULL; \
838 (head)->tqh_last = &TAILQ_FIRST((head)); \
869 if ((TAILQ_NEXT((elm), field) = TAILQ_FIRST((head))) != NULL) \
[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/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/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/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()
/freebsd/usr.sbin/bsnmpd/modules/snmp_pf/
H A Dpf_snmp.c1157 e = TAILQ_FIRST(&pfi_table); in pfi_refresh()
1205 e = TAILQ_FIRST(&pfi_table); in pfi_refresh()
1225 e = TAILQ_FIRST(&pfq_table); in pfq_refresh()
1274 e = TAILQ_FIRST(&pfq_table); in pfq_refresh()
1329 e = TAILQ_FIRST(&pft_table); in pft_refresh()
1349 e = TAILQ_FIRST(&pft_table); in pft_refresh()
1434 e = TAILQ_FIRST(&pfa_table); in pfa_refresh()
1489 e = TAILQ_FIRST(&pfa_table); in pfa_refresh()
1602 e = TAILQ_FIRST(&pfl_table); in pfl_refresh()
1618 e = TAILQ_FIRST(&pfl_table); in pfl_refresh()
[all …]
/freebsd/usr.sbin/jail/
H A Dstate.c70 if ((j = TAILQ_FIRST(&cfjails)) && in dep_setup()
131 while ((j = TAILQ_FIRST(&ready))) { in dep_setup()
135 while ((j = TAILQ_FIRST(&depend)) != NULL) { in dep_setup()
141 } while ((j = TAILQ_FIRST(&ready))); in dep_setup()
287 (j = TAILQ_FIRST(&ready)) && JF_DO_STOP(j->flags) && in next_jail()
/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/sys/netinet/khelp/
H A Dh_ertt.c229 txsi = TAILQ_FIRST(&e_t->txsegi_q); in ertt_packet_measurement_hook()
243 txsi = TAILQ_FIRST(&e_t->txsegi_q); in ertt_packet_measurement_hook()
316 txsi = TAILQ_FIRST(&e_t->txsegi_q); in ertt_packet_measurement_hook()
538 txsi = TAILQ_FIRST(&e_t->txsegi_q); in ertt_uma_dtor()

12345678910>>...18