/dragonfly/usr.sbin/ypserv/ |
H A D | yp_dblookup.c | 325 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 D | pfctl_optimize.c | 290 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 D | nfs_iod.c | 88 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 D | vm_pager.c | 432 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 D | ex_tag.c | 147 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 D | queue.h | 509 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 D | eventhandler.h | 84 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 D | iscsivar.h | 301 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 D | hammer_flusher.c | 150 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 D | subr_eventhandler.c | 97 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 D | kern_module.c | 85 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 D | subr_autoconf.c | 142 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 D | v_screen.c | 50 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 D | ifmcstat.c | 141 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 D | request.c | 69 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 D | scsi_target.c | 541 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 D | pf_subr.c | 90 for (hdp = TAILQ_FIRST(head); hdp != NULL; in hook_disestablish() 118 while ((hdp = TAILQ_FIRST(head)) != NULL) { in dohooks()
|
H A D | pf_ioctl.c | 459 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 D | acpi_powerres.c | 178 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 D | devattr_enumerate.c | 115 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 D | cacheplcs.c | 137 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 D | thr_list.c | 113 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 D | vnodeinfo.c | 336 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 D | control.c | 63 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 D | fuse_device.c | 105 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()
|