| /openbsd-src/sys/sys/ |
| H A D | queue.h | 99 #define SLIST_HEAD_INITIALIZER(head) \ argument 110 #define SLIST_FIRST(head) ((head)->slh_first) argument 111 #define SLIST_END(head) NULL argument 112 #define SLIST_EMPTY(head) (SLIST_FIRST(head) == SLIST_END(head)) argument 115 #define SLIST_FOREACH(var, head, field) \ argument 116 for((var) = SLIST_FIRST(head); \ 117 (var) != SLIST_END(head); \ 120 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument 121 for ((var) = SLIST_FIRST(head); \ 128 #define SLIST_INIT(head) { \ argument [all …]
|
| H A D | smr.h | 157 #define SMR_SLIST_HEAD_INITIALIZER(head) \ argument 168 #define SMR_SLIST_END(head) NULL argument 170 #define SMR_SLIST_FIRST(head) \ argument 171 SMR_PTR_GET(&(head)->smr_slh_first) 175 #define SMR_SLIST_FIRST_LOCKED(head) \ argument 176 SMR_PTR_GET_LOCKED(&(head)->smr_slh_first) 177 #define SMR_SLIST_EMPTY_LOCKED(head) \ argument 178 (SMR_SLIST_FIRST_LOCKED(head) == SMR_SLIST_END(head)) 182 #define SMR_SLIST_FOREACH(var, head, field) \ argument 183 for ((var) = SMR_SLIST_FIRST(head); \ [all …]
|
| H A D | tree.h | 79 #define SPLAY_ROOT(head) (head)->sph_root argument 80 #define SPLAY_EMPTY(head) (SPLAY_ROOT(head) == NULL) argument 83 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument 84 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \ 85 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \ 86 (head)->sph_root = tmp; \ 89 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument 90 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \ 91 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ 92 (head)->sph_root = tmp; \ [all …]
|
| /openbsd-src/gnu/gcc/gcc/ |
| H A D | tree-browser.c | 117 tree head; in browse_tree() local 127 head = N; \ in browse_tree() 129 if (head) \ in browse_tree() 131 print_generic_expr (TB_OUT_FILE, head, 0); \ in browse_tree() 141 TB_update_up (head); in browse_tree() 161 TB_update_up (head); in browse_tree() 165 if (head && (INTEGRAL_TYPE_P (head) in browse_tree() 166 || TREE_CODE (head) == REAL_TYPE)) in browse_tree() 167 TB_SET_HEAD (TYPE_MAX_VALUE (head)); in browse_tree() 173 if (head && (INTEGRAL_TYPE_P (head) in browse_tree() [all …]
|
| H A D | tree-iterator.c | 70 struct tree_statement_list_node *head, *tail, *cur; in tsi_link_before() local 77 head = STATEMENT_LIST_HEAD (t); in tsi_link_before() 85 if (!head || !tail) in tsi_link_before() 87 gcc_assert (head == tail); in tsi_link_before() 93 head = ggc_alloc (sizeof (*head)); in tsi_link_before() 94 head->prev = NULL; in tsi_link_before() 95 head->next = NULL; in tsi_link_before() 96 head->stmt = t; in tsi_link_before() 97 tail = head; in tsi_link_before() 107 head->prev = cur->prev; in tsi_link_before() [all …]
|
| H A D | bitmap.c | 50 bitmap_elem_to_freelist (bitmap head, bitmap_element *elt) in bitmap_elem_to_freelist() argument 52 bitmap_obstack *bit_obstack = head->obstack; in bitmap_elem_to_freelist() 71 bitmap_element_free (bitmap head, bitmap_element *elt) in bitmap_element_free() argument 82 if (head->first == elt) in bitmap_element_free() 83 head->first = next; in bitmap_element_free() 87 if (head->current == elt) in bitmap_element_free() 89 head->current = next != 0 ? next : prev; 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() [all …]
|
| /openbsd-src/sys/dev/pci/drm/include/linux/ |
| H A D | list.h | 44 INIT_LIST_HEAD(struct list_head *head) { in INIT_LIST_HEAD() argument 45 (head)->next = head; in INIT_LIST_HEAD() 46 (head)->prev = head; in INIT_LIST_HEAD() 55 list_empty(const struct list_head *head) { in list_empty() argument 56 return (head)->next == head; in list_empty() 60 list_is_singular(const struct list_head *head) { in list_is_singular() argument 61 return !list_empty(head) && ((head)->next == (head)->prev); in list_is_singular() 66 const struct list_head *head) in list_is_first() argument 68 return list->prev == head; in list_is_first() 73 const struct list_head *head) in list_is_last() argument [all …]
|
| H A D | llist.h | 19 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() 34 } while (atomic_cas_ptr(&head->first, first, next) != first); in llist_del_first() 40 llist_add(struct llist_node *new, struct llist_head *head) in llist_add() argument 45 new->next = first = head->first; in llist_add() 46 } while (atomic_cas_ptr(&head->first, first, new) != 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() [all …]
|
| /openbsd-src/sys/dev/usb/dwc2/ |
| H A D | list.h | 58 INIT_LIST_HEAD(struct list_head *head) { in INIT_LIST_HEAD() argument 59 (head)->next = head; in INIT_LIST_HEAD() 60 (head)->prev = head; in INIT_LIST_HEAD() 64 list_empty(const struct list_head *head) { in list_empty() argument 65 return (head)->next == head; in list_empty() 69 list_add(struct list_head *new, struct list_head *head) { in list_add() argument 70 (head)->next->prev = new; in list_add() 71 (new)->next = (head)->next; in list_add() 72 (new)->prev = head; in list_add() 73 (head)->next = new; in list_add() [all …]
|
| /openbsd-src/lib/libelf/ |
| H A D | _elftc.h | 80 #define LIST_FOREACH_SAFE(var, head, field, tvar) \ argument 81 for ((var) = LIST_FIRST((head)); \ 87 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument 88 for ((var) = SLIST_FIRST((head)); \ 104 #define STAILQ_EMPTY(head) ((head)->stqh_first == NULL) argument 115 #define STAILQ_FIRST(head) ((head)->stqh_first) argument 127 #define STAILQ_HEAD_INITIALIZER(head) \ argument 128 { NULL, &(head).stqh_first } 132 #define STAILQ_FOREACH(var, head, field) \ argument 133 for ((var) = ((head)->stqh_first); \ [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/ |
| H A D | bitmap.c | 56 bitmap_elem_to_freelist (head, elt) in bitmap_elem_to_freelist() argument 57 bitmap head; in bitmap_elem_to_freelist() 60 if (head->using_obstack) 76 bitmap_element_free (head, elt) in bitmap_element_free() argument 77 bitmap head; in bitmap_element_free() 89 if (head->first == elt) 90 head->first = next; 94 if (head->current == elt) 96 head->current = next != 0 ? next : prev; 97 if (head->current) [all …]
|
| H A D | sched-ebb.c | 213 schedule_ebb (head, tail) in schedule_ebb() argument 214 rtx head, tail; in schedule_ebb() 219 if (no_real_insns_p (head, tail)) 226 sched_analyze (&tmp_deps, head, tail); 230 compute_forward_dependences (head, tail); 233 n_insns = set_priorities (head, tail); 235 current_sched_info->prev_head = PREV_INSN (head); 240 save_line_notes (0, head, tail); 241 rm_line_notes (head, tail); 250 if (INSN_P (head)) [all …]
|
| /openbsd-src/sbin/fsck_msdos/ |
| H A D | fat.c | 288 clearchain(struct bootblock *boot, struct fatEntry *fat, cl_t head) in clearchain() argument 292 for (p = head; p >= CLUST_FIRST && p < boot->NumClusters; p = q) { in clearchain() 293 if (fat[p].head != head) in clearchain() 296 fat[p].next = fat[p].head = CLUST_FREE; in clearchain() 302 tryclear(struct bootblock *boot, struct fatEntry *fat, cl_t head, cl_t *trunc) in tryclear() argument 307 if (ask(0, "Clear chain starting at %u", head)) { in tryclear() 308 clearchain(boot, fat, head); in tryclear() 313 for (p = head; p >= CLUST_FIRST && p < boot->NumClusters; in tryclear() 317 fat[head].length = len; in tryclear() 329 cl_t head, p, h, n; in checkfat() local [all …]
|
| H A D | dir.c | 232 if (fat[boot->RootCl].head != boot->RootCl) { in resetDosDirSection() 238 rootDir->head = boot->RootCl; in resetDosDirSection() 364 if (dir->head == CLUST_FREE) in checksize() 367 if (dir->head < CLUST_FIRST || dir->head >= boot->NumClusters) in checksize() 369 physicalSize = fat[dir->head].length * boot->ClusterSize; in checksize() 391 for (cl = dir->head; (sz += boot->ClusterSize) < dir->size;) { in checksize() 397 fat[dir->head].length = len; in checksize() 426 cl = dir->head; in readDosDirSection() 630 dirent.head = p[26] | (p[27] << 8); in readDosDirSection() 632 dirent.head |= (p[20] << 16) | (p[21] << 24); in readDosDirSection() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/ext/File-DosGlob/lib/File/ |
| H A D | DosGlob.pm | 24 my $head = '.'; 42 ($head, $sepchr, $tail) = ($1,$2,$3); 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 } [all …]
|
| /openbsd-src/lib/libcurses/ |
| H A D | fifo_defs.h | 46 #define head sp->_fifohead macro 52 (head >= FIFO_SIZE-1) \ 53 ? 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) \ [all …]
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/gprof/ |
| H A D | cg_dfn.c | 92 Sym *head = 0; in find_cycle() local 99 head = dfn_stack[cycle_top].sym; in find_cycle() 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() 152 for (tail = head; tail->cg.cyc.next; tail = tail->cg.cyc.next) in find_cycle() 165 if (head->cg.cyc.head != head) in find_cycle() 167 head = head->cg.cyc.head; in find_cycle() 169 print_name (head); in find_cycle() [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/gprof/ |
| H A D | cg_dfn.c | 95 Sym *head = 0; local 102 head = dfn_stack[cycle_top].sym; 103 if (child == head) 107 if (child->cg.cyc.head != child && child->cg.cyc.head == head) 122 if (head) 124 print_name (head); 155 for (tail = head; tail->cg.cyc.next; tail = tail->cg.cyc.next) 168 if (head->cg.cyc.head != head) 170 head = head->cg.cyc.head; 172 print_name (head); [all …]
|
| /openbsd-src/usr.sbin/npppd/common/ |
| H A D | radish.c | 78 struct radish_head *head; in rd_inithead() local 83 int len = sizeof(*head) + sizeof(*new) + slen * num; in rd_inithead() 86 R_Malloc(head, struct radish_head *, len); in rd_inithead() 87 if (head == NULL) in rd_inithead() 89 Bzero(head, len); in rd_inithead() 90 new = (struct radish *)(head + 1); 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() [all …]
|
| /openbsd-src/usr.sbin/ospfd/ |
| H A D | name2id.c | 87 _name2id(struct n2id_labels *head, const char *name) in _name2id() argument 97 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() 137 _id2name(struct n2id_labels *head, u_int16_t id) in _id2name() argument 144 TAILQ_FOREACH(label, head, entry) in _id2name() 152 _id2tag(struct n2id_labels *head, u_int16_t id) in _id2tag() argument 159 TAILQ_FOREACH(label, head, entry) in _id2tag() 167 _tag2id(struct n2id_labels *head, u_int32_t tag) in _tag2id() argument [all …]
|
| /openbsd-src/usr.sbin/ospf6d/ |
| H A D | name2id.c | 87 _name2id(struct n2id_labels *head, const char *name) in _name2id() argument 97 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() 137 _id2name(struct n2id_labels *head, u_int16_t id) in _id2name() argument 144 TAILQ_FOREACH(label, head, entry) in _id2name() 152 _id2tag(struct n2id_labels *head, u_int16_t id) in _id2tag() argument 159 TAILQ_FOREACH(label, head, entry) in _id2tag() 167 _tag2id(struct n2id_labels *head, u_int32_t tag) in _tag2id() argument [all …]
|
| /openbsd-src/sys/dev/pci/drm/amd/amdgpu/ |
| H A D | amdgpu_ras.c | 197 .head = obj->head, in amdgpu_ras_debugfs_read() 208 if (amdgpu_ras_reset_error_status(obj->adev, info.head.block)) in amdgpu_ras_debugfs_read() 301 data->head.block = block_id; in amdgpu_ras_debugfs_ctrl_parse_data() 304 data->head.type = AMDGPU_RAS_ERROR__MULTI_UNCORRECTABLE; in amdgpu_ras_debugfs_ctrl_parse_data() 306 data->head.type = AMDGPU_RAS_ERROR__SINGLE_CORRECTABLE; in amdgpu_ras_debugfs_ctrl_parse_data() 322 data->head.sub_block_index = sub_block; in amdgpu_ras_debugfs_ctrl_parse_data() 354 switch (data->head.block) { in amdgpu_ras_instance_mask_check() 383 * First member: ras_debug_if::head or ras_debug_if::inject. 385 * head i 643 amdgpu_ras_create_obj(struct amdgpu_device * adev,struct ras_common_if * head) amdgpu_ras_create_obj() argument 676 amdgpu_ras_find_obj(struct amdgpu_device * adev,struct ras_common_if * head) amdgpu_ras_find_obj() argument 713 amdgpu_ras_is_feature_allowed(struct amdgpu_device * adev,struct ras_common_if * head) amdgpu_ras_is_feature_allowed() argument 719 amdgpu_ras_is_feature_enabled(struct amdgpu_device * adev,struct ras_common_if * head) amdgpu_ras_is_feature_enabled() argument 731 __amdgpu_ras_feature_enable(struct amdgpu_device * adev,struct ras_common_if * head,int enable) __amdgpu_ras_feature_enable() argument 767 amdgpu_ras_feature_enable(struct amdgpu_device * adev,struct ras_common_if * head,bool enable) amdgpu_ras_feature_enable() argument 823 amdgpu_ras_feature_enable_on_boot(struct amdgpu_device * adev,struct ras_common_if * head,bool enable) amdgpu_ras_feature_enable_on_boot() argument 903 struct ras_common_if head = { amdgpu_ras_enable_all_features() local 926 struct ras_common_if head = { amdgpu_ras_enable_all_features() local 1411 amdgpu_ras_sysfs_create(struct amdgpu_device * adev,struct ras_common_if * head) amdgpu_ras_sysfs_create() argument 1449 amdgpu_ras_sysfs_remove(struct amdgpu_device * adev,struct ras_common_if * head) amdgpu_ras_sysfs_remove() argument 1551 amdgpu_ras_debugfs_create(struct amdgpu_device * adev,struct ras_fs_if * head,struct dentry * dir) amdgpu_ras_debugfs_create() argument 1826 amdgpu_ras_interrupt_remove_handler(struct amdgpu_device * adev,struct ras_common_if * head) amdgpu_ras_interrupt_remove_handler() argument 1848 amdgpu_ras_interrupt_add_handler(struct amdgpu_device * adev,struct ras_common_if * head) amdgpu_ras_interrupt_add_handler() argument [all...] |
| /openbsd-src/gnu/usr.bin/perl/cpan/Scalar-List-Utils/t/ |
| H A D | head-tail.t | 6 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-src/gnu/llvm/libcxxabi/src/ |
| H A D | cxa_thread_atexit.cpp | 77 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-src/sys/kern/ |
| H A D | uipc_socket2.c | 96 struct socket *head = so->so_head; in soisconnected() local 102 if (head != NULL && so->so_onq == &head->so_q0) { in soisconnected() 103 soref(head); in soisconnected() 105 solock(head); in soisconnected() 108 if (so->so_onq != &head->so_q0) { in soisconnected() 109 sounlock(head); in soisconnected() 110 sorele(head); in soisconnected() 115 soqinsque(head, so, 1); in soisconnected() 116 sorwakeup(head); in soisconnected() 189 sonewconn(struct socket * head,int connstatus,int wait) sonewconn() argument 275 soqinsque(struct socket * head,struct socket * so,int q) soqinsque() argument 296 struct socket *head = so->so_head; soqremque() local [all...] |