Symbol: head
bin/csh/set.c
440
value1(Char *var, struct varent *head)
bin/csh/set.c
444
vp = adrof1(var, head);
bin/csh/set.c
492
set1(Char *var, Char **vec, struct varent *head)
bin/csh/set.c
508
setq(var, vec, head);
bin/csh/set.c
597
unset1(Char *v[], struct varent *head)
bin/csh/set.c
604
while ((vp = madrof(*v, head->v_left)) != NULL)
common/dist/zlib/deflate.c
1304
TRY_FREE(strm, strm->state->head);
common/dist/zlib/deflate.c
1346
ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos));
common/dist/zlib/deflate.c
1349
if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL ||
common/dist/zlib/deflate.c
1359
zmemcpy(ds->head, ss->head, ds->hash_size * sizeof(Pos));
common/dist/zlib/deflate.c
159
match_head = s->head[s->ins_h], \
common/dist/zlib/deflate.c
160
s->head[s->ins_h] = (Pos)(str))
common/dist/zlib/deflate.c
164
match_head = s->prev[(str) & s->w_mask] = s->head[s->ins_h], \
common/dist/zlib/deflate.c
165
s->head[s->ins_h] = (Pos)(str))
common/dist/zlib/deflate.c
174
s->head[s->hash_size - 1] = NIL; \
common/dist/zlib/deflate.c
175
zmemzero(s->head, (unsigned)(s->hash_size - 1)*sizeof(*s->head)); \
common/dist/zlib/deflate.c
195
p = &s->head[n];
common/dist/zlib/deflate.c
327
s->prev[str & s->w_mask] = s->head[s->ins_h];
common/dist/zlib/deflate.c
329
s->head[s->ins_h] = (Pos)str;
common/dist/zlib/deflate.c
462
s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos));
common/dist/zlib/deflate.c
510
if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL ||
common/dist/zlib/deflate.c
605
s->prev[str & s->w_mask] = s->head[s->ins_h];
common/dist/zlib/deflate.c
607
s->head[s->ins_h] = (Pos)str;
common/dist/zlib/deflate.c
716
int ZEXPORT deflateSetHeader(z_streamp strm, gz_headerp head) {
common/dist/zlib/deflate.c
719
strm->state->gzhead = head;
common/dist/zlib/deflate.h
146
Posf *head; /* Heads of the hash chains or NIL. */
common/dist/zlib/inflate.c
117
state->head = Z_NULL;
common/dist/zlib/inflate.c
1228
int ZEXPORT inflateGetHeader(z_streamp strm, gz_headerp head) {
common/dist/zlib/inflate.c
1237
state->head = head;
common/dist/zlib/inflate.c
1238
head->done = 0;
common/dist/zlib/inflate.c
531
if (state->head != Z_NULL)
common/dist/zlib/inflate.c
532
state->head->done = -1;
common/dist/zlib/inflate.c
577
if (state->head != Z_NULL)
common/dist/zlib/inflate.c
578
state->head->text = (int)((hold >> 8) & 1);
common/dist/zlib/inflate.c
586
if (state->head != Z_NULL)
common/dist/zlib/inflate.c
587
state->head->time = hold;
common/dist/zlib/inflate.c
595
if (state->head != Z_NULL) {
common/dist/zlib/inflate.c
596
state->head->xflags = (int)(hold & 0xff);
common/dist/zlib/inflate.c
597
state->head->os = (int)(hold >> 8);
common/dist/zlib/inflate.c
608
if (state->head != Z_NULL)
common/dist/zlib/inflate.c
609
state->head->extra_len = (unsigned)hold;
common/dist/zlib/inflate.c
614
else if (state->head != Z_NULL)
common/dist/zlib/inflate.c
615
state->head->extra = Z_NULL;
common/dist/zlib/inflate.c
623
if (state->head != Z_NULL &&
common/dist/zlib/inflate.c
624
state->head->extra != Z_NULL &&
common/dist/zlib/inflate.c
625
(len = state->head->extra_len - state->length) <
common/dist/zlib/inflate.c
626
state->head->extra_max) {
common/dist/zlib/inflate.c
627
zmemcpy(state->head->extra + len, next,
common/dist/zlib/inflate.c
628
len + copy > state->head->extra_max ?
common/dist/zlib/inflate.c
629
state->head->extra_max - len : copy);
common/dist/zlib/inflate.c
648
if (state->head != Z_NULL &&
common/dist/zlib/inflate.c
649
state->head->name != Z_NULL &&
common/dist/zlib/inflate.c
650
state->length < state->head->name_max)
common/dist/zlib/inflate.c
651
state->head->name[state->length++] = (Bytef)len;
common/dist/zlib/inflate.c
659
else if (state->head != Z_NULL)
common/dist/zlib/inflate.c
660
state->head->name = Z_NULL;
common/dist/zlib/inflate.c
670
if (state->head != Z_NULL &&
common/dist/zlib/inflate.c
671
state->head->comment != Z_NULL &&
common/dist/zlib/inflate.c
672
state->length < state->head->comm_max)
common/dist/zlib/inflate.c
673
state->head->comment[state->length++] = (Bytef)len;
common/dist/zlib/inflate.c
681
else if (state->head != Z_NULL)
common/dist/zlib/inflate.c
682
state->head->comment = Z_NULL;
common/dist/zlib/inflate.c
695
if (state->head != Z_NULL) {
common/dist/zlib/inflate.c
696
state->head->hcrc = (int)((state->flags >> 9) & 1);
common/dist/zlib/inflate.c
697
state->head->done = 1;
common/dist/zlib/inflate.h
94
gz_headerp head; /* where to save gzip header information */
common/dist/zlib/test/infcover.c
291
gz_header head;
common/dist/zlib/test/infcover.c
303
head.extra = out;
common/dist/zlib/test/infcover.c
304
head.extra_max = len;
common/dist/zlib/test/infcover.c
305
head.name = out;
common/dist/zlib/test/infcover.c
306
head.name_max = len;
common/dist/zlib/test/infcover.c
307
head.comment = out;
common/dist/zlib/test/infcover.c
308
head.comm_max = len;
common/dist/zlib/test/infcover.c
309
ret = inflateGetHeader(&strm, &head); assert(ret == Z_OK);
common/dist/zlib/zlib.h
1073
gz_headerp head);
common/dist/zlib/zlib.h
836
gz_headerp head);
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
114
#define SLIST_HEAD_INITIALIZER(head) \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
125
#define SLIST_EMPTY(head) ((head)->slh_first == NULL)
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
127
#define SLIST_FIRST(head) ((head)->slh_first)
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
129
#define SLIST_FOREACH(var, head, field) \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
130
for ((var) = SLIST_FIRST((head)); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
134
#define SLIST_INIT(head) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
135
SLIST_FIRST((head)) = NULL; \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
143
#define SLIST_INSERT_HEAD(head, elm, field) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
144
SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
145
SLIST_FIRST((head)) = (elm); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
150
#define SLIST_REMOVE(head, elm, type, field) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
151
if (SLIST_FIRST((head)) == (elm)) { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
152
SLIST_REMOVE_HEAD((head), field); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
155
struct type *curelm = SLIST_FIRST((head)); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
163
#define SLIST_REMOVE_HEAD(head, field) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
164
SLIST_FIRST((head)) = SLIST_NEXT(SLIST_FIRST((head)), field); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
176
#define STAILQ_HEAD_INITIALIZER(head) \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
177
{ NULL, &(head).stqh_first }
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
187
#define STAILQ_EMPTY(head) ((head)->stqh_first == NULL)
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
189
#define STAILQ_FIRST(head) ((head)->stqh_first)
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
191
#define STAILQ_FOREACH(var, head, field) \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
192
for((var) = STAILQ_FIRST((head)); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
196
#define STAILQ_INIT(head) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
197
STAILQ_FIRST((head)) = NULL; \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
198
(head)->stqh_last = &STAILQ_FIRST((head)); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
201
#define STAILQ_INSERT_AFTER(head, tqelm, elm, field) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
203
(head)->stqh_last = &STAILQ_NEXT((elm), field); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
207
#define STAILQ_INSERT_HEAD(head, elm, field) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
208
if ((STAILQ_NEXT((elm), field) = STAILQ_FIRST((head))) == NULL) \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
209
(head)->stqh_last = &STAILQ_NEXT((elm), field); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
210
STAILQ_FIRST((head)) = (elm); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
213
#define STAILQ_INSERT_TAIL(head, elm, field) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
215
*(head)->stqh_last = (elm); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
216
(head)->stqh_last = &STAILQ_NEXT((elm), field); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
219
#define STAILQ_LAST(head, type, field) \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
220
(STAILQ_EMPTY(head) ? \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
223
((char *)((head)->stqh_last) - __offsetof(struct type, field))))
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
227
#define STAILQ_REMOVE(head, elm, type, field) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
228
if (STAILQ_FIRST((head)) == (elm)) { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
229
STAILQ_REMOVE_HEAD(head, field); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
232
struct type *curelm = STAILQ_FIRST((head)); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
237
(head)->stqh_last = &STAILQ_NEXT((curelm), field);\
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
241
#define STAILQ_REMOVE_HEAD(head, field) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
242
if ((STAILQ_FIRST((head)) = \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
243
STAILQ_NEXT(STAILQ_FIRST((head)), field)) == NULL) \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
244
(head)->stqh_last = &STAILQ_FIRST((head)); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
247
#define STAILQ_REMOVE_HEAD_UNTIL(head, elm, field) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
248
if ((STAILQ_FIRST((head)) = STAILQ_NEXT((elm), field)) == NULL) \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
249
(head)->stqh_last = &STAILQ_FIRST((head)); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
260
#define LIST_HEAD_INITIALIZER(head) \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
273
#define LIST_EMPTY(head) ((head)->lh_first == NULL)
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
275
#define LIST_FIRST(head) ((head)->lh_first)
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
277
#define LIST_FOREACH(var, head, field) \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
278
for ((var) = LIST_FIRST((head)); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
282
#define LIST_INIT(head) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
283
LIST_FIRST((head)) = NULL; \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
301
#define LIST_INSERT_HEAD(head, elm, field) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
302
if ((LIST_NEXT((elm), field) = LIST_FIRST((head))) != NULL) \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
303
LIST_FIRST((head))->field.le_prev = &LIST_NEXT((elm), field);\
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
304
LIST_FIRST((head)) = (elm); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
305
(elm)->field.le_prev = &LIST_FIRST((head)); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
326
#define TAILQ_HEAD_INITIALIZER(head) \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
327
{ NULL, &(head).tqh_first }
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
338
#define TAILQ_EMPTY(head) ((head)->tqh_first == NULL)
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
340
#define TAILQ_FIRST(head) ((head)->tqh_first)
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
342
#define TAILQ_FOREACH(var, head, field) \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
343
for ((var) = TAILQ_FIRST((head)); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
347
#define TAILQ_FOREACH_REVERSE(var, head, headname, field) \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
348
for ((var) = TAILQ_LAST((head), headname); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
352
#define TAILQ_INIT(head) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
353
TAILQ_FIRST((head)) = NULL; \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
354
(head)->tqh_last = &TAILQ_FIRST((head)); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
357
#define TAILQ_INSERT_AFTER(head, listelm, elm, field) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
362
(head)->tqh_last = &TAILQ_NEXT((elm), field); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
374
#define TAILQ_INSERT_HEAD(head, elm, field) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
375
if ((TAILQ_NEXT((elm), field) = TAILQ_FIRST((head))) != NULL) \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
376
TAILQ_FIRST((head))->field.tqe_prev = \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
379
(head)->tqh_last = &TAILQ_NEXT((elm), field); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
380
TAILQ_FIRST((head)) = (elm); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
381
(elm)->field.tqe_prev = &TAILQ_FIRST((head)); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
384
#define TAILQ_INSERT_TAIL(head, elm, field) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
386
(elm)->field.tqe_prev = (head)->tqh_last; \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
387
*(head)->tqh_last = (elm); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
388
(head)->tqh_last = &TAILQ_NEXT((elm), field); \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
391
#define TAILQ_LAST(head, headname) \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
392
(*(((struct headname *)((head)->tqh_last))->tqh_last))
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
399
#define TAILQ_REMOVE(head, elm, field) do { \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
404
(head)->tqh_last = (elm)->field.tqe_prev; \
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
427
*head = (struct quehead *)b;
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
429
element->qh_link = head->qh_link;
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
430
element->qh_rlink = head;
crypto/dist/ipsec-tools/src/include-glibc/sys/queue.h
431
head->qh_link = element;
crypto/dist/ipsec-tools/src/racoon/genlist.c
100
while ((p = TAILQ_LAST(head, genlist)) != NULL) {
crypto/dist/ipsec-tools/src/racoon/genlist.c
101
TAILQ_REMOVE(head, p, chain);
crypto/dist/ipsec-tools/src/racoon/genlist.c
106
free(head);
crypto/dist/ipsec-tools/src/racoon/genlist.c
126
dump_list(struct genlist *head)
crypto/dist/ipsec-tools/src/racoon/genlist.c
128
genlist_foreach(head, print_entry, NULL);
crypto/dist/ipsec-tools/src/racoon/genlist.c
50
genlist_insert (struct genlist *head, void *data)
crypto/dist/ipsec-tools/src/racoon/genlist.c
54
TAILQ_INSERT_HEAD(head, entry, chain);
crypto/dist/ipsec-tools/src/racoon/genlist.c
59
genlist_append (struct genlist *head, void *data)
crypto/dist/ipsec-tools/src/racoon/genlist.c
63
TAILQ_INSERT_TAIL(head, entry, chain);
crypto/dist/ipsec-tools/src/racoon/genlist.c
68
genlist_foreach (struct genlist *head, genlist_func_t func, void *arg)
crypto/dist/ipsec-tools/src/racoon/genlist.c
72
TAILQ_FOREACH(p, head, chain) {
crypto/dist/ipsec-tools/src/racoon/genlist.c
82
genlist_next (struct genlist *head, struct genlist_entry **buf)
crypto/dist/ipsec-tools/src/racoon/genlist.c
86
if (head)
crypto/dist/ipsec-tools/src/racoon/genlist.c
87
p = TAILQ_FIRST(head);
crypto/dist/ipsec-tools/src/racoon/genlist.c
96
genlist_free (struct genlist *head, genlist_freedata_t func)
crypto/dist/ipsec-tools/src/racoon/genlist.h
55
struct genlist_entry *genlist_insert (struct genlist *head, void *data);
crypto/dist/ipsec-tools/src/racoon/genlist.h
56
struct genlist_entry *genlist_append (struct genlist *head, void *data);
crypto/dist/ipsec-tools/src/racoon/genlist.h
67
void *genlist_foreach (struct genlist *head, genlist_func_t func, void *arg);
crypto/dist/ipsec-tools/src/racoon/genlist.h
72
void *genlist_next (struct genlist *head, struct genlist_entry **buf);
crypto/dist/ipsec-tools/src/racoon/genlist.h
80
void genlist_free (struct genlist *head, genlist_freedata_t func);
crypto/dist/ipsec-tools/src/racoon/getcertsbyname.c
123
struct certinfo head, *cur;
crypto/dist/ipsec-tools/src/racoon/getcertsbyname.c
131
memset(&head, 0, sizeof(head));
crypto/dist/ipsec-tools/src/racoon/getcertsbyname.c
132
cur = &head;
crypto/dist/ipsec-tools/src/racoon/getcertsbyname.c
186
*res = head.ci_next;
crypto/dist/ipsec-tools/src/racoon/getcertsbyname.c
192
if (error && head.ci_next)
crypto/dist/ipsec-tools/src/racoon/getcertsbyname.c
193
freecertinfo(head.ci_next);
crypto/dist/ipsec-tools/src/racoon/getcertsbyname.c
208
struct certinfo head, *cur;
crypto/dist/ipsec-tools/src/racoon/getcertsbyname.c
214
memset(&head, 0, sizeof(head));
crypto/dist/ipsec-tools/src/racoon/getcertsbyname.c
215
cur = &head;
crypto/dist/ipsec-tools/src/racoon/getcertsbyname.c
326
*res = head.ci_next;
crypto/dist/ipsec-tools/src/racoon/getcertsbyname.c
332
if (error && head.ci_next)
crypto/dist/ipsec-tools/src/racoon/getcertsbyname.c
333
freecertinfo(head.ci_next);
crypto/dist/ipsec-tools/src/racoon/handler.c
1325
if (alg->alg == approval->head->head->authtype)
crypto/dist/ipsec-tools/src/racoon/handler.c
1340
if (alg->alg != approval->head->head->trns_id){
crypto/dist/ipsec-tools/src/racoon/handler.c
1343
alg->alg, approval->head->head->trns_id);
crypto/dist/ipsec-tools/src/racoon/handler.c
1350
if (alg->encklen != approval->head->head->encklen) {
crypto/dist/ipsec-tools/src/racoon/handler.c
1360
if (alg->encklen > approval->head->head->encklen) {
crypto/dist/ipsec-tools/src/racoon/handler.c
1405
if(iph2->approval != NULL && iph2->approval->head != NULL){
crypto/dist/ipsec-tools/src/racoon/handler.c
1406
spis[0]=iph2->approval->head->spi;
crypto/dist/ipsec-tools/src/racoon/handler.c
1407
spis[1]=iph2->approval->head->spi_p;
crypto/dist/ipsec-tools/src/racoon/handler.c
1414
purge_ipsec_spi(iph2->dst, iph2->approval->head->proto_id,
crypto/dist/ipsec-tools/src/racoon/handler.c
649
for (pr = iph2->approval->head; pr != NULL;
crypto/dist/ipsec-tools/src/racoon/handler.c
657
for (pr = iph2->proposal->head; pr != NULL;
crypto/dist/ipsec-tools/src/racoon/handler.c
709
for (pr = iph2->proposal->head; pr != NULL; pr = pr->next)
crypto/dist/ipsec-tools/src/racoon/handler.c
871
for (pr = iph2->approval->head; pr != NULL;
crypto/dist/ipsec-tools/src/racoon/handler.c
877
for (pr = iph2->proposal->head; pr != NULL;
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
1042
for (sp = pr->head; sp; sp = sp->next) {
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
1048
if (sp->head->next)
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
1052
if (sp->head->trns_no == x->trns->t_no)
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
1499
for (pr = pp->head; pr; pr = pr->next) {
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
1501
p->trns->t_id == pr->head->trns_id) {
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
1553
for (pr = pp->head; pr; pr = pr->next) {
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
1557
for (tr = pr->head; tr; tr = tr->next) {
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
1584
for (pr = pp->head; pr; pr = pr->next) {
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
1588
for (tr = pr->head; tr; tr = tr->next) {
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
2892
for (tr = pr->head; tr; tr = tr->next) {
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3085
for (b = a->head; b; b = b->next) {
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3138
for (pr = pp->head; pr; pr = pr->next) {
crypto/dist/ipsec-tools/src/racoon/isakmp_inf.c
631
for (pr = iph2->approval->head; pr != NULL; pr = pr->next) {
crypto/dist/ipsec-tools/src/racoon/isakmp_inf.c
815
pr = iph2->approval->head;
crypto/dist/ipsec-tools/src/racoon/isakmp_quick.c
1632
for (pr = pp->head; pr; pr = pr->next) {
crypto/dist/ipsec-tools/src/racoon/isakmp_quick.c
1846
tlen = sizeof(struct isakmp_pl_n) + iph2->approval->head->spisize;
crypto/dist/ipsec-tools/src/racoon/isakmp_quick.c
1857
n->proto_id = iph2->approval->head->proto_id;
crypto/dist/ipsec-tools/src/racoon/isakmp_quick.c
1858
n->spi_size = sizeof(iph2->approval->head->spisize);
crypto/dist/ipsec-tools/src/racoon/isakmp_quick.c
1860
memcpy(n + 1, &iph2->approval->head->spi, iph2->approval->head->spisize);
crypto/dist/ipsec-tools/src/racoon/isakmp_quick.c
1928
for (pr = p->head; pr; pr = pr->next)
crypto/dist/ipsec-tools/src/racoon/logger.c
104
if (p->buf[p->head])
crypto/dist/ipsec-tools/src/racoon/logger.c
105
racoon_free(p->buf[p->head]);
crypto/dist/ipsec-tools/src/racoon/logger.c
106
p->buf[p->head] = racoon_strdup(str);
crypto/dist/ipsec-tools/src/racoon/logger.c
107
p->tbuf[p->head] = time(NULL);
crypto/dist/ipsec-tools/src/racoon/logger.c
108
p->head++;
crypto/dist/ipsec-tools/src/racoon/logger.c
109
p->head %= p->siz;
crypto/dist/ipsec-tools/src/racoon/logger.c
188
j = (p->head + i) % p->siz;
crypto/dist/ipsec-tools/src/racoon/logger.h
38
int head;
crypto/dist/ipsec-tools/src/racoon/misc.h
56
#define RACOON_TAILQ_FOREACH_REVERSE(var, head, headname ,field) \
crypto/dist/ipsec-tools/src/racoon/misc.h
57
TAILQ_FOREACH_REVERSE(var, head, field, headname)
crypto/dist/ipsec-tools/src/racoon/misc.h
59
#define RACOON_TAILQ_FOREACH_REVERSE(var, head, headname ,field) \
crypto/dist/ipsec-tools/src/racoon/misc.h
60
TAILQ_FOREACH_REVERSE(var, head, headname, field)
crypto/dist/ipsec-tools/src/racoon/oakley.c
529
for (pr = iph2->approval->head; pr != NULL; pr = pr->next) {
crypto/dist/ipsec-tools/src/racoon/oakley.c
566
for (tr = pr->head; tr; tr = tr->next) {
crypto/dist/ipsec-tools/src/racoon/oakley.c
578
for (tr = pr->head; tr; tr = tr->next) {
crypto/dist/ipsec-tools/src/racoon/oakley.c
686
for (pr = iph2->approval->head; pr != NULL; pr = pr->next) {
crypto/dist/ipsec-tools/src/racoon/pfkey.c
1032
for (pr = pp->head; pr != NULL; pr = pr->next) {
crypto/dist/ipsec-tools/src/racoon/pfkey.c
1112
for (pr = iph2->approval->head; pr != NULL; pr = pr->next) {
crypto/dist/ipsec-tools/src/racoon/pfkey.c
1139
sa_args.e_keylen = pr->head->encklen;
crypto/dist/ipsec-tools/src/racoon/pfkey.c
1142
pr->head->trns_id,
crypto/dist/ipsec-tools/src/racoon/pfkey.c
1143
pr->head->authtype,
crypto/dist/ipsec-tools/src/racoon/pfkey.c
1286
for (pr = iph2->approval->head; pr != NULL; pr = pr->next) {
crypto/dist/ipsec-tools/src/racoon/pfkey.c
1393
for (pr = iph2->approval->head; pr != NULL; pr = pr->next) {
crypto/dist/ipsec-tools/src/racoon/pfkey.c
1421
sa_args.e_keylen = pr->head->encklen;
crypto/dist/ipsec-tools/src/racoon/pfkey.c
1424
pr->head->trns_id,
crypto/dist/ipsec-tools/src/racoon/pfkey.c
1425
pr->head->authtype,
crypto/dist/ipsec-tools/src/racoon/pfkey.c
2070
for (pr = iph2->approval->head; pr; pr = pr->next) {
crypto/dist/ipsec-tools/src/racoon/pfkey.c
2133
for (pr = iph2->approval->head; pr; pr = pr->next) rlist_len++;
crypto/dist/ipsec-tools/src/racoon/pfkey.c
2141
for (pr = iph2->approval->head; pr; pr = pr->next) pr_rlist[rlist_len--] = pr;
crypto/dist/ipsec-tools/src/racoon/pfkey.c
2165
if(iph2->proposal->head->reqid_in > 0){
crypto/dist/ipsec-tools/src/racoon/pfkey.c
2167
xisr->sadb_x_ipsecrequest_reqid = iph2->proposal->head->reqid_in;
crypto/dist/ipsec-tools/src/racoon/pfkey.c
904
for (pr = pp->head; pr != NULL; pr = pr->next) {
crypto/dist/ipsec-tools/src/racoon/proposal.c
105
inssaprop(struct saprop **head, struct saprop *new)
crypto/dist/ipsec-tools/src/racoon/proposal.c
109
if (*head == NULL) {
crypto/dist/ipsec-tools/src/racoon/proposal.c
1096
pr = newpp->head;
crypto/dist/ipsec-tools/src/racoon/proposal.c
110
*head = new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
114
for (p = *head; p->next; p = p->next)
crypto/dist/ipsec-tools/src/racoon/proposal.c
1183
for (pr = pp_peer->head; pr; pr = pr->next)
crypto/dist/ipsec-tools/src/racoon/proposal.c
127
for (p = pp->head; p && p->next; p = p->next)
crypto/dist/ipsec-tools/src/racoon/proposal.c
130
pp->head = new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
141
new->next = pp->head;
crypto/dist/ipsec-tools/src/racoon/proposal.c
142
pp->head = new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
165
for (tr = pr->head; tr && tr->next; tr = tr->next)
crypto/dist/ipsec-tools/src/racoon/proposal.c
168
pr->head = new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
357
for (pr1 = pp1->head; pr1; pr1 = pr1->next)
crypto/dist/ipsec-tools/src/racoon/proposal.c
359
for (pr2 = pp2->head; pr2; pr2 = pr2->next)
crypto/dist/ipsec-tools/src/racoon/proposal.c
365
pr1 = pp1->head;
crypto/dist/ipsec-tools/src/racoon/proposal.c
366
pr2 = pp2->head;
crypto/dist/ipsec-tools/src/racoon/proposal.c
378
for (pr1 = pp1->head; pr1; pr1 = pr1->next) {
crypto/dist/ipsec-tools/src/racoon/proposal.c
386
for (pr2 = pp2->head; pr2; pr2 = pr2->next) {
crypto/dist/ipsec-tools/src/racoon/proposal.c
466
for (tr1 = pr1->head; tr1; tr1 = tr1->next) {
crypto/dist/ipsec-tools/src/racoon/proposal.c
467
for (tr2 = pr2->head; tr2; tr2 = tr2->next) {
crypto/dist/ipsec-tools/src/racoon/proposal.c
718
if (pr->head == NULL) {
crypto/dist/ipsec-tools/src/racoon/proposal.c
726
flushsatrns(pr->head);
crypto/dist/ipsec-tools/src/racoon/proposal.c
838
flushsaprop(struct saprop *head)
crypto/dist/ipsec-tools/src/racoon/proposal.c
842
for (p = head; p != NULL; p = save) {
crypto/dist/ipsec-tools/src/racoon/proposal.c
844
flushsaproto(p->head);
crypto/dist/ipsec-tools/src/racoon/proposal.c
852
flushsaproto(struct saproto *head)
crypto/dist/ipsec-tools/src/racoon/proposal.c
856
for (p = head; p != NULL; p = save) {
crypto/dist/ipsec-tools/src/racoon/proposal.c
858
flushsatrns(p->head);
crypto/dist/ipsec-tools/src/racoon/proposal.c
868
flushsatrns(struct satrns *head)
crypto/dist/ipsec-tools/src/racoon/proposal.c
872
for (p = head; p != NULL; p = save) {
crypto/dist/ipsec-tools/src/racoon/proposal.c
911
for (p = pp->head; p; p = p->next) {
crypto/dist/ipsec-tools/src/racoon/proposal.c
936
for (tr = pr->head; tr; tr = tr->next) {
crypto/dist/ipsec-tools/src/racoon/proposal.h
68
struct saproto *head;
crypto/dist/ipsec-tools/src/racoon/proposal.h
93
struct satrns *head; /* header of transform */
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
363
struct admin_com *head;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
369
head = (struct admin_com *) buf->v;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
370
head->ac_len = buf->l;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
371
head->ac_cmd = ADMIN_FLAG_VERSION | cmd;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
372
head->ac_version = 1;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
373
head->ac_proto = proto;
crypto/dist/ipsec-tools/src/racoon/rsalist.c
58
#define LIST_FIRST(head) ((head)->lh_first)
crypto/dist/ipsec-tools/src/racoon/sainfo.c
345
inssainfoalg(struct sainfoalg **head, struct sainfoalg *new)
crypto/dist/ipsec-tools/src/racoon/sainfo.c
349
for (a = *head; a && a->next; a = a->next)
crypto/dist/ipsec-tools/src/racoon/sainfo.c
354
*head = new;
crypto/dist/ipsec-tools/src/racoon/schedule.c
57
#define TAILQ_FOREACH(elm, head, field) \
crypto/dist/ipsec-tools/src/racoon/schedule.c
58
for (elm = TAILQ_FIRST(head); elm; elm = TAILQ_NEXT(elm, field))
crypto/dist/ipsec-tools/src/racoon/var.h
100
for (elm = LIST_FIRST(head); elm; elm = LIST_NEXT(elm, field))
crypto/dist/ipsec-tools/src/racoon/var.h
99
#define LIST_FOREACH(elm, head, field) \
dist/pf/sbin/pfctl/pfctl_optimize.c
1005
remove_from_skipsteps(struct skiplist *head, struct superblock *block,
dist/pf/sbin/pfctl/pfctl_optimize.c
1031
TAILQ_REMOVE(head, sk, ps_entry);
dist/pf/sbin/pfctl/pfctl_optimize.c
1032
TAILQ_INSERT_AFTER(head, next, sk, ps_entry);
dist/pf/sbin/pfctl/pfctl_optimize.c
642
TAILQ_HEAD( , pf_opt_rule) head;
dist/pf/sbin/pfctl/pfctl_optimize.c
703
TAILQ_INIT(&head);
dist/pf/sbin/pfctl/pfctl_optimize.c
706
TAILQ_INSERT_TAIL(&head, por, por_entry);
dist/pf/sbin/pfctl/pfctl_optimize.c
710
while (!TAILQ_EMPTY(&head)) {
dist/pf/sbin/pfctl/pfctl_optimize.c
729
while ((por = TAILQ_FIRST(&head))) {
dist/pf/sbin/pfctl/pfctl_optimize.c
730
TAILQ_REMOVE(&head, por, por_entry);
dist/pf/sbin/pfctl/pfctl_optimize.c
775
TAILQ_REMOVE(&head, por, por_entry);
games/atc/graphics.c
109
for (pp = air.head; pp != NULL; pp = pp->next) {
games/atc/graphics.c
347
for (pp = air.head; pp != NULL; pp = pp->next) {
games/atc/graphics.c
355
for (pp = ground.head; pp != NULL; pp = pp->next) {
games/atc/graphics.c
94
for (pp = air.head; pp != NULL; pp = pp->next) {
games/atc/list.c
106
if (l->head == NULL)
games/atc/list.c
109
if (l->head == p && l->tail == p)
games/atc/list.c
110
l->head = l->tail = NULL;
games/atc/list.c
111
else if (l->head == p) {
games/atc/list.c
112
l->head = p->next;
games/atc/list.c
113
l->head->prev = NULL;
games/atc/list.c
71
if (l->head == NULL) {
games/atc/list.c
73
l->head = l->tail = p;
games/atc/list.c
75
q = l -> head;
games/atc/list.c
92
l->head = p;
games/atc/struct.h
103
PLANE *head, *tail;
games/atc/update.c
202
for (pp = air.head; pp != NULL; pp = p2) {
games/atc/update.c
212
for (p1 = air.head; p1 != NULL; p1 = p1->next)
games/atc/update.c
328
for (pp = air.head; pp != NULL; pp = pp->next)
games/atc/update.c
334
for (pp = ground.head; pp != NULL; pp = pp->next)
games/atc/update.c
381
for (p1 = air.head; p1 != NULL; p1 = p1->next)
games/atc/update.c
422
for (pp = air.head; pp != NULL; pp = pp->next)
games/atc/update.c
425
for (pp = ground.head; pp != NULL; pp = pp->next)
games/atc/update.c
87
for (pp = ground.head; pp != NULL; pp = pp->next) {
games/atc/update.c
98
for (pp = air.head; pp != NULL; pp = pp->next) {
games/fortune/fortune/fortune.c
447
FILEDESC **head, FILEDESC **tail, FILEDESC *parent)
games/fortune/fortune/fortune.c
510
int n = add_file(percent, tfile, FORTDIR, head, tail,
games/fortune/fortune/fortune.c
562
if (*head == NULL)
games/fortune/fortune/fortune.c
563
*head = *tail = fp;
games/fortune/fortune/fortune.c
570
(*head)->prev = fp;
games/fortune/fortune/fortune.c
571
fp->next = *head;
games/fortune/fortune/fortune.c
572
*head = fp;
games/monop/prop.c
111
for (op = *head; op; op = op->next)
games/monop/prop.c
119
*head = op->next;
games/monop/prop.c
63
add_list(int plr, OWN **head, int op_sqr)
games/monop/prop.c
75
for (tp = *head; tp && value(tp->sqr) < val; tp = tp->next)
games/monop/prop.c
86
*head = op;
games/monop/prop.c
95
del_list(int plr, OWN **head, short op_sqr)
games/worm/worm.c
176
head = newlink();
games/worm/worm.c
177
head->x = start_len % (COLS-5) + 2;
games/worm/worm.c
178
head->y = LINES / 2;
games/worm/worm.c
179
head->next = NULL;
games/worm/worm.c
180
display(head, HEAD);
games/worm/worm.c
181
for (i = 0, bp = head; i < start_len; i++, bp = np) {
games/worm/worm.c
268
x = head->x;
games/worm/worm.c
269
y = head->y;
games/worm/worm.c
322
display(head, BODY);
games/worm/worm.c
337
nh->prev = head;
games/worm/worm.c
338
head->next = nh;
games/worm/worm.c
342
head = nh;
games/worm/worm.c
346
wmove(tv, head->y, head->x);
games/worm/worm.c
74
static struct body *head, *tail, goody;
games/worms/worms.c
188
int orientation, head, len;
games/worms/worms.c
450
w->orientation = w->head = 0;
games/worms/worms.c
504
if ((x = w->xpos[h = w->head]) < 0) {
games/worms/worms.c
512
if (w->xpos[w->head = h] >= 0) {
lib/libc/cdb/cdbw.c
248
struct key_hash_head *head, *head2, *new_head;
lib/libc/cdb/cdbw.c
258
head = cdbw->hash + (hashes[0] & (cdbw->hash_size - 1));
lib/libc/cdb/cdbw.c
259
SLIST_FOREACH(key_hash, head, link) {
lib/libc/cdb/cdbw.c
286
SLIST_INSERT_HEAD(head, key_hash, link);
lib/libc/cdb/cdbw.c
298
head = &cdbw->hash[hashes[0] & (cdbw->hash_size - 1)];
lib/libc/cdb/cdbw.c
303
head = cdbw->hash + i;
lib/libc/cdb/cdbw.c
305
while ((key_hash = SLIST_FIRST(head)) != NULL) {
lib/libc/cdb/cdbw.c
306
SLIST_REMOVE_HEAD(head, link);
lib/libc/cdb/cdbw.c
322
struct key_hash_head *head;
lib/libc/cdb/cdbw.c
327
head = cdbw->hash + i;
lib/libc/cdb/cdbw.c
328
while ((key_hash = SLIST_FIRST(head)) != NULL) {
lib/libc/cdb/cdbw.c
329
SLIST_REMOVE_HEAD(head, link);
lib/libc/cdb/cdbw.c
424
struct key_hash_head *head;
lib/libc/cdb/cdbw.c
440
head = &cdbw->hash[i];
lib/libc/cdb/cdbw.c
441
SLIST_FOREACH(key_hash, head, link) {
lib/libc/citrus/citrus_hash.h
37
#define _CITRUS_HASH_INIT(head, hashsize) \
lib/libc/citrus/citrus_hash.h
41
LIST_INIT(&(head)->chh_table[_ch_loop]); \
lib/libc/citrus/citrus_hash.h
44
#define _CITRUS_HASH_INSERT(head, elm, field, hashval) \
lib/libc/citrus/citrus_hash.h
45
LIST_INSERT_HEAD(&(head)->chh_table[hashval], elm, field)
lib/libc/citrus/citrus_hash.h
46
#define _CITRUS_HASH_SEARCH(head, elm, field, matchfunc, key, hashval) \
lib/libc/citrus/citrus_hash.h
48
LIST_FOREACH((elm), &(head)->chh_table[hashval], field) { \
lib/libc/citrus/citrus_memstream.c
122
void *head, *chr;
lib/libc/citrus/citrus_memstream.c
128
head = _region_offset(&ms->ms_region, ms->ms_pos);
lib/libc/citrus/citrus_memstream.c
129
chr = memchr(head, ch, _memstream_remainder(ms));
lib/libc/citrus/citrus_memstream.c
131
_region_init(r, head, _memstream_remainder(ms));
lib/libc/citrus/citrus_memstream.c
135
sz = (char *)chr - (char *)head;
lib/libc/citrus/citrus_memstream.c
137
_region_init(r, head, sz);
lib/libc/citrus/citrus_mmap.c
58
void *head;
lib/libc/citrus/citrus_mmap.c
76
head = mmap(NULL, (size_t)st.st_size, PROT_READ, MAP_FILE|MAP_PRIVATE,
lib/libc/citrus/citrus_mmap.c
78
if (head == MAP_FAILED) {
lib/libc/citrus/citrus_mmap.c
82
_region_init(r, head, (size_t)st.st_size);
lib/libc/citrus/modules/citrus_hz.c
210
int bit, head, tail, len, ch;
lib/libc/citrus/modules/citrus_hz.c
231
bit = head = tail = 0;
lib/libc/citrus/modules/citrus_hz.c
271
++head;
lib/libc/citrus/modules/citrus_hz.c
318
if (graphic->length == (tail - head)) {
lib/libc/citrus/modules/citrus_ues.c
217
int ch, head, tail, num;
lib/libc/citrus/modules/citrus_ues.c
238
head = tail;
lib/libc/citrus/modules/citrus_ues.c
239
if (psenc->chlen == head) {
lib/libc/citrus/modules/citrus_ues.c
244
ch = (unsigned char)psenc->ch[head++];
lib/libc/citrus/modules/citrus_ues.c
246
if (psenc->chlen == head) {
lib/libc/citrus/modules/citrus_ues.c
251
switch (psenc->ch[head]) {
lib/libc/citrus/modules/citrus_ues.c
264
++head;
lib/libc/citrus/modules/citrus_ues.c
266
for (; head < tail; ++head) {
lib/libc/citrus/modules/citrus_ues.c
267
if (psenc->chlen == head) {
lib/libc/citrus/modules/citrus_ues.c
276
num = to_int((int)(unsigned char)psenc->ch[head]);
lib/libc/citrus/modules/citrus_ues.c
283
head = 0;
lib/libc/citrus/modules/citrus_ues.c
314
head = psenc->chlen;
lib/libc/citrus/modules/citrus_ues.c
315
if (--head > 0)
lib/libc/citrus/modules/citrus_ues.c
316
memmove(&psenc->ch[0], &psenc->ch[1], head);
lib/libc/citrus/modules/citrus_ues.c
319
psenc->chlen = head;
lib/libc/citrus/modules/citrus_viqr.c
106
mnemonic_ext_find(wchar_t wc, const mnemonic_def_t *head, size_t n)
lib/libc/citrus/modules/citrus_viqr.c
110
_DIAGASSERT(head != NULL);
lib/libc/citrus/modules/citrus_viqr.c
113
mid = head + (n >> 1);
lib/libc/citrus/modules/citrus_viqr.c
117
head = mid + 1;
lib/libc/db/mpool/mpool.c
127
struct _hqh *head;
lib/libc/db/mpool/mpool.c
153
head = &mp->hqh[HASHKEY(bp->pgno)];
lib/libc/db/mpool/mpool.c
154
TAILQ_INSERT_HEAD(head, bp, hq);
lib/libc/db/mpool/mpool.c
168
struct _hqh *head;
lib/libc/db/mpool/mpool.c
182
head = &mp->hqh[HASHKEY(bp->pgno)];
lib/libc/db/mpool/mpool.c
183
TAILQ_REMOVE(head, bp, hq);
lib/libc/db/mpool/mpool.c
198
struct _hqh *head;
lib/libc/db/mpool/mpool.c
226
head = &mp->hqh[HASHKEY(bp->pgno)];
lib/libc/db/mpool/mpool.c
227
TAILQ_REMOVE(head, bp, hq);
lib/libc/db/mpool/mpool.c
228
TAILQ_INSERT_HEAD(head, bp, hq);
lib/libc/db/mpool/mpool.c
278
head = &mp->hqh[HASHKEY(bp->pgno)];
lib/libc/db/mpool/mpool.c
279
TAILQ_INSERT_HEAD(head, bp, hq);
lib/libc/db/mpool/mpool.c
363
struct _hqh *head;
lib/libc/db/mpool/mpool.c
386
head = &mp->hqh[HASHKEY(bp->pgno)];
lib/libc/db/mpool/mpool.c
387
TAILQ_REMOVE(head, bp, hq);
lib/libc/db/mpool/mpool.c
462
struct _hqh *head;
lib/libc/db/mpool/mpool.c
465
head = &mp->hqh[HASHKEY(pgno)];
lib/libc/db/mpool/mpool.c
466
TAILQ_FOREACH(bp, head, hq)
lib/libc/gen/fts.c
1003
fts_sort(FTS *sp, FTSENT *head, size_t nitems)
lib/libc/gen/fts.c
1008
_DIAGASSERT(head != NULL);
lib/libc/gen/fts.c
1021
return head;
lib/libc/gen/fts.c
1024
for (ap = sp->fts_array, p = head; p; p = p->fts_link)
lib/libc/gen/fts.c
1028
for (head = *(ap = sp->fts_array); --nitems; ++ap)
lib/libc/gen/fts.c
1031
return (head);
lib/libc/gen/fts.c
1101
fts_lfree(FTSENT *head)
lib/libc/gen/fts.c
1108
while ((p = head) != NULL) {
lib/libc/gen/fts.c
1109
head = head->fts_link;
lib/libc/gen/fts.c
1168
fts_padjust(FTS *sp, FTSENT *head)
lib/libc/gen/fts.c
1189
for (p = head; p->fts_level >= FTS_ROOTLEVEL;) {
lib/libc/gen/fts.c
643
FTSENT *p, *head;
lib/libc/gen/fts.c
762
for (head = tail = NULL, nitems = 0; (dp = readdir(dirp)) != NULL;) {
lib/libc/gen/fts.c
785
fts_lfree(head);
lib/libc/gen/fts.c
811
fts_lfree(head);
lib/libc/gen/fts.c
863
if (head == NULL)
lib/libc/gen/fts.c
864
head = tail = p;
lib/libc/gen/fts.c
878
fts_padjust(sp, head);
lib/libc/gen/fts.c
915
head = fts_sort(sp, head, nitems);
lib/libc/gen/fts.c
916
return (head);
lib/libc/include/futex_private.h
52
__futex_set_robust_list(void *head, size_t len)
lib/libc/include/futex_private.h
54
return _syscall(SYS___futex_set_robust_list, head, len);
lib/libc/include/isc/list.h
24
#define LIST(type) struct { type *head, *tail; }
lib/libc/include/isc/list.h
26
do { (list).head = NULL; (list).tail = NULL; } while (0)
lib/libc/include/isc/list.h
39
#define HEAD(list) ((list).head)
lib/libc/include/isc/list.h
41
#define EMPTY(list) ((list).head == NULL)
lib/libc/include/isc/list.h
46
if ((list).head != NULL) \
lib/libc/include/isc/list.h
47
(list).head->link.prev = (elt); \
lib/libc/include/isc/list.h
51
(elt)->link.next = (list).head; \
lib/libc/include/isc/list.h
52
(list).head = (elt); \
lib/libc/include/isc/list.h
61
(list).head = (elt); \
lib/libc/include/isc/list.h
79
INSIST((list).head == (elt)); \
lib/libc/include/isc/list.h
80
(list).head = (elt)->link.next; \
lib/libc/locale/generic_lc_all.c
58
char head[_LOCALENAME_LEN_MAX * (_LC_LAST - 1)], *tail;
lib/libc/locale/generic_lc_all.c
66
strlcpy(&head[0], name, sizeof(head));
lib/libc/locale/generic_lc_all.c
67
tokens[1] = &head[0];
lib/libc/locale/newlocale.c
47
char head[_LOCALENAME_LEN_MAX * (_LC_LAST - 1)], *tail;
lib/libc/locale/newlocale.c
60
if (strlcpy(&head[0], name, sizeof(head)) >= sizeof(head)) {
lib/libc/locale/newlocale.c
64
tokens[0] = (const char *)&head[0];
lib/libc/net/getaddrinfo.c
2005
struct addrinfo head, *t, *p;
lib/libc/net/getaddrinfo.c
2008
head.ai_next = NULL;
lib/libc/net/getaddrinfo.c
2009
t = &head;
lib/libc/net/getaddrinfo.c
2027
s->ai_next = head.ai_next;
lib/libc/net/getaddrinfo.c
756
get_addrselectpolicy(struct policyhead *head)
lib/libc/net/getaddrinfo.c
782
free_addrselectpolicy(head); /* make the list empty */
lib/libc/net/getaddrinfo.c
786
TAILQ_INSERT_TAIL(head, new, pc_entry);
lib/libc/net/getaddrinfo.c
792
__USE(head);
lib/libc/net/getaddrinfo.c
798
free_addrselectpolicy(struct policyhead *head)
lib/libc/net/getaddrinfo.c
802
for (ent = TAILQ_FIRST(head); ent; ent = nent) {
lib/libc/net/getaddrinfo.c
804
TAILQ_REMOVE(head, ent, pc_entry);
lib/libc/net/getaddrinfo.c
810
match_addrselectpolicy(struct sockaddr *addr, struct policyhead *head)
lib/libc/net/getaddrinfo.c
837
for (ent = TAILQ_FIRST(head); ent; ent = TAILQ_NEXT(ent, pc_entry)) {
lib/libc/net/getaddrinfo.c
872
__USE(head);
lib/libc/rpc/getnetconfig.c
117
struct netconfig_list *head; /* head of the list */
lib/libc/rpc/getnetconfig.c
227
nc_vars->nc_configs = ni.head;
lib/libc/rpc/getnetconfig.c
274
ncp->nc_configs = ni.head;
lib/libc/rpc/getnetconfig.c
345
if (ni.head == NULL) /* first entry */
lib/libc/rpc/getnetconfig.c
346
ni.head = ni.tail = list;
lib/libc/rpc/getnetconfig.c
395
q = p = ni.head;
lib/libc/rpc/getnetconfig.c
397
ni.head = NULL;
lib/libc/rpc/getnetconfig.c
443
if (ni.head != NULL) {
lib/libc/rpc/getnetconfig.c
444
for (list = ni.head; list; list = list->next) {
lib/libc/rpc/pmap_getmaps.c
106
return (head);
lib/libc/rpc/pmap_getmaps.c
84
struct pmaplist *head = NULL;
lib/libc/rpc/pmap_getmaps.c
99
(xdrproc_t)xdr_pmaplist, &head, minutetimeout) !=
lib/libc/rpc/rpcb_clnt.c
1015
rpcblist_ptr head = NULL;
lib/libc/rpc/rpcb_clnt.c
1022
return (head);
lib/libc/rpc/rpcb_clnt.c
1026
(char *)(void *)&head, tottimeout);
lib/libc/rpc/rpcb_clnt.c
1044
(char *)(void *)&head, tottimeout) == RPC_SUCCESS)
lib/libc/rpc/rpcb_clnt.c
1052
return (head);
lib/libc/stdio/fmemopen.c
129
offset += p->cur - p->head;
lib/libc/stdio/fmemopen.c
132
offset += p->eob - p->head;
lib/libc/stdio/fmemopen.c
138
if (offset >= (off_t)0 && offset <= p->tail - p->head) {
lib/libc/stdio/fmemopen.c
139
p->cur = p->head + (ptrdiff_t)offset;
lib/libc/stdio/fmemopen.c
140
return (off_t)(p->cur - p->head);
lib/libc/stdio/fmemopen.c
164
free(p->head);
lib/libc/stdio/fmemopen.c
198
cookie->head = malloc(size);
lib/libc/stdio/fmemopen.c
199
if (cookie->head == NULL) {
lib/libc/stdio/fmemopen.c
203
*cookie->head = '\0';
lib/libc/stdio/fmemopen.c
206
cookie->head = (char *)buf;
lib/libc/stdio/fmemopen.c
208
*cookie->head = '\0';
lib/libc/stdio/fmemopen.c
212
cookie->tail = cookie->head + size;
lib/libc/stdio/fmemopen.c
213
cookie->eob = cookie->head;
lib/libc/stdio/fmemopen.c
220
cookie->cur = (oflags & O_APPEND) ? cookie->eob : cookie->head;
lib/libc/stdio/fmemopen.c
46
char *head, *tail, *cur, *eob;
lib/libc/stdlib/hcreate.c
102
hcreate_r(size_t nel, struct hsearch_data *head)
lib/libc/stdlib/hcreate.c
125
head->size = nel;
lib/libc/stdlib/hcreate.c
126
head->filled = 0;
lib/libc/stdlib/hcreate.c
131
head->table = (void *)table;
lib/libc/stdlib/hcreate.c
154
hdestroy1_r(struct hsearch_data *head, void (*freekey)(void *),
lib/libc/stdlib/hcreate.c
162
if (head == NULL)
lib/libc/stdlib/hcreate.c
165
p = head->table;
lib/libc/stdlib/hcreate.c
166
head->table = NULL;
lib/libc/stdlib/hcreate.c
169
for (idx = 0; idx < head->size; idx++) {
lib/libc/stdlib/hcreate.c
184
hdestroy_r(struct hsearch_data *head)
lib/libc/stdlib/hcreate.c
186
hdestroy1_r(head, NULL, NULL);
lib/libc/stdlib/hcreate.c
199
hsearch_r(ENTRY item, ACTION action, ENTRY **itemp, struct hsearch_data *head)
lib/libc/stdlib/hcreate.c
210
p = head->table;
lib/libc/stdlib/hcreate.c
216
chain = &table[hashval & (head->size - 1)];
lib/libc/stdlib/hcreate.c
241
head->filled++;
lib/libisns/isns_pdu.c
175
list_p->head = NULL;
lib/libisns/isns_pdu.c
211
buf_p->next = list_p->head;
lib/libisns/isns_pdu.c
212
list_p->head = buf_p;
lib/libisns/isns_pdu.c
243
while (list_p->head != NULL) {
lib/libisns/isns_pdu.c
244
buf_p = list_p->head;
lib/libisns/isns_pdu.c
245
list_p->head = buf_p->next;
lib/libisns/isns_pdu.c
293
if ((list_p->head != NULL)
lib/libisns/isns_pdu.c
295
buf_p = list_p->head;
lib/libisns/isns_pdu.c
296
list_p->head = buf_p->next;
lib/libisns/isns_pdu.c
340
buf_p->next = list_p->head;
lib/libisns/isns_pdu.c
341
list_p->head = buf_p;
lib/libisns/isns_pdu.c
79
struct isns_buffer_s *head;
lib/libkvm/kvm_proc.c
183
u_long addr, head;
lib/libkvm/kvm_proc.c
202
head = (u_long)&p->p_vmspace->vm_map.header;
lib/libkvm/kvm_proc.c
203
addr = head;
lib/libkvm/kvm_proc.c
212
if (addr == head)
lib/libpanel/panel_impl.h
35
#define DECK_HEAD(head) TAILQ_HEAD(head, __panel)
lib/libpanel/panel_impl.h
63
#define TAILQ_REMOVE_NP(head, elm, field) do { \
lib/libpanel/panel_impl.h
64
TAILQ_REMOVE((head), (elm), field); \
lib/libpthread/pthread_cond.c
128
struct pthread__waiter waiter, *next, *head;
lib/libpthread/pthread_cond.c
154
for (head = cond->ptc_waiters;; head = next) {
lib/libpthread/pthread_cond.c
156
if (__predict_false(head == pthread__cond_dummy_ptr)) {
lib/libpthread/pthread_cond.c
162
waiter.next = head;
lib/libpthread/pthread_cond.c
166
next = atomic_cas_ptr(&cond->ptc_waiters, head, &waiter);
lib/libpthread/pthread_cond.c
167
if (__predict_true(next == head)) {
lib/libpthread/pthread_cond.c
239
struct pthread__waiter *head, *next;
lib/libpthread/pthread_cond.c
252
for (head = cond->ptc_waiters;; head = next) {
lib/libpthread/pthread_cond.c
254
if (__predict_false(head == pthread__cond_dummy_ptr)) {
lib/libpthread/pthread_cond.c
259
if (head == NULL) {
lib/libpthread/pthread_cond.c
263
next = atomic_cas_ptr(&cond->ptc_waiters, head,
lib/libpthread/pthread_cond.c
265
if (__predict_true(next == head)) {
lib/libpthread/pthread_cond.c
272
cond->ptc_waiters = head->next;
lib/libpthread/pthread_cond.c
274
head->next = NULL;
lib/libpthread/pthread_cond.c
277
pthread__mutex_deferwake(self, mutex, head);
lib/libpthread/pthread_cond.c
284
struct pthread__waiter *head, *next;
lib/libpthread/pthread_cond.c
300
for (head = cond->ptc_waiters;; head = next) {
lib/libpthread/pthread_cond.c
302
if (__predict_false(head == pthread__cond_dummy_ptr)) {
lib/libpthread/pthread_cond.c
307
if (head == NULL) {
lib/libpthread/pthread_cond.c
310
next = atomic_cas_ptr(&cond->ptc_waiters, head, NULL);
lib/libpthread/pthread_cond.c
311
if (__predict_true(next == head)) {
lib/libpthread/pthread_cond.c
318
pthread__mutex_deferwake(self, mutex, head);
lib/libpthread/pthread_mutex.c
695
struct pthread__waiter *head)
lib/libpthread/pthread_mutex.c
699
pthread__assert(head != NULL);
lib/libpthread/pthread_mutex.c
703
pthread__mutex_wakeup(self, head);
lib/libpthread/pthread_mutex.c
708
if (atomic_cas_ptr(&ptm->ptm_waiters, NULL, head) == NULL) {
lib/libpthread/pthread_mutex.c
713
for (tail = head; tail->next != NULL; tail = tail->next) {
lib/libpthread/pthread_mutex.c
723
n = atomic_cas_ptr(&ptm->ptm_waiters, o, head);
lib/libpthread/pthread_queue.h
105
#define PTQ_REMOVE(head, elm, field) do { \
lib/libpthread/pthread_queue.h
110
(head)->ptqh_last = (elm)->field.ptqe_prev; \
lib/libpthread/pthread_queue.h
118
#define PTQ_EMPTY(head) ((head)->ptqh_first == NULL)
lib/libpthread/pthread_queue.h
119
#define PTQ_FIRST(head) ((head)->ptqh_first)
lib/libpthread/pthread_queue.h
122
#define PTQ_LAST(head, headname) \
lib/libpthread/pthread_queue.h
123
(*(((struct headname *)(void *)((head)->ptqh_last))->ptqh_last))
lib/libpthread/pthread_queue.h
127
#define PTQ_FOREACH(var, head, field) \
lib/libpthread/pthread_queue.h
128
for ((var) = ((head)->ptqh_first); \
lib/libpthread/pthread_queue.h
132
#define PTQ_FOREACH_REVERSE(var, head, headname, field) \
lib/libpthread/pthread_queue.h
133
for ((var) = (*(((struct headname *)(void *)((head)->ptqh_last))->ptqh_last)); \
lib/libpthread/pthread_queue.h
64
#define PTQ_INIT(head) do { \
lib/libpthread/pthread_queue.h
65
(head)->ptqh_first = NULL; \
lib/libpthread/pthread_queue.h
66
(head)->ptqh_last = &(head)->ptqh_first; \
lib/libpthread/pthread_queue.h
69
#define PTQ_INSERT_HEAD(head, elm, field) do { \
lib/libpthread/pthread_queue.h
70
if (((elm)->field.ptqe_next = (head)->ptqh_first) != NULL) \
lib/libpthread/pthread_queue.h
71
(head)->ptqh_first->field.ptqe_prev = \
lib/libpthread/pthread_queue.h
74
(head)->ptqh_last = &(elm)->field.ptqe_next; \
lib/libpthread/pthread_queue.h
75
(head)->ptqh_first = (elm); \
lib/libpthread/pthread_queue.h
76
(elm)->field.ptqe_prev = &(head)->ptqh_first; \
lib/libpthread/pthread_queue.h
79
#define PTQ_INSERT_TAIL(head, elm, field) do { \
lib/libpthread/pthread_queue.h
81
if ((head)->ptqh_last == NULL) \
lib/libpthread/pthread_queue.h
82
(head)->ptqh_last = &(head)->ptqh_first; \
lib/libpthread/pthread_queue.h
83
(elm)->field.ptqe_prev = (head)->ptqh_last; \
lib/libpthread/pthread_queue.h
84
*(head)->ptqh_last = (elm); \
lib/libpthread/pthread_queue.h
85
(head)->ptqh_last = &(elm)->field.ptqe_next; \
lib/libpthread/pthread_queue.h
88
#define PTQ_INSERT_AFTER(head, listelm, elm, field) do { \
lib/libpthread/pthread_queue.h
93
(head)->ptqh_last = &(elm)->field.ptqe_next; \
libexec/httpd/bozohttpd.c
1154
goto head;
libexec/httpd/bozohttpd.c
1160
head:
libexec/httpd/netbsd_queue.h
55
#define SIMPLEQ_INIT(head) do { \
libexec/httpd/netbsd_queue.h
56
(head)->sqh_first = NULL; \
libexec/httpd/netbsd_queue.h
57
(head)->sqh_last = &(head)->sqh_first; \
libexec/httpd/netbsd_queue.h
60
#define SIMPLEQ_INSERT_TAIL(head, elm, field) do { \
libexec/httpd/netbsd_queue.h
62
*(head)->sqh_last = (elm); \
libexec/httpd/netbsd_queue.h
63
(head)->sqh_last = &(elm)->field.sqe_next; \
libexec/httpd/netbsd_queue.h
66
#define SIMPLEQ_FOREACH(var, head, field) \
libexec/httpd/netbsd_queue.h
67
for ((var) = ((head)->sqh_first); \
libexec/httpd/netbsd_queue.h
71
#define SIMPLEQ_FOREACH_SAFE(var, head, field, next) \
libexec/httpd/netbsd_queue.h
72
for ((var) = ((head)->sqh_first); \
libexec/httpd/netbsd_queue.h
79
#define SIMPLEQ_FIRST(head) ((head)->sqh_first)
sbin/atactl/atactl.c
758
req->head = (desc[12] & 0xf0) |
sbin/efi/bootvar.c
226
boothead_t head = SIMPLEQ_HEAD_INITIALIZER(head);
sbin/efi/bootvar.c
231
SIMPLEQ_INSERT_TAIL(&head, bb, entry);
sbin/efi/bootvar.c
235
SIMPLEQ_INSERT_TAIL(&head, bb, entry);
sbin/efi/bootvar.c
239
SIMPLEQ_INSERT_TAIL(&head, bb, entry);
sbin/efi/bootvar.c
243
SIMPLEQ_INSERT_TAIL(&head, bb, entry);
sbin/efi/bootvar.c
251
SIMPLEQ_INSERT_TAIL(&head, bb, entry);
sbin/efi/bootvar.c
255
bb = SIMPLEQ_FIRST(&head);
sbin/efi/bootvar.c
259
return collapse_list(&head, *datasize);
sbin/efi/bootvar.c
91
collapse_list(boothead_t *head, size_t datasize)
sbin/efi/bootvar.c
99
SIMPLEQ_FOREACH(bb, head, entry) {
sbin/efi/devpath.c
113
SIMPLEQ_FOREACH_SAFE(blk, head, entry, next) {
sbin/efi/devpath.c
139
devpath_head_t head = SIMPLEQ_HEAD_INITIALIZER(head);
sbin/efi/devpath.c
158
SIMPLEQ_INSERT_TAIL(&head, blk, entry);
sbin/efi/devpath.c
161
return collapse_list(&head, plen, dmsg, dlen);
sbin/efi/devpath.c
85
collapse_list(devpath_head_t *head, size_t plen, char **dmsg, size_t dlen)
sbin/efi/devpath.c
91
SIMPLEQ_FOREACH_SAFE(blk, head, entry, next) {
sbin/efi/getvars.c
101
efi_var_head_t *head = args->list_head;
sbin/efi/getvars.c
113
SLIST_INSERT_HEAD(head, elm, entry);
sbin/fdisk/fdisk.c
1735
get_mapping(int i, unsigned int *cylinder, unsigned int *head, unsigned int *sector,
sbin/fdisk/fdisk.c
1744
*head = part->mbrp_shd;
sbin/fdisk/fdisk.c
1749
*head = part->mbrp_ehd;
sbin/fdisk/fdisk.c
1755
if ((*cylinder == 0) && (*sector == 0) && (*head == 0))
sbin/fdisk/fdisk.c
1760
if ((((*cylinder * MAXHEAD) + *head) * MAXSECTOR + *sector) < *absolute)
sbin/fdisk/fdisk.c
2473
int cylinder, head;
sbin/fdisk/fdisk.c
2478
head = sector / dos_sectors;
sbin/fdisk/fdisk.c
2479
sector -= head * dos_sectors;
sbin/fdisk/fdisk.c
2484
*headp = head;
sbin/fdisk/fdisk.c
808
unsigned long cyl, head, sect;
sbin/fdisk/fdisk.c
811
head = sect / dos_sectors;
sbin/fdisk/fdisk.c
812
sect -= head * dos_sectors;
sbin/fdisk/fdisk.c
817
if (head == dos_heads - 1 && sect == dos_sectors - 1)
sbin/fdisk/fdisk.c
820
if (head == 0 && sect == 0)
sbin/fdisk/fdisk.c
824
printf("/%lu/%lu", head, sect + 1);
sbin/fsck_msdos/dir.c
1003
fat[head].flags |= FAT_USED;
sbin/fsck_msdos/dir.c
256
|| fat[boot->RootCl].head != boot->RootCl) {
sbin/fsck_msdos/dir.c
274
rootDir->head = boot->RootCl;
sbin/fsck_msdos/dir.c
399
if (dir->head == CLUST_FREE)
sbin/fsck_msdos/dir.c
402
if (dir->head < CLUST_FIRST || dir->head >= boot->NumClusters)
sbin/fsck_msdos/dir.c
404
physicalSize = fat[dir->head].length * boot->ClusterSize;
sbin/fsck_msdos/dir.c
425
for (cl = dir->head, len = sz = 0;
sbin/fsck_msdos/dir.c
430
fat[dir->head].length = len;
sbin/fsck_msdos/dir.c
479
cl = dir->head;
sbin/fsck_msdos/dir.c
658
dirent.head = p[26] | (p[27] << 8);
sbin/fsck_msdos/dir.c
660
dirent.head |= (p[20] << 16) | (p[21] << 24);
sbin/fsck_msdos/dir.c
690
if (dirent.head != 0) {
sbin/fsck_msdos/dir.c
697
clearchain(boot, fat, dirent.head);
sbin/fsck_msdos/dir.c
698
dirent.head = 0;
sbin/fsck_msdos/dir.c
703
} else if (dirent.head == 0
sbin/fsck_msdos/dir.c
710
} else if (dirent.head < CLUST_FIRST
sbin/fsck_msdos/dir.c
711
|| dirent.head >= boot->NumClusters
sbin/fsck_msdos/dir.c
712
|| fat[dirent.head].next == CLUST_FREE
sbin/fsck_msdos/dir.c
713
|| (fat[dirent.head].next >= CLUST_RSRVD
sbin/fsck_msdos/dir.c
714
&& fat[dirent.head].next < CLUST_EOFS)
sbin/fsck_msdos/dir.c
715
|| fat[dirent.head].head != dirent.head) {
sbin/fsck_msdos/dir.c
716
if (dirent.head == 0)
sbin/fsck_msdos/dir.c
719
else if (dirent.head < CLUST_FIRST
sbin/fsck_msdos/dir.c
720
|| dirent.head >= boot->NumClusters)
sbin/fsck_msdos/dir.c
723
dirent.head);
sbin/fsck_msdos/dir.c
724
else if (fat[dirent.head].next == CLUST_FREE)
sbin/fsck_msdos/dir.c
727
else if (fat[dirent.head].next >= CLUST_RSRVD)
sbin/fsck_msdos/dir.c
730
rsrvdcltype(fat[dirent.head].next));
sbin/fsck_msdos/dir.c
754
if (dirent.head >= CLUST_FIRST && dirent.head < boot->NumClusters)
sbin/fsck_msdos/dir.c
755
fat[dirent.head].flags |= FAT_USED;
sbin/fsck_msdos/dir.c
777
if (dirent.head != dir->head) {
sbin/fsck_msdos/dir.c
781
dirent.head = dir->head;
sbin/fsck_msdos/dir.c
782
p[26] = (u_char)dirent.head;
sbin/fsck_msdos/dir.c
783
p[27] = (u_char)(dirent.head >> 8);
sbin/fsck_msdos/dir.c
785
p[20] = (u_char)(dirent.head >> 16);
sbin/fsck_msdos/dir.c
786
p[21] = (u_char)(dirent.head >> 24);
sbin/fsck_msdos/dir.c
797
if (dirent.head) {
sbin/fsck_msdos/dir.c
801
dirent.head = 0;
sbin/fsck_msdos/dir.c
809
} else if (dirent.head != dir->parent->head) {
sbin/fsck_msdos/dir.c
813
dirent.head = dir->parent->head;
sbin/fsck_msdos/dir.c
814
p[26] = (u_char)dirent.head;
sbin/fsck_msdos/dir.c
815
p[27] = (u_char)(dirent.head >> 8);
sbin/fsck_msdos/dir.c
817
p[20] = (u_char)(dirent.head >> 16);
sbin/fsck_msdos/dir.c
818
p[21] = (u_char)(dirent.head >> 24);
sbin/fsck_msdos/dir.c
929
reconnect(int dosfs, struct bootblock *boot, struct fatEntry *fat, cl_t head)
sbin/fsck_msdos/dir.c
965
lfcl = p ? fat[lfcl].next : lostDir->head;
sbin/fsck_msdos/dir.c
985
len = snprintf(d.name, sizeof(d.name), "%u", head);
sbin/fsck_msdos/dir.c
987
d.head = head;
sbin/fsck_msdos/dir.c
988
d.size = fat[head].length * boot->ClusterSize;
sbin/fsck_msdos/dir.c
993
p[26] = (u_char)d.head;
sbin/fsck_msdos/dir.c
994
p[27] = (u_char)(d.head >> 8);
sbin/fsck_msdos/dir.c
996
p[20] = (u_char)(d.head >> 16);
sbin/fsck_msdos/dir.c
997
p[21] = (u_char)(d.head >> 24);
sbin/fsck_msdos/dosfs.h
121
cl_t head; /* cluster no */
sbin/fsck_msdos/dosfs.h
84
cl_t head; /* pointer to start of chain */
sbin/fsck_msdos/fat.c
338
clearchain(struct bootblock *boot, struct fatEntry *fat, cl_t head)
sbin/fsck_msdos/fat.c
342
for (p = head; p >= CLUST_FIRST && p < boot->NumClusters; p = q) {
sbin/fsck_msdos/fat.c
343
if (fat[p].head != head)
sbin/fsck_msdos/fat.c
346
fat[p].next = fat[p].head = CLUST_FREE;
sbin/fsck_msdos/fat.c
352
tryclear(struct bootblock *boot, struct fatEntry *fat, cl_t head, cl_t *truncp)
sbin/fsck_msdos/fat.c
354
if (ask(0, "Clear chain starting at %u", head)) {
sbin/fsck_msdos/fat.c
355
clearchain(boot, fat, head);
sbin/fsck_msdos/fat.c
361
for (p = head, len = 0;
sbin/fsck_msdos/fat.c
366
fat[head].length = len;
sbin/fsck_msdos/fat.c
378
cl_t head, p, h, n;
sbin/fsck_msdos/fat.c
386
for (head = CLUST_FIRST; head < boot->NumClusters; head++) {
sbin/fsck_msdos/fat.c
388
if (fat[head].head != 0 /* cluster already belongs to some chain */
sbin/fsck_msdos/fat.c
389
|| fat[head].next == CLUST_FREE
sbin/fsck_msdos/fat.c
390
|| fat[head].next == CLUST_BAD)
sbin/fsck_msdos/fat.c
394
for (len = 0, p = head;
sbin/fsck_msdos/fat.c
396
fat[p].head != head;
sbin/fsck_msdos/fat.c
398
fat[p].head = head;
sbin/fsck_msdos/fat.c
403
fat[head].length = fat[head].next == CLUST_FREE ? 0 : len;
sbin/fsck_msdos/fat.c
411
for (head = CLUST_FIRST; head < boot->NumClusters; head++) {
sbin/fsck_msdos/fat.c
413
if (fat[head].head != head)
sbin/fsck_msdos/fat.c
417
for (len = fat[head].length, p = head;
sbin/fsck_msdos/fat.c
420
if (fat[n].head != head || len-- < 2)
sbin/fsck_msdos/fat.c
427
head, rsrvdcltype(n));
sbin/fsck_msdos/fat.c
429
ret |= tryclear(boot, fat, head, &fat[p].next);
sbin/fsck_msdos/fat.c
434
head, n);
sbin/fsck_msdos/fat.c
437
if (head == fat[n].head) {
sbin/fsck_msdos/fat.c
440
head, p);
sbin/fsck_msdos/fat.c
444
head, fat[n].head, n);
sbin/fsck_msdos/fat.c
445
conf = tryclear(boot, fat, head, &fat[p].next);
sbin/fsck_msdos/fat.c
446
if (ask(0, "Clear chain starting at %u", h = fat[n].head)) {
sbin/fsck_msdos/fat.c
454
if (h != fat[p].head) {
sbin/fsck_msdos/fat.c
458
head--;
sbin/fsck_msdos/fat.c
461
fat[p].head = head;
sbin/fsck_msdos/fat.c
589
cl_t head;
sbin/fsck_msdos/fat.c
593
for (head = CLUST_FIRST; head < boot->NumClusters; head++) {
sbin/fsck_msdos/fat.c
595
if (fat[head].head != head
sbin/fsck_msdos/fat.c
596
|| fat[head].next == CLUST_FREE
sbin/fsck_msdos/fat.c
597
|| (fat[head].next >= CLUST_RSRVD
sbin/fsck_msdos/fat.c
598
&& fat[head].next < CLUST_EOFS)
sbin/fsck_msdos/fat.c
599
|| (fat[head].flags & FAT_USED))
sbin/fsck_msdos/fat.c
603
head, fat[head].length);
sbin/fsck_msdos/fat.c
604
mod |= ret = reconnect(dosfs, boot, fat, head);
sbin/fsck_msdos/fat.c
608
clearchain(boot, fat, head);
sbin/fsck_msdos/fat.c
632
for (head = CLUST_FIRST; head < boot->NumClusters; head++)
sbin/fsck_msdos/fat.c
633
if (fat[head].next == CLUST_FREE) {
sbin/fsck_msdos/fat.c
634
boot->FSNext = head;
sbin/iscsid/iscsid_lists.c
104
find_id(generic_list_t * head, uint32_t id)
sbin/iscsid/iscsid_lists.c
111
TAILQ_FOREACH(curr, head, link)
sbin/iscsid/iscsid_lists.c
128
find_name(generic_list_t * head, uint8_t * name)
sbin/iscsid/iscsid_lists.c
135
TAILQ_FOREACH(curr, head, link)
sbin/iscsid/iscsid_lists.c
153
find_sym_id(generic_list_t * head, iscsid_sym_id_t * sid)
sbin/iscsid/iscsid_lists.c
157
return find_id(head, sid->id);
sbin/iscsid/iscsid_lists.c
159
return (sid->name[0]) ? find_name(head, sid->name) : NULL;
sbin/iscsid/iscsid_lists.c
173
get_id(generic_list_t * head, iscsid_sym_id_t * sid)
sbin/iscsid/iscsid_lists.c
180
ent = find_name(head, sid->name);
sbin/rcorder/rcorder.c
111
int head;
sbin/rcorder/rcorder.c
296
provnode *pnode, *head;
sbin/rcorder/rcorder.c
300
head = Hash_GetValue(entry);
sbin/rcorder/rcorder.c
303
if (head == NULL) {
sbin/rcorder/rcorder.c
304
head = emalloc(sizeof(*head));
sbin/rcorder/rcorder.c
305
head->head = SET;
sbin/rcorder/rcorder.c
306
head->in_progress = RESET;
sbin/rcorder/rcorder.c
307
head->fnode = NULL;
sbin/rcorder/rcorder.c
308
head->last = head->next = NULL;
sbin/rcorder/rcorder.c
309
Hash_SetValue(entry, head);
sbin/rcorder/rcorder.c
347
head->next->fnode->filename);
sbin/rcorder/rcorder.c
352
pnode->head = RESET;
sbin/rcorder/rcorder.c
355
pnode->next = head->next;
sbin/rcorder/rcorder.c
356
pnode->last = head;
sbin/rcorder/rcorder.c
357
head->next = pnode;
sbin/rcorder/rcorder.c
482
provnode *head, *pnode;
sbin/rcorder/rcorder.c
491
head = emalloc(sizeof(*head));
sbin/rcorder/rcorder.c
492
head->head = SET;
sbin/rcorder/rcorder.c
493
head->in_progress = RESET;
sbin/rcorder/rcorder.c
494
head->fnode = NULL;
sbin/rcorder/rcorder.c
495
head->last = head->next = NULL;
sbin/rcorder/rcorder.c
496
Hash_SetValue(entry, head);
sbin/rcorder/rcorder.c
499
pnode->head = RESET;
sbin/rcorder/rcorder.c
502
pnode->next = head->next;
sbin/rcorder/rcorder.c
503
pnode->last = head;
sbin/rcorder/rcorder.c
504
head->next = pnode;
sbin/rcorder/rcorder.c
543
if (pnode->head)
sbin/rcorder/rcorder.c
591
provnode *head;
sbin/rcorder/rcorder.c
594
head = Hash_GetValue(entry);
sbin/rcorder/rcorder.c
596
if (head == NULL) {
sbin/rcorder/rcorder.c
604
if (head->next == NULL)
sbin/rcorder/rcorder.c
611
if (head->in_progress == SET) {
sbin/rcorder/rcorder.c
618
head->in_progress = SET;
sbin/rcorder/rcorder.c
624
while (head->next != NULL)
sbin/rcorder/rcorder.c
625
do_file(head->next->fnode);
sbin/routed/radix.c
107
struct radix_node *head)
sbin/routed/radix.c
112
for (x = head, v = v_arg; x->rn_b >= 0;) {
sbin/routed/radix.c
123
struct radix_node *head,
sbin/routed/radix.c
129
for (x = head; x->rn_b >= 0;) {
sbin/routed/radix.c
166
rn_lookup(void *v_arg, void *m_arg, struct radix_node_head *head)
sbin/routed/radix.c
172
if ((x = rn_addmask(m_arg, 1, head->rnh_treetop->rn_off)) == 0)
sbin/routed/radix.c
176
x = rn_match(v_arg, head);
sbin/routed/radix.c
206
struct radix_node_head *head)
sbin/routed/radix.c
209
struct radix_node *t = head->rnh_treetop, *x;
sbin/routed/radix.c
345
struct radix_node_head *head,
sbin/routed/radix.c
350
struct radix_node *top = head->rnh_treetop;
sbin/routed/radix.c
522
struct radix_node_head *head,
sbin/routed/radix.c
527
struct radix_node *saved_tt, *top = head->rnh_treetop;
sbin/routed/radix.c
550
saved_tt = tt = rn_insert(v, head, &keyduplicated, treenodes);
sbin/routed/radix.c
665
struct radix_node_head *head)
sbin/routed/radix.c
675
x = head->rnh_treetop;
sbin/routed/radix.c
853
rn_inithead(void **head, int off)
sbin/routed/radix.c
857
if (*head)
sbin/routed/radix.c
861
*head = rnh;
sbin/routed/radix.h
117
struct radix_node_head *head, struct radix_node nodes[]);
sbin/routed/radix.h
120
struct radix_node_head *head, struct radix_node nodes[]);
sbin/routed/radix.h
122
(void *v, void *mask, struct radix_node_head *head);
sbin/routed/radix.h
124
(void *v, void *mask, struct radix_node_head *head);
sbin/routed/radix.h
126
(void *v, struct radix_node_head *head);
sbin/routed/radix.h
128
(void *v, void *mask, struct radix_node_head *head);
sbin/routed/radix.h
130
(void *v, struct radix_node_head *head);
sbin/routed/radix.h
132
(struct radix_node_head *head,
sbin/scsictl/scsictl.c
410
u_int32_t head;
sbin/scsictl/scsictl.c
414
head = dd->bfif.head;
sbin/scsictl/scsictl.c
417
printf("%8u %4u ", cylinder, head);
sbin/scsictl/scsictl.c
434
u_int32_t head;
sbin/scsictl/scsictl.c
438
head = dd->psf.head;
sbin/scsictl/scsictl.c
441
printf("%8u %4u ", cylinder, head);
sys/altq/altq_afmap.c
105
struct afm_head *head;
sys/altq/altq_afmap.c
107
if ((head = afmhead_if(ifp)) == NULL)
sys/altq/altq_afmap.c
112
LIST_REMOVE(head, afh_chain);
sys/altq/altq_afmap.c
114
free(head, M_DEVBUF);
sys/altq/altq_afmap.c
121
struct afm_head *head;
sys/altq/altq_afmap.c
123
if ((head = afmhead_if(ifp)) == NULL)
sys/altq/altq_afmap.c
126
return (head->afh_head.lh_first);
sys/altq/altq_afmap.c
132
struct afm_head *head;
sys/altq/altq_afmap.c
135
if ((head = afmhead_if(ifp)) == NULL)
sys/altq/altq_afmap.c
158
LIST_INSERT_HEAD(&head->afh_head, afm, afm_list);
sys/altq/altq_afmap.c
173
struct afm_head *head;
sys/altq/altq_afmap.c
176
if ((head = afmhead_if(ifp)) == NULL)
sys/altq/altq_afmap.c
179
while ((afm = head->afh_head.lh_first) != NULL)
sys/altq/altq_afmap.c
187
struct afm_head *head;
sys/altq/altq_afmap.c
190
if ((head = afmhead_if(ifp)) == NULL)
sys/altq/altq_afmap.c
193
for (afm = head->afh_head.lh_first; afm != NULL;
sys/altq/altq_afmap.c
201
afm_match4(struct afm_head *head, struct flowinfo_in *fp)
sys/altq/altq_afmap.c
205
for (afm = head->afh_head.lh_first; afm != NULL;
sys/altq/altq_afmap.c
230
afm_match6(struct afm_head *head, struct flowinfo_in6 *fp)
sys/altq/altq_afmap.c
234
for (afm = head->afh_head.lh_first; afm != NULL;
sys/altq/altq_afmap.c
271
struct afm_head *head;
sys/altq/altq_afmap.c
273
if ((head = afmhead_if(ifp)) == NULL)
sys/altq/altq_afmap.c
278
return (afm_match4(head, (struct flowinfo_in *)flow));
sys/altq/altq_afmap.c
282
return (afm_match6(head, (struct flowinfo_in6 *)flow));
sys/altq/altq_afmap.c
294
struct afm_head *head;
sys/altq/altq_afmap.c
295
for (head = afhead_chain.lh_first; head != NULL;
sys/altq/altq_afmap.c
296
head = head->afh_chain.le_next)
sys/altq/altq_afmap.c
297
if (head->afh_ifp == ifp)
sys/altq/altq_afmap.c
298
return head;
sys/altq/altq_afmap.c
319
struct afm_head *head;
sys/altq/altq_afmap.c
321
for (head = afhead_chain.lh_first; head != NULL;
sys/altq/altq_afmap.c
322
head = head->afh_chain.le_next) {
sys/altq/altq_afmap.c
326
"%s", head->afh_ifp->if_xname);
sys/altq/altq_afmap.c
85
struct afm_head *head;
sys/altq/altq_afmap.c
87
head = malloc(sizeof(struct afm_head), M_DEVBUF, M_WAITOK|M_ZERO);
sys/altq/altq_afmap.c
88
if (head == NULL)
sys/altq/altq_afmap.c
92
LIST_INIT(&head->afh_head);
sys/altq/altq_afmap.c
94
head->afh_ifp = ifp;
sys/altq/altq_afmap.c
97
LIST_INSERT_HEAD(&afhead_chain, head, afh_chain);
sys/altq/altq_hfsc.c
1176
ellist_t *head;
sys/altq/altq_hfsc.c
1178
head = malloc(sizeof(ellist_t), M_DEVBUF, M_WAITOK);
sys/altq/altq_hfsc.c
1179
TAILQ_INIT(head);
sys/altq/altq_hfsc.c
1180
return head;
sys/altq/altq_hfsc.c
1184
ellist_destroy(ellist_t *head)
sys/altq/altq_hfsc.c
1186
free(head, M_DEVBUF);
sys/altq/altq_hfsc.c
1258
ellist_get_mindl(ellist_t *head, u_int64_t cur_time)
sys/altq/altq_hfsc.c
1262
TAILQ_FOREACH(p, head, cl_ellist) {
sys/altq/altq_hfsc.c
1279
actlist_t *head;
sys/altq/altq_hfsc.c
1281
head = malloc(sizeof(actlist_t), M_DEVBUF, M_WAITOK);
sys/altq/altq_hfsc.c
1282
TAILQ_INIT(head);
sys/altq/altq_hfsc.c
1283
return head;
sys/altq/altq_hfsc.c
1287
actlist_destroy(actlist_t *head)
sys/altq/altq_hfsc.c
1289
free(head, M_DEVBUF);
sys/altq/altq_rmclass.c
547
struct rm_class *p, *head, *previous;
sys/altq/altq_rmclass.c
568
head = cl->parent_->children_;
sys/altq/altq_rmclass.c
569
p = previous = head;
sys/altq/altq_rmclass.c
570
if (head->next_ == NULL) {
sys/altq/altq_rmclass.c
571
ASSERT(head == cl);
sys/altq/altq_rmclass.c
576
if (cl == head)
sys/altq/altq_var.h
151
#define TAILQ_LAST(head, headname) \
sys/altq/altq_var.h
152
(*(((struct headname *)((head)->tqh_last))->tqh_last))
sys/altq/altq_var.h
155
#define TAILQ_EMPTY(head) ((head)->tqh_first == NULL)
sys/altq/altq_var.h
158
#define TAILQ_FOREACH(var, head, field) \
sys/altq/altq_var.h
159
for (var = TAILQ_FIRST(head); var; var = TAILQ_NEXT(var, field))
sys/altq/altq_wfq.c
156
queue->head = queue->tail = NULL;
sys/altq/altq_wfq.c
265
queue->head = mp;
sys/altq/altq_wfq.c
297
mp = drop_queue->head;
sys/altq/altq_wfq.c
298
if ((drop_queue->head = mp->m_nextpkt) == NULL)
sys/altq/altq_wfq.c
474
mp = queue->head;
sys/altq/altq_wfq.c
476
if((queue->head = mp->m_nextpkt) == NULL)
sys/altq/altq_wfq.c
591
queue->head = queue->tail = NULL;
sys/altq/altq_wfq.h
104
struct mbuf *head, *tail;
sys/arch/acorn32/mainbus/fd.c
1015
head = sec / type->sectrac;
sys/arch/acorn32/mainbus/fd.c
1016
sec -= head * type->sectrac;
sys/arch/acorn32/mainbus/fd.c
1019
block = (fd->sc_cylin * type->heads + head) * type->sectrac + sec;
sys/arch/acorn32/mainbus/fd.c
1059
head, sec, nblks);
sys/arch/acorn32/mainbus/fd.c
1068
out_fdc(iot, ioh, (head << 2) | fd->sc_drive);
sys/arch/acorn32/mainbus/fd.c
1078
out_fdc(iot, ioh, (head << 2) | fd->sc_drive);
sys/arch/acorn32/mainbus/fd.c
1080
out_fdc(iot, ioh, head);
sys/arch/acorn32/mainbus/fd.c
1395
if (form_cmd->head >= fd->sc_type->heads ||
sys/arch/acorn32/mainbus/fd.c
1401
fd_formb->head = form_cmd->head;
sys/arch/acorn32/mainbus/fd.c
1418
fd_formb->fd_formb_headno(i) = form_cmd->head;
sys/arch/acorn32/mainbus/fd.c
1466
+ finfo->head * type->sectrac) * FDC_BSIZE / DEV_BSIZE;
sys/arch/acorn32/mainbus/fd.c
921
int read, head, sec, i, nblks;
sys/arch/acorn32/mainbus/fdreg.h
98
int cyl, head;
sys/arch/acorn32/podulebus/if_ie.c
1033
ie_buflen(struct ie_softc *sc, int head)
sys/arch/acorn32/podulebus/if_ie.c
1038
sc->rbuffs[head], actual );
sys/arch/acorn32/podulebus/if_ie.c
1048
int head = sc->rbhead;
sys/arch/acorn32/podulebus/if_ie.c
1060
sc->rbuffs[head], i );
sys/arch/acorn32/podulebus/if_ie.c
1063
acc += ie_buflen(sc, head);
sys/arch/acorn32/podulebus/if_ie.c
1064
head = (head+1) % NRXBUF;
sys/arch/acorn32/podulebus/if_ie.c
1074
int head;
sys/arch/acorn32/podulebus/if_ie.c
1090
head = sc->rbhead;
sys/arch/acorn32/podulebus/if_ie.c
1093
ie2host ( sc, sc->cbuffs[head], (void *)&eh, sizeof eh );
sys/arch/acorn32/podulebus/if_ie.c
1160
int thisrblen = ie_buflen(sc, head) - thisrboff,
sys/arch/acorn32/podulebus/if_ie.c
1170
ie2host(sc, sc->cbuffs[head]+thisrboff,
sys/arch/acorn32/podulebus/if_ie.c
1175
ie2host(sc, sc->cbuffs[head]+thisrboff,
sys/arch/acorn32/podulebus/if_ie.c
1188
head = (head + 1) % NRXBUF;
sys/arch/amd64/amd64/machdep.c
1607
tssym = bootspace.head.va;
sys/arch/amd64/amd64/machdep.c
1608
tesym = bootspace.head.va; /* (unused...) */
sys/arch/amd64/amd64/machdep.c
1641
bootspace.head.va = KERNTEXTOFF;
sys/arch/amd64/amd64/machdep.c
1642
bootspace.head.pa = KERNTEXTOFF - KERNBASE;
sys/arch/amd64/amd64/machdep.c
1643
bootspace.head.sz = 0;
sys/arch/amd64/amd64/machdep.c
2397
kva = bootspace.head.va;
sys/arch/amd64/amd64/machdep.c
2398
kva_end = kva + bootspace.head.sz;
sys/arch/amd64/stand/prekern/mm.c
357
bootspace.head.va = randva;
sys/arch/amd64/stand/prekern/mm.c
358
bootspace.head.pa = kernpa_start;
sys/arch/amd64/stand/prekern/mm.c
359
bootspace.head.sz = size;
sys/arch/amiga/dev/fd.c
320
#define FDSETHEAD(head) do { \
sys/arch/amiga/dev/fd.c
321
if (head) ciab.prb &= ~CIAB_PRB_SIDE; else ciab.prb |= CIAB_PRB_SIDE; \
sys/arch/amiga/dev/if_qn.c
528
struct mbuf *m, *dst, *head = NULL;
sys/arch/amiga/dev/if_qn.c
546
head = m;
sys/arch/amiga/dev/if_qn.c
549
mtod(head, u_short *),
sys/arch/amiga/dev/if_qn.c
552
head->m_len += sizeof(struct ether_header);
sys/arch/amiga/dev/if_qn.c
585
if_percpuq_enqueue(ifp->if_percpuq, head);
sys/arch/amiga/dev/if_qn.c
589
if (head) {
sys/arch/amiga/dev/if_qn.c
590
m_freem(head);
sys/arch/arc/jazz/fd.c
788
int read, head, sec, i, nblks;
sys/arch/arc/jazz/fd.c
869
head = sec / type->sectrac;
sys/arch/arc/jazz/fd.c
870
sec -= head * type->sectrac;
sys/arch/arc/jazz/fd.c
874
block = (fd->sc_cylin * type->heads + head) *
sys/arch/arc/jazz/fd.c
892
fd->sc_cylin, head, sec, nblks);
sys/arch/arc/jazz/fd.c
898
out_fdc(iot, ioh, (head << 2) | fd->sc_drive);
sys/arch/arc/jazz/fd.c
900
out_fdc(iot, ioh, head);
sys/arch/arm/nvidia/tegra_drm_mode.c
1319
list_for_each_entry(iter, &ddev->mode_config.crtc_list, head) {
sys/arch/arm/nvidia/tegra_drm_mode.c
1339
list_for_each_entry(iter, &ddev->mode_config.crtc_list, head) {
sys/arch/arm/nvidia/tegra_drm_mode.c
915
list_for_each_entry(connector, &ddev->mode_config.connector_list, head) {
sys/arch/arm/xscale/ixp425_if_npe.c
772
struct npebuf *head;
sys/arch/arm/xscale/ixp425_if_npe.c
783
sc->tx_free = td->head;
sys/arch/arm/xscale/ixp425_if_npe.c
812
q[NPE_B].tail = &q[NPE_B].head; q[NPE_B].count = 0;
sys/arch/arm/xscale/ixp425_if_npe.c
813
q[NPE_C].tail = &q[NPE_C].head; q[NPE_C].count = 0;
sys/arch/atari/dev/fd.c
773
fdselect(int drive, int head, int dense)
sys/arch/atari/dev/fd.c
778
printf("fdselect: drive=%d, head=%d, dense=%d\n", drive, head, dense);
sys/arch/atari/dev/fd.c
780
i = ((drive == 1) ? PA_FLOP1 : PA_FLOP0) | head;
sys/arch/atari/dev/fd.c
829
int head;
sys/arch/atari/dev/fd.c
833
head = track = 0;
sys/arch/atari/dev/fd.c
840
head = track % sc->nheads;
sys/arch/atari/dev/fd.c
844
sc->sector, head, track);
sys/arch/atari/dev/fd.c
861
hbit = fdselect(sc->unit, head, sc->density) ? HBIT : 0;
sys/arch/atari/dev/hdfd.c
1043
head = sec / type->sectrac;
sys/arch/atari/dev/hdfd.c
1044
sec -= head * type->sectrac;
sys/arch/atari/dev/hdfd.c
1054
block = (fd->sc_cylin * type->heads + head)
sys/arch/atari/dev/hdfd.c
1077
fd->sc_drive, fd->sc_cylin, head, sec, nblks);
sys/arch/atari/dev/hdfd.c
1088
out_fdc((head << 2) | fd->sc_drive);
sys/arch/atari/dev/hdfd.c
1098
out_fdc((head << 2) | fd->sc_drive);
sys/arch/atari/dev/hdfd.c
1100
out_fdc(head); /* head */
sys/arch/atari/dev/hdfd.c
1424
if (form_cmd->head >= fd->sc_type->heads ||
sys/arch/atari/dev/hdfd.c
1430
fd_formb->head = form_cmd->head;
sys/arch/atari/dev/hdfd.c
1447
fd_formb->fd_formb_headno(i) = form_cmd->head;
sys/arch/atari/dev/hdfd.c
1497
+ finfo->head * type->sectrac) * FDC_BSIZE / DEV_BSIZE;
sys/arch/atari/dev/hdfd.c
956
int read, head, sec, i, nblks;
sys/arch/atari/dev/hdfdreg.h
111
int cyl, head;
sys/arch/atari/pci/pci_machdep.c
129
static void insert_into_list(PCI_MEMREG *head, struct pci_memreg *elem);
sys/arch/atari/pci/pci_machdep.c
257
insert_into_list(PCI_MEMREG *head, struct pci_memreg *elem)
sys/arch/atari/pci/pci_machdep.c
261
p = LIST_FIRST(head);
sys/arch/atari/pci/pci_machdep.c
269
LIST_INSERT_HEAD(head, elem, link);
sys/arch/bebox/stand/boot/fd.c
295
int sectrac, cyl, head, sec;
sys/arch/bebox/stand/boot/fd.c
325
head = sec / sectrac;
sys/arch/bebox/stand/boot/fd.c
328
if (fdReadWrite(un, func, cyl, head, sec, cbuf) == FAIL) {
sys/arch/bebox/stand/boot/fd.c
504
fdDriveStatus(int ctlr, register int unit, register int head,
sys/arch/bebox/stand/boot/fd.c
510
fdc_out(ctlr, (head << 2) | unit);
sys/arch/bebox/stand/boot/fd.c
548
fdReadWrite(FD_UNIT *un, int func, int cyl, int head, int sec, u_char *adrs)
sys/arch/bebox/stand/boot/fd.c
559
printf("head = %d", head);
sys/arch/bebox/stand/boot/fd.c
569
fdc_out(ctlr, (head<<2) | unit);
sys/arch/bebox/stand/boot/fd.c
571
fdc_out(ctlr, head); /* head */
sys/arch/cobalt/cobalt/machdep.c
447
char *head;
sys/arch/cobalt/cobalt/machdep.c
455
head = proc;
sys/arch/cobalt/cobalt/machdep.c
465
return head;
sys/arch/dreamcast/dev/maple/maple.c
875
struct maple_cmdq_head *head)
sys/arch/dreamcast/dev/maple/maple.c
884
fn = TAILQ_FIRST(head);
sys/arch/dreamcast/dev/maple/maple.c
885
TAILQ_INIT(head);
sys/arch/dreamcast/dev/maple/mlcd.c
449
mlcd_printerror(const char *head, uint32_t code)
sys/arch/dreamcast/dev/maple/mlcd.c
452
printf("%s:", head);
sys/arch/dreamcast/dev/maple/mmemcard.c
612
mmem_printerror(const char *head, int rd, int blk, uint32_t code)
sys/arch/dreamcast/dev/maple/mmemcard.c
615
printf("%s: error %sing blk %d:", head, rd? "read" : "writ", blk);
sys/arch/evbppc/virtex/dev/if_temac.c
1127
int nseg, head, tail;
sys/arch/evbppc/virtex/dev/if_temac.c
1129
head = sc->sc_rxreap;
sys/arch/evbppc/virtex/dev/if_temac.c
1224
head, sc->sc_rxreap, nseg);
sys/arch/evbppc/virtex/dev/if_temac.c
1226
temac_rxcdsync(sc, head, nseg,
sys/arch/evbppc/virtex/dev/if_temac.c
664
int error, head, nsegs, i;
sys/arch/evbppc/virtex/dev/if_temac.c
667
head = sc->sc_txcur;
sys/arch/evbppc/virtex/dev/if_temac.c
770
temac_txcdsync(sc, head, nsegs,
sys/arch/evbppc/virtex/dev/if_temac.c
777
head, sc->sc_txcur, nsegs);
sys/arch/hp300/dev/dcm.c
1160
u_int head, tail, next;
sys/arch/hp300/dev/dcm.c
1201
head = pp->t_head & TX_MASK;
sys/arch/hp300/dev/dcm.c
1202
if (head == next)
sys/arch/hp300/dev/dcm.c
1206
nch = q_to_b(&tp->t_outq, buf, (head - next) & TX_MASK);
sys/arch/hp300/dev/dcm.c
1212
printf("\thead %x tail %x nch %d\n", head, tail, nch);
sys/arch/hp300/dev/dcm.c
1239
if (tp->t_outq.c_cc && head != (pp->t_head & TX_MASK)) {
sys/arch/hp300/dev/dcm.c
1243
head = pp->t_head & TX_MASK;
sys/arch/hp300/dev/dcm.c
1261
device_xname(sc->sc_dev), port, head, tail,
sys/arch/hp300/dev/dcm.c
1573
u_int head;
sys/arch/hp300/dev/dcm.c
1579
head = pp->r_head & RX_MASK;
sys/arch/hp300/dev/dcm.c
1580
fifo = &dcm_cn->dcm_rfifos[3-DCMCONSPORT][head>>1];
sys/arch/hp300/dev/dcm.c
1581
while (head == (pp->r_tail & RX_MASK))
sys/arch/hp300/dev/dcm.c
1594
pp->r_head = (head + 2) & RX_MASK;
sys/arch/hp300/dev/dcm.c
811
u_int head;
sys/arch/hp300/dev/dcm.c
829
(head = pp->r_head & RX_MASK) != (pp->r_tail & RX_MASK) &&
sys/arch/hp300/dev/dcm.c
830
dcm->dcm_rfifos[3-port][head>>1].data_char == FRAME_START) {
sys/arch/hp300/dev/dcm.c
831
pp->r_head = (head + 2) & RX_MASK;
sys/arch/hp300/dev/dcm.c
840
head = pp->r_head & RX_MASK;
sys/arch/hp300/dev/dcm.c
841
fifo = &dcm->dcm_rfifos[3-port][head>>1];
sys/arch/hp300/dev/dcm.c
845
while (head != (pp->r_tail & RX_MASK)) {
sys/arch/hp300/dev/dcm.c
852
head = (head + 2) & RX_MASK;
sys/arch/hp300/dev/dcm.c
853
pp->r_head = head;
sys/arch/hp300/dev/dcm.c
854
fifo = head ? fifo+1 : &dcm->dcm_rfifos[3-port][0];
sys/arch/hp300/dev/dcm.c
863
tp->t_flags, head, pp->r_tail);
sys/arch/hp300/stand/common/dcm.c
113
unsigned int head;
sys/arch/hp300/stand/common/dcm.c
118
head = pp->r_head & RX_MASK;
sys/arch/hp300/stand/common/dcm.c
119
if (head == (pp->r_tail & RX_MASK))
sys/arch/hp300/stand/common/dcm.c
121
fifo = &dcm->dcm_rfifos[3-port][head>>1];
sys/arch/hp300/stand/common/dcm.c
124
pp->r_head = (head + 2) & RX_MASK;
sys/arch/hp300/stand/common/scsireg.h
295
unsigned head : 8;
sys/arch/i386/i386/machdep.c
1218
bootspace.head.va = KERNTEXTOFF;
sys/arch/i386/i386/machdep.c
1219
bootspace.head.pa = KERNTEXTOFF - KERNBASE;
sys/arch/i386/i386/machdep.c
1220
bootspace.head.sz = 0;
sys/arch/i386/i386/multiboot.c
410
bbe.head = md->md_heads;
sys/arch/i386/stand/lib/biosdisk_ll.c
102
d->head = HEADS(diskinfo);
sys/arch/i386/stand/lib/biosdisk_ll.c
104
d->chs_sectors = d->sec * d->head * d->cyl;
sys/arch/i386/stand/lib/biosdisk_ll.c
213
int cyl, head, sec, nsec, spc, dblk32;
sys/arch/i386/stand/lib/biosdisk_ll.c
216
spc = d->head * d->sec;
sys/arch/i386/stand/lib/biosdisk_ll.c
218
head = (dblk32 % spc) / d->sec;
sys/arch/i386/stand/lib/biosdisk_ll.c
225
if (biosdisk_read(d->dev, cyl, head, sec, nsec, buf)) {
sys/arch/i386/stand/lib/biosdisk_ll.h
50
int sec, head, cyl; /* geometry */
sys/arch/i386/stand/lib/biosdisk_ll.h
72
uint32_t head; /* # of physical heads */
sys/arch/i386/stand/lib/bootinfo_biosgeom.c
101
d.dev, d.cyl, d.head, d.sec);
sys/arch/i386/stand/lib/bootinfo_biosgeom.c
103
ed.size, ed.flags, ed.cyl, ed.head, ed.sec,
sys/arch/i386/stand/lib/bootinfo_biosgeom.c
89
bibg->disk[nvalid].head = d.head;
sys/arch/i386/stand/lib/test/biosdisk_user.c
89
biosread(int dev, int cyl, int head, int sec, int nsec, char *buf)
sys/arch/i386/stand/lib/test/biosdisk_user.c
97
if (lseek(fd, ((cyl * emuldisktab[currentdte].heads + head)
sys/arch/i386/stand/misc/rawrite.c
128
int count, fdin, drive, head, track, status, spt, buflength, ns;
sys/arch/i386/stand/misc/rawrite.c
160
head = track = 0;
sys/arch/i386/stand/misc/rawrite.c
164
printf("Track: %02d Head: %2d Sector: %2d\r", track, head, ns);
sys/arch/i386/stand/misc/rawrite.c
165
status = biosdisk(WRITE, drive, head, track, ns, 3, pbuf);
sys/arch/i386/stand/misc/rawrite.c
172
if ((head = (head + 1) & 1) == 0) ++track;
sys/arch/mac68k/obio/if_mc_obio.c
267
int head;
sys/arch/mac68k/obio/if_mc_obio.c
296
head = MC_RXDMABUFS - bufsleft;
sys/arch/mac68k/obio/if_mc_obio.c
299
if (head == sc->sc_tail) {
sys/arch/mac68k/obio/if_mc_obio.c
309
for (; sc->sc_tail < head; sc->sc_tail++) {
sys/arch/mips/adm5120/dev/ahci.c
1225
ep->head = td[0];
sys/arch/mips/adm5120/dev/ahci.c
1279
apipe->toggle = ((uint32_t)ep->head & 2)?ADMHCD_TD_DATA1:ADMHCD_TD_DATA0;
sys/arch/mips/adm5120/dev/ahci.c
910
ep->head = td;
sys/arch/mips/adm5120/dev/ahcireg.h
84
volatile struct admhcd_td *head;
sys/arch/playstation2/playstation2/sifbios.h
162
struct sifrpc_server_receive_queue *head;
sys/arch/playstation2/playstation2/sifbios.h
169
struct sifrpc_server *head;
sys/arch/powerpc/ibm4xx/trap.c
806
size_t head, nlines, tail;
sys/arch/powerpc/ibm4xx/trap.c
817
head = (uintptr_t)(-(intptr_t)(uintptr_t)d) & (CACHELINESIZE - 1);
sys/arch/powerpc/ibm4xx/trap.c
818
if (head != 0) {
sys/arch/powerpc/ibm4xx/trap.c
819
memcpy(d, s, head);
sys/arch/powerpc/ibm4xx/trap.c
820
d += head;
sys/arch/powerpc/ibm4xx/trap.c
821
s += head;
sys/arch/powerpc/ibm4xx/trap.c
822
len -= head;
sys/arch/sgimips/hpc/haud.c
174
int head = hdr->head;
sys/arch/sgimips/hpc/haud.c
177
return tail >= head ? tail - head : capacity - (head - tail);
sys/arch/sgimips/hpc/haud.c
481
int head = hdr->head;
sys/arch/sgimips/hpc/haud.c
484
const int page = haud_buffer_page_number(head);
sys/arch/sgimips/hpc/haud.c
485
const int page_offset = haud_buffer_page_offset(head);
sys/arch/sgimips/hpc/haud.c
504
head += words;
sys/arch/sgimips/hpc/haud.c
505
if (head == haud_buffer_word_capacity(buf)) {
sys/arch/sgimips/hpc/haud.c
506
head = 0;
sys/arch/sgimips/hpc/haud.c
510
hdr->head = head;
sys/arch/sgimips/hpc/haud.c
696
haud_buffer_header(sc->sc_cmd_req)->head = 0;
sys/arch/sgimips/hpc/haud.c
707
haud_buffer_header(sc->sc_cmd_resp)->head = 0;
sys/arch/sgimips/hpc/haudvar.h
107
u_int32_t head; // Start of data (index in words units)
sys/arch/sparc/dev/fd.c
1441
int read, head, sec, nblks;
sys/arch/sparc/dev/fd.c
1597
head = sec / type->sectrac;
sys/arch/sparc/dev/fd.c
1598
sec -= head * type->sectrac;
sys/arch/sparc/dev/fd.c
1601
block = (fd->sc_cylin * type->heads + head) * type->sectrac + sec;
sys/arch/sparc/dev/fd.c
1623
fd->sc_drive, fd->sc_cylin, head, sec, nblks);
sys/arch/sparc/dev/fd.c
1637
FDC_WRFIFO(fdc, (head << 2) | fd->sc_drive);
sys/arch/sparc/dev/fd.c
1647
FDC_WRFIFO(fdc, (head << 2) | fd->sc_drive);
sys/arch/sparc/dev/fd.c
1649
FDC_WRFIFO(fdc, head);
sys/arch/sparc/dev/fd.c
2103
if (form_cmd->head >= fd->sc_type->heads ||
sys/arch/sparc/dev/fd.c
2109
fd_formb->head = form_cmd->head;
sys/arch/sparc/dev/fd.c
2126
fd_formb->fd_formb_headno(i) = form_cmd->head;
sys/arch/sparc/dev/fd.c
2201
+ finfo->head * type->sectrac) * FD_BSIZE(fd))
sys/arch/sparc/dev/fd.c
2215
printf("\thead:\t%d\n", finfo->head);
sys/arch/sparc/dev/fdvar.h
88
int cyl, head;
sys/arch/sparc/sparc/intr.c
538
ih_insert(struct intrhand **head, struct intrhand *ih)
sys/arch/sparc/sparc/intr.c
545
for (p = head; (q = *p) != NULL; p = &q->ih_next)
sys/arch/sparc/sparc/intr.c
552
ih_remove(struct intrhand **head, struct intrhand *ih)
sys/arch/sparc/sparc/intr.c
556
for (p = head; (q = *p) != ih; p = &q->ih_next)
sys/arch/sparc/sparc/pmap.c
332
mmuq_first(struct mmuentry *head)
sys/arch/sparc/sparc/pmap.c
334
KASSERT(head->me_list.next != head);
sys/arch/sparc/sparc/pmap.c
335
return head->me_list.next;
sys/arch/sparc/sparc/pmap.c
339
mmuq_empty(struct mmuentry *head)
sys/arch/sparc/sparc/pmap.c
341
return head->me_list.next == head;
sys/arch/sparc/sparc/pmap.c
345
mmuq_insert_tail(struct mmuentry *head, struct mmuentry *e)
sys/arch/sparc/sparc/pmap.c
347
e->me_list.prev = head->me_list.prev;
sys/arch/sparc/sparc/pmap.c
348
e->me_list.next = head;
sys/arch/sparc/sparc/pmap.c
349
head->me_list.prev->me_list.next = e;
sys/arch/sparc/sparc/pmap.c
350
head->me_list.prev = e;
sys/arch/sparc64/dev/fdc.c
1624
int read, head, sec, nblks;
sys/arch/sparc64/dev/fdc.c
1780
head = sec / type->sectrac;
sys/arch/sparc64/dev/fdc.c
1781
sec -= head * type->sectrac;
sys/arch/sparc64/dev/fdc.c
1784
block = (fd->sc_cylin * type->heads + head) * type->sectrac +
sys/arch/sparc64/dev/fdc.c
1808
fd->sc_drive, fd->sc_cylin, head, sec, nblks);
sys/arch/sparc64/dev/fdc.c
1822
FDC_WRFIFO(fdc, (head << 2) | fd->sc_drive);
sys/arch/sparc64/dev/fdc.c
1832
FDC_WRFIFO(fdc, (head << 2) | fd->sc_drive);
sys/arch/sparc64/dev/fdc.c
1834
FDC_WRFIFO(fdc, head);
sys/arch/sparc64/dev/fdc.c
2286
if (form_cmd->head >= fd->sc_type->heads ||
sys/arch/sparc64/dev/fdc.c
2292
fd_formb->head = form_cmd->head;
sys/arch/sparc64/dev/fdc.c
2309
fd_formb->fd_formb_headno(i) = form_cmd->head;
sys/arch/sparc64/dev/fdc.c
2384
+ finfo->head * type->sectrac) * FD_BSIZE(fd))
sys/arch/sparc64/dev/fdc.c
2398
printf("\thead:\t%d\n", finfo->head);
sys/arch/sparc64/dev/fdcvar.h
88
int cyl, head;
sys/arch/sun2/sun2/pmap.c
1080
pv_entry_t *head, pv;
sys/arch/sun2/sun2/pmap.c
1090
head = pa_to_pvhead(pa);
sys/arch/sun2/sun2/pmap.c
1093
if (*head == NULL)
sys/arch/sun2/sun2/pmap.c
1104
for (pv = *head; pv != NULL; pv = pv->pv_next) {
sys/arch/sun2/sun2/pmap.c
1280
pv_entry_t *head, pv;
sys/arch/sun2/sun2/pmap.c
1291
head = pa_to_pvhead(pa);
sys/arch/sun2/sun2/pmap.c
1292
while ((pv = *head) != NULL) {
sys/arch/sun2/sun2/pmap.c
1298
if (pv == *head) {
sys/arch/sun2/sun2/pmap.c
1318
pv_entry_t *head, pv;
sys/arch/sun2/sun2/pmap.c
1336
head = pa_to_pvhead(pa);
sys/arch/sun2/sun2/pmap.c
1340
for (pv = *head; pv != NULL; pv = pv->pv_next) {
sys/arch/sun2/sun2/pmap.c
1355
for (pv = *head; pv != NULL; pv = pv->pv_next) {
sys/arch/sun2/sun2/pmap.c
1376
pv->pv_next = *head;
sys/arch/sun2/sun2/pmap.c
1377
*head = pv;
sys/arch/sun2/sun2/pmap.c
1396
pv_entry_t *head, *ppv, pv;
sys/arch/sun2/sun2/pmap.c
1410
head = pa_to_pvhead(pa);
sys/arch/sun2/sun2/pmap.c
1415
ppv = head;
sys/arch/sun2/sun2/pmap.c
1443
if ((pv = *head) == NULL)
sys/arch/sun2/sun2/pmap.c
2615
pv_entry_t *head;
sys/arch/sun2/sun2/pmap.c
2621
head = pa_to_pvhead(pa);
sys/arch/sun2/sun2/pmap.c
2624
*pv_flags |= pv_syncflags(*head);
sys/arch/sun2/sun2/pmap.c
2638
pv_entry_t *head;
sys/arch/sun2/sun2/pmap.c
2644
head = pa_to_pvhead(pa);
sys/arch/sun2/sun2/pmap.c
2648
*pv_flags |= pv_syncflags(*head);
sys/arch/sun2/sun2/pmap.c
2662
pv_entry_t *head;
sys/arch/sun2/sun2/pmap.c
2668
head = pa_to_pvhead(pa);
sys/arch/sun2/sun2/pmap.c
2671
*pv_flags |= pv_syncflags(*head);
sys/arch/sun2/sun2/pmap.c
2686
pv_entry_t *head;
sys/arch/sun2/sun2/pmap.c
2692
head = pa_to_pvhead(pa);
sys/arch/sun2/sun2/pmap.c
2696
*pv_flags |= pv_syncflags(*head);
sys/arch/sun3/dev/fd.c
1165
int read, head, sec, nblks;
sys/arch/sun3/dev/fd.c
1294
head = sec / type->sectrac;
sys/arch/sun3/dev/fd.c
1295
sec -= head * type->sectrac;
sys/arch/sun3/dev/fd.c
1300
block = (fd->sc_cylin * type->heads + head) *
sys/arch/sun3/dev/fd.c
1324
fd->sc_cylin, head, sec, nblks);
sys/arch/sun3/dev/fd.c
1332
OUT_FDC(fdc, (head << 2) | fd->sc_drive, IOTIMEDOUT);
sys/arch/sun3/dev/fd.c
1342
OUT_FDC(fdc, (head << 2) | fd->sc_drive, IOTIMEDOUT);
sys/arch/sun3/dev/fd.c
1344
OUT_FDC(fdc, head, IOTIMEDOUT);
sys/arch/sun3/dev/fd.c
1731
if (form_cmd->head >= fd->sc_type->heads ||
sys/arch/sun3/dev/fd.c
1737
fd_formb->head = form_cmd->head;
sys/arch/sun3/dev/fd.c
1754
fd_formb->fd_formb_headno(i) = form_cmd->head;
sys/arch/sun3/dev/fd.c
1847
+ finfo->head * type->sectrac) * FDC_BSIZE / DEV_BSIZE;
sys/arch/sun3/dev/fdvar.h
82
int cyl, head;
sys/arch/sun3/dev/if_ie.c
669
ie_buflen(struct ie_softc *sc, int head)
sys/arch/sun3/dev/if_ie.c
673
len = SWAP(sc->rbuffs[head]->ie_rbd_actual);
sys/arch/sun3/dev/if_ie.c
682
int head = sc->rbhead;
sys/arch/sun3/dev/if_ie.c
698
i = sc->rbuffs[head]->ie_rbd_actual & IE_RBD_LAST;
sys/arch/sun3/dev/if_ie.c
700
acc += ie_buflen(sc, head);
sys/arch/sun3/dev/if_ie.c
701
head = (head + 1) % sc->nrxbuf;
sys/arch/sun3/dev/if_ie.c
761
int head;
sys/arch/sun3/dev/if_ie.c
768
head = sc->rbhead;
sys/arch/sun3/dev/if_ie.c
773
(sc->sc_memcpy)((void *)&eh, (void *)sc->cbuffs[head],
sys/arch/sun3/dev/if_ie.c
839
int thisrblen = ie_buflen(sc, head) - thisrboff;
sys/arch/sun3/dev/if_ie.c
844
(void *)(sc->cbuffs[head] + thisrboff),
sys/arch/sun3/dev/if_ie.c
855
head = (head + 1) % sc->nrxbuf;
sys/arch/sun3/dev/xy.c
1150
iopb->sect = iopb->head = iopb->cyl = 0;
sys/arch/sun3/dev/xy.c
1154
iopb->head = block % iorq->xy->nhead;
sys/arch/sun3/dev/xy.c
1773
iopb->head =
sys/arch/sun3/dev/xy.c
1838
iopb->cyl, iopb->head, iopb->sect);
sys/arch/sun3/dev/xy.c
1888
iopb->head = i / iorq->xy->nhead;
sys/arch/sun3/dev/xyreg.h
148
volatile u_char head; /* head # */
sys/arch/sun3/sun3/pmap.c
1089
pv_entry_t *head, pv;
sys/arch/sun3/sun3/pmap.c
1099
head = pa_to_pvhead(pa);
sys/arch/sun3/sun3/pmap.c
1102
if (*head == NULL)
sys/arch/sun3/sun3/pmap.c
1113
for (pv = *head; pv != NULL; pv = pv->pv_next) {
sys/arch/sun3/sun3/pmap.c
1285
pv_entry_t *head, pv;
sys/arch/sun3/sun3/pmap.c
1296
head = pa_to_pvhead(pa);
sys/arch/sun3/sun3/pmap.c
1297
while ((pv = *head) != NULL) {
sys/arch/sun3/sun3/pmap.c
1303
if (pv == *head) {
sys/arch/sun3/sun3/pmap.c
1323
pv_entry_t *head, pv;
sys/arch/sun3/sun3/pmap.c
1342
head = pa_to_pvhead(pa);
sys/arch/sun3/sun3/pmap.c
1346
for (pv = *head; pv != NULL; pv = pv->pv_next) {
sys/arch/sun3/sun3/pmap.c
1360
for (pv = *head; pv != NULL; pv = pv->pv_next) {
sys/arch/sun3/sun3/pmap.c
1381
pv->pv_next = *head;
sys/arch/sun3/sun3/pmap.c
1382
*head = pv;
sys/arch/sun3/sun3/pmap.c
1401
pv_entry_t *head, *ppv, pv;
sys/arch/sun3/sun3/pmap.c
1415
head = pa_to_pvhead(pa);
sys/arch/sun3/sun3/pmap.c
1420
ppv = head;
sys/arch/sun3/sun3/pmap.c
1448
if ((pv = *head) == NULL)
sys/arch/sun3/sun3/pmap.c
2635
pv_entry_t *head;
sys/arch/sun3/sun3/pmap.c
2641
head = pa_to_pvhead(pa);
sys/arch/sun3/sun3/pmap.c
2644
*pv_flags |= pv_syncflags(*head);
sys/arch/sun3/sun3/pmap.c
2658
pv_entry_t *head;
sys/arch/sun3/sun3/pmap.c
2664
head = pa_to_pvhead(pa);
sys/arch/sun3/sun3/pmap.c
2668
*pv_flags |= pv_syncflags(*head);
sys/arch/sun3/sun3/pmap.c
2682
pv_entry_t *head;
sys/arch/sun3/sun3/pmap.c
2688
head = pa_to_pvhead(pa);
sys/arch/sun3/sun3/pmap.c
2691
*pv_flags |= pv_syncflags(*head);
sys/arch/sun3/sun3/pmap.c
2706
pv_entry_t *head;
sys/arch/sun3/sun3/pmap.c
2712
head = pa_to_pvhead(pa);
sys/arch/sun3/sun3/pmap.c
2716
*pv_flags |= pv_syncflags(*head);
sys/arch/vax/boot/boot/mfm.c
459
int block, sect, head, cyl, scount;
sys/arch/vax/boot/boot/mfm.c
488
head = sect / lp->d_nsectors;
sys/arch/vax/boot/boot/mfm.c
506
head |= (cyl >> 4) & 0x70;
sys/arch/vax/boot/boot/mfm.c
507
creg.udc_dhead = head;
sys/arch/vax/boot/boot/mfm.c
547
int block, sect, head, cyl, scount, cmd;
sys/arch/vax/boot/boot/mfm.c
576
head = sect / lp->d_nsectors;
sys/arch/vax/boot/boot/mfm.c
583
block, dblk, cyl, sect, head);
sys/arch/vax/boot/boot/mfm.c
598
head |= (cyl >> 4) & 0x70;
sys/arch/vax/boot/boot/mfm.c
599
creg.udc_dhead = head;
sys/arch/vax/include/qduser.h
219
#define ISEMPTY(eq) ((eq)->header.head == (eq)->header.tail)
sys/arch/vax/include/qduser.h
220
#define GETBEGIN(eq) (&(eq)->header.events[(eq)->header.head])
sys/arch/vax/include/qduser.h
230
#define GETEND(eq) (++(eq)->header.head >= (eq)->header.size ? \
sys/arch/vax/include/qduser.h
231
(eq)->header.head = 0 : 0 )
sys/arch/vax/include/qduser.h
238
#define ISFULL(eq) ((eq)->header.tail+1 == (eq)->header.head || \
sys/arch/vax/include/qduser.h
240
(eq)->header.head == 0))
sys/arch/vax/include/qevent.h
95
int head; /* index into events */
sys/arch/x68k/dev/fd.c
1104
int read, head, sec, pos, i, sectrac, nblks;
sys/arch/x68k/dev/fd.c
1246
head = (fd->sc_blkno
sys/arch/x68k/dev/fd.c
1253
block = ((fd->sc_cylin * type->heads + head) *
sys/arch/x68k/dev/fd.c
1258
fd->sc_cylin, head, sec, type->secsize);
sys/arch/x68k/dev/fd.c
1272
head, sec, nblks, fd->sc_skip));
sys/arch/x68k/dev/fd.c
1273
DPRINTF(("C H R N: %d %d %d %d\n", fd->sc_cylin, head, sec,
sys/arch/x68k/dev/fd.c
1288
out_fdc(iot, ioh, (head << 2) | fd->sc_drive);
sys/arch/x68k/dev/fd.c
1298
out_fdc(iot, ioh, (head << 2) | fd->sc_drive);
sys/arch/x68k/dev/fd.c
1300
out_fdc(iot, ioh, head);
sys/arch/x68k/dev/fd.c
1319
head = (fd->sc_blkno
sys/arch/x68k/dev/fd.c
1327
out_fdc(iot, ioh, (head << 2) | fd->sc_drive);
sys/arch/x68k/dev/fd.c
1329
out_fdc(iot, ioh, head);
sys/arch/x68k/dev/fd.c
1348
head = (fd->sc_blkno
sys/arch/x68k/dev/fd.c
1354
block = ((fd->sc_cylin * type->heads + head) *
sys/arch/x68k/dev/fd.c
1380
out_fdc(iot, ioh, (head << 2) | fd->sc_drive);
sys/arch/x68k/dev/fd.c
1382
out_fdc(iot, ioh, head);
sys/arch/x68k/dev/fd.c
1733
if (form_cmd->head >= fd->sc_type->heads ||
sys/arch/x68k/dev/fd.c
1740
fd_formb->head = form_cmd->head;
sys/arch/x68k/dev/fd.c
1757
fd_formb->fd_formb_headno(i) = form_cmd->head;
sys/arch/x68k/dev/fd.c
1833
+ finfo->head * type->sectrac) * (128 << type->secsize) / DEV_BSIZE;
sys/arch/x68k/dev/fdreg.h
71
int cyl, head;
sys/arch/x68k/stand/libsa/fd.c
112
head = (dblk / nsect) % nhead + sc->fmt.minsec.H;
sys/arch/x68k/stand/libsa/fd.c
118
(head << 8) |
sys/arch/x68k/stand/libsa/fd.c
96
int cyl, head, sect;
sys/arch/x86/include/bootinfo.h
147
int sec, head, cyl; /* geometry */
sys/arch/x86/include/bootspace.h
79
} head;
sys/arch/x86/x86/pmap.c
1712
spahole = roundup(bootspace.head.pa, NBPD_L2);
sys/arch/x86/x86/pmap.c
1806
kva = bootspace.head.va;
sys/arch/x86/x86/pmap.c
1807
kva_end = kva + bootspace.head.sz;
sys/arch/x86/x86/x86_autoconf.c
149
x86_alldisks->dl_biosdisks[i].bi_head = big->disk[i].head;
sys/arch/x86/x86/x86_machdep.c
1029
paddr_t pa_kstart = bootspace.head.pa;
sys/coda/coda_namecache.c
148
TAILQ_INIT(&coda_nc_lru.head);
sys/coda/coda_namecache.c
151
TAILQ_INSERT_HEAD(&coda_nc_lru.head, &coda_nc_heap[i], lru);
sys/coda/coda_namecache.c
155
LIST_INIT(&coda_nc_hash[i].head);
sys/coda/coda_namecache.c
180
LIST_FOREACH(cncp, &coda_nc_hash[hash].head, hash)
sys/coda/coda_namecache.c
246
cncp = TAILQ_FIRST(&coda_nc_lru.head);
sys/coda/coda_namecache.c
247
TAILQ_REMOVE(&coda_nc_lru.head, cncp, lru);
sys/coda/coda_namecache.c
276
TAILQ_INSERT_TAIL(&coda_nc_lru.head, cncp, lru);
sys/coda/coda_namecache.c
277
LIST_INSERT_HEAD(&coda_nc_hash[hash].head, cncp, hash);
sys/coda/coda_namecache.c
319
TAILQ_REMOVE(&coda_nc_lru.head, cncp, lru);
sys/coda/coda_namecache.c
320
TAILQ_INSERT_TAIL(&coda_nc_lru.head, cncp, lru);
sys/coda/coda_namecache.c
325
LIST_INSERT_HEAD(&coda_nc_hash[hash].head, cncp, hash);
sys/coda/coda_namecache.c
364
TAILQ_REMOVE(&coda_nc_lru.head, cncp, lru);
sys/coda/coda_namecache.c
365
TAILQ_INSERT_HEAD(&coda_nc_lru.head, cncp, lru);
sys/coda/coda_namecache.c
397
ncncp = LIST_FIRST(&coda_nc_hash[i].head);
sys/coda/coda_namecache.c
431
ncncp = LIST_FIRST(&coda_nc_hash[i].head);
sys/coda/coda_namecache.c
524
ncncp = TAILQ_FIRST(&coda_nc_lru.head);
sys/coda/coda_namecache.c
566
TAILQ_FOREACH(cncp, &coda_nc_lru.head, lru) {
sys/coda/coda_namecache.c
617
LIST_FOREACH(cncp, &coda_nc_hash[hash].head, hash) {
sys/coda/coda_namecache.c
707
LIST_FOREACH(cncp, &coda_nc_hash[i].head, hash) {
sys/coda/coda_namecache.h
100
TAILQ_HEAD(,coda_cache) head;
sys/coda/coda_namecache.h
105
LIST_HEAD(,coda_cache) head;
sys/compat/linux/arch/aarch64/linux_machdep.c
119
if (fpsimd->head.magic == FPSIMD_MAGIC) {
sys/compat/linux/arch/aarch64/linux_machdep.c
76
fpsimd->head.magic = FPSIMD_MAGIC;
sys/compat/linux/arch/aarch64/linux_machdep.c
77
fpsimd->head.size = sizeof(struct fpsimd_context);
sys/compat/linux/arch/aarch64/linux_machdep.h
45
struct linux_aarch64_ctx head;
sys/compat/linux/arch/aarch64/linux_systrace_args.c
703
uarg[0] = (intptr_t) SCARG(p, head); /* void * */
sys/compat/linux/arch/amd64/linux_systrace_args.c
1906
uarg[0] = (intptr_t) SCARG(p, head); /* void * */
sys/compat/linux/arch/arm/linux_systrace_args.c
2005
uarg[0] = (intptr_t) SCARG(p, head); /* void * */
sys/compat/linux/arch/i386/linux_systrace_args.c
2058
uarg[0] = (intptr_t) SCARG(p, head); /* void * */
sys/compat/linux/common/linux_fdio.c
113
lflop.head = fparams.ntrk;
sys/compat/linux/common/linux_fdio.h
159
u_int head;
sys/compat/linux/common/linux_fdio.h
48
u_int head;
sys/compat/linux32/arch/aarch64/linux32_systrace_args.c
1952
uarg[0] = (intptr_t) SCARG(p, head).i32; /* netbsd32_voidp */
sys/compat/linux32/arch/amd64/linux32_systrace_args.c
1879
uarg[0] = (intptr_t) SCARG(p, head).i32; /* netbsd32_voidp */
sys/compat/netbsd32/netbsd32_futex.c
113
void *head;
sys/compat/netbsd32/netbsd32_futex.c
118
error = futex_robust_head_lookup(l, SCARG(uap, lwpid), &head);
sys/compat/netbsd32/netbsd32_futex.c
122
head32.i32 = (uintptr_t)head;
sys/compat/netbsd32/netbsd32_futex.c
123
if (NETBSD32PTR64(head32) != head)
sys/compat/netbsd32/netbsd32_futex.c
92
void *head = SCARG_P32(uap, head);
sys/compat/netbsd32/netbsd32_futex.c
96
if ((uintptr_t)head % sizeof(uint32_t))
sys/compat/netbsd32/netbsd32_futex.c
99
l->l_robust_head = (uintptr_t)head;
sys/compat/netbsd32/netbsd32_ioctl.c
307
p->head = s32p->head;
sys/compat/netbsd32/netbsd32_ioctl.c
868
s32p->head = p->head;
sys/compat/netbsd32/netbsd32_ioctl.h
112
u_char head;
sys/compat/netbsd32/netbsd32_syscallargs.h
886
syscallarg(netbsd32_voidp) head;
sys/compat/netbsd32/netbsd32_systrace_args.c
1214
uarg[0] = (intptr_t) SCARG(p, head).i32; /* netbsd32_voidp */
sys/dev/acpi/qcompas.c
848
uint32_t head, tail;
sys/dev/acpi/qcompas.c
851
head = *sc->sc_rx_head;
sys/dev/acpi/qcompas.c
857
KASSERT(head != tail);
sys/dev/acpi/qcompas.c
859
if (head >= tail)
sys/dev/acpi/qcompas.c
860
avail = head - tail;
sys/dev/acpi/qcompas.c
862
avail = (sc->sc_rx_fifolen - tail) + head;
sys/dev/acpi/qcompas.c
895
uint32_t head, tail;
sys/dev/acpi/qcompas.c
898
head = *sc->sc_tx_head + sc->sc_tx_off;
sys/dev/acpi/qcompas.c
899
if (head >= sc->sc_tx_fifolen)
sys/dev/acpi/qcompas.c
900
head -= sc->sc_tx_fifolen;
sys/dev/acpi/qcompas.c
903
if (head < tail)
sys/dev/acpi/qcompas.c
904
avail = tail - head;
sys/dev/acpi/qcompas.c
906
avail = (sc->sc_rx_fifolen - head) + tail;
sys/dev/acpi/qcompas.c
912
sc->sc_tx_fifo[head] = *buf;
sys/dev/acpi/qcompas.c
913
head++;
sys/dev/acpi/qcompas.c
914
if (head >= sc->sc_tx_fifolen)
sys/dev/acpi/qcompas.c
915
head -= sc->sc_tx_fifolen;
sys/dev/acpi/qcompas.c
925
uint32_t head;
sys/dev/acpi/qcompas.c
927
head = *sc->sc_tx_head + roundup(sc->sc_tx_off, 8);
sys/dev/acpi/qcompas.c
928
if (head >= sc->sc_tx_fifolen)
sys/dev/acpi/qcompas.c
929
head -= sc->sc_tx_fifolen;
sys/dev/acpi/qcompas.c
932
*sc->sc_tx_head = head;
sys/dev/ata/ata_wdc.c
344
uint8_t head, sect, cmd = 0;
sys/dev/ata/ata_wdc.c
397
head = 0;
sys/dev/ata/ata_wdc.c
401
head = (ata_bio->blkno >> 24) & 0x0f;
sys/dev/ata/ata_wdc.c
402
head |= WDSD_LBA;
sys/dev/ata/ata_wdc.c
408
head = blkno % drvp->lp->d_ntracks;
sys/dev/ata/ata_wdc.c
411
head |= WDSD_CHS;
sys/dev/ata/ata_wdc.c
470
head, sect, count, features);
sys/dev/ata/ata_wdc.c
540
head, sect, nblks,
sys/dev/ata/wd.c
1797
unit, va, cylin, head, sector);
sys/dev/ata/wd.c
2238
xfer->c_ata_c.r_lba = ((wi->wi_atareq.head & 0x0f) << 24) |
sys/dev/ata/wd.c
2266
wi->wi_atareq.head = (xfer->c_ata_c.r_device & 0xf0) |
sys/dev/audio/audio.c
2829
input->head, input->used, input->capacity,
sys/dev/audio/audio.c
2830
usrbuf->head, usrbuf->used, usrbuf->capacity);
sys/dev/audio/audio.c
2864
error = uiomove((uint8_t *)usrbuf->mem + usrbuf->head, bytes,
sys/dev/audio/audio.c
2876
usrbuf->head, usrbuf->used, usrbuf->capacity);
sys/dev/audio/audio.c
2954
usrbuf->head, usrbuf->used, track->usrbuf_usedhigh);
sys/dev/audio/audio.c
3003
usrbuf->head, usrbuf->used, usrbuf->capacity);
sys/dev/audio/audio.c
3174
offset = track->usrbuf.head;
sys/dev/audio/audio.c
3991
KASSERTMSG(src->head % track->mixer->frames_per_block == 0,
sys/dev/audio/audio.c
3993
src->head, track->mixer->frames_per_block);
sys/dev/audio/audio.c
4121
KASSERTMSG(src->head % track->mixer->frames_per_block == 0,
sys/dev/audio/audio.c
4123
src->head, track->mixer->frames_per_block);
sys/dev/audio/audio.c
4318
srcbuf->head = 0;
sys/dev/audio/audio.c
4380
srcbuf->head = 0;
sys/dev/audio/audio.c
4445
srcbuf->head = 0;
sys/dev/audio/audio.c
4522
srcbuf->head = 0;
sys/dev/audio/audio.c
4699
track->usrbuf.head = 0;
sys/dev/audio/audio.c
472
track->outbuf.head, track->outbuf.used, track->outbuf.capacity);
sys/dev/audio/audio.c
475
track->freq.srcbuf.head,
sys/dev/audio/audio.c
4804
track->outbuf.head = 0;
sys/dev/audio/audio.c
488
track->usrbuf.head, track->usrbuf.used, track->usrbuf_usedhigh);
sys/dev/audio/audio.c
5006
if (usrbuf->head + bytes < usrbuf->capacity) {
sys/dev/audio/audio.c
5008
(uint8_t *)usrbuf->mem + usrbuf->head,
sys/dev/audio/audio.c
5020
(uint8_t *)usrbuf->mem + usrbuf->head,
sys/dev/audio/audio.c
5027
(uint8_t *)usrbuf->mem + usrbuf->head,
sys/dev/audio/audio.c
5057
track->freq.srcbuf.head,
sys/dev/audio/audio.c
5078
track->codec.srcbuf.head = 0;
sys/dev/audio/audio.c
5082
track->chvol.srcbuf.head = 0;
sys/dev/audio/audio.c
5086
track->chmix.srcbuf.head = 0;
sys/dev/audio/audio.c
5090
track->freq.srcbuf.head = 0;
sys/dev/audio/audio.c
5166
(uint8_t *)outbuf->mem + outbuf->head * framesize,
sys/dev/audio/audio.c
5178
(uint8_t *)outbuf->mem + outbuf->head * framesize,
sys/dev/audio/audio.c
5185
(uint8_t *)outbuf->mem + outbuf->head * framesize,
sys/dev/audio/audio.c
5516
mixer->hwbuf.head, mixer->hwbuf.used, mixer->hwbuf.capacity,
sys/dev/audio/audio.c
5531
mixer->hwbuf.head, mixer->hwbuf.used, mixer->hwbuf.capacity);
sys/dev/audio/audio.c
5618
track->usrbuf.head,
sys/dev/audio/audio.c
5709
mixer->hwbuf.head, mixer->hwbuf.used, mixer->hwbuf.capacity,
sys/dev/audio/audio.c
5881
mixer->hwbuf.head, mixer->hwbuf.used, mixer->hwbuf.capacity);
sys/dev/audio/audio.c
5953
mixer->hwbuf.head, mixer->hwbuf.used, mixer->hwbuf.capacity);
sys/dev/audio/audio.c
6090
tmpsrc.head = 0;
sys/dev/audio/audio.c
6164
input->head, input->used, input->capacity);
sys/dev/audio/audio.c
6266
mixer->hwbuf.head, mixer->hwbuf.used, mixer->hwbuf.capacity);
sys/dev/audio/audio.c
6305
sc->sc_pmixer->hwbuf.head = 0;
sys/dev/audio/audio.c
6335
sc->sc_rmixer->hwbuf.head = 0;
sys/dev/audio/audio.c
6360
track->usrbuf.head = 0;
sys/dev/audio/audio.c
6363
track->codec.srcbuf.head = 0;
sys/dev/audio/audio.c
6367
track->chvol.srcbuf.head = 0;
sys/dev/audio/audio.c
6371
track->chmix.srcbuf.head = 0;
sys/dev/audio/audio.c
6375
track->freq.srcbuf.head = 0;
sys/dev/audio/audio.c
6429
track->outbuf.head, track->outbuf.used,
sys/dev/audio/audio.c
6506
track->input->head,
sys/dev/audio/audio.c
6555
track->outbuf.head,
sys/dev/audio/audio.c
8368
KASSERTMSG(0 <= ring->head && ring->head < ring->capacity,
sys/dev/audio/audio.c
8370
where, ring->head, ring->capacity);
sys/dev/audio/audiodef.h
332
return auring_round(ring, ring->head + ring->used);
sys/dev/audio/audiodef.h
347
return (aint_t *)ring->mem + ring->head * ring->fmt.channels;
sys/dev/audio/audiodef.h
374
ring->head * ring->fmt.channels * ring->fmt.stride / NBBY;
sys/dev/audio/audiodef.h
413
ring->head = auring_round(ring, ring->head + n);
sys/dev/audio/audiodef.h
443
if (ring->head + ring->used <= ring->capacity) {
sys/dev/audio/audiodef.h
446
return ring->capacity - ring->head;
sys/dev/audio/audiodef.h
458
if (ring->head + ring->used < ring->capacity) {
sys/dev/audio/audiodef.h
459
return ring->capacity - (ring->head + ring->used);
sys/dev/audio/audiovar.h
102
int head; /* head position in frame */
sys/dev/cardbus/cardbus_exrom.c
134
SIMPLEQ_INSERT_TAIL(head, image, next);
sys/dev/cardbus/cardbus_exrom.c
92
struct cardbus_rom_image_head *head)
sys/dev/cardbus/cardbus_exrom.c
99
SIMPLEQ_INIT(head);
sys/dev/dm/device-mapper.c
727
dmgetproperties(struct disk *disk, dm_table_head_t *head)
sys/dev/dm/device-mapper.c
733
dm_table_disksize(head, &numsec, &secsize);
sys/dev/dm/dm_table.c
105
dm_table_get_entry(dm_table_head_t *head, uint8_t table_id)
sys/dev/dm/dm_table.c
109
id = dm_table_busy(head, table_id);
sys/dev/dm/dm_table.c
111
return &head->tables[id];
sys/dev/dm/dm_table.c
117
dm_table_release(dm_table_head_t *head, uint8_t table_id)
sys/dev/dm/dm_table.c
120
dm_table_unbusy(head);
sys/dev/dm/dm_table.c
127
dm_table_switch_tables(dm_table_head_t *head)
sys/dev/dm/dm_table.c
130
mutex_enter(&head->table_mtx);
sys/dev/dm/dm_table.c
132
while (head->io_cnt != 0)
sys/dev/dm/dm_table.c
133
cv_wait(&head->table_cv, &head->table_mtx);
sys/dev/dm/dm_table.c
135
head->cur_active_table = 1 - head->cur_active_table;
sys/dev/dm/dm_table.c
137
mutex_exit(&head->table_mtx);
sys/dev/dm/dm_table.c
147
dm_table_destroy(dm_table_head_t *head, uint8_t table_id)
sys/dev/dm/dm_table.c
153
mutex_enter(&head->table_mtx);
sys/dev/dm/dm_table.c
155
aprint_debug("dm_Table_destroy called with %d--%d\n", table_id, head->io_cnt);
sys/dev/dm/dm_table.c
157
while (head->io_cnt != 0)
sys/dev/dm/dm_table.c
158
cv_wait(&head->table_cv, &head->table_mtx);
sys/dev/dm/dm_table.c
161
id = head->cur_active_table;
sys/dev/dm/dm_table.c
163
id = 1 - head->cur_active_table;
sys/dev/dm/dm_table.c
165
tbl = &head->tables[id];
sys/dev/dm/dm_table.c
176
mutex_exit(&head->table_mtx);
sys/dev/dm/dm_table.c
185
dm_table_size_impl(dm_table_head_t *head, int table)
sys/dev/dm/dm_table.c
194
id = dm_table_busy(head, table);
sys/dev/dm/dm_table.c
197
tbl = &head->tables[id];
sys/dev/dm/dm_table.c
206
dm_table_unbusy(head);
sys/dev/dm/dm_table.c
215
dm_table_size(dm_table_head_t *head)
sys/dev/dm/dm_table.c
218
return dm_table_size_impl(head, DM_TABLE_ACTIVE);
sys/dev/dm/dm_table.c
225
dm_inactive_table_size(dm_table_head_t *head)
sys/dev/dm/dm_table.c
228
return dm_table_size_impl(head, DM_TABLE_INACTIVE);
sys/dev/dm/dm_table.c
235
dm_table_disksize(dm_table_head_t *head, uint64_t *numsecp,
sys/dev/dm/dm_table.c
246
id = dm_table_busy(head, DM_TABLE_ACTIVE);
sys/dev/dm/dm_table.c
249
tbl = &head->tables[id];
sys/dev/dm/dm_table.c
271
dm_table_unbusy(head);
sys/dev/dm/dm_table.c
281
dm_table_get_target_count(dm_table_head_t *head, uint8_t table_id)
sys/dev/dm/dm_table.c
290
id = dm_table_busy(head, table_id);
sys/dev/dm/dm_table.c
291
tbl = &head->tables[id];
sys/dev/dm/dm_table.c
296
dm_table_unbusy(head);
sys/dev/dm/dm_table.c
306
dm_table_head_init(dm_table_head_t *head)
sys/dev/dm/dm_table.c
309
head->cur_active_table = 0;
sys/dev/dm/dm_table.c
310
head->io_cnt = 0;
sys/dev/dm/dm_table.c
313
SLIST_INIT(&head->tables[0]);
sys/dev/dm/dm_table.c
314
SLIST_INIT(&head->tables[1]);
sys/dev/dm/dm_table.c
316
mutex_init(&head->table_mtx, MUTEX_DEFAULT, IPL_NONE);
sys/dev/dm/dm_table.c
317
cv_init(&head->table_cv, "dm_io");
sys/dev/dm/dm_table.c
324
dm_table_head_destroy(dm_table_head_t *head)
sys/dev/dm/dm_table.c
327
KASSERT(!mutex_owned(&head->table_mtx));
sys/dev/dm/dm_table.c
328
KASSERT(!cv_has_waiters(&head->table_cv));
sys/dev/dm/dm_table.c
331
KASSERT(head->io_cnt == 0);
sys/dev/dm/dm_table.c
333
cv_destroy(&head->table_cv);
sys/dev/dm/dm_table.c
334
mutex_destroy(&head->table_mtx);
sys/dev/dm/dm_table.c
340
dm_table_head_t *head;
sys/dev/dm/dm_table.c
346
head = &table_en->dm_dev->table_head;
sys/dev/dm/dm_table.c
347
mutex_enter(&head->table_mtx);
sys/dev/dm/dm_table.c
352
mutex_exit(&head->table_mtx);
sys/dev/dm/dm_table.c
362
mutex_exit(&head->table_mtx);
sys/dev/dm/dm_table.c
67
dm_table_busy(dm_table_head_t *head, uint8_t table_id)
sys/dev/dm/dm_table.c
71
mutex_enter(&head->table_mtx);
sys/dev/dm/dm_table.c
74
id = head->cur_active_table;
sys/dev/dm/dm_table.c
76
id = 1 - head->cur_active_table;
sys/dev/dm/dm_table.c
78
head->io_cnt++;
sys/dev/dm/dm_table.c
80
mutex_exit(&head->table_mtx);
sys/dev/dm/dm_table.c
88
dm_table_unbusy(dm_table_head_t *head)
sys/dev/dm/dm_table.c
91
KASSERT(head->io_cnt != 0);
sys/dev/dm/dm_table.c
93
mutex_enter(&head->table_mtx);
sys/dev/dm/dm_table.c
95
if (--head->io_cnt == 0)
sys/dev/dm/dm_table.c
96
cv_broadcast(&head->table_cv);
sys/dev/dm/dm_table.c
98
mutex_exit(&head->table_mtx);
sys/dev/ic/arn5008.c
1081
SIMPLEQ_EMPTY(&sc->sc_txq[ATHN_QID_CAB].head))
sys/dev/ic/arn5008.c
1656
if (!SIMPLEQ_EMPTY(&txq->head))
sys/dev/ic/arn5008.c
1662
SIMPLEQ_INSERT_TAIL(&txq->head, bf, bf_list);
sys/dev/ic/arn5008.c
697
SIMPLEQ_INIT(&rxq->head);
sys/dev/ic/arn5008.c
711
SIMPLEQ_INSERT_TAIL(&rxq->head, bf, bf_list);
sys/dev/ic/arn5008.c
718
AR_WRITE(sc, AR_RXDP, SIMPLEQ_FIRST(&rxq->head)->bf_daddr);
sys/dev/ic/arn5008.c
799
bf = SIMPLEQ_FIRST(&rxq->head);
sys/dev/ic/arn5008.c
940
SIMPLEQ_REMOVE_HEAD(&rxq->head, bf_list);
sys/dev/ic/arn5008.c
946
if (__predict_true(!SIMPLEQ_EMPTY(&rxq->head)))
sys/dev/ic/arn5008.c
950
SIMPLEQ_INSERT_TAIL(&rxq->head, bf, bf_list);
sys/dev/ic/arn5008.c
977
bf = SIMPLEQ_FIRST(&txq->head);
sys/dev/ic/arn5008.c
986
SIMPLEQ_REMOVE_HEAD(&txq->head, bf_list);
sys/dev/ic/arn9003.c
1069
SIMPLEQ_REMOVE_HEAD(&rxq->head, bf_list);
sys/dev/ic/arn9003.c
1081
SIMPLEQ_INSERT_TAIL(&rxq->head, bf, bf_list);
sys/dev/ic/arn9003.c
1123
bf = SIMPLEQ_FIRST(&txq->head);
sys/dev/ic/arn9003.c
1128
SIMPLEQ_REMOVE_HEAD(&txq->head, bf_list);
sys/dev/ic/arn9003.c
1227
SIMPLEQ_EMPTY(&sc->sc_txq[ATHN_QID_CAB].head))
sys/dev/ic/arn9003.c
1844
SIMPLEQ_INSERT_TAIL(&txq->head, bf, bf_list);
sys/dev/ic/arn9003.c
855
SIMPLEQ_INIT(&rxq->head);
sys/dev/ic/arn9003.c
866
SIMPLEQ_INSERT_TAIL(&rxq->head, bf, bf_list);
sys/dev/ic/arn9003.c
948
bf = SIMPLEQ_FIRST(&rxq->head);
sys/dev/ic/ath.c
2641
struct ath_descdma *dd, ath_bufhead *head,
sys/dev/ic/ath.c
2708
STAILQ_INIT(head);
sys/dev/ic/ath.c
2717
ath_descdma_cleanup(sc, dd, head);
sys/dev/ic/ath.c
2720
STAILQ_INSERT_TAIL(head, bf, bf_list);
sys/dev/ic/ath.c
2737
struct ath_descdma *dd, ath_bufhead *head)
sys/dev/ic/ath.c
2747
STAILQ_FOREACH(bf, head, bf_list) {
sys/dev/ic/ath.c
2764
STAILQ_INIT(head);
sys/dev/ic/athn.c
1818
while ((bf = SIMPLEQ_FIRST(&txq->head)) != NULL) {
sys/dev/ic/athn.c
1819
SIMPLEQ_REMOVE_HEAD(&txq->head, bf_list);
sys/dev/ic/athn.c
1911
SIMPLEQ_INIT(&sc->sc_txq[qid].head);
sys/dev/ic/athnvar.h
116
SIMPLEQ_HEAD(, athn_tx_buf) head;
sys/dev/ic/athnvar.h
141
SIMPLEQ_HEAD(, athn_rx_buf) head;
sys/dev/ic/i82586.c
1127
int buffer, head, xbase;
sys/dev/ic/i82586.c
1135
head = sc->xchead;
sys/dev/ic/i82586.c
1158
buffer = IE_XBUF_ADDR(sc, head);
sys/dev/ic/i82586.c
1176
sc->ie_bus_write16(sc, IE_XBD_FLAGS(xbase, head),
sys/dev/ic/i82586.c
1178
sc->ie_bus_write16(sc, IE_XBD_NEXT(xbase, head), 0xffff);
sys/dev/ic/i82586.c
1179
sc->ie_bus_write24(sc, IE_XBD_BUF(xbase, head),
sys/dev/ic/i82586.c
1180
IE_XBUF_ADDR(sc, head));
sys/dev/ic/i82586.c
1182
if (++head == NTXBUF)
sys/dev/ic/i82586.c
1183
head = 0;
sys/dev/ic/i82586.c
1184
sc->xchead = head;
sys/dev/ic/i82586.c
884
ieget(struct ie_softc *sc, int head, int totlen)
sys/dev/ic/i82586.c
894
(sc->memcopyin)(sc, &eh, IE_RBUF_ADDR(sc, head),
sys/dev/ic/i82586.c
961
IE_RBUF_ADDR(sc, head) + thisrboff,
sys/dev/ic/i82586.c
972
if (++head == sc->nrxbuf)
sys/dev/ic/i82586.c
973
head = 0;
sys/dev/ic/mvsata.c
1026
u_int8_t head, sect, cmd = 0;
sys/dev/ic/mvsata.c
1114
head = 0;
sys/dev/ic/mvsata.c
1118
head = (ata_bio->blkno >> 24) & 0x0f;
sys/dev/ic/mvsata.c
1119
head |= WDSD_LBA;
sys/dev/ic/mvsata.c
1125
head = blkno % drvp->lp->d_ntracks;
sys/dev/ic/mvsata.c
1128
head |= WDSD_CHS;
sys/dev/ic/mvsata.c
1184
head, sect, nblks,
sys/dev/ic/mvsata.c
3544
uint8_t cmd, head;
sys/dev/ic/mvsata.c
3553
head = WDSD_LBA;
sys/dev/ic/mvsata.c
3555
head = 0;
sys/dev/ic/mvsata.c
3561
head |= ((ata_bio->blkno >> 24) & 0xf);
sys/dev/ic/mvsata.c
3609
htole16(CRQB_ATACOMMAND(CRQB_ATACOMMAND_DEVICE, head));
sys/dev/ic/ninjascsi32.c
1649
struct njsc32_cmd_head *head;
sys/dev/ic/ninjascsi32.c
1657
head = &sc->sc_targets[sc->sc_reselid].t_lus[sc->sc_resellun].lu_q;
sys/dev/ic/ninjascsi32.c
1661
TAILQ_FOREACH(cmd, head, c_q) {
sys/dev/ic/ninjascsi32.c
1664
TAILQ_REMOVE(head, cmd, c_q);
sys/dev/ic/sl811hs.c
1938
int head;
sys/dev/ic/sl811hs.c
2068
head = Q_CALLBACKS;
sys/dev/ic/sl811hs.c
2074
head = Q_NEXT_CB;
sys/dev/ic/sl811hs.c
2102
head = Q_CALLBACKS;
sys/dev/ic/sl811hs.c
2104
head = Q_NEXT_CB;
sys/dev/ic/sl811hs.c
2135
head = Q_CB;
sys/dev/ic/sl811hs.c
2137
head = Q_CALLBACKS;
sys/dev/ic/sl811hs.c
2155
head = Q_CB;
sys/dev/ic/sl811hs.c
2183
head = Q_CALLBACKS;
sys/dev/ic/sl811hs.c
2187
if (head == Q_CALLBACKS) {
sys/dev/ic/sl811hs.c
2197
enter_q(t, spipe, head);
sys/dev/ic/smc90cx6.c
500
struct mbuf *m, *dst, *head;
sys/dev/ic/smc90cx6.c
510
head = 0;
sys/dev/ic/smc90cx6.c
558
head = m;
sys/dev/ic/smc90cx6.c
559
ah = mtod(head, struct arc_header *);
sys/dev/ic/smc90cx6.c
601
if_percpuq_enqueue((&sc->sc_arccom.ac_if)->if_percpuq, head);
sys/dev/ic/smc90cx6.c
603
head = NULL;
sys/dev/ic/smc90cx6.c
607
m_freem(head);
sys/dev/ic/wdc.c
1806
u_int16_t cylin, u_int8_t head, u_int8_t sector, u_int8_t count,
sys/dev/ic/wdc.c
1815
command, cylin, head, sector, count, features), DEBUG_FUNCS);
sys/dev/ic/wdc.c
1822
WDSD_IBM | (drive << 4) | head);
sys/dev/isa/fd.c
1057
int read, head, sec, i, nblks;
sys/dev/isa/fd.c
1154
head = sec / type->sectrac;
sys/dev/isa/fd.c
1155
sec -= head * type->sectrac;
sys/dev/isa/fd.c
1159
block = (fd->sc_cylin * type->heads + head)
sys/dev/isa/fd.c
1178
head, sec, nblks);
sys/dev/isa/fd.c
1187
out_fdc(iot, ioh, (head << 2) | fd->sc_drive);
sys/dev/isa/fd.c
1197
out_fdc(iot, ioh, (head << 2) | fd->sc_drive);
sys/dev/isa/fd.c
1199
out_fdc(iot, ioh, head);
sys/dev/isa/fd.c
1551
if (form_cmd->head >= fd->sc_type->heads ||
sys/dev/isa/fd.c
1557
fd_formb->head = form_cmd->head;
sys/dev/isa/fd.c
1574
fd_formb->fd_formb_headno(i) = form_cmd->head;
sys/dev/isa/fd.c
1624
+ finfo->head * type->sectrac) * FDC_BSIZE / DEV_BSIZE;
sys/dev/isa/fdreg.h
105
int cyl, head;
sys/dev/marvell/mvxpsec.c
2233
paddr_t head;
sys/dev/marvell/mvxpsec.c
2261
head = mv_p->dma_ring.dma_head->phys_addr;
sys/dev/marvell/mvxpsec.c
2273
MVXPSEC_WRITE(sc, MV_TDMA_NXT, head);
sys/dev/mca/edc_mca.c
861
u_int8_t head;
sys/dev/mca/edc_mca.c
882
head = track % ed->heads;
sys/dev/mca/edc_mca.c
889
cmd_args[2] = ((cyl & 0x1f) << 11) | (head << 5) | sector;
sys/dev/ofw/ofnet.c
148
struct mbuf *m, **mp, *head;
sys/dev/ofw/ofnet.c
185
head = 0;
sys/dev/ofw/ofnet.c
186
mp = &head;
sys/dev/ofw/ofnet.c
189
if (head) {
sys/dev/ofw/ofnet.c
193
m_freem(head);
sys/dev/ofw/ofnet.c
194
head = 0;
sys/dev/ofw/ofnet.c
204
m_freem(head);
sys/dev/ofw/ofnet.c
205
head = 0;
sys/dev/ofw/ofnet.c
218
if (head == NULL) {
sys/dev/ofw/ofnet.c
233
if (head == 0)
sys/dev/ofw/ofnet.c
236
if_percpuq_enqueue(ifp->if_percpuq, head);
sys/dev/pci/cxgb/cxgb_adapter.h
169
struct mbuf *head;
sys/dev/pci/cxgb/cxgb_lro.c
100
if (s->head) {
sys/dev/pci/cxgb/cxgb_lro.c
101
if (lro_match(s->head, ih, th))
sys/dev/pci/cxgb/cxgb_lro.c
164
s->head = m;
sys/dev/pci/cxgb/cxgb_lro.c
176
struct mbuf *sm = s->head;
sys/dev/pci/cxgb/cxgb_lro.c
198
s->head = m;
sys/dev/pci/cxgb/cxgb_lro.c
201
s->head = NULL;
sys/dev/pci/cxgb/cxgb_lro.c
218
if (__predict_true(!s->head))
sys/dev/pci/cxgb/cxgb_lro.c
233
if (!s->head)
sys/dev/pci/cxgb/cxgb_lro.c
246
struct mbuf *sm = s->head;
sys/dev/pci/cxgb/cxgb_lro.c
355
if (__predict_false(s->head->m_pkthdr.len + pi->ifp->if_mtu > 65535)) {
sys/dev/pci/cxgb/cxgb_lro.c
382
if (s->head)
sys/dev/pci/cxgb/cxgb_mbuf.h
36
struct mbuf *head;
sys/dev/pci/cxgb/cxgb_mbuf.h
45
l->head = l->tail = NULL;
sys/dev/pci/cxgb/cxgb_mbuf.h
51
return (l->head == NULL);
sys/dev/pci/cxgb/cxgb_mbuf.h
74
m = l->head;
sys/dev/pci/cxgb/cxgb_mbuf.h
78
l->head = m->m_nextpkt;
sys/dev/pci/cxgb/cxgb_mbuf.h
88
return (l->head);
sys/dev/pci/cxgb/cxgb_osdep.c
115
struct mbuf *m0, *head = NULL;
sys/dev/pci/cxgb/cxgb_osdep.c
152
m_freem(head);
sys/dev/pci/cxgb/cxgb_osdep.c
162
m0->m_next = head;
sys/dev/pci/cxgb/cxgb_osdep.c
164
head = m0;
sys/dev/pci/cxgb/cxgb_osdep.c
173
m->m_next = head;
sys/dev/pci/cxgb/cxgb_osdep.c
174
head = m;
sys/dev/pci/gffb.c
165
gffb_write_crtc(struct gffb_softc *sc, int head, uint8_t reg, uint8_t val)
sys/dev/pci/gffb.c
167
if (head == 0) {
sys/dev/pci/gffb.c
177
gffb_read_crtc(struct gffb_softc *sc, int head, uint8_t reg)
sys/dev/pci/gffb.c
179
if (head == 0) {
sys/dev/pci/if_aq.c
6028
u_int head = AQ_READ_REG_BIT(sc,
sys/dev/pci/if_aq.c
6035
__func__, txring->txr_index, head, tail);
sys/dev/pci/if_iwn.c
2133
char *head;
sys/dev/pci/if_iwn.c
2158
head = (char *)(mpdu + 1);
sys/dev/pci/if_iwn.c
2161
head = (char *)(stat + 1) + stat->cfg_phy_len;
sys/dev/pci/if_iwn.c
2165
flags = le32toh(*(uint32_t *)(head + len));
sys/dev/pci/if_iwn.c
2223
m->m_data = head;
sys/dev/pci/if_ixl.c
2450
txq.head = htole16(txr->txr_cons);
sys/dev/pci/if_ixl.c
263
uint16_t head;
sys/dev/pci/if_ixl.c
295
{ offsetof(struct ixl_hmc_rxq, head), 13, 0 },
sys/dev/pci/if_ixl.c
3073
rxq.head = htole16(rxr->rxr_cons);
sys/dev/pci/if_ixl.c
321
uint16_t head;
sys/dev/pci/if_ixl.c
345
{ offsetof(struct ixl_hmc_txq, head), 13, 0 },
sys/dev/pci/if_wpi.c
1484
struct wpi_rx_head *head;
sys/dev/pci/if_wpi.c
1502
head = (struct wpi_rx_head *)((char *)(stat + 1) + stat->len);
sys/dev/pci/if_wpi.c
1503
tail = (struct wpi_rx_tail *)((char *)(head + 1) + le16toh(head->len));
sys/dev/pci/if_wpi.c
1507
le16toh(head->len), (int8_t)stat->rssi, head->rate, head->chan,
sys/dev/pci/if_wpi.c
1522
data_off = (char*)(head + 1) - mtod(data->m, char*);
sys/dev/pci/if_wpi.c
1573
m->m_pkthdr.len = m->m_len = le16toh(head->len);
sys/dev/pci/if_wpi.c
1585
htole16(ic->ic_channels[head->chan].ic_freq);
sys/dev/pci/if_wpi.c
1587
htole16(ic->ic_channels[head->chan].ic_flags);
sys/dev/pci/if_wpi.c
1591
tap->wr_antenna = (le16toh(head->flags) >> 4) & 0xf;
sys/dev/pci/if_wpi.c
1592
switch (head->rate) {
sys/dev/pci/if_wpi.c
1610
if (le16toh(head->flags) & 0x4)
sys/dev/pci/ismt.c
198
uint8_t head;
sys/dev/pci/ismt.c
324
desc = &sc->desc[sc->head++];
sys/dev/pci/ismt.c
325
if (sc->head == ISMT_DESC_ENTRIES)
sys/dev/pci/ismt.c
326
sc->head = 0;
sys/dev/pci/ismt.c
354
fmhp = sc->head << 16;
sys/dev/pci/ixgbe/if_bypass.c
578
u32 cmd, base, head;
sys/dev/pci/ixgbe/if_bypass.c
615
head = (status & BYPASS_CTL2_HEAD_M) >> BYPASS_CTL2_HEAD_SHIFT;
sys/dev/pci/ixgbe/if_bypass.c
618
log_off = base + (head * 5);
sys/dev/pci/ixgbe/if_bypass.c
654
head = head ? head - 1 : BYPASS_MAX_LOGS;
sys/dev/pci/ixgbe/if_bypass.c
655
log_off = base + (head * 5);
sys/dev/pci/ixgbe/ixgbe_netmap.c
202
u_int const head = kring->rhead;
sys/dev/pci/ixgbe/ixgbe_netmap.c
253
if (nm_i != head) { /* we have new packets to send */
sys/dev/pci/ixgbe/ixgbe_netmap.c
259
for (n = 0; nm_i != head; n++) {
sys/dev/pci/ixgbe/ixgbe_netmap.c
298
kring->nr_hwcur = head;
sys/dev/pci/ixgbe/ixgbe_netmap.c
390
u_int const head = kring->rhead;
sys/dev/pci/ixgbe/ixgbe_netmap.c
397
if (head > lim)
sys/dev/pci/ixgbe/ixgbe_netmap.c
459
if (nm_i != head) {
sys/dev/pci/ixgbe/ixgbe_netmap.c
461
for (n = 0; nm_i != head; n++) {
sys/dev/pci/ixgbe/ixgbe_netmap.c
484
kring->nr_hwcur = head;
sys/dev/pci/pccbb.c
2888
struct pccbb_win_chain_head *head;
sys/dev/pci/pccbb.c
2891
head = &sc->sc_iowindow;
sys/dev/pci/pccbb.c
2894
head = &sc->sc_memwindow;
sys/dev/pci/pccbb.c
2901
if (pccbb_winlist_insert(head, addr, size, bsh, flags)) {
sys/dev/pci/pccbb.c
2904
(head == &sc->sc_memwindow) ? "mem" : "io");
sys/dev/pci/pccbb.c
2915
struct pccbb_win_chain_head *head;
sys/dev/pci/pccbb.c
2918
head = &sc->sc_iowindow;
sys/dev/pci/pccbb.c
2921
head = &sc->sc_memwindow;
sys/dev/pci/pccbb.c
2925
if (pccbb_winlist_delete(head, bsh, size)) {
sys/dev/pci/pccbb.c
2928
(head == &sc->sc_memwindow) ? "mem" : "io");
sys/dev/pci/pccbb.c
2936
pccbb_winlist_insert(struct pccbb_win_chain_head *head, bus_addr_t start,
sys/dev/pci/pccbb.c
2948
TAILQ_FOREACH(chainp, head, wc_list) {
sys/dev/pci/pccbb.c
2953
TAILQ_INSERT_AFTER(head, chainp, elem, wc_list);
sys/dev/pci/pccbb.c
2955
TAILQ_INSERT_TAIL(head, elem, wc_list);
sys/dev/pci/pccbb.c
2960
pccbb_winlist_delete(struct pccbb_win_chain_head *head, bus_space_handle_t bsh,
sys/dev/pci/pccbb.c
2965
TAILQ_FOREACH(chainp, head, wc_list) {
sys/dev/pci/pccbb.c
2981
TAILQ_REMOVE(head, chainp, wc_list);
sys/dev/pci/qat/qat_ae.c
1937
struct mof_uof_hdr *muh, struct mof_uof_chunk_hdr *head,
sys/dev/pci/qat/qat_ae.c
1945
struct mof_uof_chunk_hdr *much = &head[i];
sys/dev/pci/virtio.c
1000
return head;
sys/dev/pci/virtio.c
978
uint16_t head, tail;
sys/dev/pci/virtio.c
983
head = tail = virtio_rw16(sc, vq->vq_free_idx);
sys/dev/pcmcia/if_cnwioctl.h
98
int head;
sys/dev/qbus/if_dmc.c
196
#define QUEUE_AT_HEAD(qp, head, tail) \
sys/dev/qbus/if_dmc.c
197
(qp)->qp_next = (head); \
sys/dev/qbus/if_dmc.c
198
(head) = (qp); \
sys/dev/qbus/if_dmc.c
200
(tail) = (head)
sys/dev/qbus/if_dmc.c
202
#define QUEUE_AT_TAIL(qp, head, tail) \
sys/dev/qbus/if_dmc.c
206
(head) = (qp); \
sys/dev/qbus/if_dmc.c
210
#define DEQUEUE(head, tail) \
sys/dev/qbus/if_dmc.c
211
(head) = (head)->qp_next;\
sys/dev/qbus/if_dmc.c
212
if ((head) == (struct dmc_command *) 0)\
sys/dev/qbus/if_dmc.c
213
(tail) = (head)
sys/dev/qbus/qd.c
782
eq_header[unit]->header.head = 0;
sys/dev/qbus/qduser.h
212
#define ISEMPTY(eq) ((eq)->header.head == (eq)->header.tail)
sys/dev/qbus/qduser.h
213
#define GETBEGIN(eq) (&(eq)->header.events[(eq)->header.head])
sys/dev/qbus/qduser.h
223
#define GETEND(eq) (++(eq)->header.head >= (eq)->header.size ? \
sys/dev/qbus/qduser.h
224
(eq)->header.head = 0 : 0 )
sys/dev/qbus/qduser.h
231
#define ISFULL(eq) ((eq)->header.tail+1 == (eq)->header.head || \
sys/dev/qbus/qduser.h
233
(eq)->header.head == 0))
sys/dev/qbus/qevent.h
95
int head; /* index into events */
sys/dev/raidframe/rf_paritylog.c
150
RF_ParityLogData_t ** head,
sys/dev/raidframe/rf_paritylog.c
164
if (*head) {
sys/dev/raidframe/rf_paritylog.c
166
RF_ASSERT((*head)->prev == NULL);
sys/dev/raidframe/rf_paritylog.c
168
data->next = *head;
sys/dev/raidframe/rf_paritylog.c
169
(*head)->prev = data;
sys/dev/raidframe/rf_paritylog.c
170
*head = data;
sys/dev/raidframe/rf_paritylog.c
173
RF_ASSERT(*head == NULL);
sys/dev/raidframe/rf_paritylog.c
175
*head = data;
sys/dev/raidframe/rf_paritylog.c
178
RF_ASSERT((*head)->prev == NULL);
sys/dev/raidframe/rf_paritylog.c
186
RF_ParityLogData_t ** head,
sys/dev/raidframe/rf_paritylog.c
200
if (*head == *tail) {
sys/dev/raidframe/rf_paritylog.c
202
*head = NULL;
sys/dev/raidframe/rf_paritylog.c
207
RF_ASSERT((*head)->prev == NULL);
sys/dev/raidframe/rf_paritylog.c
215
if (*head) {
sys/dev/raidframe/rf_paritylog.c
216
RF_ASSERT((*head)->prev == NULL);
sys/dev/raidframe/rf_paritylog.c
228
RF_ParityLogData_t ** head,
sys/dev/raidframe/rf_paritylog.c
249
*head = data;
sys/dev/raidframe/rf_paritylog.c
251
(*head)->prev = NULL;
sys/dev/raidframe/rf_paritylog.c
254
RF_ASSERT((*head)->prev == NULL);
sys/dev/raidframe/rf_paritylog.c
339
RF_ParityLogData_t ** head,
sys/dev/raidframe/rf_paritylog.c
359
if (*head == *tail) {
sys/dev/raidframe/rf_paritylog.c
361
*head = NULL;
sys/dev/raidframe/rf_paritylog.c
367
RF_ASSERT((*head)->prev == NULL);
sys/dev/raidframe/rf_paritylog.c
371
if (w == *head) {
sys/dev/raidframe/rf_paritylog.c
373
*head = (*head)->next;
sys/dev/raidframe/rf_paritylog.c
374
(*head)->prev = NULL;
sys/dev/raidframe/rf_paritylog.c
375
RF_ASSERT((*head)->prev == NULL);
sys/dev/raidframe/rf_paritylog.c
382
RF_ASSERT((*head)->prev == NULL);
sys/dev/raidframe/rf_paritylog.c
402
RF_ParityLogData_t ** head,
sys/dev/raidframe/rf_paritylog.c
414
logDataList = DequeueParityLogData(raidPtr, head, tail, RF_TRUE);
sys/dev/raidframe/rf_paritylog.c
418
logData->next = rf_SearchAndDequeueParityLogData(raidPtr, regionID, head, tail, RF_TRUE);
sys/dev/raidframe/rf_paritylog.c
421
logData->next = rf_SearchAndDequeueParityLogData(raidPtr, regionID, head, tail, RF_TRUE);
sys/dev/raidframe/rf_paritylog.h
172
RF_RegionId_t regionID, RF_ParityLogData_t ** head,
sys/dev/raidframe/rf_reconmap.c
100
p->head = 0;
sys/dev/raidframe/rf_reconmap.c
165
if (mapPtr->status[mapPtr->head]!=RU_ALL) {
sys/dev/raidframe/rf_reconmap.c
169
raidPtr->raidid, mapPtr->head);
sys/dev/raidframe/rf_reconmap.c
182
mapPtr->status[mapPtr->head]=RU_NOTHING;
sys/dev/raidframe/rf_reconmap.c
185
mapPtr->head++;
sys/dev/raidframe/rf_reconmap.c
186
if (mapPtr->head >= mapPtr->status_size)
sys/dev/raidframe/rf_reconmap.c
187
mapPtr->head = 0;
sys/dev/raidframe/rf_reconmap.c
191
ru = i - mapPtr->low_ru + mapPtr->head;
sys/dev/raidframe/rf_reconmap.c
197
raidPtr->raidid, i, ru, mapPtr->head, mapPtr->low_ru, mapPtr->high_ru);
sys/dev/raidframe/rf_reconmap.c
362
i = i - mapPtr->low_ru + mapPtr->head;
sys/dev/raidframe/rf_reconmap.h
59
RF_ReconUnitCount_t head; /* the position in the array where
sys/dev/scsipi/cd.c
122
int head; /* bytes skipped at the start */
sys/dev/scsipi/cd.c
579
memcpy(obp->b_data, (char *)bp->b_data + bounce->head, bounce->lcount);
sys/dev/scsipi/cd.c
671
bounce->head = skip * DEV_BSIZE;
sys/dev/scsipi/cd.c
672
bounce->lcount = imin(count - bounce->head, bp->b_bcount);
sys/dev/scsipi/scsi_disk.h
127
u_int8_t head;
sys/dev/scsipi/scsi_disk.h
134
u_int8_t head;
sys/dev/usb/ehci.c
2170
ehci_add_qh(ehci_softc_t *sc, ehci_soft_qh_t *sqh, ehci_soft_qh_t *head)
sys/dev/usb/ehci.c
2177
usb_syncmem(&head->dma, head->offs + offsetof(ehci_qh_t, qh_link),
sys/dev/usb/ehci.c
2178
sizeof(head->qh->qh_link), BUS_DMASYNC_POSTWRITE);
sys/dev/usb/ehci.c
2180
sqh->next = head->next;
sys/dev/usb/ehci.c
2181
sqh->qh->qh_link = head->qh->qh_link;
sys/dev/usb/ehci.c
2186
head->next = sqh;
sys/dev/usb/ehci.c
2187
head->qh->qh_link = htole32(sqh->physaddr | EHCI_LINK_QH);
sys/dev/usb/ehci.c
2189
usb_syncmem(&head->dma, head->offs + offsetof(ehci_qh_t, qh_link),
sys/dev/usb/ehci.c
2190
sizeof(head->qh->qh_link), BUS_DMASYNC_PREWRITE);
sys/dev/usb/ehci.c
2203
ehci_rem_qh(ehci_softc_t *sc, ehci_soft_qh_t *sqh, ehci_soft_qh_t *head)
sys/dev/usb/ehci.c
2210
for (p = head; p != NULL && p->next != sqh; p = p->next)
sys/dev/usb/ehci.c
3365
ehci_close_pipe(struct usbd_pipe *pipe, ehci_soft_qh_t *head)
sys/dev/usb/ehci.c
3373
ehci_rem_qh(sc, sqh, head);
sys/dev/usb/if_otus.c
1852
struct ar_rx_head *head;
sys/dev/usb/if_otus.c
1876
while (len >= sizeof(*head)) {
sys/dev/usb/if_otus.c
1877
head = (void *)buf;
sys/dev/usb/if_otus.c
1878
if (__predict_false(head->tag != htole16(AR_RX_HEAD_TAG))) {
sys/dev/usb/if_otus.c
1880
le16toh(head->tag));
sys/dev/usb/if_otus.c
1883
hlen = le16toh(head->len);
sys/dev/usb/if_otus.c
1884
if (__predict_false(sizeof(*head) + hlen > len)) {
sys/dev/usb/if_otus.c
1890
otus_sub_rxeof(sc, (uint8_t *)&head[1], hlen);
sys/dev/usb/if_otus.c
1893
hlen = roundup2(sizeof(*head) + hlen, 4);
sys/dev/usb/if_otus.c
1949
struct ar_tx_head *head;
sys/dev/usb/if_otus.c
2032
head = (void *)data->buf;
sys/dev/usb/if_otus.c
2033
head->len = htole16(m->m_pkthdr.len + IEEE80211_CRC_LEN);
sys/dev/usb/if_otus.c
2034
head->macctl = htole16(macctl);
sys/dev/usb/if_otus.c
2035
head->phyctl = htole32(phyctl);
sys/dev/usb/if_otus.c
2050
xferlen = sizeof(*head) + m->m_pkthdr.len;
sys/dev/usb/if_otus.c
2051
m_copydata(m, 0, m->m_pkthdr.len, (void *)&head[1]);
sys/dev/usb/if_otus.c
2054
head->len, head->macctl, head->phyctl, otus_rates[ridx].rate);
sys/dev/usb/if_upgtvar.h
190
uint16_t head;
sys/dev/usb/ohci.c
1835
ohci_add_ed(ohci_softc_t *sc, ohci_soft_ed_t *sed, ohci_soft_ed_t *head)
sys/dev/usb/ohci.c
1838
DPRINTFN(8, "sed=%#jx head=%#jx", (uintptr_t)sed, (uintptr_t)head, 0,
sys/dev/usb/ohci.c
1843
usb_syncmem(&head->dma, head->offs + offsetof(ohci_ed_t, ed_nexted),
sys/dev/usb/ohci.c
1844
sizeof(head->ed->ed_nexted),
sys/dev/usb/ohci.c
1846
sed->next = head->next;
sys/dev/usb/ohci.c
1847
sed->ed->ed_nexted = head->ed->ed_nexted;
sys/dev/usb/ohci.c
1851
head->next = sed;
sys/dev/usb/ohci.c
1852
head->ed->ed_nexted = HTOO32(sed->physaddr);
sys/dev/usb/ohci.c
1853
usb_syncmem(&head->dma, head->offs + offsetof(ohci_ed_t, ed_nexted),
sys/dev/usb/ohci.c
1854
sizeof(head->ed->ed_nexted),
sys/dev/usb/ohci.c
1862
ohci_rem_ed(ohci_softc_t *sc, ohci_soft_ed_t *sed, ohci_soft_ed_t *head)
sys/dev/usb/ohci.c
1869
for (p = head; p != NULL && p->next != sed; p = p->next)
sys/dev/usb/ohci.c
2210
ohci_close_pipe(struct usbd_pipe *pipe, ohci_soft_ed_t *head)
sys/dev/usb/ohci.c
2242
ohci_rem_ed(sc, sed, head);
sys/dev/vme/xy.c
1297
iopb->sect = iopb->head = iopb->cyl = 0;
sys/dev/vme/xy.c
1301
iopb->head = block % iorq->xy->nhead;
sys/dev/vme/xy.c
1923
iopb->head =
sys/dev/vme/xy.c
1995
iopb->cyl, iopb->head, iopb->sect);
sys/dev/vme/xy.c
2047
iopb->head = i / iorq->xy->nhead;
sys/dev/vme/xyreg.h
147
volatile u_char head; /* head # */
sys/dist/pf/net/pf.c
1323
while (head[i] != cur) { \
sys/dist/pf/net/pf.c
1324
head[i]->skip[i].ptr = cur; \
sys/dist/pf/net/pf.c
1325
head[i] = TAILQ_NEXT(head[i], entries); \
sys/dist/pf/net/pf.c
1332
struct pf_rule *cur, *prev, *head[PF_SKIP_COUNT];
sys/dist/pf/net/pf.c
1338
head[i] = cur;
sys/dist/pf/net/pf_ioctl.c
591
tagname2tag(struct pf_tags *head, char *tagname)
sys/dist/pf/net/pf_ioctl.c
596
TAILQ_FOREACH(tag, head, entries)
sys/dist/pf/net/pf_ioctl.c
609
if (!TAILQ_EMPTY(head))
sys/dist/pf/net/pf_ioctl.c
610
for (p = TAILQ_FIRST(head); p != NULL &&
sys/dist/pf/net/pf_ioctl.c
630
TAILQ_INSERT_TAIL(head, tag, entries);
sys/dist/pf/net/pf_ioctl.c
636
tag2tagname(struct pf_tags *head, u_int16_t tagid, char *p)
sys/dist/pf/net/pf_ioctl.c
640
TAILQ_FOREACH(tag, head, entries)
sys/dist/pf/net/pf_ioctl.c
648
tag_unref(struct pf_tags *head, u_int16_t tag)
sys/dist/pf/net/pf_ioctl.c
655
for (p = TAILQ_FIRST(head); p != NULL; p = next) {
sys/dist/pf/net/pf_ioctl.c
659
TAILQ_REMOVE(head, p, entries);
sys/dist/pf/net/pf_table.c
1008
struct radix_node_head *head = (void *)0xdeadb;
sys/dist/pf/net/pf_table.c
1013
head = kt->pfrkt_ip4;
sys/dist/pf/net/pf_table.c
1015
head = kt->pfrkt_ip6;
sys/dist/pf/net/pf_table.c
1020
rn = rn_addroute(&ke->pfrke_sa, &mask, head, ke->pfrke_node);
sys/dist/pf/net/pf_table.c
1022
rn = rn_addroute(&ke->pfrke_sa, NULL, head, ke->pfrke_node);
sys/dist/pf/net/pf_table.c
1033
struct radix_node_head *head = (void *)0xdeadb;
sys/dist/pf/net/pf_table.c
1037
head = kt->pfrkt_ip4;
sys/dist/pf/net/pf_table.c
1039
head = kt->pfrkt_ip6;
sys/dist/pf/net/pf_table.c
1044
rn = rn_delete(&ke->pfrke_sa, &mask, head);
sys/dist/pf/net/pf_table.c
1046
rn = rn_delete(&ke->pfrke_sa, NULL, head);
sys/dist/pf/net/pf_table.c
805
struct radix_node_head *head = (void *)0xdeadb;
sys/dist/pf/net/pf_table.c
812
head = kt->pfrkt_ip4;
sys/dist/pf/net/pf_table.c
815
head = kt->pfrkt_ip6;
sys/dist/pf/net/pf_table.c
820
ke = (struct pfr_kentry *)rn_lookup(&sa, &mask, head);
sys/dist/pf/net/pf_table.c
825
ke = (struct pfr_kentry *)rn_match(&sa, head);
sys/fs/nfs/common/nfs.h
675
#define LIST_PREPEND(head, phead, lelm, field) do { \
sys/fs/nfs/common/nfs.h
676
if ((head)->lh_first != NULL) { \
sys/fs/nfs/common/nfs.h
677
(lelm)->field.le_next = (head)->lh_first; \
sys/fs/nfs/common/nfs.h
681
(head)->lh_first = (phead)->lh_first; \
sys/fs/nfs/common/nfs.h
682
(head)->lh_first->field.le_prev = &(head)->lh_first; \
sys/fs/nfs/common/nfs_commonsubs.c
3716
SLIST_HEAD(, list) head;
sys/fs/nfs/common/nfs_commonsubs.c
3762
SLIST_INIT(&head);
sys/fs/nfs/common/nfs_commonsubs.c
3808
SLIST_INSERT_HEAD(&head, lsp, next);
sys/fs/nfs/common/nfs_commonsubs.c
3829
SLIST_FOREACH_SAFE(lsp, &head, next, nlsp) {
sys/fs/nfs/common/nfsport.h
765
#define LIST_END(head) NULL
sys/fs/nfs/common/nfsport.h
766
#define SLIST_END(head) NULL
sys/fs/nfs/common/nfsport.h
767
#define TAILQ_END(head) NULL
sys/kern/subr_debug.c
103
for (i = *head; i != NULL; i = i->i_next) {
sys/kern/subr_debug.c
113
i->i_next = *head;
sys/kern/subr_debug.c
114
*head = i;
sys/kern/subr_debug.c
126
freecheck_in(void **head, void *addr)
sys/kern/subr_debug.c
137
for (i = *head, pp = head; i != NULL; pp = &i->i_next, i = i->i_next) {
sys/kern/subr_debug.c
93
freecheck_out(void **head, void *addr)
sys/kern/subr_pool.c
2551
pool_pcg_get(pcg_t *volatile *head, pcg_t **pcgp)
sys/kern/subr_pool.c
2556
for (o = atomic_load_relaxed(head);; o = n) {
sys/kern/subr_pool.c
2560
n = atomic_load_relaxed(head);
sys/kern/subr_pool.c
2567
n = atomic_cas_ptr(head, o, __UNCONST(&pcg_dummy));
sys/kern/subr_pool.c
2572
atomic_store_release(head, n);
sys/kern/subr_pool.c
2586
pool_pcg_trunc(pcg_t *volatile *head)
sys/kern/subr_pool.c
2592
for (o = atomic_load_relaxed(head);; o = n) {
sys/kern/subr_pool.c
2596
n = atomic_load_relaxed(head);
sys/kern/subr_pool.c
2599
n = atomic_cas_ptr(head, o, NULL);
sys/kern/subr_pool.c
2616
pool_pcg_put(pcg_t *volatile *head, pcg_t *pcg)
sys/kern/subr_pool.c
2621
for (o = atomic_load_relaxed(head);; o = n) {
sys/kern/subr_pool.c
2625
n = atomic_load_relaxed(head);
sys/kern/subr_pool.c
2630
n = atomic_cas_ptr(head, o, pcg);
sys/kern/subr_thmap.c
975
thmap_gc_t *head, *gc;
sys/kern/subr_thmap.c
982
head = atomic_load_relaxed(&thmap->gc_list);
sys/kern/subr_thmap.c
983
gc->next = head; // not yet published
sys/kern/subr_thmap.c
986
if (!atomic_compare_exchange_weak_explicit_ptr(&thmap->gc_list, &head, gc,
sys/kern/sys_futex.c
1777
void *head = SCARG(uap, head);
sys/kern/sys_futex.c
1781
if ((uintptr_t)head % sizeof(u_long))
sys/kern/sys_futex.c
1784
l->l_robust_head = (uintptr_t)head;
sys/kern/sys_futex.c
1803
void *head;
sys/kern/sys_futex.c
1807
error = futex_robust_head_lookup(l, SCARG(uap, lwpid), &head);
sys/kern/sys_futex.c
1812
error = copyout(&head, SCARG(uap, headp), sizeof(head));
sys/kern/systrace_args.c
1219
uarg[0] = (intptr_t) SCARG(p, head); /* void * */
sys/kern/uipc_socket2.c
183
struct socket *head;
sys/kern/uipc_socket2.c
185
head = so->so_head;
sys/kern/uipc_socket2.c
188
KASSERT(head == NULL || solocked2(so, head));
sys/kern/uipc_socket2.c
192
if (head && so->so_onq == &head->so_q0) {
sys/kern/uipc_socket2.c
199
soqinsque(head, so, 1);
sys/kern/uipc_socket2.c
200
sorwakeup(head);
sys/kern/uipc_socket2.c
201
cv_broadcast(&head->so_cv);
sys/kern/uipc_socket2.c
204
head->so_accf->so_accept_filter->accf_callback;
sys/kern/uipc_socket2.c
205
so->so_upcallarg = head->so_accf->so_accept_filter_arg;
sys/kern/uipc_socket2.c
267
sonewconn(struct socket *head, bool soready)
sys/kern/uipc_socket2.c
272
KASSERT(solocked(head));
sys/kern/uipc_socket2.c
274
if (head->so_qlen + head->so_q0len > 3 * head->so_qlimit / 2) {
sys/kern/uipc_socket2.c
279
if (head->so_accf == NULL) {
sys/kern/uipc_socket2.c
286
for (so2 = TAILQ_FIRST(&head->so_q0);
sys/kern/uipc_socket2.c
307
if ((head->so_options & SO_ACCEPTFILTER) != 0) {
sys/kern/uipc_socket2.c
315
so->so_type = head->so_type;
sys/kern/uipc_socket2.c
316
so->so_options = head->so_options & ~SO_ACCEPTCONN;
sys/kern/uipc_socket2.c
317
so->so_linger = head->so_linger;
sys/kern/uipc_socket2.c
318
so->so_state = head->so_state | SS_NOFDREF;
sys/kern/uipc_socket2.c
319
so->so_proto = head->so_proto;
sys/kern/uipc_socket2.c
320
so->so_timeo = head->so_timeo;
sys/kern/uipc_socket2.c
321
so->so_pgid = head->so_pgid;
sys/kern/uipc_socket2.c
322
so->so_send = head->so_send;
sys/kern/uipc_socket2.c
323
so->so_receive = head->so_receive;
sys/kern/uipc_socket2.c
324
so->so_uidinfo = head->so_uidinfo;
sys/kern/uipc_socket2.c
325
so->so_egid = head->so_egid;
sys/kern/uipc_socket2.c
326
so->so_cpid = head->so_cpid;
sys/kern/uipc_socket2.c
335
mutex_obj_hold(head->so_lock);
sys/kern/uipc_socket2.c
336
so->so_lock = head->so_lock;
sys/kern/uipc_socket2.c
342
so->so_mowner = head->so_mowner;
sys/kern/uipc_socket2.c
343
so->so_rcv.sb_mowner = head->so_rcv.sb_mowner;
sys/kern/uipc_socket2.c
344
so->so_snd.sb_mowner = head->so_snd.sb_mowner;
sys/kern/uipc_socket2.c
346
if (soreserve(so, head->so_snd.sb_hiwat, head->so_rcv.sb_hiwat)) {
sys/kern/uipc_socket2.c
349
so->so_snd.sb_lowat = head->so_snd.sb_lowat;
sys/kern/uipc_socket2.c
350
so->so_rcv.sb_lowat = head->so_rcv.sb_lowat;
sys/kern/uipc_socket2.c
351
so->so_rcv.sb_timeo = head->so_rcv.sb_timeo;
sys/kern/uipc_socket2.c
352
so->so_snd.sb_timeo = head->so_snd.sb_timeo;
sys/kern/uipc_socket2.c
353
so->so_rcv.sb_flags |= head->so_rcv.sb_flags & (SB_AUTOSIZE | SB_ASYNC);
sys/kern/uipc_socket2.c
354
so->so_snd.sb_flags |= head->so_snd.sb_flags & (SB_AUTOSIZE | SB_ASYNC);
sys/kern/uipc_socket2.c
368
KASSERT(solocked(head));
sys/kern/uipc_socket2.c
371
KASSERT(solocked2(head, so));
sys/kern/uipc_socket2.c
377
soqinsque(head, so, soqueue);
sys/kern/uipc_socket2.c
380
sorwakeup(head);
sys/kern/uipc_socket2.c
381
cv_broadcast(&head->so_cv);
sys/kern/uipc_socket2.c
431
soqinsque(struct socket *head, struct socket *so, int q)
sys/kern/uipc_socket2.c
434
KASSERT(solocked2(head, so));
sys/kern/uipc_socket2.c
438
so->so_head = head;
sys/kern/uipc_socket2.c
440
head->so_q0len++;
sys/kern/uipc_socket2.c
441
so->so_onq = &head->so_q0;
sys/kern/uipc_socket2.c
443
head->so_qlen++;
sys/kern/uipc_socket2.c
444
so->so_onq = &head->so_q;
sys/kern/uipc_socket2.c
458
struct socket *head = so->so_head;
sys/kern/uipc_socket2.c
463
KASSERT(head != NULL);
sys/kern/uipc_socket2.c
466
if (so->so_onq != &head->so_q0)
sys/kern/uipc_socket2.c
468
head->so_q0len--;
sys/kern/uipc_socket2.c
470
if (so->so_onq != &head->so_q)
sys/kern/uipc_socket2.c
472
head->so_qlen--;
sys/kern/uipc_socket2.c
474
KASSERT(solocked2(so, head));
sys/kern/uipc_syscalls.c
1631
do_sys_peeloff(struct socket *head, void *data)
sys/kern/uipc_syscalls.c
1643
error = sctp_can_peel_off(head, name);
sys/kern/uipc_syscalls.c
1665
so = sctp_get_peeloff(head, name, &error);
sys/kern/uipc_syscalls.c
1682
so->so_cred = kauth_cred_hold(head->so_cred);
sys/kern/vfs_lockf.c
414
struct lockf **head = unlock->lf_head;
sys/kern/vfs_lockf.c
415
struct lockf *lf = *head;
sys/kern/vfs_lockf.c
427
prev = head;
sys/kern/vfs_lockf.c
509
struct lockf **head = lock->lf_head;
sys/kern/vfs_lockf.c
635
prev = head;
sys/kern/vfs_lockf.c
636
block = *head;
sys/kern/vfs_lockf.c
795
lf_advlock(struct vop_advlock_args *ap, struct lockf **head, off_t size)
sys/kern/vfs_lockf.c
906
if (*head == (struct lockf *)0) {
sys/kern/vfs_lockf.c
919
lock->lf_head = head;
sys/kern/vfs_wapbl.c
1412
wapbl_space_used(size_t avail, off_t head, off_t tail)
sys/kern/vfs_wapbl.c
1416
KASSERT(head == 0);
sys/kern/vfs_wapbl.c
1419
return ((head + (avail - 1) - tail) % avail) + 1;
sys/kern/vfs_wapbl.c
1465
wapbl_space_free(size_t avail, off_t head, off_t tail)
sys/kern/vfs_wapbl.c
1468
return avail - wapbl_space_used(avail, head, tail);
sys/kern/vfs_wapbl.c
1483
off_t head = *headp;
sys/kern/vfs_wapbl.c
1486
KASSERT(delta <= wapbl_space_free(size, head, tail));
sys/kern/vfs_wapbl.c
1487
head = wapbl_advance(size, off, head, delta);
sys/kern/vfs_wapbl.c
1488
if (tail == 0 && head != 0)
sys/kern/vfs_wapbl.c
1490
*headp = head;
sys/kern/vfs_wapbl.c
1506
off_t head = *headp;
sys/kern/vfs_wapbl.c
1509
KASSERT(delta <= wapbl_space_used(size, head, tail));
sys/kern/vfs_wapbl.c
1511
if (head == tail) {
sys/kern/vfs_wapbl.c
1512
head = tail = 0;
sys/kern/vfs_wapbl.c
1514
*headp = head;
sys/kern/vfs_wapbl.c
1537
off_t head;
sys/kern/vfs_wapbl.c
1570
head = wl->wl_head;
sys/kern/vfs_wapbl.c
1581
wapbl_advance_tail(wl->wl_circ_size, wl->wl_circ_off, delta, &head,
sys/kern/vfs_wapbl.c
1584
wapbl_space_used(wl->wl_circ_size, head, tail));
sys/kern/vfs_wapbl.c
1598
error = wapbl_write_commit(wl, head, tail);
sys/kern/vfs_wapbl.c
1602
wl->wl_head = head;
sys/kern/vfs_wapbl.c
1766
off_t head;
sys/kern/vfs_wapbl.c
1860
head = wl->wl_head;
sys/kern/vfs_wapbl.c
1864
&head, &tail);
sys/kern/vfs_wapbl.c
1866
KASSERTMSG(head == off,
sys/kern/vfs_wapbl.c
1869
(intmax_t)head, (intmax_t)tail, (intmax_t)off,
sys/kern/vfs_wapbl.c
1877
&head, &tail);
sys/kern/vfs_wapbl.c
1879
error = wapbl_write_commit(wl, head, tail);
sys/kern/vfs_wapbl.c
1892
wapbl_space_used(wl->wl_circ_size, head, tail),
sys/kern/vfs_wapbl.c
1902
wapbl_space_used(wl->wl_circ_size, head, tail),
sys/kern/vfs_wapbl.c
1912
wl->wl_head = head;
sys/kern/vfs_wapbl.c
2466
wapbl_write_commit(struct wapbl *wl, off_t head, off_t tail)
sys/kern/vfs_wapbl.c
2486
wc->wc_head = head;
sys/kern/vfs_wapbl.c
2496
(intmax_t)head, (intmax_t)tail));
sys/kern/vfs_wapbl.c
2530
error = wapbl_write_commit(wl, head, tail);
sys/kern/vfs_wapbl.c
3213
wapbl_replay_process(struct wapbl_replay *wr, off_t head, off_t tail)
sys/kern/vfs_wapbl.c
3223
while (off != head) {
sys/miscfs/procfs/procfs_vfsops.c
554
struct hashhead *head;
sys/miscfs/procfs/procfs_vfsops.c
564
head = procfs_hashhead(p->p_pid);
sys/miscfs/procfs/procfs_vfsops.c
568
LIST_FOREACH(pfs, head, pfs_hash) {
sys/net/if_llatbl.c
303
llentries_unlink(struct lltable *llt, struct llentries *head)
sys/net/if_llatbl.c
307
LIST_FOREACH_SAFE(lle, head, lle_chain, next)
sys/net/if_llatbl.c
73
static void llentries_unlink(struct lltable *llt, struct llentries *head);
sys/net/npf/npf_conn.c
775
npf_conn_t *head, *con;
sys/net/npf/npf_conn.c
788
head = npf_conndb_getlist(conn_db);
sys/net/npf/npf_conn.c
789
con = head;
sys/net/npf/npf_conn.c
799
if ((con = npf_conndb_getnext(conn_db, con)) == head) {
sys/net/npf/npf_conndb.c
248
npf_conn_t *head;
sys/net/npf/npf_conndb.c
251
head = atomic_load_relaxed(&cd->cd_new);
sys/net/npf/npf_conndb.c
252
atomic_store_relaxed(&con->c_next, head);
sys/net/npf/npf_conndb.c
253
} while (atomic_cas_ptr(&cd->cd_new, head, con) != head);
sys/net/radix.c
1040
void **head;
sys/net/radix.c
1052
rn_delayedinit(void **head, int off)
sys/net/radix.c
1060
di->head = head;
sys/net/radix.c
1066
rn_inithead(void **head, int off)
sys/net/radix.c
1070
if (*head != NULL)
sys/net/radix.c
1075
*head = rnh;
sys/net/radix.c
1141
if (!rn_inithead(di->head, di->off))
sys/net/radix.c
128
struct radix_node *head)
sys/net/radix.c
133
for (x = head; x->rn_b >= 0;) {
sys/net/radix.c
145
struct radix_node *head,
sys/net/radix.c
152
for (x = head; x->rn_b >= 0;) {
sys/net/radix.c
196
struct radix_node_head *head)
sys/net/radix.c
202
if ((x = rn_addmask(m_arg, 1, head->rnh_treetop->rn_off)) == 0)
sys/net/radix.c
206
x = rn_match(v_arg, head);
sys/net/radix.c
240
struct radix_node_head *head)
sys/net/radix.c
243
struct radix_node *t = head->rnh_treetop;
sys/net/radix.c
413
struct radix_node_head *head,
sys/net/radix.c
417
struct radix_node *top = head->rnh_treetop;
sys/net/radix.c
455
log(LOG_DEBUG, "%s: Going In:\n", __func__), traverse(head, p);
sys/net/radix.c
471
traverse(head, p);
sys/net/radix.c
599
struct radix_node_head *head,
sys/net/radix.c
604
struct radix_node *saved_tt, *top = head->rnh_treetop;
sys/net/radix.c
627
saved_tt = tt = rn_insert(v, head, &keyduplicated, treenodes);
sys/net/radix.c
757
struct radix_node_head *head,
sys/net/radix.c
768
x = head->rnh_treetop;
sys/net/radix.c
831
log(LOG_DEBUG, "%s: Going In:\n", __func__), traverse(head, tt);
sys/net/radix.c
929
traverse(head, tt);
sys/net/radix.c
941
struct radix_node_head *head)
sys/net/radix.c
943
return rn_delete1(v_arg, netmask_arg, head, NULL);
sys/net/radix.h
110
struct radix_node_head *head, struct radix_node nodes[]);
sys/net/radix.h
113
struct radix_node_head *head, struct radix_node nodes[]);
sys/net/radix.h
115
(const void *v, const void *mask, struct radix_node_head *head);
sys/net/radix.h
117
(const void *v, const void *mask, struct radix_node_head *head);
sys/net/radix.h
119
(const void *v, struct radix_node_head *head);
sys/net/radix.h
121
(const void *v, const void *mask, struct radix_node_head *head);
sys/net/radix.h
123
(const void *v, struct radix_node_head *head);
sys/net/zlib.c
1197
TRY_FREE(strm, s->head);
sys/net/zlib.c
1239
ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos));
sys/net/zlib.c
1243
if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL ||
sys/net/zlib.c
1252
zmemcpy(ds->head, ss->head, ds->hash_size * sizeof(Pos));
sys/net/zlib.c
1621
p = &s->head[n];
sys/net/zlib.c
407
Posf *head; /* Heads of the hash chains or NIL. */
sys/net/zlib.c
783
match_head = s->head[s->ins_h], \
sys/net/zlib.c
784
s->head[s->ins_h] = (Pos)(str))
sys/net/zlib.c
788
s->prev[(str) & s->w_mask] = match_head = s->head[s->ins_h], \
sys/net/zlib.c
789
s->head[s->ins_h] = (Pos)(str))
sys/net/zlib.c
797
s->head[s->hash_size-1] = NIL; \
sys/net/zlib.c
798
zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head));
sys/net/zlib.c
871
s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos));
sys/net/zlib.c
879
if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL ||
sys/netatalk/at_rmx.c
104
printf("at_matroute: head=%p\n", head);
sys/netatalk/at_rmx.c
106
rn = rn_match(v_arg, head);
sys/netatalk/at_rmx.c
114
at_lookup(const void *v_arg, const void *m_arg, struct radix_node_head * head)
sys/netatalk/at_rmx.c
120
printf("at_lookup: head=%p\n", head);
sys/netatalk/at_rmx.c
122
rn = rn_lookup(v_arg, m_arg, head);
sys/netatalk/at_rmx.c
130
at_delroute(const void *v_arg, const void *netmask_arg, struct radix_node_head * head)
sys/netatalk/at_rmx.c
136
printf("at_delroute: head=%p\n", head);
sys/netatalk/at_rmx.c
138
rn = rn_delete(v_arg, netmask_arg, head);
sys/netatalk/at_rmx.c
149
at_inithead(void **head, int off)
sys/netatalk/at_rmx.c
153
if (!rn_inithead(head, off))
sys/netatalk/at_rmx.c
156
rnh = *head;
sys/netatalk/at_rmx.c
82
at_addroute(const void *v_arg, const void *n_arg, struct radix_node_head * head,
sys/netatalk/at_rmx.c
89
printf("at_addroute: head=%p treenodes=%p\n", head, treenodes);
sys/netatalk/at_rmx.c
91
rn = rn_addroute(v_arg, n_arg, head, treenodes);
sys/netatalk/at_rmx.c
99
at_matroute(const void *v_arg, struct radix_node_head * head)
sys/netcan/can_pcb.c
295
struct canpcbhead *head;
sys/netcan/can_pcb.c
303
head = CANPCBHASH_CONNECT(table, faddr, laddr);
sys/netcan/can_pcb.c
304
for (canp = LIST_FIRST(head); canp != NULL; canp = ncanp) {
sys/netinet/in_pcb.c
1071
struct inpcbhead *head;
sys/netinet/in_pcb.c
1078
head = INPCBHASH_CONNECT(table, faddr, fport, laddr, lport);
sys/netinet/in_pcb.c
1079
LIST_FOREACH(inp, head, inp_hash) {
sys/netinet/in_pcb.c
1106
if (inp != LIST_FIRST(head)) {
sys/netinet/in_pcb.c
1108
LIST_INSERT_HEAD(head, inp, inp_hash);
sys/netinet/in_pcb.c
1121
struct inpcbhead *head;
sys/netinet/in_pcb.c
1125
head = INPCBHASH_BIND(table, laddr, lport);
sys/netinet/in_pcb.c
1126
LIST_FOREACH(inp, head, inp_hash) {
sys/netinet/in_pcb.c
1134
head = INPCBHASH_BIND(table, zeroin_addr, lport);
sys/netinet/in_pcb.c
1135
LIST_FOREACH(inp, head, inp_hash) {
sys/netinet/in_pcb.c
1153
if (inp != LIST_FIRST(head)) {
sys/netinet/in_pcb.c
1155
LIST_INSERT_HEAD(head, inp, inp_hash);
sys/netinet/in_pcb.c
773
struct inpcbhead *head;
sys/netinet/in_pcb.c
782
head = INPCBHASH_CONNECT(table, faddr, fport, laddr, lport);
sys/netinet/in_pcb.c
783
LIST_FOREACH(inp, head, inp_hash) {
sys/netinet/in_pcb.c
957
struct inpcbhead *head;
sys/netinet/in_pcb.c
967
head = INPCBHASH_PORT(table, lport);
sys/netinet/in_pcb.c
968
LIST_FOREACH(inp, head, inp_lhash) {
sys/netinet/sctp_pcb.c
1062
struct sctpasochead *head;
sys/netinet/sctp_pcb.c
1067
head = &sctppcbinfo.sctp_asochash[SCTP_PCBHASH_ASOC(vtag,
sys/netinet/sctp_pcb.c
1069
if (head == NULL) {
sys/netinet/sctp_pcb.c
1074
LIST_FOREACH(stcb, head, sctp_asocs) {
sys/netinet/sctp_pcb.c
1493
struct sctppcbhead *head;
sys/netinet/sctp_pcb.c
1520
head = &sctppcbinfo.sctp_tcpephash[SCTP_PCBHASH_ALLADDR((lport + rport),
sys/netinet/sctp_pcb.c
1523
LIST_INSERT_HEAD(head, new_inp, sctp_hash);
sys/netinet/sctp_pcb.c
1574
struct sctppcbhead *head;
sys/netinet/sctp_pcb.c
1577
head = &sctppcbinfo.sctp_ephash[SCTP_PCBHASH_ALLADDR(lport,
sys/netinet/sctp_pcb.c
1579
LIST_FOREACH(t_inp, head, sctp_hash) {
sys/netinet/sctp_pcb.c
1616
struct sctppcbhead *head;
sys/netinet/sctp_pcb.c
1917
head = &sctppcbinfo.sctp_ephash[SCTP_PCBHASH_ALLADDR(lport,
sys/netinet/sctp_pcb.c
1920
LIST_INSERT_HEAD(head, inp, sctp_hash);
sys/netinet/sctp_pcb.c
1923
printf("Main hash to bind at head:%p, bound port:%d\n", head, ntohs(lport));
sys/netinet/sctp_pcb.c
2617
struct sctpasochead *head;
sys/netinet/sctp_pcb.c
2780
head = &sctppcbinfo.sctp_asochash[SCTP_PCBHASH_ASOC(stcb->asoc.my_vtag,
sys/netinet/sctp_pcb.c
2783
LIST_INSERT_HEAD(head, stcb, sctp_asocs);
sys/netinet/sctp_pcb.c
2819
head = &inp->sctp_tcbhash[SCTP_PCBHASH_ALLADDR(stcb->rport,
sys/netinet/sctp_pcb.c
2821
LIST_INSERT_HEAD(head, stcb, sctp_tcbhash);
sys/netinet/sctp_pcb.c
4346
struct sctpasochead *head;
sys/netinet/sctp_pcb.c
4356
head = &sctppcbinfo.sctp_asochash[SCTP_PCBHASH_ASOC(tag,
sys/netinet/sctp_pcb.c
4358
if (head == NULL) {
sys/netinet/sctp_pcb.c
4362
LIST_FOREACH(stcb, head, sctp_asocs) {
sys/netinet/sctp_pcb.c
484
struct sctpasochead *head;
sys/netinet/sctp_pcb.c
564
head = &inp->sctp_tcbhash[SCTP_PCBHASH_ALLADDR(rport,
sys/netinet/sctp_pcb.c
566
if (head == NULL) {
sys/netinet/sctp_pcb.c
569
LIST_FOREACH(stcb, head, sctp_tcbhash) {
sys/netinet/sctp_pcb.c
620
struct sctpasochead *head;
sys/netinet/sctp_pcb.c
629
head = &sctppcbinfo.sctp_asochash[SCTP_PCBHASH_ASOC(vtag,
sys/netinet/sctp_pcb.c
631
if (head == NULL) {
sys/netinet/sctp_pcb.c
636
LIST_FOREACH(stcb, head, sctp_asocs) {
sys/netinet/sctp_pcb.c
661
sctp_endpoint_probe(struct sockaddr *nam, struct sctppcbhead *head,
sys/netinet/sctp_pcb.c
682
if (head == NULL)
sys/netinet/sctp_pcb.c
685
LIST_FOREACH(inp, head, sctp_hash) {
sys/netinet/sctp_pcb.c
729
LIST_FOREACH(inp, head, sctp_hash) {
sys/netinet/sctp_pcb.c
832
struct sctppcbhead *head;
sys/netinet/sctp_pcb.c
858
head = &sctppcbinfo.sctp_ephash[SCTP_PCBHASH_ALLADDR(lport,
sys/netinet/sctp_pcb.c
862
printf("Main hash to lookup at head:%p\n", head);
sys/netinet/sctp_pcb.c
865
inp = sctp_endpoint_probe(nam, head, lport);
sys/netinet/sctp_pcb.c
888
head = &sctppcbinfo.sctp_tcpephash[i];
sys/netinet/sctp_pcb.c
889
if (LIST_FIRST(head)) {
sys/netinet/sctp_pcb.c
890
inp = sctp_endpoint_probe(nam, head, lport);
sys/netinet/sctp_peeloff.c
104
sctp_do_peeloff(struct socket *head, struct socket *so, u_int32_t assoc_id)
sys/netinet/sctp_peeloff.c
109
inp = (struct sctp_inpcb *)head->so_pcb;
sys/netinet/sctp_peeloff.c
133
sctp_grub_through_socket_buffer(inp, head, so, stcb);
sys/netinet/sctp_peeloff.c
138
sctp_get_peeloff(struct socket *head, u_int32_t assoc_id, int *error)
sys/netinet/sctp_peeloff.c
150
inp = (struct sctp_inpcb *)head->so_pcb;
sys/netinet/sctp_peeloff.c
160
newso = sonewconn(head, SS_ISCONNECTED);
sys/netinet/sctp_peeloff.c
182
newso = TAILQ_FIRST(&head->so_q);
sys/netinet/sctp_peeloff.c
197
sctp_grub_through_socket_buffer(inp, head, newso, stcb);
sys/netinet/sctp_peeloff.c
87
sctp_can_peel_off(struct socket *head, u_int32_t assoc_id)
sys/netinet/sctp_peeloff.c
91
inp = (struct sctp_inpcb *)head->so_pcb;
sys/netinet6/in6_pcb.c
1048
struct inpcbhead *head;
sys/netinet6/in6_pcb.c
1055
head = IN6PCBHASH_CONNECT(table, faddr6, fport, laddr6, lport);
sys/netinet6/in6_pcb.c
1056
LIST_FOREACH(inp, head, inp_hash) {
sys/netinet6/in6_pcb.c
1092
struct inpcbhead *head;
sys/netinet6/in6_pcb.c
1099
head = IN6PCBHASH_BIND(table, laddr6, lport);
sys/netinet6/in6_pcb.c
1100
LIST_FOREACH(inp, head, inp_hash) {
sys/netinet6/in6_pcb.c
1120
head = IN6PCBHASH_BIND(table, &zero_mapped, lport);
sys/netinet6/in6_pcb.c
1121
LIST_FOREACH(inp, head, inp_hash) {
sys/netinet6/in6_pcb.c
1138
head = IN6PCBHASH_BIND(table, &zeroin6_addr, lport);
sys/netinet6/in6_pcb.c
1139
LIST_FOREACH(inp, head, inp_hash) {
sys/netinet6/in6_pcb.c
1158
if (inp != LIST_FIRST(head)) {
sys/netinet6/in6_pcb.c
1160
LIST_INSERT_HEAD(head, inp, inp_hash);
sys/netinet6/in6_pcb.c
836
struct inpcbhead *head;
sys/netinet6/in6_pcb.c
844
head = IN6PCBHASH_PORT(table, lport);
sys/netinet6/in6_pcb.c
845
LIST_FOREACH(inp, head, inp_lhash) {
sys/netipsec/key.c
594
#define LIST_INSERT_TAIL(head, elm, type, field) \
sys/netipsec/key.c
596
struct type *curelm = LIST_FIRST(head); \
sys/netipsec/key.c
598
LIST_INSERT_HEAD(head, elm, field); \
sys/netipsec/key.c
606
#define KEY_CHKSASTATE(head, sav) \
sys/netipsec/key.c
608
if ((head) != (sav)) { \
sys/netipsec/key.c
611
(head), (sav)); \
sys/netipsec/key.c
616
#define KEY_CHKSPDIR(head, sp) \
sys/netipsec/key.c
618
if ((head) != (sp)) { \
sys/netipsec/key.c
621
(head), (sp)); \
sys/sys/ataio.h
15
u_char head; /* head number */
sys/sys/fdio.h
50
int head; /* IN */
sys/sys/gcq.h
134
gcq_insert_head(struct gcq_head *head, struct gcq *q)
sys/sys/gcq.h
136
gcq_insert_after(gcq_hq(head), q);
sys/sys/gcq.h
140
gcq_insert_tail(struct gcq_head *head, struct gcq *q)
sys/sys/gcq.h
142
gcq_insert_before(gcq_hq(head), q);
sys/sys/gcq.h
250
gcq_remove_all(struct gcq_head *head)
sys/sys/gcq.h
252
gcq_clear(gcq_hq(head));
sys/sys/gcq.h
256
_gcq_next(struct gcq *current, struct gcq_head *head, struct gcq *start)
sys/sys/gcq.h
259
hq = gcq_hq(head);
sys/sys/gcq.h
269
_gcq_prev(struct gcq *current, struct gcq_head *head, struct gcq *start)
sys/sys/gcq.h
272
hq = gcq_hq(head);
sys/sys/gcq.h
291
#define _GCQ_NP(var, current, head, start, np, fn) \
sys/sys/gcq.h
292
(np(current, head, start) != (start) ? \
sys/sys/gcq.h
293
(var = fn(np(current, head, start)), true) : (var = NULL, false))
sys/sys/gcq.h
294
#define _GCQ_NP_TYPED(tvar, current, head, start, type, name, np, fn) \
sys/sys/gcq.h
295
(np(current, head, start) != (start) ? \
sys/sys/gcq.h
296
(tvar = GCQ_ITEM(fn(np(current, head, start)), type, name), true) : \
sys/sys/gcq.h
307
#define _GCQ_NP_COND(var, current, head, start, np, rem, cond) \
sys/sys/gcq.h
308
(np(current, head, start) != (start) ? \
sys/sys/gcq.h
309
(var = fn(np(current, head, start)), ((cond) ? (rem), true) : \
sys/sys/gcq.h
311
#define _GCQ_NP_COND_TYPED(tvar, current, head, start, type, name, np, \
sys/sys/gcq.h
312
rem, cond) (np(current, head, start) != (start) ? \
sys/sys/gcq.h
313
(tvar = GCQ_ITEM(fn(np(current, head, start)), type, name), \
sys/sys/gcq.h
329
#define GCQ_GOT_NEXT(var, current, head, start) \
sys/sys/gcq.h
330
_GCQ_NP(var, current, head, start, _gcq_next, gcq_q)
sys/sys/gcq.h
331
#define GCQ_GOT_PREV(var, current, head, start) \
sys/sys/gcq.h
332
_GCQ_NP(var, current, head, start, _gcq_prev, gcq_q)
sys/sys/gcq.h
333
#define GCQ_DEQUEUED_NEXT(var, current, head, start) \
sys/sys/gcq.h
334
_GCQ_NP(var, current, head, start, _gcq_next, gcq_remove)
sys/sys/gcq.h
335
#define GCQ_DEQUEUED_PREV(var, current, head, start) \
sys/sys/gcq.h
336
_GCQ_NP(var, current, head, start, _gcq_prev, gcq_remove)
sys/sys/gcq.h
337
#define GCQ_GOT_NEXT_TYPED(tvar, current, head, start, type, name) \
sys/sys/gcq.h
338
_GCQ_NP_TYPED(tvar, current, head, start, type, name, \
sys/sys/gcq.h
340
#define GCQ_GOT_PREV_TYPED(tvar, current, head, start, type, name) \
sys/sys/gcq.h
341
_GCQ_NP_TYPED(tvar, current, head, start, type, name, \
sys/sys/gcq.h
343
#define GCQ_DEQUEUED_NEXT_TYPED(tvar, current, head, start, type, name) \
sys/sys/gcq.h
344
_GCQ_NP_TYPED(tvar, current, head, start, type, name, \
sys/sys/gcq.h
346
#define GCQ_DEQUEUED_PREV_TYPED(tvar, current, head, start, type, name) \
sys/sys/gcq.h
347
_GCQ_NP_TYPED(tvar, current, head, start, type, name, \
sys/sys/gcq.h
368
#define GCQ_GOT_NEXT_COND(var, current, head, start, cond) \
sys/sys/gcq.h
369
_GCQ_NP_COND(var, current, head, start, _gcq_next, ((void)0), cond)
sys/sys/gcq.h
370
#define GCQ_GOT_PREV_COND(var, current, head, start, cond) \
sys/sys/gcq.h
371
_GCQ_NP_COND(var, current, head, start, _gcq_prev, ((void)0), cond)
sys/sys/gcq.h
372
#define GCQ_DEQUEUED_NEXT_COND(var, current, head, start, cond) \
sys/sys/gcq.h
373
_GCQ_NP_COND(var, current, head, start, _gcq_next, gcq_remove(var), \
sys/sys/gcq.h
375
#define GCQ_DEQUEUED_PREV_COND(var, current, head, start, cond) \
sys/sys/gcq.h
376
_GCQ_NP_COND(var, current, head, start, _gcq_prev, gcq_remove(var), \
sys/sys/gcq.h
378
#define GCQ_GOT_NEXT_COND_TYPED(tvar, current, head, start, type, name, \
sys/sys/gcq.h
379
cond) _GCQ_NP_COND_TYPED(tvar, current, head, start, type, name, \
sys/sys/gcq.h
381
#define GCQ_GOT_PREV_COND_TYPED(tvar, current, head, start, type, name, \
sys/sys/gcq.h
382
cond) _GCQ_NP_COND_TYPED(tvar, current, head, start, type, name, \
sys/sys/gcq.h
384
#define GCQ_DEQUEUED_NEXT_COND_TYPED(tvar, current, head, start, type, \
sys/sys/gcq.h
385
name, cond) _GCQ_NP_COND_TYPED(tvar, current, head, start, type, \
sys/sys/gcq.h
387
#define GCQ_DEQUEUED_PREV_COND_TYPED(tvar, current, head, start, type, \
sys/sys/gcq.h
388
name, cond) _GCQ_NP_COND_TYPED(tvar, current, head, start, type, \
sys/sys/gcq.h
51
#define GCQ_INIT_HEAD(head) { GCQ_INIT((head).hq) }
sys/sys/gcq.h
68
gcq_hq(struct gcq_head *head)
sys/sys/gcq.h
70
return (struct gcq *)head;
sys/sys/gcq.h
81
gcq_init_head(struct gcq_head *head)
sys/sys/gcq.h
83
gcq_init(gcq_hq(head));
sys/sys/gcq.h
95
gcq_empty(struct gcq_head *head)
sys/sys/gcq.h
97
return (!gcq_onlist(gcq_hq(head)));
sys/sys/proc.h
605
#define PROCLIST_FOREACH(var, head) \
sys/sys/proc.h
606
for ((var) = LIST_FIRST(head); \
sys/sys/pslist.h
113
pslist_writer_insert_head(struct pslist_head *head, struct pslist_entry *new)
sys/sys/pslist.h
116
_PSLIST_ASSERT(head->plh_first == NULL ||
sys/sys/pslist.h
117
head->plh_first->ple_prevp == &head->plh_first);
sys/sys/pslist.h
121
new->ple_prevp = &head->plh_first;
sys/sys/pslist.h
122
new->ple_next = head->plh_first; /* not yet published, so no atomic */
sys/sys/pslist.h
123
if (head->plh_first != NULL)
sys/sys/pslist.h
124
head->plh_first->ple_prevp = &new->ple_next;
sys/sys/pslist.h
125
atomic_store_release(&head->plh_first, new);
sys/sys/pslist.h
201
pslist_writer_first(const struct pslist_head *head)
sys/sys/pslist.h
204
return head->plh_first;
sys/sys/pslist.h
216
_pslist_writer_first_container(const struct pslist_head *head,
sys/sys/pslist.h
219
struct pslist_entry *first = head->plh_first;
sys/sys/pslist.h
242
pslist_reader_first(const struct pslist_head *head)
sys/sys/pslist.h
248
return atomic_load_consume(&head->plh_first);
sys/sys/pslist.h
266
_pslist_reader_first_container(const struct pslist_head *head,
sys/sys/pslist.h
269
struct pslist_entry *first = pslist_reader_first(head);
sys/sys/pslist.h
65
pslist_init(struct pslist_head *head)
sys/sys/pslist.h
68
head->plh_first = NULL; /* not yet published, so no atomic */
sys/sys/pslist.h
72
pslist_destroy(struct pslist_head *head __diagused)
sys/sys/pslist.h
75
_PSLIST_ASSERT(head->plh_first == NULL);
sys/sys/queue.h
107
#define SLIST_HEAD_INITIALIZER(head) \
sys/sys/queue.h
118
#define SLIST_FIRST(head) ((head)->slh_first)
sys/sys/queue.h
119
#define SLIST_END(head) NULL
sys/sys/queue.h
120
#define SLIST_EMPTY(head) ((head)->slh_first == NULL)
sys/sys/queue.h
123
#define SLIST_FOREACH(var, head, field) \
sys/sys/queue.h
124
for((var) = (head)->slh_first; \
sys/sys/queue.h
125
(var) != SLIST_END(head); \
sys/sys/queue.h
128
#define SLIST_FOREACH_SAFE(var, head, field, tvar) \
sys/sys/queue.h
129
for ((var) = SLIST_FIRST((head)); \
sys/sys/queue.h
130
(var) != SLIST_END(head) && \
sys/sys/queue.h
137
#define SLIST_INIT(head) do { \
sys/sys/queue.h
138
(head)->slh_first = SLIST_END(head); \
sys/sys/queue.h
146
#define SLIST_INSERT_HEAD(head, elm, field) do { \
sys/sys/queue.h
147
(elm)->field.sle_next = (head)->slh_first; \
sys/sys/queue.h
148
(head)->slh_first = (elm); \
sys/sys/queue.h
156
#define SLIST_REMOVE_HEAD(head, field) do { \
sys/sys/queue.h
157
(head)->slh_first = (head)->slh_first->field.sle_next; \
sys/sys/queue.h
160
#define SLIST_REMOVE(head, elm, type, field) do { \
sys/sys/queue.h
161
if ((head)->slh_first == (elm)) { \
sys/sys/queue.h
162
SLIST_REMOVE_HEAD((head), field); \
sys/sys/queue.h
165
struct type *curelm = (head)->slh_first; \
sys/sys/queue.h
182
#define LIST_HEAD_INITIALIZER(head) \
sys/sys/queue.h
194
#define LIST_FIRST(head) ((head)->lh_first)
sys/sys/queue.h
195
#define LIST_END(head) NULL
sys/sys/queue.h
196
#define LIST_EMPTY(head) ((head)->lh_first == LIST_END(head))
sys/sys/queue.h
199
#define LIST_FOREACH(var, head, field) \
sys/sys/queue.h
200
for ((var) = ((head)->lh_first); \
sys/sys/queue.h
201
(var) != LIST_END(head); \
sys/sys/queue.h
204
#define LIST_FOREACH_SAFE(var, head, field, tvar) \
sys/sys/queue.h
205
for ((var) = LIST_FIRST((head)); \
sys/sys/queue.h
206
(var) != LIST_END(head) && \
sys/sys/queue.h
223
#define QUEUEDEBUG_LIST_INSERT_HEAD(head, elm, field) \
sys/sys/queue.h
224
if ((head)->lh_first && \
sys/sys/queue.h
225
(head)->lh_first->field.le_prev != &(head)->lh_first) \
sys/sys/queue.h
226
QUEUEDEBUG_ABORT("LIST_INSERT_HEAD %p %s:%d", (head), \
sys/sys/queue.h
241
#define QUEUEDEBUG_LIST_INSERT_HEAD(head, elm, field)
sys/sys/queue.h
246
#define LIST_INIT(head) do { \
sys/sys/queue.h
247
(head)->lh_first = LIST_END(head); \
sys/sys/queue.h
253
LIST_END(head)) \
sys/sys/queue.h
268
#define LIST_INSERT_HEAD(head, elm, field) do { \
sys/sys/queue.h
269
QUEUEDEBUG_LIST_INSERT_HEAD((head), (elm), field) \
sys/sys/queue.h
270
if (((elm)->field.le_next = (head)->lh_first) != LIST_END(head))\
sys/sys/queue.h
271
(head)->lh_first->field.le_prev = &(elm)->field.le_next;\
sys/sys/queue.h
272
(head)->lh_first = (elm); \
sys/sys/queue.h
273
(elm)->field.le_prev = &(head)->lh_first; \
sys/sys/queue.h
303
#define SIMPLEQ_HEAD_INITIALIZER(head) \
sys/sys/queue.h
304
{ NULL, &(head).sqh_first }
sys/sys/queue.h
314
#define SIMPLEQ_FIRST(head) ((head)->sqh_first)
sys/sys/queue.h
315
#define SIMPLEQ_END(head) NULL
sys/sys/queue.h
316
#define SIMPLEQ_EMPTY(head) ((head)->sqh_first == SIMPLEQ_END(head))
sys/sys/queue.h
319
#define SIMPLEQ_FOREACH(var, head, field) \
sys/sys/queue.h
320
for ((var) = ((head)->sqh_first); \
sys/sys/queue.h
321
(var) != SIMPLEQ_END(head); \
sys/sys/queue.h
324
#define SIMPLEQ_FOREACH_SAFE(var, head, field, next) \
sys/sys/queue.h
325
for ((var) = ((head)->sqh_first); \
sys/sys/queue.h
326
(var) != SIMPLEQ_END(head) && \
sys/sys/queue.h
333
#define SIMPLEQ_INIT(head) do { \
sys/sys/queue.h
334
(head)->sqh_first = NULL; \
sys/sys/queue.h
335
(head)->sqh_last = &(head)->sqh_first; \
sys/sys/queue.h
338
#define SIMPLEQ_INSERT_HEAD(head, elm, field) do { \
sys/sys/queue.h
339
if (((elm)->field.sqe_next = (head)->sqh_first) == NULL) \
sys/sys/queue.h
340
(head)->sqh_last = &(elm)->field.sqe_next; \
sys/sys/queue.h
341
(head)->sqh_first = (elm); \
sys/sys/queue.h
344
#define SIMPLEQ_INSERT_TAIL(head, elm, field) do { \
sys/sys/queue.h
346
*(head)->sqh_last = (elm); \
sys/sys/queue.h
347
(head)->sqh_last = &(elm)->field.sqe_next; \
sys/sys/queue.h
350
#define SIMPLEQ_INSERT_AFTER(head, listelm, elm, field) do { \
sys/sys/queue.h
352
(head)->sqh_last = &(elm)->field.sqe_next; \
sys/sys/queue.h
356
#define SIMPLEQ_REMOVE_HEAD(head, field) do { \
sys/sys/queue.h
357
if (((head)->sqh_first = (head)->sqh_first->field.sqe_next) == NULL) \
sys/sys/queue.h
358
(head)->sqh_last = &(head)->sqh_first; \
sys/sys/queue.h
361
#define SIMPLEQ_REMOVE_AFTER(head, elm, field) do { \
sys/sys/queue.h
364
(head)->sqh_last = &(elm)->field.sqe_next; \
sys/sys/queue.h
367
#define SIMPLEQ_REMOVE(head, elm, type, field) do { \
sys/sys/queue.h
368
if ((head)->sqh_first == (elm)) { \
sys/sys/queue.h
369
SIMPLEQ_REMOVE_HEAD((head), field); \
sys/sys/queue.h
371
struct type *curelm = (head)->sqh_first; \
sys/sys/queue.h
376
(head)->sqh_last = &(curelm)->field.sqe_next; \
sys/sys/queue.h
388
#define SIMPLEQ_LAST(head, type, field) \
sys/sys/queue.h
389
(SIMPLEQ_EMPTY((head)) ? \
sys/sys/queue.h
392
((char *)((head)->sqh_last) - offsetof(struct type, field))))
sys/sys/queue.h
404
#define TAILQ_HEAD_INITIALIZER(head) \
sys/sys/queue.h
405
{ TAILQ_END(head), &(head).tqh_first }
sys/sys/queue.h
417
#define TAILQ_FIRST(head) ((head)->tqh_first)
sys/sys/queue.h
418
#define TAILQ_END(head) (NULL)
sys/sys/queue.h
420
#define TAILQ_LAST(head, headname) \
sys/sys/queue.h
421
(*(((struct headname *)(void *)((head)->tqh_last))->tqh_last))
sys/sys/queue.h
424
#define TAILQ_EMPTY(head) (TAILQ_FIRST(head) == TAILQ_END(head))
sys/sys/queue.h
427
#define TAILQ_FOREACH(var, head, field) \
sys/sys/queue.h
428
for ((var) = ((head)->tqh_first); \
sys/sys/queue.h
429
(var) != TAILQ_END(head); \
sys/sys/queue.h
432
#define TAILQ_FOREACH_SAFE(var, head, field, next) \
sys/sys/queue.h
433
for ((var) = ((head)->tqh_first); \
sys/sys/queue.h
434
(var) != TAILQ_END(head) && \
sys/sys/queue.h
437
#define TAILQ_FOREACH_REVERSE(var, head, headname, field) \
sys/sys/queue.h
438
for ((var) = TAILQ_LAST((head), headname); \
sys/sys/queue.h
439
(var) != TAILQ_END(head); \
sys/sys/queue.h
442
#define TAILQ_FOREACH_REVERSE_SAFE(var, head, headname, field, prev) \
sys/sys/queue.h
443
for ((var) = TAILQ_LAST((head), headname); \
sys/sys/queue.h
444
(var) != TAILQ_END(head) && \
sys/sys/queue.h
451
#define QUEUEDEBUG_TAILQ_INSERT_HEAD(head, elm, field) \
sys/sys/queue.h
452
if ((head)->tqh_first && \
sys/sys/queue.h
453
(head)->tqh_first->field.tqe_prev != &(head)->tqh_first) \
sys/sys/queue.h
454
QUEUEDEBUG_ABORT("TAILQ_INSERT_HEAD %p %s:%d", (head), \
sys/sys/queue.h
456
#define QUEUEDEBUG_TAILQ_INSERT_TAIL(head, elm, field) \
sys/sys/queue.h
457
if (*(head)->tqh_last != NULL) \
sys/sys/queue.h
458
QUEUEDEBUG_ABORT("TAILQ_INSERT_TAIL %p %s:%d", (head), \
sys/sys/queue.h
469
#define QUEUEDEBUG_TAILQ_PREREMOVE(head, elm, field) \
sys/sys/queue.h
471
(head)->tqh_last != &(elm)->field.tqe_next) \
sys/sys/queue.h
473
(head), (elm), __FILE__, __LINE__);
sys/sys/queue.h
478
#define QUEUEDEBUG_TAILQ_INSERT_HEAD(head, elm, field)
sys/sys/queue.h
479
#define QUEUEDEBUG_TAILQ_INSERT_TAIL(head, elm, field)
sys/sys/queue.h
481
#define QUEUEDEBUG_TAILQ_PREREMOVE(head, elm, field)
sys/sys/queue.h
485
#define TAILQ_INIT(head) do { \
sys/sys/queue.h
486
(head)->tqh_first = TAILQ_END(head); \
sys/sys/queue.h
487
(head)->tqh_last = &(head)->tqh_first; \
sys/sys/queue.h
490
#define TAILQ_INSERT_HEAD(head, elm, field) do { \
sys/sys/queue.h
491
QUEUEDEBUG_TAILQ_INSERT_HEAD((head), (elm), field) \
sys/sys/queue.h
492
if (((elm)->field.tqe_next = (head)->tqh_first) != TAILQ_END(head))\
sys/sys/queue.h
493
(head)->tqh_first->field.tqe_prev = \
sys/sys/queue.h
496
(head)->tqh_last = &(elm)->field.tqe_next; \
sys/sys/queue.h
497
(head)->tqh_first = (elm); \
sys/sys/queue.h
498
(elm)->field.tqe_prev = &(head)->tqh_first; \
sys/sys/queue.h
501
#define TAILQ_INSERT_TAIL(head, elm, field) do { \
sys/sys/queue.h
502
QUEUEDEBUG_TAILQ_INSERT_TAIL((head), (elm), field) \
sys/sys/queue.h
503
(elm)->field.tqe_next = TAILQ_END(head); \
sys/sys/queue.h
504
(elm)->field.tqe_prev = (head)->tqh_last; \
sys/sys/queue.h
505
*(head)->tqh_last = (elm); \
sys/sys/queue.h
506
(head)->tqh_last = &(elm)->field.tqe_next; \
sys/sys/queue.h
509
#define TAILQ_INSERT_AFTER(head, listelm, elm, field) do { \
sys/sys/queue.h
512
TAILQ_END(head)) \
sys/sys/queue.h
516
(head)->tqh_last = &(elm)->field.tqe_next; \
sys/sys/queue.h
529
#define TAILQ_REMOVE(head, elm, field) do { \
sys/sys/queue.h
530
QUEUEDEBUG_TAILQ_PREREMOVE((head), (elm), field) \
sys/sys/queue.h
532
if (((elm)->field.tqe_next) != TAILQ_END(head)) \
sys/sys/queue.h
536
(head)->tqh_last = (elm)->field.tqe_prev; \
sys/sys/queue.h
541
#define TAILQ_REPLACE(head, elm, elm2, field) do { \
sys/sys/queue.h
543
TAILQ_END(head)) \
sys/sys/queue.h
547
(head)->tqh_last = &(elm2)->field.tqe_next; \
sys/sys/queue.h
571
#define STAILQ_HEAD_INITIALIZER(head) \
sys/sys/queue.h
572
{ NULL, &(head).stqh_first }
sys/sys/queue.h
582
#define STAILQ_FIRST(head) ((head)->stqh_first)
sys/sys/queue.h
583
#define STAILQ_END(head) NULL
sys/sys/queue.h
585
#define STAILQ_EMPTY(head) (STAILQ_FIRST(head) == STAILQ_END(head))
sys/sys/queue.h
590
#define STAILQ_INIT(head) do { \
sys/sys/queue.h
591
(head)->stqh_first = NULL; \
sys/sys/queue.h
592
(head)->stqh_last = &(head)->stqh_first; \
sys/sys/queue.h
595
#define STAILQ_INSERT_HEAD(head, elm, field) do { \
sys/sys/queue.h
596
if (((elm)->field.stqe_next = (head)->stqh_first) == NULL) \
sys/sys/queue.h
597
(head)->stqh_last = &(elm)->field.stqe_next; \
sys/sys/queue.h
598
(head)->stqh_first = (elm); \
sys/sys/queue.h
601
#define STAILQ_INSERT_TAIL(head, elm, field) do { \
sys/sys/queue.h
603
*(head)->stqh_last = (elm); \
sys/sys/queue.h
604
(head)->stqh_last = &(elm)->field.stqe_next; \
sys/sys/queue.h
607
#define STAILQ_INSERT_AFTER(head, listelm, elm, field) do { \
sys/sys/queue.h
609
(head)->stqh_last = &(elm)->field.stqe_next; \
sys/sys/queue.h
613
#define STAILQ_REMOVE_HEAD(head, field) do { \
sys/sys/queue.h
614
if (((head)->stqh_first = (head)->stqh_first->field.stqe_next) == NULL) \
sys/sys/queue.h
615
(head)->stqh_last = &(head)->stqh_first; \
sys/sys/queue.h
618
#define STAILQ_REMOVE(head, elm, type, field) do { \
sys/sys/queue.h
619
if ((head)->stqh_first == (elm)) { \
sys/sys/queue.h
620
STAILQ_REMOVE_HEAD((head), field); \
sys/sys/queue.h
622
struct type *curelm = (head)->stqh_first; \
sys/sys/queue.h
627
(head)->stqh_last = &(curelm)->field.stqe_next; \
sys/sys/queue.h
631
#define STAILQ_FOREACH(var, head, field) \
sys/sys/queue.h
632
for ((var) = ((head)->stqh_first); \
sys/sys/queue.h
636
#define STAILQ_FOREACH_SAFE(var, head, field, tvar) \
sys/sys/queue.h
637
for ((var) = STAILQ_FIRST((head)); \
sys/sys/queue.h
649
#define STAILQ_LAST(head, type, field) \
sys/sys/queue.h
650
(STAILQ_EMPTY((head)) ? \
sys/sys/queue.h
653
((char *)((head)->stqh_last) - offsetof(struct type, field))))
sys/sys/syscallargs.h
1036
syscallarg(void *) head;
sys/sys/tree.h
100
#define SPLAY_LINKRIGHT(head, tmp, field) do { \
sys/sys/tree.h
101
SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
sys/sys/tree.h
102
tmp = (head)->sph_root; \
sys/sys/tree.h
103
(head)->sph_root = SPLAY_RIGHT((head)->sph_root, field); \
sys/sys/tree.h
106
#define SPLAY_ASSEMBLE(head, node, left, right, field) do { \
sys/sys/tree.h
107
SPLAY_RIGHT(left, field) = SPLAY_LEFT((head)->sph_root, field); \
sys/sys/tree.h
108
SPLAY_LEFT(right, field) = SPLAY_RIGHT((head)->sph_root, field);\
sys/sys/tree.h
109
SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(node, field); \
sys/sys/tree.h
110
SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(node, field); \
sys/sys/tree.h
123
name##_SPLAY_FIND(struct name *head, struct type *elm) \
sys/sys/tree.h
125
if (SPLAY_EMPTY(head)) \
sys/sys/tree.h
127
name##_SPLAY(head, elm); \
sys/sys/tree.h
128
if ((cmp)(elm, (head)->sph_root) == 0) \
sys/sys/tree.h
129
return (head->sph_root); \
sys/sys/tree.h
134
name##_SPLAY_NEXT(struct name *head, struct type *elm) \
sys/sys/tree.h
136
name##_SPLAY(head, elm); \
sys/sys/tree.h
148
name##_SPLAY_MIN_MAX(struct name *head, int val) \
sys/sys/tree.h
150
name##_SPLAY_MINMAX(head, val); \
sys/sys/tree.h
151
return (SPLAY_ROOT(head)); \
sys/sys/tree.h
159
name##_SPLAY_INSERT(struct name *head, struct type *elm) \
sys/sys/tree.h
161
if (SPLAY_EMPTY(head)) { \
sys/sys/tree.h
165
name##_SPLAY(head, elm); \
sys/sys/tree.h
166
__comp = (cmp)(elm, (head)->sph_root); \
sys/sys/tree.h
168
SPLAY_LEFT(elm, field) = SPLAY_LEFT((head)->sph_root, field);\
sys/sys/tree.h
169
SPLAY_RIGHT(elm, field) = (head)->sph_root; \
sys/sys/tree.h
170
SPLAY_LEFT((head)->sph_root, field) = NULL; \
sys/sys/tree.h
172
SPLAY_RIGHT(elm, field) = SPLAY_RIGHT((head)->sph_root, field);\
sys/sys/tree.h
173
SPLAY_LEFT(elm, field) = (head)->sph_root; \
sys/sys/tree.h
174
SPLAY_RIGHT((head)->sph_root, field) = NULL; \
sys/sys/tree.h
176
return ((head)->sph_root); \
sys/sys/tree.h
178
(head)->sph_root = (elm); \
sys/sys/tree.h
183
name##_SPLAY_REMOVE(struct name *head, struct type *elm) \
sys/sys/tree.h
186
if (SPLAY_EMPTY(head)) \
sys/sys/tree.h
188
name##_SPLAY(head, elm); \
sys/sys/tree.h
189
if ((cmp)(elm, (head)->sph_root) == 0) { \
sys/sys/tree.h
190
if (SPLAY_LEFT((head)->sph_root, field) == NULL) { \
sys/sys/tree.h
191
(head)->sph_root = SPLAY_RIGHT((head)->sph_root, field);\
sys/sys/tree.h
193
__tmp = SPLAY_RIGHT((head)->sph_root, field); \
sys/sys/tree.h
194
(head)->sph_root = SPLAY_LEFT((head)->sph_root, field);\
sys/sys/tree.h
195
name##_SPLAY(head, elm); \
sys/sys/tree.h
196
SPLAY_RIGHT((head)->sph_root, field) = __tmp; \
sys/sys/tree.h
204
name##_SPLAY(struct name *head, struct type *elm) \
sys/sys/tree.h
212
while ((__comp = (cmp)(elm, (head)->sph_root)) != 0) { \
sys/sys/tree.h
214
__tmp = SPLAY_LEFT((head)->sph_root, field); \
sys/sys/tree.h
218
SPLAY_ROTATE_RIGHT(head, __tmp, field); \
sys/sys/tree.h
219
if (SPLAY_LEFT((head)->sph_root, field) == NULL)\
sys/sys/tree.h
222
SPLAY_LINKLEFT(head, __right, field); \
sys/sys/tree.h
224
__tmp = SPLAY_RIGHT((head)->sph_root, field); \
sys/sys/tree.h
228
SPLAY_ROTATE_LEFT(head, __tmp, field); \
sys/sys/tree.h
229
if (SPLAY_RIGHT((head)->sph_root, field) == NULL)\
sys/sys/tree.h
232
SPLAY_LINKRIGHT(head, __left, field); \
sys/sys/tree.h
235
SPLAY_ASSEMBLE(head, &__node, __left, __right, field); \
sys/sys/tree.h
241
void name##_SPLAY_MINMAX(struct name *head, int __comp) \
sys/sys/tree.h
250
__tmp = SPLAY_LEFT((head)->sph_root, field); \
sys/sys/tree.h
254
SPLAY_ROTATE_RIGHT(head, __tmp, field); \
sys/sys/tree.h
255
if (SPLAY_LEFT((head)->sph_root, field) == NULL)\
sys/sys/tree.h
258
SPLAY_LINKLEFT(head, __right, field); \
sys/sys/tree.h
260
__tmp = SPLAY_RIGHT((head)->sph_root, field); \
sys/sys/tree.h
264
SPLAY_ROTATE_LEFT(head, __tmp, field); \
sys/sys/tree.h
265
if (SPLAY_RIGHT((head)->sph_root, field) == NULL)\
sys/sys/tree.h
268
SPLAY_LINKRIGHT(head, __left, field); \
sys/sys/tree.h
271
SPLAY_ASSEMBLE(head, &__node, __left, __right, field); \
sys/sys/tree.h
286
#define SPLAY_FOREACH(x, name, head) \
sys/sys/tree.h
287
for ((x) = SPLAY_MIN(name, head); \
sys/sys/tree.h
289
(x) = SPLAY_NEXT(name, head, x))
sys/sys/tree.h
318
#define RB_ROOT(head) (head)->rbh_root
sys/sys/tree.h
319
#define RB_EMPTY(head) (RB_ROOT(head) == NULL)
sys/sys/tree.h
336
#define RB_ROTATE_LEFT(head, elm, tmp, field) do { \
sys/sys/tree.h
348
(head)->rbh_root = (tmp); \
sys/sys/tree.h
356
#define RB_ROTATE_RIGHT(head, elm, tmp, field) do { \
sys/sys/tree.h
368
(head)->rbh_root = (tmp); \
sys/sys/tree.h
402
name##_RB_INSERT_COLOR(struct name *head, struct type *elm) \
sys/sys/tree.h
417
RB_ROTATE_LEFT(head, parent, tmp, field);\
sys/sys/tree.h
423
RB_ROTATE_RIGHT(head, gparent, tmp, field); \
sys/sys/tree.h
433
RB_ROTATE_RIGHT(head, parent, tmp, field);\
sys/sys/tree.h
439
RB_ROTATE_LEFT(head, gparent, tmp, field); \
sys/sys/tree.h
442
RB_COLOR(head->rbh_root, field) = RB_BLACK; \
sys/sys/tree.h
446
name##_RB_REMOVE_COLOR(struct name *head, struct type *parent, struct type *elm) \
sys/sys/tree.h
450
elm != RB_ROOT(head)) { \
sys/sys/tree.h
455
RB_ROTATE_LEFT(head, parent, tmp, field);\
sys/sys/tree.h
473
RB_ROTATE_RIGHT(head, tmp, oleft, field);\
sys/sys/tree.h
480
RB_ROTATE_LEFT(head, parent, tmp, field);\
sys/sys/tree.h
481
elm = RB_ROOT(head); \
sys/sys/tree.h
488
RB_ROTATE_RIGHT(head, parent, tmp, field);\
sys/sys/tree.h
506
RB_ROTATE_LEFT(head, tmp, oright, field);\
sys/sys/tree.h
513
RB_ROTATE_RIGHT(head, parent, tmp, field);\
sys/sys/tree.h
514
elm = RB_ROOT(head); \
sys/sys/tree.h
524
name##_RB_REMOVE(struct name *head, struct type *elm) \
sys/sys/tree.h
549
RB_ROOT(head) = child; \
sys/sys/tree.h
560
RB_ROOT(head) = elm; \
sys/sys/tree.h
583
RB_ROOT(head) = child; \
sys/sys/tree.h
586
name##_RB_REMOVE_COLOR(head, parent, child); \
sys/sys/tree.h
592
name##_RB_INSERT(struct name *head, struct type *elm) \
sys/sys/tree.h
597
tmp = RB_ROOT(head); \
sys/sys/tree.h
616
RB_ROOT(head) = elm; \
sys/sys/tree.h
617
name##_RB_INSERT_COLOR(head, elm); \
sys/sys/tree.h
623
name##_RB_FIND(struct name *head, struct type *elm) \
sys/sys/tree.h
625
struct type *tmp = RB_ROOT(head); \
sys/sys/tree.h
641
name##_RB_NFIND(struct name *head, struct type *elm) \
sys/sys/tree.h
643
struct type *tmp = RB_ROOT(head); \
sys/sys/tree.h
705
name##_RB_MINMAX(struct name *head, int val) \
sys/sys/tree.h
707
struct type *tmp = RB_ROOT(head); \
sys/sys/tree.h
731
#define RB_FOREACH(x, name, head) \
sys/sys/tree.h
732
for ((x) = RB_MIN(name, head); \
sys/sys/tree.h
741
#define RB_FOREACH_SAFE(x, name, head, y) \
sys/sys/tree.h
742
for ((x) = RB_MIN(name, head); \
sys/sys/tree.h
746
#define RB_FOREACH_REVERSE(x, name, head) \
sys/sys/tree.h
747
for ((x) = RB_MAX(name, head); \
sys/sys/tree.h
756
#define RB_FOREACH_REVERSE_SAFE(x, name, head, y) \
sys/sys/tree.h
757
for ((x) = RB_MAX(name, head); \
sys/sys/tree.h
78
#define SPLAY_ROOT(head) (head)->sph_root
sys/sys/tree.h
79
#define SPLAY_EMPTY(head) (SPLAY_ROOT(head) == NULL)
sys/sys/tree.h
82
#define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \
sys/sys/tree.h
83
SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \
sys/sys/tree.h
84
SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
sys/sys/tree.h
85
(head)->sph_root = tmp; \
sys/sys/tree.h
88
#define SPLAY_ROTATE_LEFT(head, tmp, field) do { \
sys/sys/tree.h
89
SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \
sys/sys/tree.h
90
SPLAY_LEFT(tmp, field) = (head)->sph_root; \
sys/sys/tree.h
91
(head)->sph_root = tmp; \
sys/sys/tree.h
94
#define SPLAY_LINKLEFT(head, tmp, field) do { \
sys/sys/tree.h
95
SPLAY_LEFT(tmp, field) = (head)->sph_root; \
sys/sys/tree.h
96
tmp = (head)->sph_root; \
sys/sys/tree.h
97
(head)->sph_root = SPLAY_LEFT((head)->sph_root, field); \
sys/ufs/chfs/ebh_misc.h
46
#define EBH_TREE_DESTROY(name, head, type) \
sys/ufs/chfs/ebh_misc.h
49
for (var = RB_MIN(name, head); var != NULL; var = nxt) { \
sys/ufs/chfs/ebh_misc.h
50
nxt = RB_NEXT(name, head, var); \
sys/ufs/chfs/ebh_misc.h
51
RB_REMOVE(name, head, var); \
sys/ufs/chfs/ebh_misc.h
57
#define EBH_TREE_DESTROY_MUTEX(name, head, type) \
sys/ufs/chfs/ebh_misc.h
60
for (var = RB_MIN(name, head); var != NULL; var = nxt) { \
sys/ufs/chfs/ebh_misc.h
61
nxt = RB_NEXT(name, head, var); \
sys/ufs/chfs/ebh_misc.h
62
RB_REMOVE(name, head, var); \
sys/ufs/chfs/ebh_misc.h
71
#define EBH_QUEUE_DESTROY(head, type, entry) \
sys/ufs/chfs/ebh_misc.h
74
while ((var = TAILQ_FIRST(head))) { \
sys/ufs/chfs/ebh_misc.h
75
TAILQ_REMOVE(head, var, entry); \
sys/uvm/uvm_pgflcache.c
118
struct pgflist *head;
sys/uvm/uvm_pgflcache.c
133
head = &pgb->pgb_colors[c];
sys/uvm/uvm_pgflcache.c
140
pg = LIST_FIRST(head);
sys/uvm/uvm_pgflcache.c
149
head->lh_first = pg;
sys/uvm/uvm_pgflcache.c
151
pg->pageq.list.le_prev = &head->lh_first;
sys/uvm/uvm_pgflcache.c
172
struct pgflist *head;
sys/uvm/uvm_pgflcache.c
181
head = &pgb->pgb_colors[c];
sys/uvm/uvm_pgflcache.c
189
LIST_INSERT_HEAD(head, pcc->pages[pcc->count], pageq.list);
tests/include/sys/t_tree.c
40
RB_HEAD(head, mist) tt;
tests/include/sys/t_tree.c
57
RB_PROTOTYPE(head, mist, rbentry, mistcmp)
tests/include/sys/t_tree.c
58
RB_GENERATE(head, mist, rbentry, mistcmp)
tests/include/sys/t_tree.c
67
RB_INSERT(head, &tt, m);
tests/include/sys/t_tree.c
75
return (!!RB_FIND(head, &tt, m));
usr.bin/config/mkheaders.c
171
emitcnt(struct nvlist *head)
usr.bin/config/mkheaders.c
177
(void)snprintf(nfname, sizeof(nfname), "%s.h", head->nv_name);
usr.bin/config/mkheaders.c
183
for (nv = head; nv != NULL; nv = nv->nv_next)
usr.bin/ctags/ctags.c
168
if (head) {
usr.bin/ctags/ctags.c
170
put_entries(head);
usr.bin/ctags/ctags.c
219
put_entries(head);
usr.bin/ctags/ctags.c
62
NODE *head; /* head of the sorted binary tree */
usr.bin/ctags/ctags.h
67
extern NODE *head; /* head of the sorted binary tree */
usr.bin/ctags/tree.c
70
put_entries(head);
usr.bin/ctags/tree.c
71
free_tree(head);
usr.bin/ctags/tree.c
73
if (!(head = np = (NODE *)malloc(sizeof(NODE))))
usr.bin/ctags/tree.c
94
if (!head)
usr.bin/ctags/tree.c
95
head = np;
usr.bin/ctags/tree.c
97
add_node(np, head);
usr.bin/fdformat/fdformat.c
290
cmd.head = trk;
usr.bin/head/head.c
134
head(fp, linecnt, bytecnt);
usr.bin/head/head.c
138
head(stdin, linecnt, bytecnt);
usr.bin/head/head.c
65
static void head(FILE *, intmax_t, intmax_t);
usr.bin/mail/cmd3.c
306
struct header head;
usr.bin/mail/cmd3.c
309
(void)memset(&head, 0, sizeof(head));
usr.bin/mail/cmd3.c
342
head.h_to = np;
usr.bin/mail/cmd3.c
343
if ((head.h_subject = hfield("subject", mp)) == NULL)
usr.bin/mail/cmd3.c
344
head.h_subject = hfield("subj", mp);
usr.bin/mail/cmd3.c
345
head.h_subject = reedit(head.h_subject, "Re:");
usr.bin/mail/cmd3.c
352
head.h_cc = np;
usr.bin/mail/cmd3.c
354
head.h_cc = NULL;
usr.bin/mail/cmd3.c
355
head.h_bcc = NULL;
usr.bin/mail/cmd3.c
356
head.h_smopts = set_smopts(mp);
usr.bin/mail/cmd3.c
358
head.h_attach = NULL;
usr.bin/mail/cmd3.c
360
set_ident_fields(&head, mp);
usr.bin/mail/cmd3.c
361
mail1(&head, 1);
usr.bin/mail/cmd3.c
373
struct header head;
usr.bin/mail/cmd3.c
379
(void)memset(&head, 0, sizeof(head));
usr.bin/mail/cmd3.c
381
head.h_to = NULL;
usr.bin/mail/cmd3.c
388
head.h_to = cat(head.h_to, extract(cp, GTO));
usr.bin/mail/cmd3.c
390
if (head.h_to == NULL)
usr.bin/mail/cmd3.c
393
if ((head.h_subject = hfield("subject", mp)) == NULL)
usr.bin/mail/cmd3.c
394
head.h_subject = hfield("subj", mp);
usr.bin/mail/cmd3.c
395
head.h_subject = reedit(head.h_subject, "Re:");
usr.bin/mail/cmd3.c
396
head.h_cc = NULL;
usr.bin/mail/cmd3.c
397
head.h_bcc = NULL;
usr.bin/mail/cmd3.c
398
head.h_smopts = set_smopts(mp);
usr.bin/mail/cmd3.c
400
head.h_attach = NULL;
usr.bin/mail/cmd3.c
402
set_ident_fields(&head, mp);
usr.bin/mail/cmd3.c
403
mail1(&head, 1);
usr.bin/mail/send.c
777
struct header head;
usr.bin/mail/send.c
780
(void)memset(&head, 0, sizeof(head));
usr.bin/mail/send.c
782
head.h_to = to;
usr.bin/mail/send.c
783
head.h_subject = subject;
usr.bin/mail/send.c
784
head.h_cc = cc;
usr.bin/mail/send.c
785
head.h_bcc = bcc;
usr.bin/mail/send.c
786
head.h_smopts = smopts;
usr.bin/mail/send.c
788
head.h_attach = attach;
usr.bin/mail/send.c
790
mail1(&head, 0);
usr.bin/mail/send.c
802
struct header head;
usr.bin/mail/send.c
805
(void)memset(&head, 0, sizeof(head));
usr.bin/mail/send.c
807
head.h_to = extract(str, GTO);
usr.bin/mail/send.c
809
mail1(&head, 0);
usr.bin/man/manconf.c
112
TAILQ_INIT(&head);
usr.bin/man/manconf.c
228
TAILQ_FOREACH(tp, &head, q)
usr.bin/man/manconf.c
244
TAILQ_INSERT_TAIL(&head, tp, q);
usr.bin/man/manconf.c
66
static struct _head head; /* 'head' -- top level data structure */
usr.bin/mklocale/mklocaledb.c
100
if (head == tail || value > 0xFF)
usr.bin/mklocale/mklocaledb.c
93
const char *key, const char *head)
usr.bin/mklocale/mklocaledb.c
99
value = _bcs_strtoul(head, &tail, 0);
usr.bin/msgc/msgdb.c
208
for (t=head; t != NULL; t = t->next) {
usr.bin/msgc/msgdb.c
229
for (t=head ; t != NULL; t = t->next)
usr.bin/msgc/msgdb.c
55
static struct id_rec *head = NULL, *tail = NULL;
usr.bin/msgc/msgdb.c
70
head = tail = tmp;
usr.bin/netstat/inet.c
287
struct inpcbqueue *head;
usr.bin/netstat/inet.c
295
head = &table.inpt_queue;
usr.bin/netstat/inet.c
296
next = TAILQ_FIRST(head);
usr.bin/netstat/inet.c
297
prev = TAILQ_END(head);
usr.bin/netstat/inet.c
304
while (next != TAILQ_END(head)) {
usr.bin/netstat/inet6.c
296
struct inpcbqueue *head;
usr.bin/netstat/inet6.c
303
head = &table.inpt_queue;
usr.bin/netstat/inet6.c
304
next = TAILQ_FIRST(head);
usr.bin/netstat/inet6.c
305
prev = TAILQ_END(head);
usr.bin/netstat/inet6.c
312
while (next != TAILQ_END(head)) {
usr.bin/netstat/route.c
103
struct radix_node_head *rnh, head;
usr.bin/netstat/route.c
118
kget(rnh, head);
usr.bin/netstat/route.c
122
p_tree(head.rnh_treetop);
usr.bin/netstat/route.c
128
p_tree(head.rnh_treetop);
usr.bin/pkill/pkill.c
584
makelist(struct listhead *head, enum listtype type, char *src)
usr.bin/pkill/pkill.c
604
SLIST_INSERT_HEAD(head, li, li_chain);
usr.bin/rpcinfo/rpcinfo.c
470
struct pmaplist *head = NULL;
usr.bin/rpcinfo/rpcinfo.c
509
(char *)(void *)&head, minutetimeout);
usr.bin/rpcinfo/rpcinfo.c
529
if (head == NULL) {
usr.bin/rpcinfo/rpcinfo.c
533
for (; head != NULL; head = head->pml_next) {
usr.bin/rpcinfo/rpcinfo.c
535
head->pml_map.pm_prog,
usr.bin/rpcinfo/rpcinfo.c
536
head->pml_map.pm_vers);
usr.bin/rpcinfo/rpcinfo.c
537
if (head->pml_map.pm_prot == IPPROTO_UDP)
usr.bin/rpcinfo/rpcinfo.c
539
else if (head->pml_map.pm_prot == IPPROTO_TCP)
usr.bin/rpcinfo/rpcinfo.c
541
else if (head->pml_map.pm_prot == 0)
usr.bin/rpcinfo/rpcinfo.c
544
(void)printf("%6ld", head->pml_map.pm_prot);
usr.bin/rpcinfo/rpcinfo.c
545
(void)printf("%7ld", head->pml_map.pm_port);
usr.bin/rpcinfo/rpcinfo.c
546
rpc = getrpcbynumber((int)head->pml_map.pm_prog);
usr.bin/rpcinfo/rpcinfo.c
683
rpcblist_ptr head = NULL, p;
usr.bin/rpcinfo/rpcinfo.c
722
NULL, (xdrproc_t)xdr_rpcblist_ptr, (char *)(void *)&head,
usr.bin/rpcinfo/rpcinfo.c
735
(xdrproc_t)xdr_rpcblist_ptr, (char *)(void *)&head,
usr.bin/rpcinfo/rpcinfo.c
756
for (head = NULL; pmaphead != NULL;
usr.bin/rpcinfo/rpcinfo.c
761
if (head == NULL)
usr.bin/rpcinfo/rpcinfo.c
762
head = list;
usr.bin/rpcinfo/rpcinfo.c
796
if (head == NULL) {
usr.bin/rpcinfo/rpcinfo.c
801
for (p = head; p != NULL; p = p->rpcb_next) {
usr.bin/rpcinfo/rpcinfo.c
814
for (p = head; p != NULL; p = p->rpcb_next) {
usr.bin/rpcinfo/rpcinfo.c
874
while (head != NULL) {
usr.bin/rpcinfo/rpcinfo.c
875
rpcblist_ptr list = head->rpcb_next;
usr.bin/rpcinfo/rpcinfo.c
876
if (head->rpcb_map.r_addr)
usr.bin/rpcinfo/rpcinfo.c
877
free(head->rpcb_map.r_addr);
usr.bin/rpcinfo/rpcinfo.c
878
if (head->rpcb_map.r_netid)
usr.bin/rpcinfo/rpcinfo.c
879
free(head->rpcb_map.r_netid);
usr.bin/rpcinfo/rpcinfo.c
880
free(head);
usr.bin/rpcinfo/rpcinfo.c
881
head = list;
usr.bin/rpcinfo/rpcinfo.c
897
rpcb_entry_list_ptr head = NULL;
usr.bin/rpcinfo/rpcinfo.c
955
(char *)(void *)&head, minutetimeout) != RPC_SUCCESS) {
usr.bin/rpcinfo/rpcinfo.c
959
if (head == NULL) {
usr.bin/rpcinfo/rpcinfo.c
964
for (; head != NULL; head = head->rpcb_entry_next) {
usr.bin/rpcinfo/rpcinfo.c
968
re = &head->rpcb_entry_map;
usr.bin/tee/tee.c
109
for (p = head; p; p = p->next) {
usr.bin/tee/tee.c
128
for (p = head; p; p = p->next) {
usr.bin/tee/tee.c
147
p->next = head;
usr.bin/tee/tee.c
148
head = p;
usr.bin/tee/tee.c
62
LIST *head;
usr.sbin/ac/ac.c
228
on_console(struct utmp_list *head)
usr.sbin/ac/ac.c
232
for (up = head; up; up = up->next)
usr.sbin/ac/ac.c
244
update_user(struct user_list *head, char *name, time_t secs)
usr.sbin/ac/ac.c
248
for (up = head; up != NULL; up = up->next) {
usr.sbin/ac/ac.c
252
return head;
usr.sbin/ac/ac.c
259
return head;
usr.sbin/ac/ac.c
263
up->next = head;
usr.sbin/ac/ac.c
386
log_out(struct utmp_list *head, struct utmp *up)
usr.sbin/ac/ac.c
391
for (lp = head, lp2 = NULL; lp != NULL; )
usr.sbin/ac/ac.c
409
if (tlp == head) {
usr.sbin/ac/ac.c
410
head = lp;
usr.sbin/ac/ac.c
418
return head;
usr.sbin/ac/ac.c
426
log_in(struct utmp_list *head, struct utmp *up)
usr.sbin/ac/ac.c
436
return head;
usr.sbin/ac/ac.c
443
lp->next = head;
usr.sbin/ac/ac.c
444
head = lp;
usr.sbin/ac/ac.c
456
return head;
usr.sbin/ac/ac.c
462
struct utmp_list *lp, *head = NULL;
usr.sbin/ac/ac.c
482
show_today(Users, head, secs);
usr.sbin/ac/ac.c
495
for (lp = head; lp != NULL; lp = lp->next)
usr.sbin/ac/ac.c
499
head = log_out(head, &usr);
usr.sbin/ac/ac.c
514
head = log_in(head, &usr);
usr.sbin/ac/ac.c
523
head = log_out(head, &usr);
usr.sbin/ac/ac.c
541
show_today(Users, head, secs);
usr.sbin/ac/ac.c
547
head = log_out(head, &usr);
usr.sbin/ac/ac.c
550
show_today(Users, head, time((time_t *)0));
usr.sbin/acpitools/aml/aml_name.c
247
result->head = NULL;
usr.sbin/acpitools/aml/aml_name.c
268
if (target->head)
usr.sbin/acpitools/aml/aml_name.c
269
aml_delete_name(target->head);
usr.sbin/acpitools/aml/aml_name.c
293
newname->chain = name_group_list->head;
usr.sbin/acpitools/aml/aml_name.c
294
name_group_list->head = newname;
usr.sbin/acpitools/aml/aml_name.h
56
struct aml_name *head;
usr.sbin/altq/libaltq/qop.c
65
#define LIST_HEAD_INITIALIZER(head) { NULL }
usr.sbin/dumpfs/dumpfs.c
768
off_t boff, head, tail, len;
usr.sbin/dumpfs/dumpfs.c
775
head = tail = 0;
usr.sbin/dumpfs/dumpfs.c
804
((head >= tail && (boff < tail || boff >= head)) ||
usr.sbin/dumpfs/dumpfs.c
805
(head < tail && (boff >= head && boff < tail))))
usr.sbin/dumpfs/dumpfs.c
825
head = awh.wc_head;
usr.sbin/edquota/edquota.c
1067
for (qup = qlist->head; qup; qup = qup->next) {
usr.sbin/edquota/edquota.c
1089
for (qup = qlist->head; qup; qup = qup->next) {
usr.sbin/edquota/edquota.c
112
struct quotause *head;
usr.sbin/edquota/edquota.c
1128
for (qup = protoprivs->head; qup; qup = qup->next) {
usr.sbin/edquota/edquota.c
1200
for (lqup = curprivs->head; lqup; lqup = lqup->next) {
usr.sbin/edquota/edquota.c
255
qlist->head = NULL;
usr.sbin/edquota/edquota.c
270
for (qup = qlist->head; qup; qup = nextqup) {
usr.sbin/edquota/edquota.c
282
return qlist->head == NULL;
usr.sbin/edquota/edquota.c
292
if (qlist->head == NULL) {
usr.sbin/edquota/edquota.c
293
qlist->head = qup;
usr.sbin/edquota/edquota.c
618
for (qup = qlist->head; qup; qup = qup->next) {
usr.sbin/edquota/edquota.c
793
for (qup = qlist->head; qup; qup = qup->next) {
usr.sbin/fstyp/hammer2.c
263
char *p, *head;
usr.sbin/fstyp/hammer2.c
269
head = p;
usr.sbin/fstyp/hammer2.c
275
p = strrchr(head, '/');
usr.sbin/fstyp/hammer2.c
279
free(head);
usr.sbin/fstyp/hammer2.c
283
free(head);
usr.sbin/fstyp/hammer2.c
287
return head;
usr.sbin/fstyp/hammer2_disk.h
536
dmsg_hdr_t head;
usr.sbin/fstyp/hammer_disk.h
618
struct hammer_fifo_head head;
usr.sbin/fstyp/hammer_disk.h
664
struct hammer_fifo_head head;
usr.sbin/fstyp/hammer_disk.h
682
struct hammer_fifo_head head;
usr.sbin/makefs/cd9660.c
1006
TAILQ_INSERT_TAIL(head, cn_new, cn_next_child);
usr.sbin/makefs/cd9660.c
1334
struct cd9660_children_head *head = &root->cn_children;
usr.sbin/makefs/cd9660.c
1337
TAILQ_FOREACH(cn, head, cn_next_child) {
usr.sbin/makefs/cd9660.c
976
struct cd9660_children_head *head = &parent->cn_children;
usr.sbin/makefs/cd9660.c
987
TAILQ_FOREACH(cn, head, cn_next_child) {
usr.sbin/makefs/cd9660.h
214
TAILQ_HEAD(susp_linked_list, ISO_SUSP_ATTRIBUTES) head;
usr.sbin/makefs/cd9660/cd9660_debug.c
73
TAILQ_FOREACH(t, &node->head, rr_ll) {
usr.sbin/makefs/cd9660/cd9660_debug.c
84
TAILQ_FOREACH(t, &n->head, rr_ll) {
usr.sbin/makefs/cd9660/cd9660_eltorito.c
366
*valid_entry, *default_entry, *temp, *head, **headp, *next;
usr.sbin/makefs/cd9660/cd9660_eltorito.c
453
head = NULL;
usr.sbin/makefs/cd9660/cd9660_eltorito.c
482
head =
usr.sbin/makefs/cd9660/cd9660_eltorito.c
484
if (head == NULL) {
usr.sbin/makefs/cd9660/cd9660_eltorito.c
489
LIST_INSERT_AFTER(default_entry, head, ll_struct);
usr.sbin/makefs/cd9660/cd9660_eltorito.c
490
*headp = head;
usr.sbin/makefs/cd9660/cd9660_eltorito.c
492
head = *headp;
usr.sbin/makefs/cd9660/cd9660_eltorito.c
494
head->entry_data.SH.num_section_entries[0]++;
usr.sbin/makefs/cd9660/cd9660_eltorito.c
503
while ((next = LIST_NEXT(head, ll_struct)) != NULL &&
usr.sbin/makefs/cd9660/cd9660_eltorito.c
505
head = next;
usr.sbin/makefs/cd9660/cd9660_eltorito.c
507
LIST_INSERT_AFTER(head, temp, ll_struct);
usr.sbin/makefs/cd9660/cd9660_eltorito.c
511
head = NULL;
usr.sbin/makefs/cd9660/cd9660_eltorito.c
514
head = next;
usr.sbin/makefs/cd9660/cd9660_eltorito.c
516
if (head != NULL)
usr.sbin/makefs/cd9660/cd9660_eltorito.c
517
head->entry_data.SH.header_indicator[0] = ET_SECTION_HEADER_LAST;
usr.sbin/makefs/cd9660/cd9660_write.c
480
TAILQ_FOREACH(myattr, &writenode->head, rr_ll) {
usr.sbin/makefs/cd9660/iso9660_rrip.c
149
TAILQ_FOREACH(t, &node->head, rr_ll) {
usr.sbin/makefs/cd9660/iso9660_rrip.c
176
TAILQ_FOREACH(t, &node->head, rr_ll) {
usr.sbin/makefs/cd9660/iso9660_rrip.c
220
TAILQ_FOREACH(temp, &node->head, rr_ll) {
usr.sbin/makefs/cd9660/iso9660_rrip.c
249
TAILQ_INSERT_AFTER(&node->head, pre_ce, CE, rr_ll);
usr.sbin/makefs/cd9660/iso9660_rrip.c
251
TAILQ_INSERT_HEAD(&node->head, CE, rr_ll);
usr.sbin/makefs/cd9660/iso9660_rrip.c
267
TAILQ_INSERT_AFTER(&node->head, last, ST, rr_ll);
usr.sbin/makefs/cd9660/iso9660_rrip.c
269
TAILQ_INSERT_HEAD(&node->head, ST, rr_ll);
usr.sbin/makefs/cd9660/iso9660_rrip.c
320
TAILQ_INSERT_HEAD(&node->head, temp, rr_ll);
usr.sbin/makefs/cd9660/iso9660_rrip.c
343
TAILQ_INSERT_TAIL(&node->head, attr, rr_ll);
usr.sbin/makefs/cd9660/iso9660_rrip.c
349
TAILQ_INSERT_TAIL(&node->head, attr, rr_ll);
usr.sbin/makefs/cd9660/iso9660_rrip.c
367
TAILQ_INSERT_TAIL(&node->head, attr, rr_ll);
usr.sbin/makefs/cd9660/iso9660_rrip.c
395
TAILQ_INSERT_TAIL(&node->head, current, rr_ll);
usr.sbin/makefs/cd9660/iso9660_rrip.c
404
TAILQ_INSERT_TAIL(&node->head, current, rr_ll);
usr.sbin/makefs/cd9660/iso9660_rrip.c
411
TAILQ_INSERT_TAIL(&node->head, current, rr_ll);
usr.sbin/makefs/cd9660/iso9660_rrip.c
429
TAILQ_INSERT_TAIL(&node->head, current, rr_ll);
usr.sbin/makefs/cd9660/iso9660_rrip.c
437
TAILQ_INSERT_TAIL(&node->head, current, rr_ll);
usr.sbin/makefs/cd9660/iso9660_rrip.c
571
TAILQ_INSERT_TAIL(&node->head, current, rr_ll);
usr.sbin/makefs/cd9660/iso9660_rrip.c
610
TAILQ_INSERT_TAIL(&node->head, current, rr_ll);
usr.sbin/makefs/cd9660/iso9660_rrip.c
67
TAILQ_INIT(&(node->head));
usr.sbin/makefs/cd9660/iso9660_rrip.c
69
TAILQ_INIT(&(node->dot_record->head));
usr.sbin/makefs/cd9660/iso9660_rrip.c
71
TAILQ_INIT(&(node->dot_dot_record->head));
usr.sbin/makefs/cd9660/iso9660_rrip.c
765
TAILQ_INSERT_TAIL(&node->head, r, rr_ll);
usr.sbin/makefs/cd9660/iso9660_rrip.c
817
TAILQ_INSERT_TAIL(&node->head, r, rr_ll);
usr.sbin/makemandb/makemandb.c
1253
const struct roff_node *head;
usr.sbin/makemandb/makemandb.c
1258
if ((head = n->parent->head) == NULL || (head = head->child) == NULL ||
usr.sbin/makemandb/makemandb.c
1259
head->type != ROFFT_TEXT)
usr.sbin/makemandb/makemandb.c
1267
if (strcmp(head->string, mapping[i].header) == 0) {
usr.sbin/makemandb/makemandb.c
1273
if (strcmp(head->string, "NAME") == 0) {
usr.sbin/makemandb/makemandb.c
1358
if (strcmp(head->string, "RETURN") == 0 &&
usr.sbin/makemandb/makemandb.c
1359
head->next != NULL && head->next->type == ROFFT_TEXT &&
usr.sbin/makemandb/makemandb.c
1360
(strcmp(head->next->string, "VALUE") == 0 ||
usr.sbin/makemandb/makemandb.c
1361
strcmp(head->next->string, "VALUES") == 0)) {
usr.sbin/makemandb/makemandb.c
1370
if (strcmp(head->string, "EXIT") == 0 &&
usr.sbin/makemandb/makemandb.c
1371
head->next != NULL && head->next->type == ROFFT_TEXT &&
usr.sbin/makemandb/makemandb.c
1372
strcmp(head->next->string, "STATUS") == 0) {
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
206
struct nentry *tail, *head, *e;
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
221
tail = head = NULL;
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
230
if (head == NULL)
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
233
key.data = (u_char *)head->n_name;
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
234
key.size = strlen(head->n_name) + 1;
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
235
data.data = (u_char *)&head;
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
236
data.size = sizeof(head);
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
244
head->n_name);
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
262
head = tail = e;
usr.sbin/npf/npftest/libnpftest/npf_gc_test.c
22
npf_conn_t *head = npf_conndb_getlist(cd), *conn = head;
usr.sbin/npf/npftest/libnpftest/npf_gc_test.c
28
if (conn == head) {
usr.sbin/sysinst/arch/i386/md.c
719
int cyl, head, sec;
usr.sbin/sysinst/arch/i386/md.c
744
if (guess_biosgeom_from_parts(parts, &cyl, &head, &sec) >= 0
usr.sbin/sysinst/arch/i386/md.c
748
cyl, head, sec);
usr.sbin/sysinst/arch/i386/md.c
752
guess_biosgeom_from_parts(parts, &cyl, &head, &sec);
usr.sbin/sysinst/arch/i386/md.c
786
*bhead = head;
usr.sbin/sysinst/arch/playstation2/md.c
65
int cyl, head, sec, res;
usr.sbin/sysinst/arch/playstation2/md.c
93
if (guess_biosgeom_from_parts(pm->parts, &cyl, &head, &sec) >= 0
usr.sbin/sysinst/arch/playstation2/md.c
96
cyl, head, sec);
usr.sbin/sysinst/disks.c
1739
if (strcmp(item->head, name_prefix) == 0) {
usr.sbin/sysinst/disks.c
2000
l->head = "/dev/";
usr.sbin/sysinst/disks.c
2006
l->head = "/dev/";
usr.sbin/sysinst/disks.c
2012
l->head = NAME_PREFIX;
usr.sbin/sysinst/disks.c
2023
l->head = "/dev/";
usr.sbin/sysinst/disks.c
2031
l->head = NAME_PREFIX;
usr.sbin/sysinst/disks.c
2043
l->head = "/dev/";
usr.sbin/sysinst/disks.c
2051
l->head = NAME_PREFIX;
usr.sbin/sysinst/gpt.c
177
gpt_md_init(bool is_boot_disk, size_t *max_parts, size_t *head, size_t *tail)
usr.sbin/sysinst/gpt.c
194
*head = 2 + num/GPT_PARTS_PER_SEC;
usr.sbin/sysinst/label.c
2078
space_prompt[1024], *head, *hint_part, *hint_space, *tail;
usr.sbin/sysinst/label.c
2146
head = str_arg_subst(msg_string(MSG_label_offset_head),
usr.sbin/sysinst/label.c
2159
head, hint_part, hint_space, space_prompt, tail);
usr.sbin/sysinst/label.c
2162
head, hint_part, tail);
usr.sbin/sysinst/label.c
2165
head, hint_space, space_prompt, tail);
usr.sbin/sysinst/label.c
2168
head, tail);
usr.sbin/sysinst/label.c
2169
free(head); free(hint_part); free(hint_space); free(tail);
usr.sbin/sysinst/label.c
2242
*label_msg, *prompt, *head, *hint, *tail;
usr.sbin/sysinst/label.c
2279
head = str_arg_subst(msg_string(MSG_label_size_head),
usr.sbin/sysinst/label.c
2288
asprintf(&label_msg, "%s\n%s\n\n%s", head, hint, tail);
usr.sbin/sysinst/label.c
2290
asprintf(&label_msg, "%s\n\n%s", head, tail);
usr.sbin/sysinst/label.c
2291
free(head); free(hint); free(tail);
usr.sbin/sysinst/label.c
318
edit_fs_ffs_opt(menudesc *m, void *arg, msg head,
usr.sbin/sysinst/label.c
335
menu = new_menu(head, opts, i, 40, 6, 0, 0, MC_NOEXITOPT,
usr.sbin/sysinst/mbr.c
1906
int *cylinder, int *head, int *sector, daddr_t *absolute)
usr.sbin/sysinst/mbr.c
1914
*head = apart->mbrp_shd;
usr.sbin/sysinst/mbr.c
1919
*head = apart->mbrp_ehd;
usr.sbin/sysinst/mbr.c
1925
if ((((*cylinder * MAXHEAD) + *head) * (uint32_t)MAXSECTOR + *sector) < *absolute)
usr.sbin/sysinst/mbr.c
2471
mbr_guess_geom(struct disk_partitions *arg, int *cyl, int *head, int *sec)
usr.sbin/sysinst/mbr.c
2537
*head = xheads;
usr.sbin/sysinst/mbr.c
323
int cyl, head, sec;
usr.sbin/sysinst/mbr.c
327
if (guess_biosgeom_from_parts(parts, &cyl, &head, &sec) >= 0)
usr.sbin/sysinst/mbr.c
328
msg_fmt_display_add(MSG_biosguess, "%d%d%d", cyl, head, sec);
usr.sbin/sysinst/mbr.c
329
set_bios_geom(parts, &cyl, &head, &sec);
usr.sbin/sysinst/mbr.c
331
parts->pscheme->change_disk_geom(parts, cyl, head, sec);
usr.sbin/sysinst/mbr.c
353
set_bios_geom(struct disk_partitions *parts, int *cyl, int *head, int *sec)
usr.sbin/sysinst/mbr.c
371
snprintf(res, 80, "%d", *head);
usr.sbin/sysinst/mbr.c
385
*head = bhead;
usr.sbin/sysinst/mbr.c
795
convert_mbr_chs(int cyl, int head, int sec,
usr.sbin/sysinst/mbr.c
801
temp = head * sec;
usr.sbin/sysinst/mbr.c
827
int *cyl, int *head, int *sec)
usr.sbin/sysinst/mbr.c
849
*head = xheads;
usr.sbin/sysinst/mbr.c
855
return parts->pscheme->guess_disk_geom(parts, cyl, head, sec);
usr.sbin/sysinst/mbr.h
107
void set_bios_geom(struct disk_partitions *, int *cyl, int *head, int *sec);
usr.sbin/sysinst/partitions.h
495
int *cyl, int *head, int *sec);
usr.sbin/sysinst/partitions.h
507
int cyl, int head, int sec);
usr.sbin/sysinst/txtwalk.c
110
patlen = strlen(these[which].head);
usr.sbin/sysinst/txtwalk.c
113
if (strncmp(these[which].head, line, patlen) == 0) {
usr.sbin/sysinst/txtwalk.h
50
const char *head; /* Line starts this way. */
usr.sbin/syslogd/syslogd.c
4380
free_cred_SLIST(struct peer_cred_head *head)
usr.sbin/syslogd/syslogd.c
4384
while (!SLIST_EMPTY(head)) {
usr.sbin/syslogd/syslogd.c
4385
cred = SLIST_FIRST(head);
usr.sbin/syslogd/syslogd.c
4386
SLIST_REMOVE_HEAD(head, entries);
usr.sbin/syslogd/syslogd.c
4468
find_qentry_to_delete(const struct buf_queue_head *head, int strategy,
usr.sbin/syslogd/syslogd.c
4476
if (reset || STAILQ_EMPTY(head)) {
usr.sbin/syslogd/syslogd.c
4478
qentry_static = STAILQ_FIRST(head);
usr.sbin/syslogd/syslogd.c
4497
return find_qentry_to_delete(head, strategy, false);
usr.sbin/timed/timed/globals.h
112
u_char head; /* 1=head of hash chain */
usr.sbin/timed/timed/master.c
585
if (!newhost_hash->head) {
usr.sbin/timed/timed/master.c
600
ret->head = 1;
usr.sbin/timed/timed/master.c
606
ret->head = 0;
usr.sbin/timed/timed/master.c
615
ret->head = 1;
usr.sbin/timed/timed/master.c
660
if (htp->head && hnxt != htp) {
usr.sbin/timed/timed/master.c
675
hnxt->head = 1;
usr.sbin/timed/timed/readmsg.c
111
ptr = head->p;
usr.sbin/timed/timed/readmsg.c
112
prev = head;
usr.sbin/timed/timed/readmsg.c
325
while ((ptr = head->p) != NULL) {
usr.sbin/timed/timed/readmsg.c
326
head->p = ptr->p;
usr.sbin/timed/timed/readmsg.c
329
tail = head;
usr.sbin/timed/timed/readmsg.c
81
static struct tsplist *head = &msgslist;
usr.sbin/timed/timed/readmsg.c
93
if (head->p != 0) {
usr.sbin/timed/timed/readmsg.c
95
for (ptr = head->p; ptr != 0; ptr = ptr->p) {
usr.sbin/timed/timed/timed.c
212
self.head = 1;