Home
last modified time | relevance | path

Searched refs:head (Results 26 – 50 of 1045) sorted by relevance

12345678910>>...42

/openbsd/usr.sbin/ac/
H A Dac.c177 return head; in update_user()
184 return head; in update_user()
335 head = lp; in log_out()
343 return head; in log_out()
372 return head; in log_in()
380 head = lp; in log_in()
392 return head; in log_in()
440 head = log_out(head, &usr); in ac()
452 head = log_in(head, &usr); in ac()
454 head = log_out(head, &usr); in ac()
[all …]
/openbsd/sys/dev/pci/drm/radeon/
H A Dradeon_agp.c138 head = kzalloc(sizeof(*head), GFP_KERNEL); in radeon_agp_head_init()
139 if (!head) in radeon_agp_head_init()
142 if (!head->bridge) { in radeon_agp_head_init()
145 kfree(head); in radeon_agp_head_init()
148 agp_copy_info(head->bridge, &head->agp_info); in radeon_agp_head_init()
151 agp_copy_info(head->bridge, &head->agp_info); in radeon_agp_head_init()
154 kfree(head); in radeon_agp_head_init()
158 head->cant_use_aperture = head->agp_info.cant_use_aperture; in radeon_agp_head_init()
159 head->page_mask = head->agp_info.page_mask; in radeon_agp_head_init()
160 head->base = head->agp_info.aper_base; in radeon_agp_head_init()
[all …]
/openbsd/sys/dev/pci/drm/
H A Ddrm_agpsupport.c130 struct drm_agp_head *head = NULL; in drm_legacy_agp_init() local
140 head = mallocarray(1, sizeof(*head), M_DRM, M_NOWAIT | M_ZERO); in drm_legacy_agp_init()
141 if (head == NULL) in drm_legacy_agp_init()
143 head->agpdev = agpdev; in drm_legacy_agp_init()
144 agp_get_info(agpdev, &head->info); in drm_legacy_agp_init()
145 head->base = head->info.ai_aperture_base; in drm_legacy_agp_init()
146 head->cant_use_aperture = (head->base == 0); in drm_legacy_agp_init()
147 TAILQ_INIT(&head->memory); in drm_legacy_agp_init()
149 return (head); in drm_legacy_agp_init()
/openbsd/usr.bin/dig/lib/isc/include/isc/
H A Dlist.h43 if ((list).head != NULL) \
44 (list).head->link.prev = (elt); \
48 (elt)->link.next = (list).head; \
49 (list).head = (elt); \
65 (list).head = (elt); \
90 ISC_INSIST((list).head == (elt)); \
91 (list).head = (elt)->link.next; \
95 ISC_INSIST((list).head != (elt)); \
155 (list2).head = NULL; \
166 (list1).head = (list2).head; \
[all …]
/openbsd/usr.sbin/ripd/
H A Dname2id.c75 _name2id(struct n2id_labels *head, const char *name) in _name2id() argument
85 TAILQ_FOREACH(label, head, entry) in _name2id()
97 if (!TAILQ_EMPTY(head)) in _name2id()
98 for (p = TAILQ_FIRST(head); p != NULL && in _name2id()
119 TAILQ_INSERT_TAIL(head, label, entry); in _name2id()
125 _id2name(struct n2id_labels *head, u_int16_t id) in _id2name() argument
132 TAILQ_FOREACH(label, head, entry) in _id2name()
140 _unref(struct n2id_labels *head, u_int16_t id) in _unref() argument
151 TAILQ_REMOVE(head, p, entry); in _unref()
161 _ref(struct n2id_labels *head, u_int16_t id) in _ref() argument
[all …]
/openbsd/gnu/gcc/gcc/
H A Dsched-ebb.c437 schedule_ebb (rtx head, rtx tail) in schedule_ebb() argument
494 if (INSN_P (head)) in schedule_ebb()
500 remove_note (head, note); in schedule_ebb()
506 rm_other_notes (head, tail); in schedule_ebb()
520 head = current_sched_info->head; in schedule_ebb()
579 rtx head = BB_HEAD (bb); in schedule_ebbs() local
601 while (head != tail) in schedule_ebbs()
603 if (NOTE_P (head)) in schedule_ebbs()
604 head = NEXT_INSN (head); in schedule_ebbs()
607 else if (LABEL_P (head)) in schedule_ebbs()
[all …]
/openbsd/gnu/usr.bin/cvs/src/
H A Dhash.c304 Node *head, *p; local
319 for (p = head->hashnext; p != head; p = p->hashnext)
333 Node *head, *p; local
347 for (p = head->hashnext; p != head; p = p->hashnext)
362 Node *head, *p; local
368 head = list->list;
369 for (p = head->next; p != head; p = p->next)
406 head = list->list;
425 head->next = head->prev = head;
429 p->next = head;
[all …]
/openbsd/games/atc/
H A Dlist.c64 if (l->head == NULL) { in append()
66 l->head = l->tail = p; in append()
68 q = l -> head; in append()
85 l->head = p; in append()
99 if (l->head == NULL) in delete()
102 if (l->head == p && l->tail == p) in delete()
103 l->head = l->tail = NULL; in delete()
104 else if (l->head == p) { in delete()
105 l->head = p->next; in delete()
106 l->head->prev = NULL; in delete()
/openbsd/usr.sbin/relayd/
H A Dname2id.c96 _name2id(struct n2id_labels *head, const char *name) in _name2id() argument
106 TAILQ_FOREACH(label, head, entry) in _name2id()
118 if (!TAILQ_EMPTY(head)) in _name2id()
119 for (p = TAILQ_FIRST(head); p != NULL && in _name2id()
140 TAILQ_INSERT_TAIL(head, label, entry); in _name2id()
146 _id2name(struct n2id_labels *head, u_int16_t id) in _id2name() argument
153 TAILQ_FOREACH(label, head, entry) in _id2name()
161 _unref(struct n2id_labels *head, u_int16_t id) in _unref() argument
172 TAILQ_REMOVE(head, p, entry); in _unref()
182 _ref(struct n2id_labels *head, u_int16_t id) in _ref() argument
[all …]
/openbsd/usr.sbin/bgpd/
H A Dname2id.c102 _name2id(struct n2id_labels *head, const char *name) in _name2id() argument
110 TAILQ_FOREACH(label, head, entry) in _name2id()
122 if (!TAILQ_EMPTY(head)) in _name2id()
123 for (p = TAILQ_FIRST(head); p != NULL && in _name2id()
142 TAILQ_INSERT_TAIL(head, label, entry); in _name2id()
148 _id2name(struct n2id_labels *head, uint16_t id) in _id2name() argument
155 TAILQ_FOREACH(label, head, entry) in _id2name()
163 _unref(struct n2id_labels *head, uint16_t id) in _unref() argument
174 TAILQ_REMOVE(head, p, entry); in _unref()
184 _ref(struct n2id_labels *head, uint16_t id) in _ref() argument
[all …]
/openbsd/sys/dev/pci/drm/include/drm/
H A Dspsc_queue.h40 struct spsc_node *head; member
50 queue->head = NULL; in spsc_queue_init()
51 atomic_long_set(&queue->tail, (long)&queue->head); in spsc_queue_init()
57 return queue->head; in spsc_queue_peek()
85 return tail == &queue->head; in spsc_queue_push()
96 node = READ_ONCE(queue->head); in spsc_queue_pop()
102 WRITE_ONCE(queue->head, next); in spsc_queue_pop()
108 (long)&node->next, (long) &queue->head) != (long)&node->next) { in spsc_queue_pop()
112 } while (unlikely(!(queue->head = READ_ONCE(node->next)))); in spsc_queue_pop()
/openbsd/gnu/gcc/libmudflap/testsuite/libmudflap.c/
H A Dheap-scalestress.c24 struct list *head = NULL; in main() local
49 head = p; in main()
54 p->next = head; in main()
57 head = p; in main()
64 while (NULL != head) in main()
66 p = head; in main()
67 head = head->next; in main()
/openbsd/gnu/usr.bin/binutils/binutils/
H A Dcoffgrok.c134 head->sections = all; in do_sections_p1()
157 head->sections[i].data = 1; in do_sections_p1()
598 struct coff_ofile *head = in doit() local
600 ofile = head; in doit()
601 head->source_head = 0; in doit()
602 head->source_tail = 0; in doit()
603 head->nsources = 0; in doit()
606 do_sections_p1 (head); in doit()
637 head->nsources++; in doit()
716 do_sections_p2 (head); in doit()
[all …]
/openbsd/gnu/usr.bin/binutils-2.17/binutils/
H A Dcoffgrok.c134 head->sections = all; in do_sections_p1()
157 head->sections[i].data = 1; in do_sections_p1()
598 struct coff_ofile *head = in doit() local
600 ofile = head; in doit()
601 head->source_head = 0; in doit()
602 head->source_tail = 0; in doit()
603 head->nsources = 0; in doit()
606 do_sections_p1 (head); in doit()
637 head->nsources++; in doit()
716 do_sections_p2 (head); in doit()
[all …]
/openbsd/sys/kern/
H A Dkern_bufq.c317 struct bufq_fifo_head *head; in bufq_fifo_create() local
319 head = malloc(sizeof(*head), M_DEVBUF, M_NOWAIT | M_ZERO); in bufq_fifo_create()
320 if (head == NULL) in bufq_fifo_create()
323 SIMPLEQ_INIT(head); in bufq_fifo_create()
325 return (head); in bufq_fifo_create()
331 struct bufq_fifo_head *head = data; in bufq_fifo_destroy() local
333 free(head, M_DEVBUF, sizeof(*head)); in bufq_fifo_destroy()
339 struct bufq_fifo_head *head = data; in bufq_fifo_queue() local
347 struct bufq_fifo_head *head = data; in bufq_fifo_dequeue() local
350 bp = SIMPLEQ_FIRST(head); in bufq_fifo_dequeue()
[all …]
/openbsd/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/pat_trie_/
H A Dtraits.hpp124 head; typedef
139 head,
150 head,
161 head,
172 head,
182 head,
194 head,
285 head; typedef
300 head,
313 head,
[all …]
/openbsd/games/worm/
H A Dworm.c58 } *head, *tail, goody; variable
135 wmove(tv, head->y, head->x); /* Leave cursor on worm */ in main()
196 head = newlink(); in life()
198 head->y = LINES / 2; in life()
199 head->next = NULL; in life()
271 x = head->x; in process()
272 y = head->y; in process()
361 nh->prev = head; in process()
362 head->next = nh; in process()
366 head = nh; in process()
[all …]
/openbsd/usr.bin/mail/
H A Dcmd3.c227 head.h_to = np; in _respond()
231 head.h_subject = reedit(head.h_subject); in _respond()
238 head.h_cc = np; in _respond()
240 head.h_cc = NULL; in _respond()
241 head.h_bcc = NULL; in _respond()
243 mail1(&head, 1); in _respond()
605 head.h_to = NULL; in _Respond()
612 head.h_to = cat(head.h_to, extract(cp, GTO)); in _Respond()
619 head.h_subject = reedit(head.h_subject); in _Respond()
621 head.h_cc = NULL; in _Respond()
[all …]
/openbsd/gnu/usr.bin/binutils/gdb/gdbserver/
H A Dinferiors.c49 list->head = new_inferior; in add_inferior_to_list()
57 struct inferior_list_entry *cur = list->head, *next; in for_each_inferior()
71 if (list->head != list->tail) in change_inferior_id()
74 list->head->id = new_id; in change_inferior_id()
83 if (list->head == entry) in remove_inferior()
85 list->head = entry->next; in remove_inferior()
87 list->tail = list->head; in remove_inferior()
91 cur = &list->head; in remove_inferior()
143 all_threads.head = all_threads.tail = NULL; in clear_inferiors()
150 struct inferior_list_entry *inf = list->head; in find_inferior()
[all …]
/openbsd/sys/dev/pci/drm/include/linux/
H A Dwait.h42 struct list_head head; member
53 INIT_LIST_HEAD(&wqh->head); in init_waitqueue_head()
72 list_add(&wqe->entry, &wqh->head); in __add_wait_queue()
78 list_add_tail(&wqe->entry, &wqh->head); in __add_wait_queue_entry_tail()
84 mtx_enter(&head->lock); in add_wait_queue()
85 __add_wait_queue(head, new); in add_wait_queue()
86 mtx_leave(&head->lock); in add_wait_queue()
98 mtx_enter(&head->lock); in remove_wait_queue()
99 __remove_wait_queue(head, old); in remove_wait_queue()
100 mtx_leave(&head->lock); in remove_wait_queue()
[all …]
/openbsd/sys/dev/pci/drm/ttm/
H A Dttm_execbuf_util.c35 list_for_each_entry_continue_reverse(entry, list, head) { in ttm_eu_backoff_reservation_reverse()
50 list_for_each_entry(entry, list, head) { in ttm_eu_backoff_reservation()
87 list_for_each_entry(entry, list, head) { in ttm_eu_reserve_buffers()
94 entry = list_prev_entry(entry, head); in ttm_eu_reserve_buffers()
95 list_del(&safe->head); in ttm_eu_reserve_buffers()
96 list_add(&safe->head, dups); in ttm_eu_reserve_buffers()
133 list_del(&entry->head); in ttm_eu_reserve_buffers()
134 list_add(&entry->head, list); in ttm_eu_reserve_buffers()
150 list_for_each_entry(entry, list, head) { in ttm_eu_fence_buffer_objects()
/openbsd/gnu/usr.bin/binutils/gprof/
H A Dcg_arcs.c202 child = child->cg.cyc.head;
332 member->cg.cyc.head = cyc; in cycle_link()
371 Sym *head, *parent, *member; local
374 head = child->cg.cyc.head;
375 if (child == head)
406 head->cg.print_flag = FALSE;
407 head->cg.prop.fract = 0.0;
412 if (arc->parent->cg.cyc.head == head)
423 if (head->ncalls != 0)
465 old_head = child->cg.cyc.head;
[all …]
/openbsd/gnu/usr.bin/binutils-2.17/gprof/
H A Dcg_arcs.c194 child = child->cg.cyc.head; in propagate_time()
324 member->cg.cyc.head = cyc; in cycle_link()
362 Sym *head, *parent, *member; in inherit_flags() local
365 head = child->cg.cyc.head; in inherit_flags()
366 if (child == head) in inherit_flags()
397 head->cg.print_flag = FALSE; in inherit_flags()
398 head->cg.prop.fract = 0.0; in inherit_flags()
403 if (arc->parent->cg.cyc.head == head) in inherit_flags()
414 if (head->ncalls != 0) in inherit_flags()
455 old_head = child->cg.cyc.head; in propagate_flags()
[all …]
/openbsd/lib/libc/db/mpool/
H A Dmpool.c107 struct _hqh *head; in mpool_new() local
133 TAILQ_INSERT_HEAD(head, bp, hq); in mpool_new()
141 struct _hqh *head; in mpool_delete() local
156 TAILQ_REMOVE(head, bp, hq); in mpool_delete()
172 struct _hqh *head; in mpool_get() local
195 TAILQ_REMOVE(head, bp, hq); in mpool_get()
330 struct _hqh *head; in mpool_bkt() local
354 TAILQ_REMOVE(head, bp, hq); in mpool_bkt()
420 struct _hqh *head; in mpool_look() local
423 head = &mp->hqh[HASHKEY(pgno)]; in mpool_look()
[all …]
/openbsd/lib/libssl/
H A Dssl_ciph.c557 if (curr == *head) in ll_append_tail()
558 *head = curr->next; in ll_append_tail()
573 if (curr == *head) in ll_append_head()
582 curr->next= *head; in ll_append_head()
584 *head = curr; in ll_append_head()
684 ciph_curr = head; in ssl_cipher_collect_aliases()
745 head = *head_p; in ssl_cipher_apply_rule()
750 last = head; in ssl_cipher_apply_rule()
752 next = head; in ssl_cipher_apply_rule()
815 if (head == curr) in ssl_cipher_apply_rule()
[all …]

12345678910>>...42