Home
last modified time | relevance | path

Searched defs:head (Results 1 – 25 of 460) sorted by relevance

12345678910>>...19

/freebsd/contrib/ntp/sntp/libevent/compat/sys/
H A Dqueue.h93 #define SLIST_HEAD_INITIALIZER(head) \ argument
106 #define SLIST_FIRST(head) ((head)->slh_first) argument
107 #define SLIST_END(head) NULL argument
108 #define SLIST_EMPTY(head) (SLIST_FIRST(head) == SLIST_END(head)) argument
111 #define SLIST_FOREACH(var, head, field) \ argument
119 #define SLIST_INIT(head) { \ argument
128 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
133 #define SLIST_REMOVE_HEAD(head, field) do { \ argument
145 #define LIST_HEAD_INITIALIZER(head) \ argument
157 #define LIST_FIRST(head) ((head)->lh_first) argument
[all …]
/freebsd/contrib/libevent/compat/sys/
H A Dqueue.h93 #define SLIST_HEAD_INITIALIZER(head) \ argument
106 #define SLIST_FIRST(head) ((head)->slh_first) argument
107 #define SLIST_END(head) NULL argument
108 #define SLIST_EMPTY(head) (SLIST_FIRST(head) == SLIST_END(head)) argument
111 #define SLIST_FOREACH(var, head, field) \ argument
119 #define SLIST_INIT(head) { \ argument
128 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
133 #define SLIST_REMOVE_HEAD(head, field) do { \ argument
145 #define LIST_HEAD_INITIALIZER(head) \ argument
157 #define LIST_FIRST(head) ((head)->lh_first) argument
[all …]
/freebsd/crypto/openssh/openbsd-compat/
H A Dsys-queue.h191 #define SLIST_HEAD_INITIALIZER(head) \ argument
202 #define SLIST_FIRST(head) ((head)->slh_first) argument
203 #define SLIST_END(head) NULL argument
204 #define SLIST_EMPTY(head) (SLIST_FIRST(head) == SLIST_END(head)) argument
207 #define SLIST_FOREACH(var, head, field) \ argument
212 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument
220 #define SLIST_INIT(head) { \ argument
229 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
238 #define SLIST_REMOVE_HEAD(head, field) do { \ argument
242 #define SLIST_REMOVE(head, elm, type, field) do { \ argument
[all …]
/freebsd/sys/sys/
H A Dqueue.h135 #define QMD_TRACE_HEAD(head) do { \ argument
151 #define QMD_TRACE_HEAD(head) argument
188 #define SLIST_HEAD_INITIALIZER(head) \ argument
227 #define SLIST_EMPTY(head) ((head)->slh_first == NULL) argument
229 #define SLIST_EMPTY_ATOMIC(head) \ argument
232 #define SLIST_FIRST(head) ((head)->slh_first) argument
234 #define SLIST_FOREACH(var, head, field) \ argument
239 #define SLIST_FOREACH_FROM(var, head, field) \ argument
244 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument
249 #define SLIST_FOREACH_FROM_SAFE(var, head, field, tvar) \ argument
[all …]
/freebsd/sys/dev/sound/midi/
H A Dmidiq.h40 #define MIDIQ_INIT(head, buf, size) do { \ argument
46 #define MIDIQ_EMPTY(head) ((head).h == (head).t ) argument
48 #define MIDIQ_LENBASE(head) ((head).h - (head).t < 0 ? \ argument
52 #define MIDIQ_FULL(head) ((head).h == -1) argument
53 #define MIDIQ_AVAIL(head) (MIDIQ_FULL(head) ? 0 : (head).s - MIDIQ_LENBASE(head)) argument
54 #define MIDIQ_LEN(head) ((head).s - MIDIQ_AVAIL(head)) argument
59 #define MIDIQ_ENQ(head, buf, size) do { … argument
79 #define MIDIQ_DEQ_I(head, buf, size, move, update) do { … argument
99 #define MIDIQ_SIZE(head) ((head).s) argument
100 #define MIDIQ_CLEAR(head) ((head).h = (head).t = 0) argument
[all …]
/freebsd/contrib/openbsm/compat/
H A Dqueue.h116 #define QMD_TRACE_HEAD(head) do { \ argument
132 #define QMD_TRACE_HEAD(head) argument
145 #define SLIST_HEAD_INITIALIZER(head) \ argument
156 #define SLIST_EMPTY(head) ((head)->slh_first == NULL) argument
158 #define SLIST_FIRST(head) ((head)->slh_first) argument
160 #define SLIST_FOREACH(var, head, field) \ argument
165 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument
170 #define SLIST_FOREACH_PREVPTR(var, varp, head, field) \ argument
175 #define SLIST_INIT(head) do { \ argument
184 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
[all …]
/freebsd/contrib/libucl/uthash/
H A Dutlist.h309 #define LL_PREPEND(head,add) \ argument
312 #define LL_PREPEND2(head,add,next) \ argument
333 #define LL_APPEND(head,add) \ argument
336 #define LL_APPEND2(head,add,next) \ argument
349 #define LL_DELETE(head,del) \ argument
352 #define LL_DELETE2(head,del,next) \ argument
369 #define LL_APPEND_VS2008(head,add) \ argument
372 #define LL_APPEND2_VS2008(head,add,next) \ argument
384 #define LL_DELETE_VS2008(head,del) \ argument
387 #define LL_DELETE2_VS2008(head,del,next) \ argument
[all …]
H A Duthash.h95 #define HASH_FIND(hh,head,keyptr,keylen,out) \ argument
142 #define HASH_MAKE_TABLE(hh,head) \ argument
161 #define HASH_ADD(hh,head,fieldname,keylen_in,add) \ argument
164 #define HASH_REPLACE(hh,head,fieldname,keylen_in,add,replaced) \ argument
174 #define HASH_ADD_KEYPTR(hh,head,keyptr,keylen_in,add) \ argument
216 #define HASH_DELETE(hh,head,delptr) \ argument
253 #define HASH_FIND_STR(head,findstr,out) \ argument
255 #define HASH_ADD_STR(head,strfield,add) \ argument
257 #define HASH_REPLACE_STR(head,strfield,add,replaced) \ argument
259 #define HASH_FIND_INT(head,findint,out) \ argument
[all …]
/freebsd/sys/contrib/ck/include/
H A Dck_queue.h131 #define CK_SLIST_HEAD_INITIALIZER(head) \ argument
142 #define CK_SLIST_EMPTY(head) \ argument
145 #define CK_SLIST_FIRST(head) \ argument
151 #define CK_SLIST_FOREACH(var, head, field) \ argument
156 #define CK_SLIST_FOREACH_FROM(var, head, field) \ argument
161 #define CK_SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument
166 #define CK_SLIST_FOREACH_PREVPTR(var, varp, head, field) \ argument
171 #define CK_SLIST_INIT(head) do { \ argument
182 #define CK_SLIST_INSERT_HEAD(head, elm, field) do { \ argument
199 #define CK_SLIST_REMOVE(head, elm, type, field) do { \ argument
[all …]
/freebsd/contrib/libarchive/unzip/
H A Dla_queue.h105 #define QMD_TRACE_HEAD(head) do { \ argument
121 #define QMD_TRACE_HEAD(head) argument
158 #define SLIST_HEAD_INITIALIZER(head) \ argument
197 #define SLIST_EMPTY(head) ((head)->slh_first == NULL) argument
199 #define SLIST_FIRST(head) ((head)->slh_first) argument
201 #define SLIST_FOREACH(var, head, field) \ argument
206 #define SLIST_FOREACH_FROM(var, head, field) \ argument
211 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument
216 #define SLIST_FOREACH_FROM_SAFE(var, head, field, tvar) \ argument
221 #define SLIST_FOREACH_PREVPTR(var, varp, head, field) \ argument
[all …]
/freebsd/crypto/heimdal/base/
H A Dheimqueue.h47 #define HEIM_TAILQ_HEAD_INITIALIZER(head) \ argument
59 #define QUEUEDEBUG_HEIM_TAILQ_INSERT_HEAD(head, elm, field) \ argument
63 #define QUEUEDEBUG_HEIM_TAILQ_INSERT_TAIL(head, elm, field) \ argument
73 #define QUEUEDEBUG_HEIM_TAILQ_PREREMOVE(head, elm, field) \ argument
82 #define QUEUEDEBUG_HEIM_TAILQ_INSERT_HEAD(head, elm, field) argument
83 #define QUEUEDEBUG_HEIM_TAILQ_INSERT_TAIL(head, elm, field) argument
85 #define QUEUEDEBUG_HEIM_TAILQ_PREREMOVE(head, elm, field) argument
89 #define HEIM_TAILQ_INIT(head) do { \ argument
94 #define HEIM_TAILQ_INSERT_HEAD(head, elm, field) do { \ argument
105 #define HEIM_TAILQ_INSERT_TAIL(head, elm, field) do { \ argument
[all …]
/freebsd/crypto/heimdal/lib/asn1/
H A Dasn1_queue.h47 #define ASN1_TAILQ_HEAD_INITIALIZER(head) \ argument
59 #define QUEUEDEBUG_ASN1_TAILQ_INSERT_HEAD(head, elm, field) \ argument
63 #define QUEUEDEBUG_ASN1_TAILQ_INSERT_TAIL(head, elm, field) \ argument
73 #define QUEUEDEBUG_ASN1_TAILQ_PREREMOVE(head, elm, field) \ argument
82 #define QUEUEDEBUG_ASN1_TAILQ_INSERT_HEAD(head, elm, field) argument
83 #define QUEUEDEBUG_ASN1_TAILQ_INSERT_TAIL(head, elm, field) argument
85 #define QUEUEDEBUG_ASN1_TAILQ_PREREMOVE(head, elm, field) argument
89 #define ASN1_TAILQ_INIT(head) do { \ argument
94 #define ASN1_TAILQ_INSERT_HEAD(head, elm, field) do { \ argument
105 #define ASN1_TAILQ_INSERT_TAIL(head, elm, field) do { \ argument
[all …]
/freebsd/contrib/sendmail/include/sm/
H A Dtailq.h63 #define SM_TAILQ_HEAD_INITIALIZER(head) \ argument
75 #define SM_TAILQ_FIRST(head) ((head)->tqh_first) argument
76 #define SM_TAILQ_END(head) NULL argument
78 #define SM_TAILQ_LAST(head, headname) \ argument
83 #define SM_TAILQ_EMPTY(head) \ argument
86 #define SM_TAILQ_FOREACH(var, head, field) \ argument
91 #define SM_TAILQ_FOREACH_REVERSE(var, head, headname, field) \ argument
99 #define SM_TAILQ_INIT(head) do { \ argument
104 #define SM_TAILQ_INSERT_HEAD(head, elm, field) do { \ argument
114 #define SM_TAILQ_INSERT_TAIL(head, elm, field) do { \ argument
[all …]
/freebsd/sys/kern/
H A Dsubr_disk.c152 bioq_init(struct bio_queue_head *head) in bioq_init()
163 bioq_remove(struct bio_queue_head *head, struct bio *bp) in bioq_remove()
179 bioq_flush(struct bio_queue_head *head, struct devstat *stp, int error) in bioq_flush()
188 bioq_insert_head(struct bio_queue_head *head, struct bio *bp) in bioq_insert_head()
199 bioq_insert_tail(struct bio_queue_head *head, struct bio *bp) in bioq_insert_tail()
210 bioq_first(struct bio_queue_head *head) in bioq_first()
217 bioq_takefirst(struct bio_queue_head *head) in bioq_takefirst()
233 bioq_bio_key(struct bio_queue_head *head, struct bio *bp) in bioq_bio_key()
247 bioq_disksort(struct bio_queue_head *head, struct bio *bp) in bioq_disksort()
/freebsd/tools/tools/drm/radeon/mkregtable/
H A Dmkregtable.c84 static inline void list_add(struct list_head *new, struct list_head *head) in list_add()
97 static inline void list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail()
169 static inline void list_move(struct list_head *list, struct list_head *head) in list_move()
181 struct list_head *head) in list_move_tail()
193 const struct list_head *head) in list_is_last()
202 static inline int list_empty(const struct list_head *head) in list_empty()
220 static inline int list_empty_careful(const struct list_head *head) in list_empty_careful()
230 static inline int list_is_singular(const struct list_head *head) in list_is_singular()
236 struct list_head *head, in __list_cut_position()
263 struct list_head *head, in list_cut_position()
[all …]
/freebsd/crypto/heimdal/lib/gssapi/mech/
H A Dmechqueue.h45 #define HEIM_SLIST_HEAD_INITIALIZER(head) \ argument
56 #define HEIM_SLIST_INIT(head) do { \ argument
65 #define HEIM_SLIST_INSERT_HEAD(head, elm, field) do { \ argument
70 #define HEIM_SLIST_REMOVE_HEAD(head, field) do { \ argument
74 #define HEIM_SLIST_REMOVE(head, elm, type, field) do { \ argument
87 #define HEIM_SLIST_FOREACH(var, head, field) \ argument
93 #define HEIM_SLIST_EMPTY(head) ((head)->slh_first == NULL) argument
94 #define HEIM_SLIST_FIRST(head) ((head)->slh_first) argument
/freebsd/sys/dev/drm2/
H A Ddrm_linux_list.h43 INIT_LIST_HEAD(struct list_head *head) { in INIT_LIST_HEAD()
54 list_empty(const struct list_head *head) { in list_empty()
59 list_add(struct list_head *new, struct list_head *head) { in list_add()
67 list_add_tail(struct list_head *entry, struct list_head *head) { in list_add_tail()
89 static inline void list_move(struct list_head *list, struct list_head *head) in list_move()
96 struct list_head *head) in list_move_tail()
109 #define list_for_each(entry, head) \ argument
112 #define list_for_each_prev(entry, head) \ argument
116 #define list_for_each_safe(entry, temp, head) \ argument
121 #define list_for_each_entry(pos, head, member) \ argument
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Dht-internal.h41 #define HT_EMPTY(head) \ argument
45 #define HT_SIZE(head) \ argument
49 #define HT_MEM_USAGE(head) \ argument
52 #define HT_FIND(name, head, elm) name##_HT_FIND((head), (elm)) argument
53 #define HT_INSERT(name, head, elm) name##_HT_INSERT((head), (elm)) argument
54 #define HT_REPLACE(name, head, elm) name##_HT_REPLACE((head), (elm)) argument
55 #define HT_REMOVE(name, head, elm) name##_HT_REMOVE((head), (elm)) argument
56 #define HT_START(name, head) name##_HT_START(head) argument
57 #define HT_NEXT(name, head, elm) name##_HT_NEXT((head), (elm)) argument
58 #define HT_NEXT_RMV(name, head, elm) name##_HT_NEXT_RMV((head), (elm)) argument
[all …]
/freebsd/contrib/libevent/
H A Dht-internal.h41 #define HT_EMPTY(head) \ argument
45 #define HT_SIZE(head) \ argument
49 #define HT_MEM_USAGE(head) \ argument
52 #define HT_FIND(name, head, elm) name##_HT_FIND((head), (elm)) argument
53 #define HT_INSERT(name, head, elm) name##_HT_INSERT((head), (elm)) argument
54 #define HT_REPLACE(name, head, elm) name##_HT_REPLACE((head), (elm)) argument
55 #define HT_REMOVE(name, head, elm) name##_HT_REMOVE((head), (elm)) argument
56 #define HT_START(name, head) name##_HT_START(head) argument
57 #define HT_NEXT(name, head, elm) name##_HT_NEXT((head), (elm)) argument
58 #define HT_NEXT_RMV(name, head, elm) name##_HT_NEXT_RMV((head), (elm)) argument
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dlist.h95 list_empty(const struct list_head *head) in list_empty()
102 list_empty_careful(const struct list_head *head) in list_empty_careful()
185 #define list_for_each(p, head) \ argument
188 #define list_for_each_safe(p, n, head) \ argument
208 #define list_for_each_entry_safe_from(pos, n, head, member) \ argument
237 #define list_for_each_rcu(p, head) \ argument
243 list_add(struct list_head *new, struct list_head *head) in list_add()
250 list_add_tail(struct list_head *new, struct list_head *head) in list_add_tail()
257 list_move(struct list_head *list, struct list_head *head) in list_move()
265 list_move_tail(struct list_head *entry, struct list_head *head) in list_move_tail()
[all …]
H A Drculist.h37 #define list_next_rcu(head) (*((struct list_head **)(&(head)->next))) argument
38 #define list_prev_rcu(head) (*((struct list_head **)(&(head)->prev))) argument
40 #define list_for_each_entry_rcu(pos, head, member) \ argument
45 #define list_for_each_entry_from_rcu(pos, head, member) \ argument
50 #define list_for_each_entry_lockless(pos, head, member) \ argument
64 list_add_rcu(struct list_head *new, struct list_head *head) in list_add_rcu()
70 list_add_tail_rcu(struct list_head *new, struct list_head *head) in list_add_tail_rcu()
94 #define hlist_first_rcu(head) (*((struct hlist_node **)(&(head)->first))) argument
108 #define hlist_for_each_entry_rcu(pos, head, member) \ argument
/freebsd/contrib/elftoolchain/common/
H A D_elftc.h80 #define LIST_FOREACH_SAFE(var, head, field, tvar) \ argument
87 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument
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
132 #define STAILQ_FOREACH(var, head, field) \ argument
139 #define STAILQ_FOREACH_SAFE(var, head, field, tvar) \ argument
146 #define STAILQ_INIT(head) do { \ argument
153 #define STAILQ_INSERT_HEAD(head, elm, field) do { \ argument
161 #define STAILQ_INSERT_TAIL(head, elm, field) do { \ argument
[all …]
/freebsd/sys/dev/hpt27xx/
H A Dlist.h54 static HPT_INLINE void list_add(struct list_head *_new, struct list_head *head) in list_add()
59 static HPT_INLINE void list_add_tail(struct list_head *_new, struct list_head *head) in list_add_tail()
81 static HPT_INLINE int list_empty(struct list_head *head) in list_empty()
88 struct list_head *head) in __list_splice()
101 static HPT_INLINE void list_splice(struct list_head *list, struct list_head *head) in list_splice()
107 static HPT_INLINE void list_splice_init(struct list_head *list, struct list_head *head) in list_splice_init()
118 #define list_for_each(pos, head) \ argument
121 #define list_for_each_safe(pos, n, head) \ argument
/freebsd/sys/dev/hptnr/
H A Dlist.h53 static HPT_INLINE void list_add(struct list_head *_new, struct list_head *head) in list_add()
58 static HPT_INLINE void list_add_tail(struct list_head *_new, struct list_head *head) in list_add_tail()
80 static HPT_INLINE int list_empty(struct list_head *head) in list_empty()
87 struct list_head *head) in __list_splice()
100 static HPT_INLINE void list_splice(struct list_head *list, struct list_head *head) in list_splice()
106 static HPT_INLINE void list_splice_init(struct list_head *list, struct list_head *head) in list_splice_init()
117 #define list_for_each(pos, head) \ argument
120 #define list_for_each_safe(pos, n, head) \ argument
/freebsd/sys/dev/hptrr/
H A Dlist.h56 static HPT_INLINE void list_add(struct list_head *_new, struct list_head *head) in list_add()
61 static HPT_INLINE void list_add_tail(struct list_head *_new, struct list_head *head) in list_add_tail()
83 static HPT_INLINE int list_empty(struct list_head *head) in list_empty()
90 struct list_head *head) in __list_splice()
103 static HPT_INLINE void list_splice(struct list_head *list, struct list_head *head) in list_splice()
109 static HPT_INLINE void list_splice_init(struct list_head *list, struct list_head *head) in list_splice_init()
120 #define list_for_each(pos, head) \ argument
123 #define list_for_each_safe(pos, n, head) \ argument

12345678910>>...19