Home
last modified time | relevance | path

Searched refs:head (Results 1 – 25 of 1044) sorted by relevance

12345678910>>...42

/openbsd/sys/sys/
H A Dqueue.h112 #define SLIST_EMPTY(head) (SLIST_FIRST(head) == SLIST_END(head)) argument
129 SLIST_FIRST(head) = SLIST_END(head); \
186 #define LIST_EMPTY(head) (LIST_FIRST(head) == LIST_END(head)) argument
203 LIST_FIRST(head) = LIST_END(head); \
269 #define SIMPLEQ_EMPTY(head) (SIMPLEQ_FIRST(head) == SIMPLEQ_END(head)) argument
347 #define XSIMPLEQ_FIRST(head) XSIMPLEQ_XOR(head, ((head)->sqx_first)) argument
369 (head)->sqx_last = XSIMPLEQ_XOR(head, &(head)->sqx_first); \
381 *(XSIMPLEQ_XOR(head, (head)->sqx_last)) = XSIMPLEQ_XOR(head, (elm)); \
395 (head)->sqx_last = XSIMPLEQ_XOR(head, &(head)->sqx_first); \
437 (TAILQ_FIRST(head) == TAILQ_END(head))
[all …]
H A Dsmr.h178 (SMR_SLIST_FIRST_LOCKED(head) == SMR_SLIST_END(head))
201 (head)->smr_slh_first = SMR_SLIST_END(head); \
222 (head)->smr_slh_first = (head)->smr_slh_first->field.smr_sle_next;\
262 #define SMR_LIST_FIRST(head) \ argument
267 #define SMR_LIST_FIRST_LOCKED(head) ((head)->smr_lh_first) argument
270 (SMR_LIST_FIRST_LOCKED(head) == SMR_LIST_END(head))
291 (head)->smr_lh_first = SMR_LIST_END(head); \
359 #define SMR_TAILQ_FIRST_LOCKED(head) ((head)->smr_tqh_first) argument
364 (SMR_TAILQ_FIRST_LOCKED(head) == SMR_TAILQ_END(head))
385 (head)->smr_tqh_first = SMR_TAILQ_END(head); \
[all …]
H A Dtree.h79 #define SPLAY_ROOT(head) (head)->sph_root argument
80 #define SPLAY_EMPTY(head) (SPLAY_ROOT(head) == NULL) argument
98 (head)->sph_root = SPLAY_LEFT((head)->sph_root, field); \
104 (head)->sph_root = SPLAY_RIGHT((head)->sph_root, field); \
126 if (SPLAY_EMPTY(head)) \
192 (head)->sph_root = SPLAY_RIGHT((head)->sph_root, field);\
195 (head)->sph_root = SPLAY_LEFT((head)->sph_root, field);\
319 #define RB_ROOT(head) (head)->rbh_root argument
320 #define RB_EMPTY(head) (RB_ROOT(head) == NULL) argument
481 elm = RB_ROOT(head); \
[all …]
/openbsd/gnu/gcc/gcc/
H A Dtree-browser.c256 if (head && TYPE_P (head)) in browse_tree()
263 if (head && TYPE_P (head)) in browse_tree()
324 if (head && DECL_P (head)) in browse_tree()
331 if (head && DECL_P (head)) in browse_tree()
338 if (head && DECL_P (head)) in browse_tree()
345 if (head && DECL_P (head)) in browse_tree()
354 if (head && DECL_P (head)) in browse_tree()
363 if (head && DECL_P (head)) in browse_tree()
387 if (head && DECL_P (head)) in browse_tree()
427 if (head && EXPR_P (head) && TREE_OPERAND (head, 0)) in browse_tree()
[all …]
H A Dtree-iterator.c93 head = ggc_alloc (sizeof (*head)); in tsi_link_before()
96 head->stmt = t; in tsi_link_before()
97 tail = head; in tsi_link_before()
108 if (head->prev) in tsi_link_before()
109 head->prev->next = head; in tsi_link_before()
118 if (head->prev) in tsi_link_before()
119 head->prev->next = head; in tsi_link_before()
131 i->ptr = head; in tsi_link_before()
169 head = ggc_alloc (sizeof (*head)); in tsi_link_after()
173 tail = head; in tsi_link_after()
[all …]
H A Dbitmap.c83 head->first = next; in bitmap_element_free()
90 if (head->current) in bitmap_element_free()
91 head->indx = head->current->indx; in bitmap_element_free()
93 head->indx = 0; in bitmap_element_free()
171 head->indx = 0; in bitmap_elt_clear_from()
192 if (head->first) in bitmap_clear()
193 bitmap_elt_clear_from (head, head->first); in bitmap_clear()
348 head->indx = indx; in bitmap_element_link()
366 head->indx = indx; in bitmap_elt_insert_after()
974 head->indx = head->current->indx; in bitmap_clear_range()
[all …]
/openbsd/sys/dev/pci/drm/include/linux/
H A Dlist.h45 (head)->next = head; in INIT_LIST_HEAD()
46 (head)->prev = head; in INIT_LIST_HEAD()
56 return (head)->next == head; in list_empty()
61 return !list_empty(head) && ((head)->next == (head)->prev); in list_is_singular()
144 list_del(head); in list_rotate_to_front()
156 last->next = head; in list_bulk_move_tail()
180 for (entry = (head)->prev; entry != (head); \
271 __list_splice(list, head, head->next); in list_splice()
280 __list_splice(list, head, head->next); in list_splice_init()
290 __list_splice(list, head->prev, head); in list_splice_tail()
[all …]
H A Dllist.h19 llist_del_all(struct llist_head *head) in llist_del_all() argument
21 return atomic_swap_ptr(&head->first, NULL); in llist_del_all()
25 llist_del_first(struct llist_head *head) in llist_del_first() argument
30 first = head->first; in llist_del_first()
45 new->next = first = head->first; in llist_add()
53 struct llist_head *head) in llist_add_batch() argument
58 new_last->next = first = head->first; in llist_add_batch()
65 init_llist_head(struct llist_head *head) in init_llist_head() argument
67 head->first = NULL; in init_llist_head()
71 llist_empty(struct llist_head *head) in llist_empty() argument
[all …]
/openbsd/sys/dev/usb/dwc2/
H A Dlist.h59 (head)->next = head; in INIT_LIST_HEAD()
60 (head)->prev = head; in INIT_LIST_HEAD()
65 return (head)->next == head; in list_empty()
72 (new)->prev = head; in list_add()
73 (head)->next = new; in list_add()
79 (entry)->next = head; in list_add_tail()
81 (head)->prev = entry; in list_add_tail()
93 list_add(list, head); in list_move()
97 struct list_head *head) in list_move_tail() argument
111 for (entry = (head)->next; entry != head; entry = (entry)->next)
[all …]
/openbsd/lib/libelf/
H A D_elftc.h104 #define STAILQ_EMPTY(head) ((head)->stqh_first == NULL) argument
115 #define STAILQ_FIRST(head) ((head)->stqh_first) argument
128 { NULL, &(head).stqh_first }
147 (head)->stqh_first = NULL; \
148 (head)->stqh_last = &(head)->stqh_first; \
178 (STAILQ_EMPTY((head)) ? \
204 if (((head)->stqh_first = (head)->stqh_first->field.stqe_next) == \
206 (head)->stqh_last = &(head)->stqh_first; \
230 _e = STAILQ_FIRST((head)); \
239 _q = STAILQ_FIRST((head)); \
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/
H A Dbitmap.c57 bitmap head; in bitmap_elem_to_freelist()
77 bitmap head; in bitmap_element_free()
98 head->indx = head->current->indx;
107 bitmap head; in bitmap_element_allocate()
205 bitmap head; in bitmap_element_link()
262 bitmap head; in bitmap_clear()
272 head->first = head->current = 0;
330 bitmap head; in bitmap_find_bit()
761 head = ggc_alloc (sizeof (*head));
763 head->first = head->current = 0;
[all …]
H A Dsched-ebb.c213 schedule_ebb (head, tail) in schedule_ebb() argument
214 rtx head, tail; in schedule_ebb()
250 if (INSN_P (head))
257 remove_note (head, note);
259 remove_note (head, note);
266 rm_other_notes (head, tail);
275 head = current_sched_info->head;
308 rtx head = bb->head; local
339 while (head != tail)
342 head = NEXT_INSN (head);
[all …]
/openbsd/sbin/fsck_msdos/
H A Dfat.c293 if (fat[p].head != head) in clearchain()
337 for (head = CLUST_FIRST; head < boot->NumClusters; head++) { in checkfat()
347 fat[p].head != head; in checkfat()
349 fat[p].head = head; in checkfat()
362 for (head = CLUST_FIRST; head < boot->NumClusters; head++) { in checkfat()
364 if (fat[head].head != head) in checkfat()
390 if (head == fat[n].head) { in checkfat()
397 head, fat[n].head, n); in checkfat()
414 fat[p].head = head; in checkfat()
518 for (head = CLUST_FIRST; head < boot->NumClusters; head++) { in checklost()
[all …]
H A Ddir.c367 if (dir->head < CLUST_FIRST || dir->head >= boot->NumClusters) in checksize()
426 cl = dir->head; in readDosDirSection()
669 dirent.head = 0; in readDosDirSection()
686 || fat[dirent.head].head != dirent.head) { in readDosDirSection()
694 dirent.head); in readDosDirSection()
725 if (dirent.head >= CLUST_FIRST && dirent.head < boot->NumClusters) in readDosDirSection()
748 if (dirent.head != dir->head) { in readDosDirSection()
752 dirent.head = dir->head; in readDosDirSection()
780 } else if (dirent.head != dir->parent->head) { in readDosDirSection()
784 dirent.head = dir->parent->head; in readDosDirSection()
[all …]
/openbsd/gnu/usr.bin/perl/ext/File-DosGlob/lib/File/
H A DDosGlob.pm24 my $head = '.';
44 if ($head =~ /[*?]/) {
45 @globdirs = doglob('d', $head);
49 $head .= $sepchr if $head eq '' or $head =~ /^[A-Za-z]:\z/s;
55 $head = '' if $head eq '.';
56 $head .= $sepchr unless $head eq '' or substr($head,-1) eq $sepchr;
57 $head .= $pat;
58 if ($cond eq 'd') { push(@retval,$head) if -d $head }
59 else { push(@retval,$head) if -e $head }
72 $head = '' if $head eq '.';
[all …]
/openbsd/lib/libcurses/
H A Dfifo_defs.h53 ? head = 0 \
54 : head++; \
55 if (head == tail) \
56 head = -1, tail = 0; \
59 (head <= 0) \
60 ? head = FIFO_SIZE-1 \
61 : head--; \
62 if (head == tail) \
69 if (tail == head) \
76 if (head == tail) \
[all …]
/openbsd/gnu/usr.bin/binutils-2.17/gprof/
H A Dcg_dfn.c92 Sym *head = 0; in find_cycle() local
100 if (child == head) in find_cycle()
104 if (child->cg.cyc.head != child && child->cg.cyc.head == head) in find_cycle()
119 if (head) in find_cycle()
121 print_name (head); in find_cycle()
165 if (head->cg.cyc.head != head) in find_cycle()
167 head = head->cg.cyc.head; in find_cycle()
182 child->cg.cyc.head = head; in find_cycle()
186 print_name (head); in find_cycle()
190 tail->cg.cyc.next->cg.cyc.head = head; in find_cycle()
[all …]
/openbsd/gnu/usr.bin/binutils/gprof/
H A Dcg_dfn.c95 Sym *head = 0; local
103 if (child == head)
107 if (child->cg.cyc.head != child && child->cg.cyc.head == head)
122 if (head)
124 print_name (head);
168 if (head->cg.cyc.head != head)
170 head = head->cg.cyc.head;
185 child->cg.cyc.head = head;
189 print_name (head);
193 tail->cg.cyc.next->cg.cyc.head = head;
[all …]
/openbsd/usr.sbin/npppd/common/
H A Dradish.c87 if (head == NULL) in rd_inithead()
89 Bzero(head, len); in rd_inithead()
92 *headp = head; in rd_inithead()
108 head->rdh_slen = slen; in rd_inithead()
109 head->rdh_offset = off; in rd_inithead()
110 head->rdh_alen = alen; in rd_inithead()
111 head->rdh_masks = masks; in rd_inithead()
112 head->rdh_match = match; in rd_inithead()
113 head->rdh_top = new; in rd_inithead()
341 int off = head->rdh_offset, slen = head->rdh_slen; in rd_glue()
[all …]
/openbsd/usr.sbin/ospf6d/
H A Dname2id.c97 TAILQ_FOREACH(label, head, entry) in _name2id()
109 if (!TAILQ_EMPTY(head)) in _name2id()
110 for (p = TAILQ_FIRST(head); p != NULL && in _name2id()
131 TAILQ_INSERT_TAIL(head, label, entry); in _name2id()
144 TAILQ_FOREACH(label, head, entry) in _id2name()
159 TAILQ_FOREACH(label, head, entry) in _id2tag()
174 TAILQ_FOREACH(label, head, entry) in _tag2id()
189 TAILQ_FOREACH(label, head, entry) in _tag()
206 TAILQ_REMOVE(head, p, entry); in _unref()
216 _ref(struct n2id_labels *head, u_int16_t id) in _ref() argument
[all …]
/openbsd/usr.sbin/ospfd/
H A Dname2id.c97 TAILQ_FOREACH(label, head, entry) in _name2id()
109 if (!TAILQ_EMPTY(head)) in _name2id()
110 for (p = TAILQ_FIRST(head); p != NULL && in _name2id()
131 TAILQ_INSERT_TAIL(head, label, entry); in _name2id()
144 TAILQ_FOREACH(label, head, entry) in _id2name()
159 TAILQ_FOREACH(label, head, entry) in _id2tag()
174 TAILQ_FOREACH(label, head, entry) in _tag2id()
189 TAILQ_FOREACH(label, head, entry) in _tag()
206 TAILQ_REMOVE(head, p, entry); in _unref()
216 _ref(struct n2id_labels *head, u_int16_t id) in _ref() argument
[all …]
/openbsd/sys/dev/pci/drm/amd/amdgpu/
H A Damdgpu_ras.c197 .head = obj->head, in amdgpu_ras_debugfs_read()
607 .head = obj->head, in amdgpu_ras_sysfs_read()
666 obj->head = *head; in amdgpu_ras_create_obj()
685 if (head) { in amdgpu_ras_find_obj()
1263 .head = obj->head, in amdgpu_ras_query_error_count()
1551 struct ras_manager *obj = amdgpu_ras_find_obj(adev, &head->head); in amdgpu_ras_debugfs_create()
1559 head->debugfs_name, in amdgpu_ras_debugfs_create()
1587 fs_info.head = obj->head; in amdgpu_ras_debugfs_create_all()
1912 .head = obj->head, in amdgpu_ras_log_on_err_counter()
1983 .head = obj->head, in amdgpu_ras_query_err_status()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Scalar-List-Utils/t/
H A Dhead-tail.t6 use List::Util qw(head tail);
12 ok(defined &head, 'defined');
15 @ary = head 1, ( 4, 5, 6 );
19 @ary = head 2, ( 4, 5, 6 );
24 @ary = head -1, ( 4, 5, 6 );
29 @ary = head -2, ( 4, 5, 6 );
33 @ary = head 999, ( 4, 5, 6 );
39 @ary = head 0, ( 4, 5, 6 );
42 @ary = head 0;
45 @ary = head 5;
[all …]
/openbsd/gnu/llvm/libcxxabi/src/
H A Dcxa_thread_atexit.cpp77 while (auto head = dtors) { in run_dtors() local
78 dtors = head->next; in run_dtors()
79 head->dtor(head->obj); in run_dtors()
80 ::free(head); in run_dtors()
129 auto head = static_cast<DtorList*>(::malloc(sizeof(DtorList))); in __cxa_thread_atexit()
130 if (!head) { in __cxa_thread_atexit()
134 head->dtor = dtor; in __cxa_thread_atexit()
135 head->obj = obj; in __cxa_thread_atexit()
136 head->next = dtors; in __cxa_thread_atexit()
137 dtors = head; in __cxa_thread_atexit()
/openbsd/usr.sbin/ac/
H A Dac.c178 return head; in update_user()
185 return head; in update_user()
336 head = lp; in log_out()
344 return head; in log_out()
373 return head; in log_in()
381 head = lp; in log_in()
393 return head; in log_in()
441 head = log_out(head, &usr); in ac()
453 head = log_in(head, &usr); in ac()
455 head = log_out(head, &usr); in ac()
[all …]

12345678910>>...42