Home
last modified time | relevance | path

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

12345678910>>...14

/dragonfly/usr.sbin/ypserv/
H A Dyp_dblookup.c325 if (qptr != TAILQ_FIRST(&qhead)) { in yp_find_db()
479 TAILQ_FIRST(&qhead)->dbptr->size = 0; in yp_get_record()
495 if (TAILQ_FIRST(&qhead)->dbptr->size) { in yp_get_record()
496 TAILQ_FIRST(&qhead)->dbptr->key = ""; in yp_get_record()
497 TAILQ_FIRST(&qhead)->dbptr->size = 0; in yp_get_record()
521 TAILQ_FIRST(&qhead)->dbptr->size = 0; in yp_first_record()
533 TAILQ_FIRST(&qhead)->dbptr->size = 0; in yp_first_record()
548 if (TAILQ_FIRST(&qhead)->dbptr->size) { in yp_first_record()
610 TAILQ_FIRST(&qhead)->dbptr->size = 0; in yp_next_record()
619 TAILQ_FIRST(&qhead)->dbptr->size = 0; in yp_next_record()
[all …]
/dragonfly/usr.sbin/pfctl/
H A Dpfctl_optimize.c290 if (TAILQ_FIRST(&r->rpool.list) != NULL) { in pfctl_optimize_ruleset()
316 while ((block = TAILQ_FIRST(&superblocks))) { in pfctl_optimize_ruleset()
338 while ((por = TAILQ_FIRST(&opt_queue))) { in pfctl_optimize_ruleset()
352 while ((block = TAILQ_FIRST(&superblocks))) { in pfctl_optimize_ruleset()
730 while ((por = TAILQ_FIRST(&head))) { in reorder_rules()
745 largest, TAILQ_FIRST(&TAILQ_FIRST(&block-> in reorder_rules()
769 TAILQ_FIRST(&skiplist->ps_rules)-> in reorder_rules()
930 block = TAILQ_FIRST(superblocks); in load_feedback_profile()
931 blockcur = TAILQ_FIRST(&prof_superblocks); in load_feedback_profile()
1013 sk = TAILQ_FIRST(&block->sb_skipsteps[i]); in remove_from_skipsteps()
[all …]
/dragonfly/sys/vfs/nfs/
H A Dnfs_iod.c88 if (TAILQ_FIRST(&nmp->nm_reqq) == NULL && in nfssvc_iod_reader()
89 TAILQ_FIRST(&nmp->nm_reqrxq) == NULL) { in nfssvc_iod_reader()
120 while ((req = TAILQ_FIRST(&nmp->nm_reqrxq)) != NULL) { in nfssvc_iod_reader()
188 while ((bio = TAILQ_FIRST(&nmp->nm_bioq)) != NULL) { in nfssvc_iod_writer()
202 while ((req = TAILQ_FIRST(&nmp->nm_reqtxq)) != NULL) { in nfssvc_iod_writer()
/dragonfly/sys/vm/
H A Dvm_pager.c432 if (TAILQ_FIRST(&bswlist_raw[iter]) == NULL) { in getpbuf()
437 if ((bp = TAILQ_FIRST(&bswlist_raw[iter])) == NULL) { in getpbuf()
477 if (TAILQ_FIRST(&bswlist_kva[iter]) == NULL) { in getpbuf_kva()
482 if ((bp = TAILQ_FIRST(&bswlist_kva[iter])) == NULL) { in getpbuf_kva()
526 if (TAILQ_FIRST(&bswlist_mem[iter]) == NULL) { in getpbuf_mem()
531 if ((bp = TAILQ_FIRST(&bswlist_mem[iter])) == NULL) { in getpbuf_mem()
565 if (*pfreecnt <= 0 || TAILQ_FIRST(&bswlist_raw[iter]) == NULL) { in trypbuf()
571 (bp = TAILQ_FIRST(&bswlist_raw[iter])) == NULL) { in trypbuf()
597 if (*pfreecnt <= 0 || TAILQ_FIRST(&bswlist_kva[iter]) == NULL) { in trypbuf_kva()
603 (bp = TAILQ_FIRST(&bswlist_kva[iter])) == NULL) { in trypbuf_kva()
/dragonfly/contrib/nvi2/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 …]
/dragonfly/sys/sys/
H A Dqueue.h509 TAILQ_FIRST((head))->field.tqe_prev != \
510 &TAILQ_FIRST((head))) \
552 #define TAILQ_FIRST(head) ((head)->tqh_first) macro
555 for ((var) = TAILQ_FIRST((head)); \
560 for ((var) = ((var) ? (var) : TAILQ_FIRST((head))); \
565 for ((var) = TAILQ_FIRST((head)); \
585 TAILQ_FIRST((head)) = NULL; \
586 (head)->tqh_last = &TAILQ_FIRST((head)); \
618 TAILQ_FIRST((head))->field.tqe_prev = \
622 TAILQ_FIRST((head)) = (elm); \
[all …]
H A Deventhandler.h84 struct eventhandler_entry *_ep = TAILQ_FIRST(&(_el->el_entries)); \
120 for (_ep = TAILQ_FIRST(&(_el->el_entries)); \
/dragonfly/sys/dev/disk/iscsi/initiator/
H A Discsivar.h301 if((pq = TAILQ_FIRST(&isc->freepdu)) == NULL) { in pdu_alloc()
359 if((pq = TAILQ_FIRST(&sp->rsp)) != NULL) { in i_dqueue_rsp()
384 if((pq = TAILQ_FIRST(&sp->rsv)) != NULL) { in i_dqueue_rsv()
409 if((pq = TAILQ_FIRST(&sp->csnd)) != NULL) { in i_dqueue_csnd()
434 if((pq = TAILQ_FIRST(&sp->isnd)) != NULL) { in i_dqueue_isnd()
459 if((pq = TAILQ_FIRST(&sp->wsnd)) != NULL) { in i_dqueue_wsnd()
475 if((which & BIT(0)) && (pq = TAILQ_FIRST(&sp->isnd)) != NULL) { in i_dqueue_snd()
480 if((which & BIT(1)) && (pq = TAILQ_FIRST(&sp->wsnd)) != NULL) { in i_dqueue_snd()
485 if((which & BIT(2)) && (pq = TAILQ_FIRST(&sp->csnd)) != NULL) { in i_dqueue_snd()
534 if((pq = TAILQ_FIRST(&sp->hld)) != NULL) { in i_dqueue_hld()
/dragonfly/sys/vfs/hammer/
H A Dhammer_flusher.c150 flg = TAILQ_FIRST(&hmp->flush_group_list); in hammer_flusher_async_one()
235 while ((info = TAILQ_FIRST(&hmp->flusher.ready_list)) != NULL) { in hammer_flusher_destroy()
320 if (TAILQ_FIRST(&hmp->flusher.ready_list) == NULL) { in hammer_flusher_flush()
332 flg = TAILQ_FIRST(&hmp->flush_group_list); in hammer_flusher_flush()
395 while ((info = TAILQ_FIRST(&hmp->flusher.ready_list)) != NULL) { in hammer_flusher_flush()
407 while (TAILQ_FIRST(&hmp->flusher.run_list) != NULL) in hammer_flusher_flush()
428 KKASSERT(TAILQ_FIRST(&hmp->flush_group_list) == flg); in hammer_flusher_flush()
447 while ((resv = TAILQ_FIRST(&hmp->delay_list)) != NULL) { in hammer_flusher_flush()
958 if (TAILQ_FIRST(&hmp->flush_group_list) || /* dirty inodes */ in hammer_flusher_haswork()
/dragonfly/sys/kern/
H A Dsubr_eventhandler.c97 for (ep = TAILQ_FIRST(&list->el_entries); in eventhandler_register()
130 ep = TAILQ_FIRST(&list->el_entries); in eventhandler_deregister()
147 for (list = TAILQ_FIRST(&eventhandler_lists); in eventhandler_find_list()
H A Dkern_module.c85 for (mod = TAILQ_FIRST(&modules); mod; mod = TAILQ_NEXT(mod, link)) in module_shutdown()
192 for (mod = TAILQ_FIRST(&modules); mod; mod = TAILQ_NEXT(mod, link)) { in module_lookupbyname()
205 for (mod = TAILQ_FIRST(&modules); mod; mod = TAILQ_NEXT(mod, link)) { in module_lookupbyid()
256 mod = TAILQ_FIRST(&modules); in sys_modnext()
H A Dsubr_autoconf.c142 for (hook_entry = TAILQ_FIRST(&intr_config_hook_list); in config_intrhook_establish()
185 for (hook_entry = TAILQ_FIRST(&intr_config_hook_list); in config_intrhook_disestablish()
/dragonfly/contrib/nvi2/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()
/dragonfly/usr.sbin/ifmcstat/
H A Difmcstat.c141 if (TAILQ_FIRST(&head) != NULL) { in main()
142 KREAD(TAILQ_FIRST(&head), &ifac, in main()
219 if (TAILQ_FIRST(&ifnet.if_multiaddrs)) in if6_addrlist()
220 ifmp = TAILQ_FIRST(&ifnet.if_multiaddrs); in if6_addrlist()
/dragonfly/usr.sbin/lpr/common_source/
H A Drequest.c69 while ((ru = TAILQ_FIRST(&rp->users)) != NULL) { in free_request()
73 while ((rj = TAILQ_FIRST(&rp->jobids)) != NULL) { in free_request()
/dragonfly/sys/bus/cam/scsi/
H A Dscsi_target.c541 while ((ccb_h = TAILQ_FIRST(&softc->user_ccb_queue)) != NULL) { in targdtor()
545 while ((descr = TAILQ_FIRST(&softc->abort_queue)) != NULL) { in targdtor()
661 descr = TAILQ_FIRST(&softc->work_queue); in targstart()
667 next_descr = TAILQ_FIRST(&softc->work_queue); in targstart()
875 ccb_h = TAILQ_FIRST(user_queue); in targread()
876 user_descr = TAILQ_FIRST(abort_queue); in targread()
881 ccb_h = TAILQ_FIRST(user_queue); in targread()
882 user_descr = TAILQ_FIRST(abort_queue); in targread()
917 ccb_h = TAILQ_FIRST(user_queue); in targread()
937 user_descr = TAILQ_FIRST(abort_queue); in targread()
[all …]
/dragonfly/sys/net/pf/
H A Dpf_subr.c90 for (hdp = TAILQ_FIRST(head); hdp != NULL; in hook_disestablish()
118 while ((hdp = TAILQ_FIRST(head)) != NULL) { in dohooks()
H A Dpf_ioctl.c459 for (p = TAILQ_FIRST(head); p != NULL && in tagname2tag()
1265 (TAILQ_FIRST(&rule->rpool.list) == NULL)) in pfioctl()
1520 oldrule = TAILQ_FIRST( in pfioctl()
1526 oldrule = TAILQ_FIRST( in pfioctl()
1744 state = TAILQ_FIRST(&state_list[nn]); in pfioctl()
2079 altq = TAILQ_FIRST(pf_altqs_active); in pfioctl()
2109 altq = TAILQ_FIRST(pf_altqs_active); in pfioctl()
2211 pa = TAILQ_FIRST(&pool->list); in pfioctl()
2296 oldpa = TAILQ_FIRST(&pool->list); in pfioctl()
2302 oldpa = TAILQ_FIRST(&pool->list); in pfioctl()
[all …]
/dragonfly/sys/dev/acpica/
H A Dacpi_powerres.c178 srp = TAILQ_FIRST(&acpi_powerresources); in acpi_pwr_register_resource()
222 if (TAILQ_FIRST(&rp->ap_references) != NULL) in acpi_pwr_deregister_resource()
289 if (TAILQ_FIRST(&pc->ac_references) != NULL) in acpi_pwr_deregister_consumer()
600 while ((pr = TAILQ_FIRST(&pc->ac_references)) != NULL) { in acpi_pwr_dereference_resource()
632 if (TAILQ_FIRST(&rp->ap_references) == NULL) { in acpi_pwr_switch_power()
676 if (TAILQ_FIRST(&rp->ap_references) != NULL) { in acpi_pwr_switch_power()
/dragonfly/lib/libdevattr/
H A Ddevattr_enumerate.c115 le = TAILQ_FIRST(&udev_enum->list_entries); in udev_enumerate_unref()
162 return TAILQ_FIRST(&udev_enum->list_entries); in udev_enumerate_get_list_entry()
179 le = TAILQ_FIRST(&udev_enum->list_entries); in udev_enumerate_get_list_entry()
/dragonfly/usr.sbin/nscd/
H A Dcacheplcs.c137 return ((struct cache_policy_item_ *)TAILQ_FIRST(&queue_policy->head)); in cache_queue_policy_get_first_item()
220 queue_item = TAILQ_FIRST(&queue_policy->head); in destroy_cache_queue_policy()
440 lfu_item = TAILQ_FIRST(&(lfu_policy->groups[i])); in cache_lfu_policy_get_first_item()
485 lfu_item = TAILQ_FIRST(&(lfu_policy->groups[i])); in cache_lfu_policy_get_next_item()
571 lfu_item = TAILQ_FIRST(&(lfu_policy->groups[i])); in destroy_cache_lfu_policy()
/dragonfly/lib/libthread_xu/thread/
H A Dthr_list.c113 for (td = TAILQ_FIRST(&_thread_gc_list); td != NULL; td = td_next) { in _thr_gc()
134 while ((td = TAILQ_FIRST(&worklist)) != NULL) { in _thr_gc()
160 if ((thread = TAILQ_FIRST(&free_threadq)) != NULL) { in _thr_alloc()
/dragonfly/test/debug/
H A Dvnodeinfo.c336 if (withnames && TAILQ_FIRST(&vn.v_namecache)) { in dumpvp()
341 kkread(kd, (u_long)TAILQ_FIRST(&vn.v_namecache), &ncp, sizeof(ncp)); in dumpvp()
422 if ((scan = TAILQ_FIRST(&lockf->lf_range)) != NULL) { in dumplocks()
430 if ((scan = TAILQ_FIRST(&lockf->lf_blocked)) != NULL) { in dumplocks()
/dragonfly/contrib/dhcpcd/src/
H A Dcontrol.c63 while ((fdp = TAILQ_FIRST(&fd->queue))) { in control_queue_free()
71 while ((fdp = TAILQ_FIRST(&fd->free_queue))) { in control_queue_free()
155 data = TAILQ_FIRST(&fd->queue); in control_handle_write()
187 if (TAILQ_FIRST(&fd->queue) != NULL) in control_handle_write()
502 while ((l = TAILQ_FIRST(&ctx->control_fds)) != NULL) { in control_stop()
/dragonfly/sys/vfs/fuse/
H A Dfuse_device.c105 while ((fip = TAILQ_FIRST(&fmp->request_head))) { in fuse_device_clear()
111 while ((fip = TAILQ_FIRST(&fmp->reply_head))) { in fuse_device_clear()
134 while (!(fip = TAILQ_FIRST(&fmp->request_head))) { in fuse_device_read()

12345678910>>...14