Home
last modified time | relevance | path

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

12345678910>>...17

/netbsd-src/sys/arch/atari/dev/
H A Ddma.c122 if ((req = TAILQ_FIRST(&dma_free)) == NULL) in st_dmagrab()
131 if (TAILQ_FIRST(&dma_active) != req) { in st_dmagrab()
173 if ((req = TAILQ_FIRST(&dma_active)) == NULL) in st_dmafree()
185 if ((req = TAILQ_FIRST(&dma_active)) != NULL) { in st_dmafree()
205 return TAILQ_NEXT(TAILQ_FIRST(&dma_active), entries) != NULL; in st_dmawanted()
215 if (TAILQ_FIRST(&dma_active) != NULL) { in cdmaint()
220 int_func = TAILQ_FIRST(&dma_active)->int_func; in cdmaint()
221 softc = TAILQ_FIRST(&dma_active)->softc; in cdmaint()
/netbsd-src/sys/kern/
H A Dbufq_readprio.c125 bq = TAILQ_FIRST(&prio->bq_write); in bufq_prio_put()
168 if (TAILQ_FIRST(&prio->bq_read) == NULL) { in bufq_prio_get()
172 bp = prio->bq_next = TAILQ_FIRST(&prio->bq_read); in bufq_prio_get()
183 prio->bq_next = TAILQ_FIRST(&prio->bq_read); in bufq_prio_get()
188 prio->bq_next = TAILQ_FIRST(&prio->bq_read); in bufq_prio_get()
209 TAILQ_FIRST(&prio->bq_write); in bufq_prio_get()
247 TAILQ_FIRST(&prio->bq_write); in bufq_prio_cancel()
/netbsd-src/external/mpl/dhcp/dist/keama/
H A Ddata.h62 #define TAILQ_FIRST(head) ((head)->tqh_first) macro
65 for ((var) = TAILQ_FIRST((head)); \
70 for ((var) = TAILQ_FIRST((head)); \
75 TAILQ_FIRST((head)) = NULL; \
76 (head)->tqh_last = &TAILQ_FIRST((head)); \
98 if ((TAILQ_NEXT((elm)) = TAILQ_FIRST((head))) != NULL) \
99 TAILQ_FIRST((head))->next.tqe_prev = \
103 TAILQ_FIRST((head)) = (elm); \
104 (elm)->next.tqe_prev = &TAILQ_FIRST((head)); \
/netbsd-src/dist/pf/sbin/pfctl/
H A Dpfctl_optimize.c282 while ((r = TAILQ_FIRST(rs->rules[PF_RULESET_FILTER].inactive.ptr)) in pfctl_optimize_ruleset()
289 if (TAILQ_FIRST(&r->rpool.list) != NULL) { in pfctl_optimize_ruleset()
315 while ((block = TAILQ_FIRST(&superblocks))) { in pfctl_optimize_ruleset()
318 while ((por = TAILQ_FIRST(&block->sb_rules))) { in pfctl_optimize_ruleset()
337 while ((por = TAILQ_FIRST(&opt_queue))) { in pfctl_optimize_ruleset()
351 while ((block = TAILQ_FIRST(&superblocks))) { in pfctl_optimize_ruleset()
400 if (!TAILQ_NEXT(TAILQ_FIRST(&block->sb_rules), por_entry)) in optimize_superblock()
418 TAILQ_FIRST(&block->sb_rules)->por_rule.quick && in optimize_superblock()
449 for (por1 = TAILQ_FIRST(&block->sb_rules); por1; por1 = por_next) { in remove_identical_rules()
559 for (p1 = TAILQ_FIRST(&block->sb_rules); p1; p1 = por_next) { in combine_rules()
[all …]
/netbsd-src/sbin/fsck/
H A Dpreen.c169 nextdisk = TAILQ_FIRST(&diskh); in checkfstab()
196 p = TAILQ_FIRST(&d->d_part); in checkfstab()
224 if (TAILQ_FIRST(&d->d_part) == NULL) in checkfstab()
228 if (TAILQ_FIRST(&d->d_part) != NULL) { in checkfstab()
242 nextdisk = TAILQ_FIRST(&diskh); in checkfstab()
243 if (TAILQ_FIRST(&nextdisk->d_part) in checkfstab()
258 p = TAILQ_FIRST(&badh); in checkfstab()
361 struct partentry *p = TAILQ_FIRST(&d->d_part); in startdisk()
/netbsd-src/external/bsd/libevent/dist/
H A Devrpc.c104 while ((rpc = TAILQ_FIRST(&base->registered_rpcs)) != NULL) { in evrpc_free()
108 while ((pause = TAILQ_FIRST(&base->paused_requests)) != NULL) { in evrpc_free()
112 while ((hook = TAILQ_FIRST(&base->input_hooks)) != NULL) { in evrpc_free()
116 while ((hook = TAILQ_FIRST(&base->output_hooks)) != NULL) { in evrpc_free()
306 if (TAILQ_FIRST(&rpc->base->input_hooks) != NULL) { in evrpc_request_cb()
431 if (TAILQ_FIRST(&rpc->base->output_hooks) != NULL) { in evrpc_request_done()
550 while ((request = TAILQ_FIRST(&pool->requests)) != NULL) { in evrpc_pool_free()
555 while ((pause = TAILQ_FIRST(&pool->paused_requests)) != NULL) { in evrpc_pool_free()
560 while ((connection = TAILQ_FIRST(&pool->connections)) != NULL) { in evrpc_pool_free()
565 while ((hook = TAILQ_FIRST(&pool->input_hooks)) != NULL) { in evrpc_pool_free()
[all …]
/netbsd-src/sys/arch/arm/arm/
H A Dfiq.c101 if ((ofh = TAILQ_FIRST(&fiqhandler_stack)) != NULL) { in fiq_claim()
147 if (fh == TAILQ_FIRST(&fiqhandler_stack)) { in fiq_release()
151 if ((ofh = TAILQ_FIRST(&fiqhandler_stack)) != NULL) { in fiq_release()
159 if (TAILQ_FIRST(&fiqhandler_stack) == NULL) { in fiq_release()
/netbsd-src/external/bsd/nvi/dist/ex/
H A Dex_tag.c192 if ((tqp = TAILQ_FIRST(&exp->tq)) == NULL) { in ex_tag_next()
232 if ((tqp = TAILQ_FIRST(&exp->tq)) == NULL) { in ex_tag_prev()
372 dtqp = TAILQ_FIRST(&exp->tq); in ex_tag_pop()
398 for (tqp = TAILQ_FIRST(&exp->tq); in ex_tag_pop()
402 if (tqp == TAILQ_FIRST(&exp->tq)) in ex_tag_pop()
487 tqp = TAILQ_FIRST(&exp->tq); in tag_pop()
496 if (TAILQ_NEXT(TAILQ_FIRST(&exp->tq), q) == NULL) in tag_pop()
497 tagq_free(sp, TAILQ_FIRST(&exp->tq)); in tag_pop()
547 for (cnt = 1, tqp = TAILQ_FIRST(&exp->tq); !INTERRUPTED(sp) && in ex_tag_display()
550 if (tp == TAILQ_FIRST(&tqp->tagq)) in ex_tag_display()
[all …]
/netbsd-src/crypto/dist/ipsec-tools/src/include-glibc/sys/
H A 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)); \
/netbsd-src/crypto/dist/ipsec-tools/src/racoon/
H A Dschedule.c58 for (elm = TAILQ_FIRST(head); elm; elm = TAILQ_NEXT(elm, field))
112 timercmp(&TAILQ_FIRST(&sctree)->xtime, &now, <=)) { in schedular()
115 p = TAILQ_FIRST(&sctree); in schedular()
121 p = TAILQ_FIRST(&sctree); in schedular()
209 p = TAILQ_FIRST(&sctree);
H A Dpolicy.c74 for (p = TAILQ_FIRST(&sptree); p; p = TAILQ_NEXT(p, chain)) {
96 for (p = TAILQ_FIRST(&sptree); p; p = TAILQ_NEXT(p, chain)) {
160 for (p = TAILQ_FIRST(&sptree); p; p = TAILQ_NEXT(p, chain)) {
175 for (p = TAILQ_FIRST(&sptree); p; p = TAILQ_NEXT(p, chain)) {
422 for (p = TAILQ_FIRST(&sptree); p; p = next) { in flushsp()
/netbsd-src/external/bsd/nvi/dist/common/
H A Dgs.c115 while ((sp = TAILQ_FIRST(&wp->scrq)) != NULL) in win_end()
151 while ((wp = TAILQ_FIRST(&gp->dq)) != NULL) in gs_end()
153 while ((sp = TAILQ_FIRST(&gp->hq)) != NULL) in gs_end()
163 while ((frp = TAILQ_FIRST(&gp->frefq)) != NULL) { in gs_end()
/netbsd-src/sys/dev/iscsi/
H A Discsi_ioctl.c125 was_empty = TAILQ_FIRST(&event_handlers) == NULL; in register_event()
165 while ((evt = TAILQ_FIRST(&handler->evh_events)) != NULL) { in deregister_event()
211 evt = TAILQ_FIRST(&handler->evh_events); in check_event()
307 for (curr = TAILQ_FIRST(&event_handlers); curr != NULL; curr = next) { in check_event_handlers()
309 evt = TAILQ_FIRST(&curr->evh_events); in check_event_handlers()
315 while ((evt = TAILQ_FIRST(&curr->evh_events)) != NULL) { in check_event_handlers()
507 sess->s_mru_connection = TAILQ_FIRST(&sess->s_conn_list); in kill_connection()
690 while ((conn = TAILQ_FIRST(&sess->s_conn_list)) != NULL) {
956 while ((ccb = TAILQ_FIRST(&conn->c_ccbs_waiting)) != NULL) { in recreate_connection()
966 while ((ccb = TAILQ_FIRST( in recreate_connection()
[all...]
/netbsd-src/sys/arch/evbarm/ifpga/
H A Difpga_intr.c152 for (ih = TAILQ_FIRST(&iq->iq_list); ih != NULL; in ifpga_intr_calculate_masks()
186 if (TAILQ_FIRST(&iq->iq_list) != NULL) in ifpga_intr_calculate_masks()
188 for (ih = TAILQ_FIRST(&iq->iq_list); ih != NULL; in ifpga_intr_calculate_masks()
341 for (ih = TAILQ_FIRST(&iq->iq_list); ih != NULL; in ifpga_intr_dispatch()
/netbsd-src/sys/netinet/
H A Ddccp_tfrc.c579 elm = TAILQ_FIRST(&(cb->hist)); in tfrc_send_free()
622 new_packet = TAILQ_FIRST(&(cb->hist)); in tfrc_send_packet()
739 packet = TAILQ_FIRST(&(cb->hist)); in tfrc_send_packet_sent()
899 elm = TAILQ_FIRST(&(cb->hist)); in tfrc_send_packet_recv()
1048 elm = TAILQ_FIRST(&((cb)->hist)); \
1090 elm = TAILQ_FIRST(&(cb->li_hist)); in tfrc_calclmean()
1111 elm = TAILQ_FIRST(&(cb->li_hist)); in tfrc_calclmean()
1354 elm = TAILQ_FIRST(&(cb->hist)); in tfrc_recv_add_hist()
1395 if (TAILQ_FIRST(&(cb->li_hist)) != NULL) { in tfrc_recv_add_hist()
1532 li_elm = TAILQ_FIRST(&(cb->li_hist)); in tfrc_recv_updateLI()
[all …]
H A Dsctp_pcb.c2181 while ((sq = TAILQ_FIRST(&inp->sctp_queue_list)) != NULL) { in sctp_inpcb_free()
2539 netfirst = TAILQ_FIRST(&stcb->asoc.nets); in sctp_add_remote_addr()
2877 for (net = TAILQ_FIRST(&asoc->nets); net != NULL; net = net_tmp) { in sctp_del_remote_addr()
2890 lnet = TAILQ_FIRST(&asoc->nets); in sctp_del_remote_addr()
2898 TAILQ_FIRST(&asoc->nets); in sctp_del_remote_addr()
2903 TAILQ_FIRST(&asoc->nets); in sctp_del_remote_addr()
2908 TAILQ_FIRST(&asoc->nets); in sctp_del_remote_addr()
3103 net = TAILQ_FIRST(&asoc->nets); in sctp_free_assoc()
3123 outs = TAILQ_FIRST(&asoc->out_wheel); in sctp_free_assoc()
3126 chk = TAILQ_FIRST(&outs->outqueue); in sctp_free_assoc()
[all …]
H A Dtcp_sack.c307 cur = TAILQ_FIRST(&tp->snd_holes); in tcp_sack_option()
408 struct sackhole *cur = TAILQ_FIRST(&tp->snd_holes); in tcp_del_sackholes()
433 while ((sack = TAILQ_FIRST(&tp->snd_holes)) != NULL) { in tcp_free_sackholes()
475 struct sackhole *cur = TAILQ_FIRST(&tp->snd_holes); in tcp_sack_adjust()
/netbsd-src/external/bsd/nvi/dist/vi/
H A Dv_screen.c60 else if (TAILQ_FIRST(&sp->wp->scrq) == sp) { in v_screen()
64 sp->nextdisp = TAILQ_FIRST(&sp->wp->scrq); in v_screen()
/netbsd-src/sys/net/
H A Dbpf_stub.c127 for (lag = TAILQ_FIRST(&lagdrvs); lag; lag = lag_next) { in bpf_stub_detach()
135 while ((lag = TAILQ_FIRST(&rmlist)) != NULL) { in bpf_stub_detach()
189 while ((lag = TAILQ_FIRST(&lagdrvs)) != NULL) { in bpf_ops_handover_enter()
/netbsd-src/lib/libresolv/
H A Dres_update.c163 n = res_nmkupdate(statp, TAILQ_FIRST(&zptr->z_rrlist), in res_nupdate()
195 zptr = TAILQ_FIRST(&zgrps); in res_nupdate()
197 res_freeupdrec(TAILQ_FIRST(&zptr->z_rrlist)); in res_nupdate()
/netbsd-src/sys/dev/pckbport/
H A Dpckbport.c73 #define CMD_IN_QUEUE(q) (TAILQ_FIRST(&(q)->cmdqueue) != NULL)
340 while ((cmd = TAILQ_FIRST(&q->cmdqueue))) { in pckbport_cleanqueue()
394 struct pckbport_devcmd *cmd = TAILQ_FIRST(&q->cmdqueue); in pckbport_start()
410 cmd = TAILQ_FIRST(&q->cmdqueue); in pckbport_start()
431 struct pckbport_devcmd *cmd = TAILQ_FIRST(&q->cmdqueue); in pckbport_cmdresponse()
491 nc = TAILQ_FIRST(&q->freequeue); in pckbport_enqueue_cmd()
/netbsd-src/sys/arch/evbarm/iq80310/
H A Diq80310_intr.c156 for (ih = TAILQ_FIRST(&iq->iq_list); ih != NULL; in iq80310_intr_calculate_masks()
241 if (TAILQ_FIRST(&iq->iq_list) != NULL) in iq80310_intr_calculate_masks()
243 for (ih = TAILQ_FIRST(&iq->iq_list); ih != NULL; in iq80310_intr_calculate_masks()
460 for (ih = TAILQ_FIRST(&iq->iq_list); ih != NULL; in iq80310_intr_dispatch()
/netbsd-src/sys/arch/arm/at91/
H A Dat91aic.c138 for (ih = TAILQ_FIRST(&iq->iq_list); ih != NULL; in at91aic_calculate_masks()
175 if (TAILQ_FIRST(&iq->iq_list) != NULL) in at91aic_calculate_masks()
322 if (TAILQ_FIRST(&iq->iq_list) == NULL || (iq->iq_type & ~type) == 0) { in at91aic_intr_establish()
388 for (ih = TAILQ_FIRST(&iq->iq_list); ih != NULL; in intr_process()
/netbsd-src/sys/fs/nfs/client/
H A Dnfs_clnfsiod.c259 || !TAILQ_FIRST(&nmp->nm_bufq)) { in nfssvc_iod()
280 if (nmp && TAILQ_FIRST(&nmp->nm_bufq)) in nfssvc_iod()
287 while ((bp = TAILQ_FIRST(&nmp->nm_bufq)) != NULL) { in nfssvc_iod()
/netbsd-src/sys/arch/arm/xscale/
H A Dbecc_icu.c176 for (ih = TAILQ_FIRST(&iq->iq_list); ih != NULL; in becc_intr_calculate_masks()
210 if (TAILQ_FIRST(&iq->iq_list) != NULL) in becc_intr_calculate_masks()
212 for (ih = TAILQ_FIRST(&iq->iq_list); ih != NULL; in becc_intr_calculate_masks()

12345678910>>...17