Symbol: header
bin/df/df.c
381
static const char *header;
bin/df/df.c
388
header = " Size";
bin/df/df.c
389
mwp->total = mwp->used = mwp->avail = strlen(header);
bin/df/df.c
391
header = getbsize(&headerlen, &blocksize);
bin/df/df.c
400
printf(" %-*s %*s %*s Capacity", mwp->total, header, mwp->used,
bin/mined/mined.h
179
extern LINE *header; /* Head of line list */
bin/mined/mined1.c
1261
LINE *header; /* Head of line list */
bin/mined/mined1.c
1311
for (line = header->next; line != tail; line = next_line) {
bin/mined/mined1.c
1354
LINE *line = header;
bin/mined/mined1.c
1394
cur_line = header->next;
bin/mined/mined1.c
1401
reset(header->next, 0); /* Initialize pointers */
bin/mined/mined1.c
1404
display (0, 0, header->next, last_y);
bin/mined/mined1.c
1501
header = tail = (LINE *) alloc(sizeof(LINE)); /* Make header of list*/
bin/mined/mined1.c
1502
header->text = NIL_PTR;
bin/mined/mined1.c
1503
header->next = tail->prev = header;
bin/mined/mined1.c
1721
LINE *line = header->next;
bin/mined/mined1.c
1748
for (line = header->next; line != tail; line = line->next)
bin/mined/mined1.c
531
for (line = header->next; line != tail; line = line->next) {
bin/mined/mined1.c
622
while (count++ < 0 && line != header)
bin/mined/mined2.c
1009
for (line = header->next; line != tail; line = line->next) {
bin/mined/mined2.c
140
if (cur_line->prev != header) {
bin/mined/mined2.c
1424
if ((line = proceed(match_line, -(screenmax >> 1))) == header) {
bin/mined/mined2.c
1427
for (line = header->next; line != match_line; line = line->next)
bin/mined/mined2.c
1429
line = header->next;
bin/mined/mined2.c
213
if (number <= 0 || (line = proceed(header->next, number - 1)) == tail)
bin/mined/mined2.c
271
if (proceed(top_line, -screenmax) == header)
bin/mined/mined2.c
274
reset(header->next, 0);/* Reset top_line, etc. */
bin/mined/mined2.c
303
if (top_line->prev == header) /* Top of file. Can't scroll */
bin/mined/mined2.c
353
if (top_line->prev == header)
bin/mined/mined2.c
401
if (cur_line->prev == header)
bin/mined/mined2.c
498
if (x == 0 && cur_line->prev == header)
bin/ps/keyword.c
295
if (hp == NULL && v->header[0] != '\0')
bin/ps/keyword.c
296
hp = strdup(v->header);
bin/ps/keyword.c
309
vent->header = strdup(hp);
bin/ps/keyword.c
310
if (vent->header == NULL)
bin/ps/keyword.c
314
vent->header = v->header;
bin/ps/print.c
77
if (*vent->header != '\0') {
bin/ps/print.c
88
printf("%s", vent->header);
bin/ps/print.c
90
printf("%-*s", vent->width, vent->header);
bin/ps/print.c
92
printf("%*s", vent->width, vent->header);
bin/ps/ps.c
564
i = strlen(vent->header);
bin/ps/ps.h
56
const char *header;
bin/ps/ps.h
63
const char *header; /* default header */
crypto/libressl/crypto/bytestring/bs_cbs.c
361
CBS header = *cbs;
crypto/libressl/crypto/bytestring/bs_cbs.c
372
if (!CBS_get_u8(&header, &tag) || !CBS_get_u8(&header, &length_byte))
crypto/libressl/crypto/bytestring/bs_cbs.c
417
if (!cbs_get_u(&header, &len32, num_bytes))
crypto/libressl/crypto/pem/pem_info.c
102
char *name = NULL, *header = NULL;
crypto/libressl/crypto/pem/pem_info.c
125
if (!PEM_read_bio(bp, &name, &header, &data, &len)) {
crypto/libressl/crypto/pem/pem_info.c
178
if (strlen(header) > 10) /* assume encrypted */
crypto/libressl/crypto/pem/pem_info.c
198
if (strlen(header) > 10) /* assume encrypted */
crypto/libressl/crypto/pem/pem_info.c
218
if (strlen(header) > 10) /* assume encrypted */
crypto/libressl/crypto/pem/pem_info.c
231
if (!PEM_get_EVP_CIPHER_INFO(header, &cipher))
crypto/libressl/crypto/pem/pem_info.c
247
if (!PEM_get_EVP_CIPHER_INFO(header,
crypto/libressl/crypto/pem/pem_info.c
258
free(header);
crypto/libressl/crypto/pem/pem_info.c
261
header = NULL;
crypto/libressl/crypto/pem/pem_info.c
286
free(header);
crypto/libressl/crypto/pem/pem_lib.c
286
char *nm = NULL, *header = NULL;
crypto/libressl/crypto/pem/pem_lib.c
292
if (!PEM_read_bio(bp, &nm, &header, &data, &len)) {
crypto/libressl/crypto/pem/pem_lib.c
301
free(header);
crypto/libressl/crypto/pem/pem_lib.c
304
if (!PEM_get_EVP_CIPHER_INFO(header, &cipher))
crypto/libressl/crypto/pem/pem_lib.c
320
free(header);
crypto/libressl/crypto/pem/pem_lib.c
488
PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher)
crypto/libressl/crypto/pem/pem_lib.c
492
char **header_pp = &header;
crypto/libressl/crypto/pem/pem_lib.c
495
if ((header == NULL) || (*header == '\0') || (*header == '\n'))
crypto/libressl/crypto/pem/pem_lib.c
497
if (strncmp(header, "Proc-Type: ", 11) != 0) {
crypto/libressl/crypto/pem/pem_lib.c
501
header += 11;
crypto/libressl/crypto/pem/pem_lib.c
502
if (*header != '4')
crypto/libressl/crypto/pem/pem_lib.c
504
header++;
crypto/libressl/crypto/pem/pem_lib.c
505
if (*header != ',')
crypto/libressl/crypto/pem/pem_lib.c
507
header++;
crypto/libressl/crypto/pem/pem_lib.c
508
if (strncmp(header, "ENCRYPTED", 9) != 0) {
crypto/libressl/crypto/pem/pem_lib.c
512
for (; (*header != '\n') && (*header != '\0'); header++)
crypto/libressl/crypto/pem/pem_lib.c
514
if (*header == '\0') {
crypto/libressl/crypto/pem/pem_lib.c
518
header++;
crypto/libressl/crypto/pem/pem_lib.c
519
if (strncmp(header, "DEK-Info: ", 10) != 0) {
crypto/libressl/crypto/pem/pem_lib.c
523
header += 10;
crypto/libressl/crypto/pem/pem_lib.c
525
p = header;
crypto/libressl/crypto/pem/pem_lib.c
527
c= *header;
crypto/libressl/crypto/pem/pem_lib.c
531
header++;
crypto/libressl/crypto/pem/pem_lib.c
533
*header = '\0';
crypto/libressl/crypto/pem/pem_lib.c
535
*header = c;
crypto/libressl/crypto/pem/pem_lib.c
536
header++;
crypto/libressl/crypto/pem/pem_lib.c
578
PEM_write(FILE *fp, const char *name, const char *header,
crypto/libressl/crypto/pem/pem_lib.c
589
ret = PEM_write_bio(b, name, header, data, len);
crypto/libressl/crypto/pem/pem_lib.c
595
PEM_write_bio(BIO *bp, const char *name, const char *header,
crypto/libressl/crypto/pem/pem_lib.c
611
if (header != NULL && (i = strlen(header)) > 0) {
crypto/libressl/crypto/pem/pem_lib.c
612
if ((BIO_write(bp, header, i) != i) ||
crypto/libressl/crypto/pem/pem_lib.c
652
PEM_read(FILE *fp, char **name, char **header, unsigned char **data, long *len)
crypto/libressl/crypto/pem/pem_lib.c
662
ret = PEM_read_bio(b, name, header, data, len);
crypto/libressl/crypto/pem/pem_lib.c
668
PEM_read_bio(BIO *bp, char **name, char **header, unsigned char **data,
crypto/libressl/crypto/pem/pem_lib.c
824
*header = headerB->data;
crypto/libressl/include/openssl/pem.h
372
int PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher);
crypto/libressl/include/openssl/pem.h
377
int PEM_read_bio(BIO *bp, char **name, char **header,
crypto/libressl/include/openssl/pem.h
395
int PEM_read(FILE *fp, char **name, char **header,
crypto/libressl/ssl/bs_cbs.c
361
CBS header = *cbs;
crypto/libressl/ssl/bs_cbs.c
372
if (!CBS_get_u8(&header, &tag) || !CBS_get_u8(&header, &length_byte))
crypto/libressl/ssl/bs_cbs.c
417
if (!cbs_get_u(&header, &len32, num_bytes))
crypto/libressl/ssl/d1_both.c
1172
dtls1_get_message_header(CBS *header, struct hm_header_st *msg_hdr)
crypto/libressl/ssl/d1_both.c
1180
if (!CBS_get_u8(header, &type))
crypto/libressl/ssl/d1_both.c
1182
if (!CBS_get_u24(header, &msg_len))
crypto/libressl/ssl/d1_both.c
1184
if (!CBS_get_u16(header, &seq))
crypto/libressl/ssl/d1_both.c
1186
if (!CBS_get_u24(header, &frag_off))
crypto/libressl/ssl/d1_both.c
1188
if (!CBS_get_u24(header, &frag_len))
crypto/libressl/ssl/d1_pkt.c
373
CBS header, seq_no;
crypto/libressl/ssl/d1_pkt.c
387
CBS_init(&header, s->internal->packet, s->internal->packet_length);
crypto/libressl/ssl/d1_pkt.c
390
if (!CBS_get_u8(&header, &type))
crypto/libressl/ssl/d1_pkt.c
392
if (!CBS_get_u16(&header, &ssl_version))
crypto/libressl/ssl/d1_pkt.c
396
if (!CBS_get_bytes(&header, &seq_no, SSL3_SEQUENCE_SIZE))
crypto/libressl/ssl/d1_pkt.c
404
if (!CBS_get_u16(&header, &len))
crypto/libressl/ssl/d1_pkt.c
424
p = (unsigned char *)CBS_data(&header);
crypto/libressl/ssl/dtls_locl.h
200
int dtls1_get_message_header(CBS *header, struct hm_header_st *msg_hdr);
crypto/libressl/ssl/s3_cbc.c
380
size_t* md_out_size, const unsigned char header[13],
crypto/libressl/ssl/s3_cbc.c
551
memcpy(first_block, header, 13);
crypto/libressl/ssl/s3_cbc.c
571
b = header[k];
crypto/libressl/ssl/ssl_locl.h
1558
size_t *md_out_size, const unsigned char header[13],
crypto/libressl/ssl/ssl_packet.c
22
ssl_is_sslv2_client_hello(CBS *header)
crypto/libressl/ssl/ssl_packet.c
238
CBS header;
crypto/libressl/ssl/ssl_packet.c
243
CBS_init(&header, s->internal->packet, SSL3_RT_HEADER_LENGTH);
crypto/libressl/ssl/ssl_packet.c
245
if (ssl_is_sslv3_handshake(&header) == 1)
crypto/libressl/ssl/ssl_packet.c
252
if (ssl_is_sslv2_client_hello(&header) == 1) {
crypto/libressl/ssl/ssl_packet.c
270
if (CBS_len(&header) != SSL3_RT_HEADER_LENGTH) {
crypto/libressl/ssl/ssl_packet.c
274
data = (const char *)CBS_data(&header);
crypto/libressl/ssl/ssl_packet.c
28
CBS_dup(header, &cbs);
crypto/libressl/ssl/ssl_packet.c
50
ssl_is_sslv3_handshake(CBS *header)
crypto/libressl/ssl/ssl_packet.c
56
CBS_dup(header, &cbs);
crypto/libressl/ssl/ssl_pkt.c
342
CBS header;
crypto/libressl/ssl/ssl_pkt.c
359
CBS_init(&header, s->internal->packet, SSL3_RT_HEADER_LENGTH);
crypto/libressl/ssl/ssl_pkt.c
362
if (!CBS_get_u8(&header, &type) ||
crypto/libressl/ssl/ssl_pkt.c
363
!CBS_get_u16(&header, &ssl_version) ||
crypto/libressl/ssl/ssl_pkt.c
364
!CBS_get_u16(&header, &len)) {
crypto/libressl/ssl/tls12_record_layer.c
1144
uint8_t *header = NULL;
crypto/libressl/ssl/tls12_record_layer.c
1167
seq_num, &header, &header_len))
crypto/libressl/ssl/tls12_record_layer.c
1178
rp->aead_nonce, rp->aead_nonce_len, content, content_len, header,
crypto/libressl/ssl/tls12_record_layer.c
1188
freezero(header, header_len);
crypto/libressl/ssl/tls12_record_layer.c
687
uint8_t *header = NULL;
crypto/libressl/ssl/tls12_record_layer.c
699
seq_num, &header, &header_len))
crypto/libressl/ssl/tls12_record_layer.c
702
if (EVP_DigestSignUpdate(mac_ctx, header, header_len) <= 0)
crypto/libressl/ssl/tls12_record_layer.c
725
freezero(header, header_len);
crypto/libressl/ssl/tls12_record_layer.c
735
uint8_t *header = NULL;
crypto/libressl/ssl/tls12_record_layer.c
749
seq_num, &header, &header_len))
crypto/libressl/ssl/tls12_record_layer.c
754
if (!ssl3_cbc_digest_record(rl->read->hash_ctx, mac, &out_mac_len, header,
crypto/libressl/ssl/tls12_record_layer.c
764
freezero(header, header_len);
crypto/libressl/ssl/tls12_record_layer.c
885
uint8_t *header = NULL;
crypto/libressl/ssl/tls12_record_layer.c
921
seq_num, &header, &header_len))
crypto/libressl/ssl/tls12_record_layer.c
926
CBS_len(fragment), header, header_len)) {
crypto/libressl/ssl/tls12_record_layer.c
944
freezero(header, header_len);
crypto/libressl/ssl/tls13_record_layer.c
550
CBS header, enc_record, inner;
crypto/libressl/ssl/tls13_record_layer.c
559
if (!tls13_record_header(rl->rrec, &header))
crypto/libressl/ssl/tls13_record_layer.c
576
CBS_data(&header), CBS_len(&header)))
crypto/libressl/ssl/tls13_record_layer.c
687
uint8_t *data = NULL, *header = NULL, *inner = NULL;
crypto/libressl/ssl/tls13_record_layer.c
728
if (!CBB_finish(&cbb, &header, &header_len))
crypto/libressl/ssl/tls13_record_layer.c
734
if (!CBB_add_bytes(&cbb, header, header_len))
crypto/libressl/ssl/tls13_record_layer.c
753
inner, inner_len, header, header_len))
crypto/libressl/ssl/tls13_record_layer.c
777
freezero(header, header_len);
games/adventure/save.c
63
static const char header[] = "Adventure save file\n";
games/adventure/save.c
668
if (savefile_rawwrite(sf, header, strlen(header))) {
games/adventure/save.c
748
char buf[sizeof(header)];
games/adventure/save.c
749
size_t headersize = strlen(header);
games/adventure/save.c
765
if (strcmp(buf, header) != 0) {
games/monop/print.c
181
printf("\t%s\n", header);
games/monop/print.c
36
static const char *header = "Name Own Price Mg # Rent";
games/monop/print.c
48
printf("%s\t%s\n", header, header);
games/monop/print.c
64
printf("%s Player\n", header);
lib/libc/gen/getbsize.c
101
return (header);
lib/libc/gen/getbsize.c
42
static char header[20];
lib/libc/gen/getbsize.c
98
snprintf(header, sizeof(header), "%ld%s-blocks", n, form);
lib/libc/gen/getbsize.c
99
*headerlenp = strlen(header);
lib/libc/locale/collate.c
56
.header = {{0}, "C"},
lib/libc/locale/collate.c
61
.header = {{0}, "C"},
lib/libc/locale/collate.c
85
table->header.header.destructor = destruct_collate;
lib/libc/locale/collate.h
117
struct xlocale_component header;
lib/libc/locale/lmessages.c
45
struct xlocale_component header;
lib/libc/locale/lmessages.c
97
new->header.header.destructor = destruct_messages;
lib/libc/locale/lmonetary.c
159
new->header.header.destructor = destruct_monetary;
lib/libc/locale/lmonetary.h
67
struct xlocale_component header;
lib/libc/locale/lnumeric.c
98
new->header.header.destructor = destruct_numeric;
lib/libc/locale/lnumeric.h
49
struct xlocale_component header;
lib/libc/locale/mblocal.h
47
struct xlocale_component header;
lib/libc/locale/setrunelocale.c
197
l->header.header.destructor = destruct_ctype;
lib/libc/locale/xlocale.c
195
new->header.destructor = destruct_locale;
lib/libc/locale/xlocale.c
75
.header = {0},
lib/libc/locale/xlocale.c
91
.header = {0},
lib/libc/locale/xlocale_private.h
102
struct xlocale_refcounted header;
lib/libc/locale/xlocale_private.h
111
struct xlocale_refcounted header;
lib/libc/stdtime/timelocal.c
146
new->header.header.destructor = destruct_time;
lib/libc/stdtime/timelocal.c
42
struct xlocale_component header;
lib/libc/xdr/xdr_rec.c
678
uint32_t header;
lib/libc/xdr/xdr_rec.c
682
if (! get_input_bytes(rstrm, (char *)(void *)&header, sizeof(header)))
lib/libc/xdr/xdr_rec.c
684
header = ntohl(header);
lib/libc/xdr/xdr_rec.c
685
rstrm->last_frag = ((header & LAST_FRAG) == 0) ? FALSE : TRUE;
lib/libc/xdr/xdr_rec.c
694
if (header == 0)
lib/libc/xdr/xdr_rec.c
696
rstrm->fbtbc = header & (~LAST_FRAG);
lib/libefivar/efivar-dp.h
52
efidp_header header;
lib/libnetgraph/debug.c
199
NGLOGX(" vers %d", msg->header.version);
lib/libnetgraph/debug.c
200
NGLOGX(" arglen %d", msg->header.arglen);
lib/libnetgraph/debug.c
201
NGLOGX(" flags %u", msg->header.flags);
lib/libnetgraph/debug.c
202
NGLOGX(" token %u", msg->header.token);
lib/libnetgraph/debug.c
204
NgCookie(msg->header.typecookie), msg->header.typecookie);
lib/libnetgraph/debug.c
220
arglen = msg->header.arglen;
lib/libnetgraph/debug.c
224
bin->header.arglen = arglen;
lib/libnetgraph/debug.c
231
NGM_BINARY2ASCII, bin, sizeof(*bin) + bin->header.arglen) < 0) {
lib/libnetgraph/debug.c
244
NGLOGX(" cmd %s (%d)", bin->header.cmdstr, bin->header.cmd);
lib/libnetgraph/debug.c
252
NGLOGX(" cmd %d", msg->header.cmd);
lib/libnetgraph/debug.c
253
NGLOGX(" args (%d bytes)", msg->header.arglen);
lib/libnetgraph/debug.c
254
_NgDebugBytes(msg->data, msg->header.arglen);
lib/libnetgraph/msg.c
128
strncpy(ascii->header.cmdstr, cmd, sizeof(ascii->header.cmdstr) - 1);
lib/libnetgraph/msg.c
130
ascii->header.arglen = strlen(ascii->data) + 1;
lib/libnetgraph/msg.c
135
(u_char *)ascii, sizeof(*ascii) + ascii->header.arglen) < 0)
lib/libnetgraph/msg.c
145
binary->header.token = gMsgId;
lib/libnetgraph/msg.c
147
path, binary, binary->data, binary->header.arglen) < 0)
lib/libnetgraph/msg.c
149
return (binary->header.token);
lib/libnetgraph/msg.c
164
rep.header.flags = NGF_RESP;
lib/libnetgraph/msg.c
201
msg->header.arglen = arglen;
lib/libnetgraph/msg.c
212
(msg->header.flags & NGF_RESP) ? "RESPONSE" : "MESSAGE");
lib/libnetgraph/msg.c
262
(rep->header.flags & NGF_RESP) ? "RESPONSE" : "MESSAGE");
lib/libnetgraph/msg.c
299
NGM_BINARY2ASCII, msg, sizeof(*msg) + msg->header.arglen) < 0)
lib/libnetgraph/msg.c
305
if (sizeof(*ascii) + ascii->header.arglen > replen) {
lib/libnetgraph/msg.c
313
strncpy(reply->data, ascii->data, ascii->header.arglen);
lib/libnetgraph/msg.c
72
msg.header.version = NG_VERSION;
lib/libnetgraph/msg.c
73
msg.header.typecookie = cookie;
lib/libnetgraph/msg.c
76
msg.header.token = gMsgId;
lib/libnetgraph/msg.c
77
msg.header.flags = NGF_ORIG;
lib/libnetgraph/msg.c
78
msg.header.cmd = cmd;
lib/libnetgraph/msg.c
79
snprintf(msg.header.cmdstr, NG_CMDSTRSIZ, "cmd%d", cmd);
lib/libnetgraph/msg.c
84
return (msg.header.token);
lib/libnetgraph7/debug.c
227
NGLOGX(" vers %d", msg->header.version);
lib/libnetgraph7/debug.c
228
NGLOGX(" arglen %d", msg->header.arglen);
lib/libnetgraph7/debug.c
229
NGLOGX(" flags %ld", msg->header.flags);
lib/libnetgraph7/debug.c
230
NGLOGX(" token %lu", (u_long)msg->header.token);
lib/libnetgraph7/debug.c
232
NgCookie(msg->header.typecookie), msg->header.typecookie);
lib/libnetgraph7/debug.c
248
arglen = msg->header.arglen;
lib/libnetgraph7/debug.c
252
bin->header.arglen = arglen;
lib/libnetgraph7/debug.c
259
NGM_BINARY2ASCII, bin, sizeof(*bin) + bin->header.arglen) < 0) {
lib/libnetgraph7/debug.c
272
NGLOGX(" cmd %s (%d)", bin->header.cmdstr, bin->header.cmd);
lib/libnetgraph7/debug.c
280
NGLOGX(" cmd %d", msg->header.cmd);
lib/libnetgraph7/debug.c
281
NGLOGX(" args (%d bytes)", msg->header.arglen);
lib/libnetgraph7/debug.c
282
_NgDebugBytes(msg->data, msg->header.arglen);
lib/libnetgraph7/msg.c
125
strncpy((char *)ascii->header.cmdstr, cmd,
lib/libnetgraph7/msg.c
126
sizeof(ascii->header.cmdstr) - 1);
lib/libnetgraph7/msg.c
128
ascii->header.arglen = strlen(ascii->data) + 1;
lib/libnetgraph7/msg.c
133
(u_char *)ascii, sizeof(*ascii) + ascii->header.arglen) < 0) {
lib/libnetgraph7/msg.c
147
binary->header.token = gMsgId;
lib/libnetgraph7/msg.c
148
binary->header.version = NG_VERSION;
lib/libnetgraph7/msg.c
150
path, binary, binary->data, binary->header.arglen) < 0) {
lib/libnetgraph7/msg.c
154
token = binary->header.token;
lib/libnetgraph7/msg.c
171
rep.header.flags = NGF_RESP;
lib/libnetgraph7/msg.c
208
msg->header.arglen = arglen;
lib/libnetgraph7/msg.c
220
(msg->header.flags & NGF_RESP) ? "RESPONSE" : "MESSAGE");
lib/libnetgraph7/msg.c
236
if (msg->header.cmd & NGM_HASREPLY) {
lib/libnetgraph7/msg.c
287
(rep->header.flags & NGF_RESP) ? "RESPONSE" : "MESSAGE");
lib/libnetgraph7/msg.c
342
NGM_BINARY2ASCII, msg, sizeof(*msg) + msg->header.arglen) < 0)
lib/libnetgraph7/msg.c
348
if (sizeof(*ascii) + ascii->header.arglen > replen) {
lib/libnetgraph7/msg.c
356
strncpy(reply->data, ascii->data, ascii->header.arglen);
lib/libnetgraph7/msg.c
72
msg.header.version = NG_VERSION;
lib/libnetgraph7/msg.c
73
msg.header.typecookie = cookie;
lib/libnetgraph7/msg.c
76
msg.header.token = gMsgId;
lib/libnetgraph7/msg.c
77
msg.header.flags = NGF_ORIG;
lib/libnetgraph7/msg.c
78
msg.header.cmd = cmd;
lib/libnetgraph7/msg.c
79
snprintf((char *)msg.header.cmdstr, NG_CMDSTRSIZ, "cmd%d", cmd);
lib/libnetgraph7/msg.c
84
return (msg.header.token);
libexec/pppoed/pppoed.c
389
if (rep->header.version != NG_VERSION) {
libexec/pppoed/pppoed.c
391
(long)rep->header.version, (long)NG_VERSION);
libexec/pppoed/pppoed.c
395
if (rep->header.typecookie != NGM_PPPOE_COOKIE) {
libexec/pppoed/pppoed.c
397
(long)rep->header.typecookie, (long)NGM_PPPOE_COOKIE);
libexec/pppoed/pppoed.c
401
switch (rep->header.cmd) {
libexec/pppoed/pppoed.c
424
snprintf(unknown, sizeof unknown, "<%d>", (int)rep->header.cmd);
libexec/pppoed/pppoed.c
429
switch (rep->header.cmd) {
libexec/pppoed/pppoed.c
438
} while (rep->header.cmd != NGM_PPPOE_SUCCESS);
sbin/hammer2/zlib/hammer2_zlib_deflate.c
387
uInt header = (Z_DEFLATED + ((s->w_bits-8)<<4)) << 8;
sbin/hammer2/zlib/hammer2_zlib_deflate.c
398
header |= (level_flags << 6);
sbin/hammer2/zlib/hammer2_zlib_deflate.c
399
if (s->strstart != 0) header |= PRESET_DICT;
sbin/hammer2/zlib/hammer2_zlib_deflate.c
400
header += 31 - (header % 31);
sbin/hammer2/zlib/hammer2_zlib_deflate.c
403
putShortMSB(s, header);
sbin/hammer2/zlib/hammer2_zlib_trees.c
1215
copy_block(deflate_state *s, charf *buf, unsigned len, int header)
sbin/hammer2/zlib/hammer2_zlib_trees.c
1219
if (header) {
sbin/hammer2/zlib/hammer2_zlib_trees.c
156
int header);
sbin/hammer2/zlib/hammer2_zlib_trees.c
332
FILE *header = fopen("trees.h", "w");
sbin/hammer2/zlib/hammer2_zlib_trees.c
335
Assert (header != NULL, "Can't open trees.h");
sbin/hammer2/zlib/hammer2_zlib_trees.c
336
fprintf(header,
sbin/hammer2/zlib/hammer2_zlib_trees.c
339
fprintf(header, "local const ct_data static_ltree[L_CODES+2] = {\n");
sbin/hammer2/zlib/hammer2_zlib_trees.c
341
fprintf(header, "{{%3u},{%3u}}%s", static_ltree[i].Code,
sbin/hammer2/zlib/hammer2_zlib_trees.c
345
fprintf(header, "local const ct_data static_dtree[D_CODES] = {\n");
sbin/hammer2/zlib/hammer2_zlib_trees.c
347
fprintf(header, "{{%2u},{%2u}}%s", static_dtree[i].Code,
sbin/hammer2/zlib/hammer2_zlib_trees.c
351
fprintf(header, "const uch ZLIB_INTERNAL _dist_code[DIST_CODE_LEN] = {\n");
sbin/hammer2/zlib/hammer2_zlib_trees.c
353
fprintf(header, "%2u%s", _dist_code[i],
sbin/hammer2/zlib/hammer2_zlib_trees.c
357
fprintf(header,
sbin/hammer2/zlib/hammer2_zlib_trees.c
360
fprintf(header, "%2u%s", _length_code[i],
sbin/hammer2/zlib/hammer2_zlib_trees.c
364
fprintf(header, "local const int base_length[LENGTH_CODES] = {\n");
sbin/hammer2/zlib/hammer2_zlib_trees.c
366
fprintf(header, "%1u%s", base_length[i],
sbin/hammer2/zlib/hammer2_zlib_trees.c
370
fprintf(header, "local const int base_dist[D_CODES] = {\n");
sbin/hammer2/zlib/hammer2_zlib_trees.c
372
fprintf(header, "%5u%s", base_dist[i],
sbin/hammer2/zlib/hammer2_zlib_trees.c
376
fclose(header);
sbin/restore/tape.c
1148
accthdr(struct s_spcl *header)
sbin/restore/tape.c
1155
if (header->c_type == TS_TAPE) {
sbin/restore/tape.c
1158
if (header->c_firstrec)
sbin/restore/tape.c
1160
(long)header->c_firstrec);
sbin/restore/tape.c
1190
if (header->c_type != TS_END)
sbin/restore/tape.c
1191
for (i = 0; i < header->c_count; i++)
sbin/restore/tape.c
1192
if (readmapflag || header->c_addr[i] != 0)
sbin/restore/tape.c
1196
prevtype = header->c_type;
sbin/restore/tape.c
1197
previno = header->c_inumber;
sbin/restore/tape.c
1205
findinode(struct s_spcl *header)
sbin/restore/tape.c
1217
if (header->c_magic != NFS_MAGIC) {
sbin/restore/tape.c
1219
while (gethead(header) == FAIL ||
sbin/restore/tape.c
1220
header->c_date != dumpdate)
sbin/restore/tape.c
1223
htype = header->c_type;
sbin/restore/tape.c
1230
for (i = 0; i < header->c_count; i++)
sbin/restore/tape.c
1231
if (header->c_addr[i])
sbin/restore/tape.c
1233
while (gethead(header) == FAIL ||
sbin/restore/tape.c
1234
header->c_date != dumpdate)
sbin/restore/tape.c
1239
curfile.dip = &header->c_dinode;
sbin/restore/tape.c
1240
curfile.ino = header->c_inumber;
stand/lib/bootp.c
86
u_char header[HEADER_SIZE];
stand/lib/bootp.c
90
u_char header[HEADER_SIZE];
stand/lib/rarp.c
65
u_char header[ETHER_SIZE];
stand/lib/rarp.c
72
u_char header[ETHER_SIZE];
stand/lib/tftp.c
196
u_char header[HEADER_SIZE];
stand/lib/tftp.c
239
u_char header[HEADER_SIZE];
stand/lib/tftp.c
95
u_char header[HEADER_SIZE];
sys/bus/cam/scsi/scsi_cd.c
137
struct ioc_toc_header header;
sys/bus/cam/scsi/scsi_cd.c
142
struct ioc_toc_header header;
sys/bus/cam/scsi/scsi_cd.c
2009
softc->toc.header.ending_track + 1)
sys/bus/cam/scsi/scsi_cd.c
2012
softc->toc.header.ending_track + 1)
sys/bus/cam/scsi/scsi_cd.c
2014
softc->toc.header.ending_track + 1;
sys/bus/cam/scsi/scsi_cd.c
2016
softc->toc.header.starting_track;
sys/bus/cam/scsi/scsi_cd.c
2018
softc->toc.header.starting_track;
sys/bus/cam/scsi/scsi_cd.c
2021
|| (st > (softc->toc.header.ending_track -
sys/bus/cam/scsi/scsi_cd.c
2022
softc->toc.header.starting_track))) {
sys/bus/cam/scsi/scsi_cd.c
2174
len = min(len, ((data->header.data_len[0] << 8) +
sys/bus/cam/scsi/scsi_cd.c
2175
data->header.data_len[1] +
sys/bus/cam/scsi/scsi_cd.c
2247
th = &data->header;
sys/bus/cam/scsi/scsi_cd.c
2372
th = &data->header;
sys/bus/cam/scsi/scsi_cd.c
2911
toch = &softc->toc.header;
sys/bus/cam/scsi/scsi_cd.h
697
struct scsi_mode_header_10 header;
sys/bus/cam/scsi/scsi_cd.h
704
struct scsi_mode_header_6 header;
sys/bus/cam/scsi/scsi_ch.c
136
struct scsi_mode_header_6 header;
sys/bus/u4b/uvc/uvc_buf.c
252
(v->bulk.header[1] & UVC_PL_HEADER_BIT_FID)) {
sys/bus/u4b/uvc/uvc_buf.c
261
if (v->bulk.last_fid != (v->bulk.header[1] & UVC_PL_HEADER_BIT_FID))
sys/bus/u4b/uvc/uvc_buf.c
262
v->bulk.last_fid = (v->bulk.header[1] & UVC_PL_HEADER_BIT_FID);
sys/bus/u4b/uvc/uvc_buf.c
289
((v->bulk.header[1] & UVC_PL_HEADER_BIT_EOF) ||
sys/bus/u4b/uvc/uvc_drv.c
861
usbd_copy_out(pc, 0, &(v->bulk.header), h.len);
sys/bus/u4b/uvc/uvc_drv.c
890
if (h.header & UVC_PL_HEADER_BIT_ERR || v->bad_frame) {
sys/bus/u4b/uvc/uvc_drv.c
891
if (h.header & UVC_PL_HEADER_BIT_EOF) {
sys/bus/u4b/uvc/uvc_drv.c
897
DPRINTF("%d - %x\n", h.len, h.header);
sys/bus/u4b/uvc/uvc_drv.c
902
len - h.len, h.header & UVC_PL_HEADER_BIT_EOF,
sys/bus/u4b/uvc/uvc_drv.c
903
h.header & UVC_PL_HEADER_BIT_FID);
sys/bus/u4b/uvc/uvc_drv.h
430
uint8_t header;
sys/bus/u4b/uvc/uvc_drv.h
708
uint8_t header[256];
sys/dev/acpica/acpi_pci_link.c
419
acpi_pci_link_dump(struct acpi_pci_link_softc *sc, int header, const char *tag)
sys/dev/acpica/acpi_pci_link.c
426
if (header) {
sys/dev/disk/mpt/mpt_user.c
254
params.PageNumber = page_req->header.PageNumber;
sys/dev/disk/mpt/mpt_user.c
255
params.PageType = page_req->header.PageType;
sys/dev/disk/mpt/mpt_user.c
273
bcopy(&cfgp->Header, &page_req->header,
sys/dev/disk/mpt/mpt_user.c
274
sizeof(page_req->header));
sys/dev/disk/mpt/mpt_user.c
335
params.PageVersion = ext_page_req->header.PageVersion;
sys/dev/disk/mpt/mpt_user.c
337
params.PageNumber = ext_page_req->header.PageNumber;
sys/dev/disk/mpt/mpt_user.c
340
params.ExtPageType = ext_page_req->header.ExtPageType;
sys/dev/disk/mpt/mpt_user.c
358
ext_page_req->header.PageVersion = cfgp->Header.PageVersion;
sys/dev/disk/mpt/mpt_user.c
359
ext_page_req->header.PageNumber = cfgp->Header.PageNumber;
sys/dev/disk/mpt/mpt_user.c
360
ext_page_req->header.PageType = cfgp->Header.PageType;
sys/dev/disk/mpt/mpt_user.c
361
ext_page_req->header.ExtPageLength = cfgp->ExtPageLength;
sys/dev/disk/mpt/mpt_user.c
362
ext_page_req->header.ExtPageType = cfgp->ExtPageType;
sys/dev/disk/mpt/mpt_user.c
626
page_req->header = page_req32->header;
sys/dev/disk/mpt/mpt_user.c
635
ext_page_req->header = ext_page_req32->header;
sys/dev/disk/mpt/mpt_user.c
766
page_req32->header = page_req->header;
sys/dev/disk/mpt/mpt_user.c
774
ext_page_req32->header = ext_page_req->header;
sys/dev/disk/nata/atapi-cd.c
522
if (cdp->subchan.header.audio_status == 0x11) {
sys/dev/disk/ncr/ncr.c
1595
NADDR (header),
sys/dev/disk/ncr/ncr.c
1601
NADDR (header.launch),
sys/dev/disk/ncr/ncr.c
1607
NADDR (header.stamp.select),
sys/dev/disk/ncr/ncr.c
1613
NADDR (header.savep),
sys/dev/disk/ncr/ncr.c
1619
NADDR (header.status),
sys/dev/disk/ncr/ncr.c
1789
NADDR (header.stamp.command),
sys/dev/disk/ncr/ncr.c
1811
NADDR (header.stamp.status),
sys/dev/disk/ncr/ncr.c
1929
NADDR (header.lastp),
sys/dev/disk/ncr/ncr.c
1967
NADDR (header.status),
sys/dev/disk/ncr/ncr.c
1975
NADDR (header),
sys/dev/disk/ncr/ncr.c
2029
NADDR (header.savep),
sys/dev/disk/ncr/ncr.c
2038
NADDR (header.savep),
sys/dev/disk/ncr/ncr.c
2058
NADDR (header.savep),
sys/dev/disk/ncr/ncr.c
2078
NADDR (header.savep),
sys/dev/disk/ncr/ncr.c
2087
NADDR (header.goalp),
sys/dev/disk/ncr/ncr.c
2116
NADDR (header.stamp.disconnect),
sys/dev/disk/ncr/ncr.c
2735
NADDR (header),
sys/dev/disk/ncr/ncr.c
2740
NADDR (header.status),
sys/dev/disk/ncr/ncr.c
2777
NADDR (header.savep),
sys/dev/disk/ncr/ncr.c
2942
*p++ =NADDR (header.stamp.data);
sys/dev/disk/ncr/ncr.c
2966
*p++ =NADDR (header.stamp.data);
sys/dev/disk/ncr/ncr.c
3919
bzero (&cp->phys.header.stamp, sizeof (struct tstamp));
sys/dev/disk/ncr/ncr.c
3920
cp->phys.header.stamp.start = ticks;
sys/dev/disk/ncr/ncr.c
4046
cp->phys.header.savep = NCB_SCRIPT_PHYS (np, data_in);
sys/dev/disk/ncr/ncr.c
4047
cp->phys.header.goalp = cp->phys.header.savep +20 +segments*16;
sys/dev/disk/ncr/ncr.c
4049
cp->phys.header.savep = NCB_SCRIPT_PHYS (np, data_out);
sys/dev/disk/ncr/ncr.c
4050
cp->phys.header.goalp = cp->phys.header.savep +20 +segments*16;
sys/dev/disk/ncr/ncr.c
4053
cp->phys.header.savep = NCB_SCRIPT_PHYS (np, no_data);
sys/dev/disk/ncr/ncr.c
4054
cp->phys.header.goalp = cp->phys.header.savep;
sys/dev/disk/ncr/ncr.c
4057
cp->phys.header.lastp = cp->phys.header.savep;
sys/dev/disk/ncr/ncr.c
4070
cp->phys.header.cp = cp;
sys/dev/disk/ncr/ncr.c
4074
cp->phys.header.launch.l_paddr = NCB_SCRIPT_PHYS (np, select);
sys/dev/disk/ncr/ncr.c
4075
cp->phys.header.launch.l_cmd = SCR_JUMP;
sys/dev/disk/ncr/ncr.c
4440
cp->phys.header.launch.l_paddr= NCB_SCRIPT_PHYS (np, idle);
sys/dev/disk/ncr/ncr.c
4647
if ((cp->phys.header.launch.l_paddr
sys/dev/disk/ncr/ncr.c
5160
if (cp->phys.header.launch.l_paddr ==
sys/dev/disk/ncr/ncr.c
5164
cp->phys.header.launch.l_paddr
sys/dev/disk/ncr/ncr.c
5698
ncr_name (np), (void *) np->header.cp);
sys/dev/disk/ncr/ncr.c
5701
if (cp != np->header.cp) {
sys/dev/disk/ncr/ncr.c
5704
ncr_name (np), (void *)cp, (void *)np->header.cp,
sys/dev/disk/ncr/ncr.c
5743
cp, np->header.cp,
sys/dev/disk/ncr/ncr.c
5799
if (cp->phys.header.savep == vtophys (newcmd)) newcmd+=4;
sys/dev/disk/ncr/ncr.c
5886
assert (cp == np->header.cp);
sys/dev/disk/ncr/ncr.c
5887
if (cp != np->header.cp)
sys/dev/disk/ncr/ncr.c
6338
(unsigned) np->header.savep,
sys/dev/disk/ncr/ncr.c
6339
(unsigned) np->header.goalp);
sys/dev/disk/ncr/ncr.c
6854
#define PROFILE cp->phys.header.stamp
sys/dev/disk/ncr/ncr.c
768
#define actualquirks phys.header.status[0]
sys/dev/disk/ncr/ncr.c
769
#define host_status phys.header.status[1]
sys/dev/disk/ncr/ncr.c
770
#define s_status phys.header.status[2]
sys/dev/disk/ncr/ncr.c
771
#define parity_status phys.header.status[3]
sys/dev/disk/ncr/ncr.c
776
#define xerr_st header.status[4] /* MUST be ==0 mod 4 */
sys/dev/disk/ncr/ncr.c
777
#define sync_st header.status[5] /* MUST be ==1 mod 4 */
sys/dev/disk/ncr/ncr.c
778
#define nego_st header.status[6]
sys/dev/disk/ncr/ncr.c
779
#define wide_st header.status[7] /* MUST be ==3 mod 4 */
sys/dev/disk/ncr/ncr.c
814
struct head header;
sys/dev/disk/ncr/ncr.c
977
struct head header;
sys/dev/drm/amd/amdgpu/amdgpu_bios.c
154
u8 header[AMD_VBIOS_SIGNATURE_END+1] = {0};
sys/dev/drm/amd/amdgpu/amdgpu_bios.c
161
if (amdgpu_asic_read_bios_from_rom(adev, &header[0], sizeof(header)) == false)
sys/dev/drm/amd/amdgpu/amdgpu_bios.c
163
header[AMD_VBIOS_SIGNATURE_END] = 0;
sys/dev/drm/amd/amdgpu/amdgpu_bios.c
165
if ((!AMD_IS_VALID_VBIOS(header)) ||
sys/dev/drm/amd/amdgpu/amdgpu_bios.c
166
0 != memcmp((char *)&header[AMD_VBIOS_SIGNATURE_OFFSET],
sys/dev/drm/amd/amdgpu/amdgpu_bios.c
172
len = AMD_VBIOS_LENGTH(header);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
210
const struct gfx_firmware_header_v1_0 *header;
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
220
header = (const struct gfx_firmware_header_v1_0 *)ucode->fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
221
data_size = le32_to_cpu(header->header.ucode_size_bytes);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
225
gpu_addr += ALIGN(le32_to_cpu(header->header.ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
226
data_size = le32_to_cpu(header->jt_size) << 2;
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
232
info->version = (uint16_t)le32_to_cpu(header->header.ucode_version);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
235
info->image_size = le32_to_cpu(header->jt_offset) << 2;
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
238
info->feature_version = (uint16_t)le32_to_cpu(header->ucode_feature_version);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
246
const struct common_firmware_header *header;
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
455
header = (const struct common_firmware_header *)ucode->fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
457
ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
462
amdgpu_ucode_print_smc_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
463
adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
464
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
467
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/amdgpu_device.c
1370
amdgpu_ucode_print_gpu_info_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/amdgpu_device.c
1377
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/amdgpu_device.c
1401
"Unsupported gpu_info table %d\n", hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
116
container_of(hdr, struct rlc_firmware_header_v1_0, header);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
130
container_of(hdr, struct rlc_firmware_header_v2_0, header);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
211
container_of(hdr, struct sdma_firmware_header_v1_0, header);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
240
container_of(hdr, struct gpu_info_firmware_header_v1_0, header);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
320
const struct common_firmware_header *header = NULL;
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
333
header = (const struct common_firmware_header *)ucode->fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
347
ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
350
le32_to_cpu(header->ucode_array_offset_bytes)),
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
354
ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes) -
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
358
le32_to_cpu(header->ucode_array_offset_bytes)),
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
365
le32_to_cpu(header->ucode_array_offset_bytes) +
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
369
ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes) -
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
373
le32_to_cpu(header->ucode_array_offset_bytes)),
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
379
le32_to_cpu(header->ucode_array_offset_bytes) +
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
402
const struct gfx_firmware_header_v1_0 *header = NULL;
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
411
header = (const struct gfx_firmware_header_v1_0 *)ucode->fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
417
(le32_to_cpu(header->jt_offset) * 4);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
418
memcpy(dst_addr, src_addr, le32_to_cpu(header->jt_size) * 4);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
56
container_of(hdr, struct mc_firmware_header_v1_0, header);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
77
container_of(hdr, struct smc_firmware_header_v1_0, header);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
95
container_of(hdr, struct gfx_firmware_header_v1_0, header);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.h
121
struct common_firmware_header header;
sys/dev/drm/amd/amdgpu/amdgpu_ucode.h
155
struct common_firmware_header header;
sys/dev/drm/amd/amdgpu/amdgpu_ucode.h
162
struct common_firmware_header header;
sys/dev/drm/amd/amdgpu/amdgpu_ucode.h
41
struct common_firmware_header header;
sys/dev/drm/amd/amdgpu/amdgpu_ucode.h
48
struct common_firmware_header header;
sys/dev/drm/amd/amdgpu/amdgpu_ucode.h
54
struct common_firmware_header header;
sys/dev/drm/amd/amdgpu/amdgpu_ucode.h
62
struct common_firmware_header header;
sys/dev/drm/amd/amdgpu/amdgpu_ucode.h
70
struct common_firmware_header header;
sys/dev/drm/amd/amdgpu/amdgpu_ucode.h
80
struct common_firmware_header header;
sys/dev/drm/amd/amdgpu/amdgpu_virt.c
406
AMDGPU_FW_VRAM_PF2VF_READ(adev, header.size, &pf2vf_size);
sys/dev/drm/amd/amdgpu/amdgpu_virt.c
421
AMDGPU_FW_VRAM_VF2PF_WRITE(adev, header.version,
sys/dev/drm/amd/amdgpu/amdgpu_virt.c
423
AMDGPU_FW_VRAM_VF2PF_WRITE(adev, header.size,
sys/dev/drm/amd/amdgpu/amdgpu_virt.h
115
struct amdgim_pf2vf_info_header header;
sys/dev/drm/amd/amdgpu/amdgpu_virt.h
153
struct amdgim_vf2pf_info_header header;
sys/dev/drm/amd/amdgpu/amdgpu_virt.h
183
struct amdgim_vf2pf_info_header header;
sys/dev/drm/amd/amdgpu/amdgpu_virt.h
96
struct amdgim_pf2vf_info_header header;
sys/dev/drm/amd/amdgpu/ci_smc.c
221
amdgpu_ucode_print_smc_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/ci_smc.c
223
adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/ci_smc.c
225
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
sys/dev/drm/amd/amdgpu/ci_smc.c
227
(adev->pm.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/cik_sdma.c
553
amdgpu_ucode_print_sdma_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/cik_sdma.c
554
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/cik_sdma.c
555
adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/cik_sdma.c
560
(adev->sdma.instance[i].fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/dce_v10_0.c
1501
uint8_t *header = buffer;
sys/dev/drm/amd/amdgpu/dce_v10_0.c
1510
frame[0xC] | (frame[0xD] << 8) | (header[1] << 24));
sys/dev/drm/amd/amdgpu/dce_v11_0.c
1543
uint8_t *header = buffer;
sys/dev/drm/amd/amdgpu/dce_v11_0.c
1552
frame[0xC] | (frame[0xD] << 8) | (header[1] << 24));
sys/dev/drm/amd/amdgpu/dce_v8_0.c
1452
uint8_t *header = buffer;
sys/dev/drm/amd/amdgpu/dce_v8_0.c
1461
frame[0xC] | (frame[0xD] << 8) | (header[1] << 24));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2239
u32 header, control = 0;
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2248
header = PACKET3(PACKET3_INDIRECT_BUFFER_CONST, 2);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2250
header = PACKET3(PACKET3_INDIRECT_BUFFER, 2);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2254
amdgpu_ring_write(ring, header);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2434
amdgpu_ucode_print_gfx_hdr(&pfp_hdr->header);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2435
amdgpu_ucode_print_gfx_hdr(&ce_hdr->header);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2436
amdgpu_ucode_print_gfx_hdr(&me_hdr->header);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2437
adev->gfx.pfp_fw_version = le32_to_cpu(pfp_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2438
adev->gfx.ce_fw_version = le32_to_cpu(ce_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2439
adev->gfx.me_fw_version = le32_to_cpu(me_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2449
le32_to_cpu(pfp_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2450
fw_size = le32_to_cpu(pfp_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2459
le32_to_cpu(ce_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2460
fw_size = le32_to_cpu(ce_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2469
le32_to_cpu(me_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2470
fw_size = le32_to_cpu(me_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2701
amdgpu_ucode_print_gfx_hdr(&mec_hdr->header);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2702
adev->gfx.mec_fw_version = le32_to_cpu(mec_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2711
le32_to_cpu(mec_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2712
fw_size = le32_to_cpu(mec_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2725
amdgpu_ucode_print_gfx_hdr(&mec2_hdr->header);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2726
adev->gfx.mec2_fw_version = le32_to_cpu(mec2_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2733
le32_to_cpu(mec2_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2734
fw_size = le32_to_cpu(mec2_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
2907
mqd->header = 0xC0310800;
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3544
amdgpu_ucode_print_rlc_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3545
adev->gfx.rlc_fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3573
(adev->gfx.rlc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3574
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3810
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3818
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3826
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3834
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3842
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1023
adev->gfx.pfp_fw_version = le32_to_cpu(cp_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1043
adev->gfx.me_fw_version = le32_to_cpu(cp_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1064
adev->gfx.ce_fw_version = le32_to_cpu(cp_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1084
adev->gfx.rlc_fw_version = le32_to_cpu(rlc_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1144
adev->gfx.mec_fw_version = le32_to_cpu(cp_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1167
le32_to_cpu(cp_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1179
header = (const struct common_firmware_header *)info->fw->data;
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1181
ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1186
header = (const struct common_firmware_header *)info->fw->data;
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1188
ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1193
header = (const struct common_firmware_header *)info->fw->data;
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1195
ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1200
header = (const struct common_firmware_header *)info->fw->data;
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1202
ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1207
header = (const struct common_firmware_header *)info->fw->data;
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1209
ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1228
header = (const struct common_firmware_header *)info->fw->data;
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1230
ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1320
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1328
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1336
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1344
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1352
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
4512
mqd->header = 0xC0310800;
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
6139
u32 header, control = 0;
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
6142
header = PACKET3(PACKET3_INDIRECT_BUFFER_CONST, 2);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
6144
header = PACKET3(PACKET3_INDIRECT_BUFFER, 2);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
6155
amdgpu_ring_write(ring, header);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
967
const struct common_firmware_header *header = NULL;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1084
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1092
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1100
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1108
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1116
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1286
le32_to_cpu(mec_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1287
fw_size = le32_to_cpu(mec_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1289
r = amdgpu_bo_create_reserved(adev, mec_hdr->header.ucode_size_bytes,
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2479
amdgpu_ucode_print_rlc_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2482
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2483
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2566
amdgpu_ucode_print_gfx_hdr(&pfp_hdr->header);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2567
amdgpu_ucode_print_gfx_hdr(&ce_hdr->header);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2568
amdgpu_ucode_print_gfx_hdr(&me_hdr->header);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2575
le32_to_cpu(pfp_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2576
fw_size = le32_to_cpu(pfp_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2585
le32_to_cpu(ce_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2586
fw_size = le32_to_cpu(ce_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2595
le32_to_cpu(me_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2596
fw_size = le32_to_cpu(me_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2766
amdgpu_ucode_print_gfx_hdr(&mec_hdr->header);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2770
le32_to_cpu(mec_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2887
mqd->header = 0xC0310800;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
4080
u32 header, control = 0;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
4083
header = PACKET3(PACKET3_INDIRECT_BUFFER_CONST, 2);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
4085
header = PACKET3(PACKET3_INDIRECT_BUFFER, 2);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
4096
amdgpu_ring_write(ring, header);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
598
const struct common_firmware_header *header = NULL;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
638
adev->gfx.pfp_fw_version = le32_to_cpu(cp_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
649
adev->gfx.me_fw_version = le32_to_cpu(cp_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
660
adev->gfx.ce_fw_version = le32_to_cpu(cp_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
670
version_major = le16_to_cpu(rlc_hdr->header.header_version_major);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
671
version_minor = le16_to_cpu(rlc_hdr->header.header_version_minor);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
675
adev->gfx.rlc_fw_version = le32_to_cpu(rlc_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
726
adev->gfx.mec_fw_version = le32_to_cpu(cp_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
739
le32_to_cpu(cp_hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
751
header = (const struct common_firmware_header *)info->fw->data;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
753
ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
758
header = (const struct common_firmware_header *)info->fw->data;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
760
ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
765
header = (const struct common_firmware_header *)info->fw->data;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
767
ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
772
header = (const struct common_firmware_header *)info->fw->data;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
774
ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
802
header = (const struct common_firmware_header *)info->fw->data;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
805
ALIGN(le32_to_cpu(header->ucode_size_bytes) - le32_to_cpu(cp_hdr->jt_size) * 4, PAGE_SIZE);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
817
header = (const struct common_firmware_header *)info->fw->data;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
820
ALIGN(le32_to_cpu(header->ucode_size_bytes) - le32_to_cpu(cp_hdr->jt_size) * 4, PAGE_SIZE);
sys/dev/drm/amd/amdgpu/gmc_v7_0.c
190
amdgpu_ucode_print_mc_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/gmc_v7_0.c
192
adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gmc_v7_0.c
196
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gmc_v7_0.c
198
(adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
315
amdgpu_ucode_print_mc_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
317
adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
321
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
323
(adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
384
amdgpu_ucode_print_mc_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
386
adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
390
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
392
(adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/psp_v10_0.c
140
adev->psp.asd_fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/psp_v10_0.c
142
adev->psp.asd_ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
sys/dev/drm/amd/amdgpu/psp_v10_0.c
144
le32_to_cpu(hdr->header.ucode_array_offset_bytes);
sys/dev/drm/amd/amdgpu/psp_v11_0.c
123
adev->psp.sos_fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/psp_v11_0.c
126
adev->psp.sys_bin_size = le32_to_cpu(hdr->header.ucode_size_bytes) -
sys/dev/drm/amd/amdgpu/psp_v11_0.c
129
le32_to_cpu(hdr->header.ucode_array_offset_bytes);
sys/dev/drm/amd/amdgpu/psp_v3_1.c
131
adev->psp.sos_fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/psp_v3_1.c
134
adev->psp.sys_bin_size = le32_to_cpu(hdr->header.ucode_size_bytes) -
sys/dev/drm/amd/amdgpu/psp_v3_1.c
137
le32_to_cpu(hdr->header.ucode_array_offset_bytes);
sys/dev/drm/amd/amdgpu/psp_v3_1.c
151
adev->psp.asd_fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/psp_v3_1.c
153
adev->psp.asd_ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
sys/dev/drm/amd/amdgpu/psp_v3_1.c
155
le32_to_cpu(hdr->header.ucode_array_offset_bytes);
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
134
const struct common_firmware_header *header = NULL;
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
158
adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
167
header = (const struct common_firmware_header *)info->fw->data;
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
169
ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
271
const struct common_firmware_header *header = NULL;
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
316
adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
324
header = (const struct common_firmware_header *)info->fw->data;
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
326
ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
270
const struct common_firmware_header *header = NULL;
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
309
adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
320
header = (const struct common_firmware_header *)info->fw->data;
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
322
ALIGN(le32_to_cpu(header->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
919
amdgpu_ucode_print_sdma_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
920
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
924
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/uvd_v7_0.c
722
struct mmsch_v1_0_init_header *header = (struct mmsch_v1_0_init_header *)table->cpu_addr;
sys/dev/drm/amd/amdgpu/uvd_v7_0.c
726
size = header->header_size + header->vce_table_size + header->uvd_table_size;
sys/dev/drm/amd/amdgpu/uvd_v7_0.c
783
struct mmsch_v1_0_init_header *header = (struct mmsch_v1_0_init_header *)init_table;
sys/dev/drm/amd/amdgpu/uvd_v7_0.c
791
if (header->uvd_table_offset == 0 && header->uvd_table_size == 0) {
sys/dev/drm/amd/amdgpu/uvd_v7_0.c
792
header->version = MMSCH_VERSION;
sys/dev/drm/amd/amdgpu/uvd_v7_0.c
793
header->header_size = sizeof(struct mmsch_v1_0_init_header) >> 2;
sys/dev/drm/amd/amdgpu/uvd_v7_0.c
795
if (header->vce_table_offset == 0 && header->vce_table_size == 0)
sys/dev/drm/amd/amdgpu/uvd_v7_0.c
796
header->uvd_table_offset = header->header_size;
sys/dev/drm/amd/amdgpu/uvd_v7_0.c
798
header->uvd_table_offset = header->vce_table_size + header->vce_table_offset;
sys/dev/drm/amd/amdgpu/uvd_v7_0.c
800
init_table += header->uvd_table_offset;
sys/dev/drm/amd/amdgpu/uvd_v7_0.c
922
header->uvd_table_size = table_size;
sys/dev/drm/amd/amdgpu/vce_v4_0.c
157
struct mmsch_v1_0_init_header *header = (struct mmsch_v1_0_init_header *)table->cpu_addr;
sys/dev/drm/amd/amdgpu/vce_v4_0.c
160
size = header->header_size + header->vce_table_size + header->uvd_table_size;
sys/dev/drm/amd/amdgpu/vce_v4_0.c
214
struct mmsch_v1_0_init_header *header = (struct mmsch_v1_0_init_header *)init_table;
sys/dev/drm/amd/amdgpu/vce_v4_0.c
221
if (header->vce_table_offset == 0 && header->vce_table_size == 0) {
sys/dev/drm/amd/amdgpu/vce_v4_0.c
222
header->version = MMSCH_VERSION;
sys/dev/drm/amd/amdgpu/vce_v4_0.c
223
header->header_size = sizeof(struct mmsch_v1_0_init_header) >> 2;
sys/dev/drm/amd/amdgpu/vce_v4_0.c
225
if (header->uvd_table_offset == 0 && header->uvd_table_size == 0)
sys/dev/drm/amd/amdgpu/vce_v4_0.c
226
header->vce_table_offset = header->header_size;
sys/dev/drm/amd/amdgpu/vce_v4_0.c
228
header->vce_table_offset = header->uvd_table_size + header->uvd_table_offset;
sys/dev/drm/amd/amdgpu/vce_v4_0.c
230
init_table += header->vce_table_offset;
sys/dev/drm/amd/amdgpu/vce_v4_0.c
317
header->vce_table_size = table_size;
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
578
ALIGN(le32_to_cpu(hdr->header.ucode_size_bytes) - le32_to_cpu(hdr->intv_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
585
adev->dm.dmcu_fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1034
ATOM_ASIC_INTERNAL_SS_INFO_V2 *header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1041
header = GET_IMAGE(ATOM_ASIC_INTERNAL_SS_INFO_V2,
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1046
tbl_size = (le16_to_cpu(header->sHeader.usStructureSize)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1051
&(header->asSpreadSpectrum[0]);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1100
ATOM_COMMON_TABLE_HEADER *header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1111
header = GET_IMAGE(ATOM_COMMON_TABLE_HEADER, DATA_TABLES(SS_Info));
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1112
get_atom_data_table_revision(header, &revision);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1518
ATOM_COMMON_RECORD_HEADER *header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1530
header = GET_IMAGE(ATOM_COMMON_RECORD_HEADER, offset);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1532
if (!header)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1535
offset += header->ucRecordSize;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1537
if (LAST_RECORD_TYPE == header->ucRecordType ||
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1538
!header->ucRecordSize)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1541
if (ATOM_ENCODER_CAP_RECORD_TYPE != header->ucRecordType)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1544
if (sizeof(ATOM_ENCODER_CAP_RECORD_V2) <= header->ucRecordSize)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1545
return (ATOM_ENCODER_CAP_RECORD_V2 *)header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1578
ATOM_COMMON_TABLE_HEADER *header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1586
header = GET_IMAGE(ATOM_COMMON_TABLE_HEADER,
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1588
get_atom_data_table_revision(header, &revision);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1630
ATOM_COMMON_TABLE_HEADER *header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1641
header = GET_IMAGE(ATOM_COMMON_TABLE_HEADER,
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1643
get_atom_data_table_revision(header, &revision);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1794
ATOM_GPIO_PIN_LUT *header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1801
header = GET_IMAGE(ATOM_GPIO_PIN_LUT, DATA_TABLES(GPIO_Pin_LUT));
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1802
if (!header)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1806
> le16_to_cpu(header->sHeader.usStructureSize))
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1809
if (1 != header->sHeader.ucTableContentRevision)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1812
count = (le16_to_cpu(header->sHeader.usStructureSize)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1816
if (header->asGPIO_Pin[i].ucGPIO_ID != gpio_id)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1820
(uint32_t) le16_to_cpu(header->asGPIO_Pin[i].usGpioPin_AIndex);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1826
header->asGPIO_Pin[i].ucGpioPinBitShift);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1841
ATOM_GPIO_I2C_INFO *header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1851
header = GET_IMAGE(ATOM_GPIO_I2C_INFO, DATA_TABLES(GPIO_I2C_Info));
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1852
if (!header)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1856
> le16_to_cpu(header->sHeader.usStructureSize))
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1859
if (1 != header->sHeader.ucTableContentRevision)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1863
count = (le16_to_cpu(header->sHeader.usStructureSize)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1876
le16_to_cpu(header->asGPIO_Info[info->i2c_line].usClkMaskRegisterIndex);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1878
le16_to_cpu(header->asGPIO_Info[info->i2c_line].usClkEnRegisterIndex);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1880
le16_to_cpu(header->asGPIO_Info[info->i2c_line].usClkY_RegisterIndex);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1882
le16_to_cpu(header->asGPIO_Info[info->i2c_line].usClkA_RegisterIndex);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1884
le16_to_cpu(header->asGPIO_Info[info->i2c_line].usDataMaskRegisterIndex);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1886
le16_to_cpu(header->asGPIO_Info[info->i2c_line].usDataEnRegisterIndex);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1888
le16_to_cpu(header->asGPIO_Info[info->i2c_line].usDataY_RegisterIndex);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1890
le16_to_cpu(header->asGPIO_Info[info->i2c_line].usDataA_RegisterIndex);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1893
header->asGPIO_Info[info->i2c_line].ucClkMaskShift;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1895
header->asGPIO_Info[info->i2c_line].ucClkEnShift;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1897
header->asGPIO_Info[info->i2c_line].ucClkY_Shift;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1899
header->asGPIO_Info[info->i2c_line].ucClkA_Shift;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1901
header->asGPIO_Info[info->i2c_line].ucDataMaskShift;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1903
header->asGPIO_Info[info->i2c_line].ucDataEnShift;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1905
header->asGPIO_Info[info->i2c_line].ucDataY_Shift;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1907
header->asGPIO_Info[info->i2c_line].ucDataA_Shift;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
221
ATOM_COMMON_RECORD_HEADER *header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
237
header = GET_IMAGE(ATOM_COMMON_RECORD_HEADER, offset);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
239
if (!header)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
242
if (LAST_RECORD_TYPE == header->ucRecordType ||
sys/dev/drm/amd/display/dc/bios/bios_parser.c
243
!header->ucRecordSize)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
246
if (ATOM_I2C_RECORD_TYPE == header->ucRecordType
sys/dev/drm/amd/display/dc/bios/bios_parser.c
247
&& sizeof(ATOM_I2C_RECORD) <= header->ucRecordSize) {
sys/dev/drm/amd/display/dc/bios/bios_parser.c
249
record = (ATOM_I2C_RECORD *) header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
2531
ATOM_COMMON_TABLE_HEADER *header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
2535
header = GET_IMAGE(ATOM_COMMON_TABLE_HEADER,
sys/dev/drm/amd/display/dc/bios/bios_parser.c
2538
get_atom_data_table_revision(header, &revision);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
255
offset += header->ucRecordSize;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
293
ATOM_COMMON_RECORD_HEADER *header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
300
header = GET_IMAGE(ATOM_COMMON_RECORD_HEADER, offset);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
302
if (!header)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
305
offset += header->ucRecordSize;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
307
if (LAST_RECORD_TYPE == header->ucRecordType ||
sys/dev/drm/amd/display/dc/bios/bios_parser.c
308
!header->ucRecordSize)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
312
header->ucRecordType)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
315
if (sizeof(ATOM_CONNECTOR_DEVICE_TAG) > header->ucRecordSize)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
318
*record = (ATOM_CONNECTOR_DEVICE_TAG_RECORD *) header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
379
ATOM_COMMON_TABLE_HEADER *header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
383
header = GET_IMAGE(ATOM_COMMON_TABLE_HEADER,
sys/dev/drm/amd/display/dc/bios/bios_parser.c
385
get_atom_data_table_revision(header, &revision);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
878
ATOM_COMMON_RECORD_HEADER *header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
890
header = GET_IMAGE(ATOM_COMMON_RECORD_HEADER, offset);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
892
if (!header)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
895
if (LAST_RECORD_TYPE == header->ucRecordType ||
sys/dev/drm/amd/display/dc/bios/bios_parser.c
896
!header->ucRecordSize)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
899
if (ATOM_HPD_INT_RECORD_TYPE == header->ucRecordType
sys/dev/drm/amd/display/dc/bios/bios_parser.c
900
&& sizeof(ATOM_HPD_INT_RECORD) <= header->ucRecordSize)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
901
return (ATOM_HPD_INT_RECORD *) header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
903
offset += header->ucRecordSize;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
939
ATOM_COMMON_TABLE_HEADER *header;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
952
header = GET_IMAGE(ATOM_COMMON_TABLE_HEADER,
sys/dev/drm/amd/display/dc/bios/bios_parser.c
954
get_atom_data_table_revision(header, &tbl_revision);
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1125
struct atom_common_table_header *header;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1130
header = GET_IMAGE(struct atom_common_table_header,
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1132
get_atom_data_table_revision(header, &revision);
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1210
struct atom_common_table_header *header;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1229
header = GET_IMAGE(struct atom_common_table_header,
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1231
get_atom_data_table_revision(header, &revision);
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1320
struct atom_common_record_header *header;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1331
header = GET_IMAGE(struct atom_common_record_header, offset);
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1333
if (!header)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1336
offset += header->record_size;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1338
if (header->record_type == LAST_RECORD_TYPE ||
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1339
!header->record_size)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1342
if (header->record_type != ATOM_ENCODER_CAP_RECORD_TYPE)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1346
header->record_size)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1347
return (struct atom_encoder_caps_record *)header;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1601
struct atom_common_table_header *header;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1609
header = GET_IMAGE(struct atom_common_table_header,
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
1612
get_atom_data_table_revision(header, &revision);
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
291
struct atom_common_record_header *header;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
306
header = GET_IMAGE(struct atom_common_record_header, offset);
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
308
if (!header)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
311
if (header->record_type == LAST_RECORD_TYPE ||
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
312
!header->record_size)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
315
if (header->record_type == ATOM_I2C_RECORD_TYPE
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
317
header->record_size) {
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
319
record = (struct atom_i2c_record *) header;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
326
offset += header->record_size;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
337
struct atom_gpio_pin_lut_v2_1 *header;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
348
header = GET_IMAGE(struct atom_gpio_pin_lut_v2_1,
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
350
if (!header)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
355
le16_to_cpu(header->table_header.structuresize))
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
359
if (header->table_header.content_revision != 1)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
363
count = (le16_to_cpu(header->table_header.structuresize)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
374
header->gpio_pin[table_index].gpio_id &
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
377
(header->gpio_pin[table_index].gpio_id &
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
380
(header->gpio_pin[table_index].gpio_id &
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
403
header->gpio_pin[table_index].data_a_reg_index);
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
405
header->gpio_pin[table_index].gpio_bitshift;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
442
struct atom_common_record_header *header;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
454
header = GET_IMAGE(struct atom_common_record_header, offset);
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
456
if (!header)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
459
if (header->record_type == LAST_RECORD_TYPE ||
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
460
!header->record_size)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
463
if (header->record_type == ATOM_HPD_INT_RECORD_TYPE
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
465
header->record_size)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
466
return (struct atom_hpd_int_record *) header;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
468
offset += header->record_size;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
493
struct atom_gpio_pin_lut_v2_1 *header;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
500
header = GET_IMAGE(struct atom_gpio_pin_lut_v2_1,
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
502
if (!header)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
507
> le16_to_cpu(header->table_header.structuresize))
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
510
if (header->table_header.content_revision != 1)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
526
memmove(header->gpio_pin, gpio_pin, sizeof(gpio_pin));
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
529
count = (le16_to_cpu(header->table_header.structuresize)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
534
if (header->gpio_pin[i].gpio_id != gpio_id)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
539
header->gpio_pin[i].data_a_reg_index);
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
545
header->gpio_pin[i].gpio_bitshift);
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
793
struct atom_common_table_header *header;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
802
header = GET_IMAGE(struct atom_common_table_header,
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
804
get_atom_data_table_revision(header, &tbl_revision);
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
908
struct atom_common_table_header *header;
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
914
header = GET_IMAGE(struct atom_common_table_header, DATA_TABLES(lcd_info));
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
916
if (!header)
sys/dev/drm/amd/display/dc/bios/bios_parser2.c
919
get_atom_data_table_revision(header, &tbl_revision);
sys/dev/drm/amd/display/dc/core/dc_resource.c
2189
hdmi_info.bits.header.info_frame_type = HDMI_INFOFRAME_TYPE_AVI;
sys/dev/drm/amd/display/dc/core/dc_resource.c
2192
hdmi_info.bits.header.version = 2;
sys/dev/drm/amd/display/dc/core/dc_resource.c
2193
hdmi_info.bits.header.length = HDMI_AVI_INFOFRAME_SIZE;
sys/dev/drm/amd/display/dc/inc/dcn_calcs.h
229
float header;
sys/dev/drm/amd/display/include/set_mode_types.h
58
struct hdmi_info_frame_header header;
sys/dev/drm/amd/include/atomfirmware.h
1899
struct atom_voltage_object_header_v4 header; // voltage mode = VOLTAGE_OBJ_VR_I2C_INIT_SEQ
sys/dev/drm/amd/include/atomfirmware.h
1926
struct atom_voltage_object_header_v4 header; // voltage mode = VOLTAGE_OBJ_GPIO_LUT or VOLTAGE_OBJ_PHASE_LUT
sys/dev/drm/amd/include/atomfirmware.h
1937
struct atom_voltage_object_header_v4 header; // voltage mode = VOLTAGE_OBJ_SVID2
sys/dev/drm/amd/include/atomfirmware.h
1949
struct atom_voltage_object_header_v4 header; // voltage mode = VOLTAGE_OBJ_MERGED_POWER
sys/dev/drm/amd/include/cik_structs.h
28
uint32_t header;
sys/dev/drm/amd/include/v9_structs.h
161
uint32_t header;
sys/dev/drm/amd/include/vi_structs.h
161
uint32_t header;
sys/dev/drm/amd/powerplay/hwmgr/ppatomfwctrl.c
43
if (voltage_type == voltage_object->gpio_voltage_obj.header.voltage_type &&
sys/dev/drm/amd/powerplay/hwmgr/ppatomfwctrl.c
44
voltage_mode == voltage_object->gpio_voltage_obj.header.voltage_mode)
sys/dev/drm/amd/powerplay/hwmgr/ppatomfwctrl.c
47
offset += le16_to_cpu(voltage_object->gpio_voltage_obj.header.object_size);
sys/dev/drm/amd/powerplay/hwmgr/processpptables.c
1018
const ATOM_PPLIB_EXTENDEDHEADER *header;
sys/dev/drm/amd/powerplay/hwmgr/processpptables.c
1029
header = (ATOM_PPLIB_EXTENDEDHEADER *)(((unsigned long) powerplay_table) +
sys/dev/drm/amd/powerplay/hwmgr/processpptables.c
1032
hwmgr->platform_descriptor.overdriveLimit.engineClock = le32_to_cpu(header->ulMaxEngineClock);
sys/dev/drm/amd/powerplay/hwmgr/processpptables.c
1033
hwmgr->platform_descriptor.overdriveLimit.memoryClock = le32_to_cpu(header->ulMaxMemoryClock);
sys/dev/drm/amd/powerplay/hwmgr/vega10_processpptables.c
123
const Vega10_PPTable_Generic_SubTable_Header *header;
sys/dev/drm/amd/powerplay/hwmgr/vega10_processpptables.c
162
header = (const Vega10_PPTable_Generic_SubTable_Header *)
sys/dev/drm/amd/powerplay/hwmgr/vega10_processpptables.c
166
if (header->ucRevId == 10) {
sys/dev/drm/amd/powerplay/hwmgr/vega10_processpptables.c
167
fan_table_v1 = (ATOM_Vega10_Fan_Table *)header;
sys/dev/drm/amd/powerplay/hwmgr/vega10_processpptables.c
210
} else if (header->ucRevId > 10) {
sys/dev/drm/amd/powerplay/hwmgr/vega10_processpptables.c
211
fan_table_v2 = (ATOM_Vega10_Fan_Table_V2 *)header;
sys/dev/drm/drm_mipi_dsi.c
460
packet->header[0] = ((msg->channel & 0x3) << 6) | (msg->type & 0x3f);
sys/dev/drm/drm_mipi_dsi.c
472
packet->header[1] = (msg->tx_len >> 0) & 0xff;
sys/dev/drm/drm_mipi_dsi.c
473
packet->header[2] = (msg->tx_len >> 8) & 0xff;
sys/dev/drm/drm_mipi_dsi.c
480
packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0;
sys/dev/drm/drm_mipi_dsi.c
481
packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0;
sys/dev/drm/drm_mipi_dsi.c
484
packet->size = sizeof(packet->header) + packet->payload_length;
sys/dev/drm/i915/i915_gpu_error.c
457
const char *header,
sys/dev/drm/i915/i915_gpu_error.c
461
header, ctx->comm, ctx->pid, ctx->handle, ctx->hw_id,
sys/dev/drm/i915/i915_perf.c
566
struct drm_i915_perf_record_header header = { type, 0, sizeof(header) };
sys/dev/drm/i915/i915_perf.c
568
if ((count - *offset) < header.size)
sys/dev/drm/i915/i915_perf.c
571
if (copy_to_user(buf + *offset, &header, sizeof(header)))
sys/dev/drm/i915/i915_perf.c
574
(*offset) += header.size;
sys/dev/drm/i915/i915_perf.c
604
struct drm_i915_perf_record_header header;
sys/dev/drm/i915/i915_perf.c
607
header.type = DRM_I915_PERF_RECORD_SAMPLE;
sys/dev/drm/i915/i915_perf.c
608
header.pad = 0;
sys/dev/drm/i915/i915_perf.c
609
header.size = stream->sample_size;
sys/dev/drm/i915/i915_perf.c
611
if ((count - *offset) < header.size)
sys/dev/drm/i915/i915_perf.c
615
if (copy_to_user(buf, &header, sizeof(header)))
sys/dev/drm/i915/i915_perf.c
617
buf += sizeof(header);
sys/dev/drm/i915/i915_perf.c
624
(*offset) += header.size;
sys/dev/drm/i915/intel_engine_cs.c
1444
const char *header, ...)
sys/dev/drm/i915/intel_engine_cs.c
1455
if (header) {
sys/dev/drm/i915/intel_engine_cs.c
1458
va_start(ap, header);
sys/dev/drm/i915/intel_engine_cs.c
1459
drm_vprintf(m, header, &ap);
sys/dev/drm/i915/intel_guc_ct.c
328
u32 header;
sys/dev/drm/i915/intel_guc_ct.c
356
header = (len << GUC_CT_MSG_LEN_SHIFT) |
sys/dev/drm/i915/intel_guc_ct.c
362
4, &header, 4, &fence,
sys/dev/drm/i915/intel_guc_ct.c
365
cmds[tail] = header;
sys/dev/drm/i915/intel_guc_ct.c
564
static inline unsigned int ct_header_get_len(u32 header)
sys/dev/drm/i915/intel_guc_ct.c
566
return (header >> GUC_CT_MSG_LEN_SHIFT) & GUC_CT_MSG_LEN_MASK;
sys/dev/drm/i915/intel_guc_ct.c
569
static inline unsigned int ct_header_get_action(u32 header)
sys/dev/drm/i915/intel_guc_ct.c
571
return (header >> GUC_CT_MSG_ACTION_SHIFT) & GUC_CT_MSG_ACTION_MASK;
sys/dev/drm/i915/intel_guc_ct.c
574
static inline bool ct_header_is_response(u32 header)
sys/dev/drm/i915/intel_guc_ct.c
576
return ct_header_get_action(header) == INTEL_GUC_ACTION_DEFAULT;
sys/dev/drm/i915/intel_guc_ct.c
652
u32 header = msg[0];
sys/dev/drm/i915/intel_guc_ct.c
653
u32 len = ct_header_get_len(header);
sys/dev/drm/i915/intel_guc_ct.c
661
GEM_BUG_ON(!ct_header_is_response(header));
sys/dev/drm/i915/intel_guc_ct.c
736
u32 header;
sys/dev/drm/i915/intel_guc_ct.c
751
header = request->msg[0];
sys/dev/drm/i915/intel_guc_ct.c
754
ct_header_get_action(header),
sys/dev/drm/i915/intel_guc_ct.c
755
ct_header_get_len(header),
sys/dev/drm/i915/intel_guc_ct.c
792
u32 header = msg[0];
sys/dev/drm/i915/intel_guc_ct.c
793
u32 len = ct_header_get_len(header);
sys/dev/drm/i915/intel_guc_ct.c
798
GEM_BUG_ON(ct_header_is_response(header));
sys/dev/drm/i915/intel_guc_fwif.h
244
u32 header;
sys/dev/drm/i915/intel_guc_submission.c
472
wqi->header = WQ_TYPE_NOOP | (wqi_len << WQ_LEN_SHIFT);
sys/dev/drm/i915/intel_guc_submission.c
475
wqi->header = WQ_TYPE_INORDER |
sys/dev/drm/i915/intel_opregion.c
1001
mboxes = opregion->header->mboxes;
sys/dev/drm/i915/intel_opregion.c
1029
if (opregion->header->opregion_ver >= 2 && opregion->asle &&
sys/dev/drm/i915/intel_opregion.c
788
if (!opregion->header)
sys/dev/drm/i915/intel_opregion.c
817
if (!opregion->header)
sys/dev/drm/i915/intel_opregion.c
832
iounmap(opregion->header);
sys/dev/drm/i915/intel_opregion.c
841
opregion->header = NULL;
sys/dev/drm/i915/intel_opregion.c
998
opregion->header = base;
sys/dev/drm/i915/intel_opregion.h
40
struct opregion_header *header;
sys/dev/drm/i915/intel_ringbuffer.h
1117
const char *header, ...);
sys/dev/drm/i915/vlv_dsi.c
127
const u8 *header, *data;
sys/dev/drm/i915/vlv_dsi.c
135
header = packet.header;
sys/dev/drm/i915/vlv_dsi.c
173
I915_WRITE(ctrl_reg, header[2] << 16 | header[1] << 8 | header[0]);
sys/dev/drm/include/drm/drm_edid.h
283
u8 header[8];
sys/dev/drm/include/drm/drm_mipi_dsi.h
60
u8 header[4];
sys/dev/drm/include/uapi/drm/radeon_drm.h
192
} header;
sys/dev/drm/include/uapi/drm/radeon_drm.h
255
} header;
sys/dev/drm/radeon/ci_smc.c
201
radeon_ucode_print_smc_hdr(&hdr->header);
sys/dev/drm/radeon/ci_smc.c
204
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
sys/dev/drm/radeon/ci_smc.c
206
(rdev->smc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
1871
radeon_ucode_print_mc_hdr(&hdr->header);
sys/dev/drm/radeon/cik.c
1876
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/cik.c
1878
(rdev->mc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
3749
u32 header, control = INDIRECT_BUFFER_VALID;
sys/dev/drm/radeon/cik.c
3756
header = PACKET3(PACKET3_INDIRECT_BUFFER_CONST, 2);
sys/dev/drm/radeon/cik.c
3774
header = PACKET3(PACKET3_INDIRECT_BUFFER, 2);
sys/dev/drm/radeon/cik.c
3779
radeon_ring_write(ring, header);
sys/dev/drm/radeon/cik.c
3929
radeon_ucode_print_gfx_hdr(&pfp_hdr->header);
sys/dev/drm/radeon/cik.c
3930
radeon_ucode_print_gfx_hdr(&ce_hdr->header);
sys/dev/drm/radeon/cik.c
3931
radeon_ucode_print_gfx_hdr(&me_hdr->header);
sys/dev/drm/radeon/cik.c
3935
(rdev->pfp_fw->data + le32_to_cpu(pfp_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
3936
fw_size = le32_to_cpu(pfp_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/cik.c
3940
WREG32(CP_PFP_UCODE_ADDR, le32_to_cpu(pfp_hdr->header.ucode_version));
sys/dev/drm/radeon/cik.c
3944
(rdev->ce_fw->data + le32_to_cpu(ce_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
3945
fw_size = le32_to_cpu(ce_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/cik.c
3949
WREG32(CP_CE_UCODE_ADDR, le32_to_cpu(ce_hdr->header.ucode_version));
sys/dev/drm/radeon/cik.c
3953
(rdev->me_fw->data + le32_to_cpu(me_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
3954
fw_size = le32_to_cpu(me_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/cik.c
3958
WREG32(CP_ME_RAM_WADDR, le32_to_cpu(me_hdr->header.ucode_version));
sys/dev/drm/radeon/cik.c
3959
WREG32(CP_ME_RAM_RADDR, le32_to_cpu(me_hdr->header.ucode_version));
sys/dev/drm/radeon/cik.c
4287
radeon_ucode_print_gfx_hdr(&mec_hdr->header);
sys/dev/drm/radeon/cik.c
4291
(rdev->mec_fw->data + le32_to_cpu(mec_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
4292
fw_size = le32_to_cpu(mec_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/cik.c
4296
WREG32(CP_MEC_ME1_UCODE_ADDR, le32_to_cpu(mec_hdr->header.ucode_version));
sys/dev/drm/radeon/cik.c
4305
le32_to_cpu(mec2_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
4306
fw_size = le32_to_cpu(mec2_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/cik.c
4310
WREG32(CP_MEC_ME2_UCODE_ADDR, le32_to_cpu(mec2_hdr->header.ucode_version));
sys/dev/drm/radeon/cik.c
4499
u32 header;
sys/dev/drm/radeon/cik.c
4624
mqd->header = 0xC0310800;
sys/dev/drm/radeon/cik.c
5970
(rdev->rlc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
5972
radeon_ucode_print_rlc_hdr(&hdr->header);
sys/dev/drm/radeon/cik.c
5974
size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/cik.c
5978
WREG32(RLC_GPM_UCODE_ADDR, le32_to_cpu(hdr->header.ucode_version));
sys/dev/drm/radeon/cik.c
6460
(rdev->ce_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
6466
(rdev->pfp_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
6472
(rdev->me_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
6478
(rdev->mec_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
6484
(rdev->mec2_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik_sdma.c
476
radeon_ucode_print_sdma_hdr(&hdr->header);
sys/dev/drm/radeon/cik_sdma.c
480
(rdev->sdma_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik_sdma.c
481
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/cik_sdma.c
489
(rdev->sdma_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik_sdma.c
490
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/evergreen_cs.c
2799
u32 header, cmd, count, sub_cmd;
sys/dev/drm/radeon/evergreen_cs.c
2812
header = radeon_get_ib_value(p, idx);
sys/dev/drm/radeon/evergreen_cs.c
2813
cmd = GET_DMA_CMD(header);
sys/dev/drm/radeon/evergreen_cs.c
2814
count = GET_DMA_COUNT(header);
sys/dev/drm/radeon/evergreen_cs.c
2815
sub_cmd = GET_DMA_SUB_CMD(header);
sys/dev/drm/radeon/evergreen_cs.c
2843
DRM_ERROR("bad DMA_PACKET_WRITE [%6d] 0x%08x sub cmd is not 0 or 8\n", idx, header);
sys/dev/drm/radeon/evergreen_cs.c
3185
DRM_ERROR("bad DMA_PACKET_COPY [%6d] 0x%08x invalid sub cmd\n", idx, header);
sys/dev/drm/radeon/evergreen_cs.c
3567
u32 header, cmd, count, sub_cmd;
sys/dev/drm/radeon/evergreen_cs.c
3570
header = ib->ptr[idx];
sys/dev/drm/radeon/evergreen_cs.c
3571
cmd = GET_DMA_CMD(header);
sys/dev/drm/radeon/evergreen_cs.c
3572
count = GET_DMA_COUNT(header);
sys/dev/drm/radeon/evergreen_cs.c
3573
sub_cmd = GET_DMA_SUB_CMD(header);
sys/dev/drm/radeon/r100.c
1441
uint32_t header, h_idx, reg;
sys/dev/drm/radeon/r100.c
1472
header = radeon_get_ib_value(p, h_idx);
sys/dev/drm/radeon/r100.c
1474
reg = R100_CP_PACKET0_GET_REG(header);
sys/dev/drm/radeon/r100.c
1490
header &= ~R300_CP_PACKET0_REG_MASK;
sys/dev/drm/radeon/r100.c
1491
header |= AVIVO_D2MODE_VLINE_START_END >> 2;
sys/dev/drm/radeon/r100.c
1494
header &= ~R300_CP_PACKET0_REG_MASK;
sys/dev/drm/radeon/r100.c
1495
header |= RADEON_CRTC2_GUI_TRIG_VLINE >> 2;
sys/dev/drm/radeon/r100.c
1501
ib[h_idx] = header;
sys/dev/drm/radeon/r600_cs.c
2382
u32 header, cmd, count, tiled;
sys/dev/drm/radeon/r600_cs.c
2395
header = radeon_get_ib_value(p, idx);
sys/dev/drm/radeon/r600_cs.c
2396
cmd = GET_DMA_CMD(header);
sys/dev/drm/radeon/r600_cs.c
2397
count = GET_DMA_COUNT(header);
sys/dev/drm/radeon/r600_cs.c
2398
tiled = GET_DMA_T(header);
sys/dev/drm/radeon/r600_cs.c
834
uint32_t header, h_idx, reg, wait_reg_mem_info;
sys/dev/drm/radeon/r600_cs.c
886
header = radeon_get_ib_value(p, h_idx);
sys/dev/drm/radeon/r600_cs.c
888
reg = R600_CP_PACKET0_GET_REG(header);
sys/dev/drm/radeon/r600_cs.c
908
header &= ~R600_CP_PACKET0_REG_MASK;
sys/dev/drm/radeon/r600_cs.c
909
header |= vline_start_end[crtc_id] >> 2;
sys/dev/drm/radeon/r600_cs.c
910
ib[h_idx] = header;
sys/dev/drm/radeon/radeon_cs.c
735
uint32_t header;
sys/dev/drm/radeon/radeon_cs.c
743
header = radeon_get_ib_value(p, idx);
sys/dev/drm/radeon/radeon_cs.c
745
pkt->type = RADEON_CP_PACKET_GET_TYPE(header);
sys/dev/drm/radeon/radeon_cs.c
746
pkt->count = RADEON_CP_PACKET_GET_COUNT(header);
sys/dev/drm/radeon/radeon_cs.c
751
pkt->reg = R100_CP_PACKET0_GET_REG(header);
sys/dev/drm/radeon/radeon_cs.c
753
RADEON_CP_PACKET0_GET_ONE_REG_WR(header);
sys/dev/drm/radeon/radeon_cs.c
755
pkt->reg = R600_CP_PACKET0_GET_REG(header);
sys/dev/drm/radeon/radeon_cs.c
758
pkt->opcode = RADEON_CP_PACKET3_GET_OPCODE(header);
sys/dev/drm/radeon/radeon_ucode.c
115
container_of(__DECONST(void *, hdr), struct rlc_firmware_header_v1_0, header);
sys/dev/drm/radeon/radeon_ucode.c
142
container_of(__DECONST(void *, hdr), struct sdma_firmware_header_v1_0, header);
sys/dev/drm/radeon/radeon_ucode.c
55
container_of(__DECONST(void *, hdr), struct mc_firmware_header_v1_0, header);
sys/dev/drm/radeon/radeon_ucode.c
76
container_of(__DECONST(void *, hdr), struct smc_firmware_header_v1_0, header);
sys/dev/drm/radeon/radeon_ucode.c
94
container_of(__DECONST(void *, hdr), struct gfx_firmware_header_v1_0, header);
sys/dev/drm/radeon/radeon_ucode.h
171
struct common_firmware_header header;
sys/dev/drm/radeon/radeon_ucode.h
178
struct common_firmware_header header;
sys/dev/drm/radeon/radeon_ucode.h
184
struct common_firmware_header header;
sys/dev/drm/radeon/radeon_ucode.h
192
struct common_firmware_header header;
sys/dev/drm/radeon/radeon_ucode.h
202
struct common_firmware_header header;
sys/dev/drm/radeon/si.c
1578
radeon_ucode_print_mc_hdr(&hdr->header);
sys/dev/drm/radeon/si.c
1582
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/si.c
1584
(rdev->mc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/si.c
3394
u32 header;
sys/dev/drm/radeon/si.c
3401
header = PACKET3(PACKET3_INDIRECT_BUFFER_CONST, 2);
sys/dev/drm/radeon/si.c
3419
header = PACKET3(PACKET3_INDIRECT_BUFFER, 2);
sys/dev/drm/radeon/si.c
3422
radeon_ring_write(ring, header);
sys/dev/drm/radeon/si.c
3485
radeon_ucode_print_gfx_hdr(&pfp_hdr->header);
sys/dev/drm/radeon/si.c
3486
radeon_ucode_print_gfx_hdr(&ce_hdr->header);
sys/dev/drm/radeon/si.c
3487
radeon_ucode_print_gfx_hdr(&me_hdr->header);
sys/dev/drm/radeon/si.c
3491
(rdev->pfp_fw->data + le32_to_cpu(pfp_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/si.c
3492
fw_size = le32_to_cpu(pfp_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/si.c
3500
(rdev->ce_fw->data + le32_to_cpu(ce_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/si.c
3501
fw_size = le32_to_cpu(ce_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/si.c
3509
(rdev->me_fw->data + le32_to_cpu(me_hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/si.c
3510
fw_size = le32_to_cpu(me_hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/si.c
5879
u32 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/si.c
5881
(rdev->rlc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/si.c
5883
radeon_ucode_print_rlc_hdr(&hdr->header);
sys/dev/drm/radeon/si_smc.c
226
radeon_ucode_print_smc_hdr(&hdr->header);
sys/dev/drm/radeon/si_smc.c
229
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
sys/dev/drm/radeon/si_smc.c
231
(rdev->smc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/misc/ipmi/ipmi_smbios.c
179
struct smbios_eps *header;
sys/dev/misc/ipmi/ipmi_smbios.c
196
header = pmap_mapbios(addr, sizeof(struct smbios_eps));
sys/dev/misc/ipmi/ipmi_smbios.c
197
table = pmap_mapbios(addr, header->length);
sys/dev/misc/ipmi/ipmi_smbios.c
198
pmap_unmapbios((vm_offset_t)header, sizeof(struct smbios_eps));
sys/dev/misc/ipmi/ipmi_smbios.c
199
header = table;
sys/dev/misc/ipmi/ipmi_smbios.c
200
if (smbios_cksum(header) != 0) {
sys/dev/misc/ipmi/ipmi_smbios.c
201
pmap_unmapbios((vm_offset_t)header, header->length);
sys/dev/misc/ipmi/ipmi_smbios.c
206
table = pmap_mapbios(header->structure_table_address,
sys/dev/misc/ipmi/ipmi_smbios.c
207
header->structure_table_length);
sys/dev/misc/ipmi/ipmi_smbios.c
208
smbios_walk_table(table, header->number_structures, smbios_ipmi_info,
sys/dev/misc/ipmi/ipmi_smbios.c
212
pmap_unmapbios((vm_offset_t)table, header->structure_table_length);
sys/dev/misc/ipmi/ipmi_smbios.c
213
pmap_unmapbios((vm_offset_t)header, header->length);
sys/dev/misc/musycc/musycc.c
1009
(*resp)->header.arglen = strlen(s) + 1;
sys/dev/misc/musycc/musycc.c
1012
} else if (msg->header.cmd == NGM_TEXT_CONFIG) {
sys/dev/misc/musycc/musycc.c
1013
if (msg->header.arglen) {
sys/dev/misc/musycc/musycc.c
1028
(*resp)->header.arglen = strlen(r) + 1;
sys/dev/misc/musycc/musycc.c
996
if (msg->header.typecookie != NGM_GENERIC_COOKIE)
sys/dev/misc/musycc/musycc.c
999
if (msg->header.cmd == NGM_TEXT_STATUS) {
sys/dev/netif/ath/ath_hal/ah_eeprom_v3.c
1136
const uint32_t *header;
sys/dev/netif/ath/ath_hal/ah_eeprom_v3.c
1146
header = headerOffset3_3;
sys/dev/netif/ath/ath_hal/ah_eeprom_v3.c
1149
header = headerOffset3_0;
sys/dev/netif/ath/ath_hal/ah_eeprom_v3.c
1154
EEREAD(header[0]);
sys/dev/netif/ath/ath_hal/ah_eeprom_v3.c
1167
off = header[1];
sys/dev/netif/ath/ath_hal/ah_eeprom_v3.c
1193
off = header[2 + i];
sys/dev/netif/ath/ath_hal/ah_eeprom_v3.c
1428
off = header[5];
sys/dev/netif/mn/if_mn.c
337
if (msg->header.typecookie != NGM_GENERIC_COOKIE) {
sys/dev/netif/mn/if_mn.c
344
if (msg->header.cmd != NGM_TEXT_CONFIG &&
sys/dev/netif/mn/if_mn.c
345
msg->header.cmd != NGM_TEXT_STATUS) {
sys/dev/netif/mn/if_mn.c
359
if (msg->header.arglen)
sys/dev/netif/mn/if_mn.c
366
if (msg->header.cmd == NGM_TEXT_CONFIG) {
sys/dev/netif/mn/if_mn.c
368
(*resp)->header.arglen = strlen(r) + 1;
sys/dev/netif/mn/if_mn.c
441
(*resp)->header.arglen = pos + 1;
sys/dev/raid/ciss/ciss.c
1052
cc->header.address = sc->ciss_controllers[i];
sys/dev/raid/ciss/ciss.c
1281
cc->header.address.physical.mode = CISS_HDR_ADDRESS_MODE_PERIPHERAL;
sys/dev/raid/ciss/ciss.c
1282
cc->header.address.physical.bus = 0;
sys/dev/raid/ciss/ciss.c
1283
cc->header.address.physical.target = 0;
sys/dev/raid/ciss/ciss.c
1581
cc->header.address = ld->cl_address;
sys/dev/raid/ciss/ciss.c
1641
cc->header.address = *ld->cl_controller; /* target controller */
sys/dev/raid/ciss/ciss.c
1737
cc->header.address = *ld->cl_controller; /* target controller */
sys/dev/raid/ciss/ciss.c
1827
cc->header.address = *ld->cl_controller; /* target controller */
sys/dev/raid/ciss/ciss.c
1998
debug(2, "post command %d tag %d ", cr->cr_tag, cc->header.host_tag);
sys/dev/raid/ciss/ciss.c
2054
cc->header.host_tag = tag; /* not updated by adapter */
sys/dev/raid/ciss/ciss.c
2083
cc->header.host_tag = tag; /* not updated by adapter */
sys/dev/raid/ciss/ciss.c
2226
if ((cc->header.host_tag & CISS_HDR_HOST_TAG_ERROR) &&
sys/dev/raid/ciss/ciss.c
2232
cc->header.host_tag &= ~CISS_HDR_HOST_TAG_ERROR;
sys/dev/raid/ciss/ciss.c
2240
if (!(cc->header.host_tag & CISS_HDR_HOST_TAG_ERROR)) {
sys/dev/raid/ciss/ciss.c
2367
cc->header.address.mode.mode = CISS_HDR_ADDRESS_MODE_PERIPHERAL; /* addressing? */
sys/dev/raid/ciss/ciss.c
2368
cc->header.address.physical.target = 0;
sys/dev/raid/ciss/ciss.c
2369
cc->header.address.physical.bus = 0;
sys/dev/raid/ciss/ciss.c
2436
cc->header.sg_in_list = 0; /* kinda inefficient this way */
sys/dev/raid/ciss/ciss.c
2437
cc->header.sg_total = 0;
sys/dev/raid/ciss/ciss.c
2438
cc->header.host_tag = cr->cr_tag << 2;
sys/dev/raid/ciss/ciss.c
2439
cc->header.host_tag_zeroes = 0;
sys/dev/raid/ciss/ciss.c
2506
cc->header.address.physical.mode = CISS_HDR_ADDRESS_MODE_PERIPHERAL;
sys/dev/raid/ciss/ciss.c
2507
cc->header.address.physical.bus = 0;
sys/dev/raid/ciss/ciss.c
2508
cc->header.address.physical.target = 0;
sys/dev/raid/ciss/ciss.c
2571
bcopy(&ioc->LUN_info, &cc->header.address, sizeof(cc->header.address));
sys/dev/raid/ciss/ciss.c
2589
if ((cc->header.host_tag & CISS_HDR_HOST_TAG_ERROR) == 0)
sys/dev/raid/ciss/ciss.c
2681
cc->header.sg_in_list = nseg;
sys/dev/raid/ciss/ciss.c
2682
cc->header.sg_total = nseg;
sys/dev/raid/ciss/ciss.c
3087
cc->header.address =
sys/dev/raid/ciss/ciss.c
3090
cc->header.address =
sys/dev/raid/ciss/ciss.c
3554
cc->header.address.physical.mode = CISS_HDR_ADDRESS_MODE_PERIPHERAL;
sys/dev/raid/ciss/ciss.c
3555
cc->header.address.physical.bus = 0;
sys/dev/raid/ciss/ciss.c
3556
cc->header.address.physical.target = 0;
sys/dev/raid/ciss/ciss.c
3702
cc->header.address.physical.mode = CISS_HDR_ADDRESS_MODE_PERIPHERAL;
sys/dev/raid/ciss/ciss.c
3703
cc->header.address.physical.bus = 0;
sys/dev/raid/ciss/ciss.c
3704
cc->header.address.physical.target = 0;
sys/dev/raid/ciss/ciss.c
4158
cc->header.sg_in_list, cc->header.sg_total, cc->header.host_tag);
sys/dev/raid/ciss/ciss.c
4159
switch(cc->header.address.mode.mode) {
sys/dev/raid/ciss/ciss.c
4163
cc->header.address.physical.bus, cc->header.address.physical.target);
sys/dev/raid/ciss/ciss.c
4166
ciss_printf(sc, " logical unit %d\n", cc->header.address.logical.lun);
sys/dev/raid/ciss/ciss.c
4184
if (cc->header.host_tag & CISS_HDR_HOST_TAG_ERROR) {
sys/dev/raid/ciss/ciss.c
4188
for (i = 0; i < cc->header.sg_in_list; i++) {
sys/dev/raid/ciss/ciss.c
4192
if ((((i + 1) % 4) == 0) || (i == (cc->header.sg_in_list - 1)))
sys/dev/raid/ciss/cissreg.h
163
struct ciss_header header;
sys/dev/raid/hptiop/hptiop.c
1006
config->header.size = sizeof(struct hpt_iop_request_set_config);
sys/dev/raid/hptiop/hptiop.c
1007
config->header.type = IOP_REQUEST_TYPE_SET_CONFIG;
sys/dev/raid/hptiop/hptiop.c
1008
config->header.flags = IOP_REQUEST_FLAG_SYNC_REQUEST;
sys/dev/raid/hptiop/hptiop.c
1009
config->header.result = IOP_RESULT_PENDING;
sys/dev/raid/hptiop/hptiop.c
1010
config->header.context = 0;
sys/dev/raid/hptiop/hptiop.c
1039
req->header.flags = 0;
sys/dev/raid/hptiop/hptiop.c
1040
req->header.type = IOP_REQUEST_TYPE_SET_CONFIG;
sys/dev/raid/hptiop/hptiop.c
1041
req->header.size = sizeof(struct hpt_iop_request_set_config);
sys/dev/raid/hptiop/hptiop.c
1042
req->header.result = IOP_RESULT_PENDING;
sys/dev/raid/hptiop/hptiop.c
1043
req->header.context = MVIOP_CMD_TYPE_SET_CONFIG;
sys/dev/raid/hptiop/hptiop.c
1066
req->header.type = IOP_REQUEST_TYPE_SET_CONFIG;
sys/dev/raid/hptiop/hptiop.c
1067
req->header.size = sizeof(struct hpt_iop_request_set_config);
sys/dev/raid/hptiop/hptiop.c
1068
req->header.result = IOP_RESULT_PENDING;
sys/dev/raid/hptiop/hptiop.c
1092
req.header.size = offsetof(struct hpt_iop_request_ioctl_command, buf)
sys/dev/raid/hptiop/hptiop.c
1094
req.header.type = IOP_REQUEST_TYPE_IOCTL_COMMAND;
sys/dev/raid/hptiop/hptiop.c
1095
req.header.flags = IOP_REQUEST_FLAG_SYNC_REQUEST;
sys/dev/raid/hptiop/hptiop.c
1096
req.header.result = IOP_RESULT_PENDING;
sys/dev/raid/hptiop/hptiop.c
1097
req.header.context = req32 + (u_int64_t)(unsigned long)hba->u.itl.mu;
sys/dev/raid/hptiop/hptiop.c
1112
offsetof(struct hpt_iop_request_ioctl_command, header.context),
sys/dev/raid/hptiop/hptiop.c
1121
header.context),
sys/dev/raid/hptiop/hptiop.c
1184
header.result));
sys/dev/raid/hptiop/hptiop.c
1229
req->header.size = offsetof(struct hpt_iop_request_ioctl_command, buf)
sys/dev/raid/hptiop/hptiop.c
1231
req->header.context = (u_int64_t)MVIOP_CMD_TYPE_IOCTL;
sys/dev/raid/hptiop/hptiop.c
1232
req->header.type = IOP_REQUEST_TYPE_IOCTL_COMMAND;
sys/dev/raid/hptiop/hptiop.c
1233
req->header.result = IOP_RESULT_PENDING;
sys/dev/raid/hptiop/hptiop.c
1234
req->header.flags = IOP_REQUEST_FLAG_OUTPUT_CONTEXT;
sys/dev/raid/hptiop/hptiop.c
1235
size = req->header.size >> 8;
sys/dev/raid/hptiop/hptiop.c
1311
req->header.size = offsetof(struct hpt_iop_request_ioctl_command, buf)
sys/dev/raid/hptiop/hptiop.c
1314
req->header.type = IOP_REQUEST_TYPE_IOCTL_COMMAND;
sys/dev/raid/hptiop/hptiop.c
1315
req->header.result = IOP_RESULT_PENDING;
sys/dev/raid/hptiop/hptiop.c
1317
req->header.flags = IOP_REQUEST_FLAG_SYNC_REQUEST
sys/dev/raid/hptiop/hptiop.c
1321
req->header.context = ((phy_addr & 0xffffffff) << 32 )
sys/dev/raid/hptiop/hptiop.c
1322
| IOPMU_QUEUE_ADDR_HOST_BIT | req->header.type;
sys/dev/raid/hptiop/hptiop.c
1334
hba->u.mvfrey.inlist[index].intrfc_len = (req->header.size + 3) / 4;
sys/dev/raid/hptiop/hptiop.c
2444
req.header.size =
sys/dev/raid/hptiop/hptiop.c
2447
req.header.type = IOP_REQUEST_TYPE_SCSI_COMMAND;
sys/dev/raid/hptiop/hptiop.c
2448
req.header.flags = 0;
sys/dev/raid/hptiop/hptiop.c
2449
req.header.result = IOP_RESULT_PENDING;
sys/dev/raid/hptiop/hptiop.c
2450
req.header.context = (u_int64_t)(unsigned long)srb;
sys/dev/raid/hptiop/hptiop.c
2457
(u_int8_t *)&req, req.header.size);
sys/dev/raid/hptiop/hptiop.c
2485
req->header.type = IOP_REQUEST_TYPE_SCSI_COMMAND;
sys/dev/raid/hptiop/hptiop.c
2486
req->header.result = IOP_RESULT_PENDING;
sys/dev/raid/hptiop/hptiop.c
2491
req->header.size =
sys/dev/raid/hptiop/hptiop.c
2494
req->header.context = (u_int64_t)srb->index |
sys/dev/raid/hptiop/hptiop.c
2496
req->header.flags = IOP_REQUEST_FLAG_OUTPUT_CONTEXT;
sys/dev/raid/hptiop/hptiop.c
2510
if (req->header.size < 256)
sys/dev/raid/hptiop/hptiop.c
2512
else if (req->header.size < 512)
sys/dev/raid/hptiop/hptiop.c
2554
req->header.type = IOP_REQUEST_TYPE_SCSI_COMMAND;
sys/dev/raid/hptiop/hptiop.c
2555
req->header.result = IOP_RESULT_PENDING;
sys/dev/raid/hptiop/hptiop.c
2560
req->header.size = sizeof(struct hpt_iop_request_scsi_command)
sys/dev/raid/hptiop/hptiop.c
2570
req->header.context = (u_int64_t)srb->index
sys/dev/raid/hptiop/hptiop.c
2573
req->header.flags = IOP_REQUEST_FLAG_OUTPUT_CONTEXT;
sys/dev/raid/hptiop/hptiop.c
2574
size = req->header.size >> 8;
sys/dev/raid/hptiop/hptiop.c
2608
req->header.type = IOP_REQUEST_TYPE_SCSI_COMMAND;
sys/dev/raid/hptiop/hptiop.c
2609
req->header.result = IOP_RESULT_PENDING;
sys/dev/raid/hptiop/hptiop.c
2614
req->header.size = sizeof(struct hpt_iop_request_scsi_command)
sys/dev/raid/hptiop/hptiop.c
2625
req->header.flags = IOP_REQUEST_FLAG_OUTPUT_CONTEXT
sys/dev/raid/hptiop/hptiop.c
2628
req->header.context = ((req_phy & 0xffffffff) << 32 )
sys/dev/raid/hptiop/hptiop.c
2630
| IOPMU_QUEUE_ADDR_HOST_BIT | req->header.type;
sys/dev/raid/hptiop/hptiop.c
2642
hba->u.mvfrey.inlist[index].intrfc_len = (req->header.size + 3) / 4;
sys/dev/raid/hptiop/hptiop.c
2647
if (req->header.type == IOP_REQUEST_TYPE_SCSI_COMMAND) {
sys/dev/raid/hptiop/hptiop.c
346
result = req->header.result;
sys/dev/raid/hptiop/hptiop.c
351
result = req->header.result;
sys/dev/raid/hptiop/hptiop.c
545
req->header.result = IOP_RESULT_SUCCESS;
sys/dev/raid/hptiop/hptiop.c
547
switch (req->header.result) {
sys/dev/raid/hptiop/hptiop.c
652
req->header.result = IOP_RESULT_SUCCESS;
sys/dev/raid/hptiop/hptiop.c
654
switch (req->header.result) {
sys/dev/raid/hptiop/hptiop.c
835
((struct hpt_iop_request_get_config *)req)->header.flags |=
sys/dev/raid/hptiop/hptiop.c
914
config->header.size = sizeof(struct hpt_iop_request_get_config);
sys/dev/raid/hptiop/hptiop.c
915
config->header.type = IOP_REQUEST_TYPE_GET_CONFIG;
sys/dev/raid/hptiop/hptiop.c
916
config->header.flags = IOP_REQUEST_FLAG_SYNC_REQUEST;
sys/dev/raid/hptiop/hptiop.c
917
config->header.result = IOP_RESULT_PENDING;
sys/dev/raid/hptiop/hptiop.c
918
config->header.context = 0;
sys/dev/raid/hptiop/hptiop.c
950
req->header.flags = 0;
sys/dev/raid/hptiop/hptiop.c
951
req->header.type = IOP_REQUEST_TYPE_GET_CONFIG;
sys/dev/raid/hptiop/hptiop.c
952
req->header.size = sizeof(struct hpt_iop_request_get_config);
sys/dev/raid/hptiop/hptiop.c
953
req->header.result = IOP_RESULT_PENDING;
sys/dev/raid/hptiop/hptiop.c
954
req->header.context = MVIOP_CMD_TYPE_GET_CONFIG;
sys/dev/raid/hptiop/hptiop.c
970
if (info->header.size != sizeof(struct hpt_iop_request_get_config) ||
sys/dev/raid/hptiop/hptiop.c
971
info->header.type != IOP_REQUEST_TYPE_GET_CONFIG) {
sys/dev/raid/hptiop/hptiop.c
973
info->header.size, (int)sizeof(struct hpt_iop_request_get_config),
sys/dev/raid/hptiop/hptiop.c
974
info->header.type, IOP_REQUEST_TYPE_GET_CONFIG));
sys/dev/raid/hptiop/hptiop.h
258
struct hpt_iop_request_header header;
sys/dev/raid/hptiop/hptiop.h
271
struct hpt_iop_request_header header;
sys/dev/raid/hptiop/hptiop.h
290
struct hpt_iop_request_header header;
sys/dev/raid/hptiop/hptiop.h
302
struct hpt_iop_request_header header;
sys/dev/raid/hptiop/hptiop.h
313
struct hpt_iop_request_header header;
sys/dev/raid/mfi/mfi.c
1057
cm->cm_frame->header.cmd_status = MFI_STAT_OK;
sys/dev/raid/mfi/mfi.c
1280
dcmd->header.flags = MFI_FRAME_DIR_NONE;
sys/dev/raid/mfi/mfi.c
1324
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
1389
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
1649
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
1725
dcmd->header.cmd = MFI_CMD_DCMD;
sys/dev/raid/mfi/mfi.c
1726
dcmd->header.timeout = 0;
sys/dev/raid/mfi/mfi.c
1727
dcmd->header.data_len = size;
sys/dev/raid/mfi/mfi.c
1751
if (dcmd->header.cmd_status == MFI_STAT_NOT_FOUND) {
sys/dev/raid/mfi/mfi.c
1757
if (dcmd->header.cmd_status != MFI_STAT_OK) {
sys/dev/raid/mfi/mfi.c
1760
dcmd->header.cmd_status);
sys/dev/raid/mfi/mfi.c
1842
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
1892
dcmd->header.scsi_status = 0;
sys/dev/raid/mfi/mfi.c
1893
dcmd->header.pad0 = 0;
sys/dev/raid/mfi/mfi.c
1916
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
1986
context = cm->cm_frame->header.context;
sys/dev/raid/mfi/mfi.c
1988
cm->cm_frame->header.context = context;
sys/dev/raid/mfi/mfi.c
1992
pass->header.cmd = MFI_CMD_PD_SCSI_IO;
sys/dev/raid/mfi/mfi.c
2016
pass->header.target_id = disk->pd_id;
sys/dev/raid/mfi/mfi.c
2017
pass->header.timeout = 0;
sys/dev/raid/mfi/mfi.c
2018
pass->header.flags = 0;
sys/dev/raid/mfi/mfi.c
2019
pass->header.scsi_status = 0;
sys/dev/raid/mfi/mfi.c
2020
pass->header.sense_len = MFI_SENSE_LEN;
sys/dev/raid/mfi/mfi.c
2021
pass->header.data_len = bp->b_bcount;
sys/dev/raid/mfi/mfi.c
2022
pass->header.cdb_len = 10;
sys/dev/raid/mfi/mfi.c
2049
context = cm->cm_frame->header.context;
sys/dev/raid/mfi/mfi.c
2051
cm->cm_frame->header.context = context;
sys/dev/raid/mfi/mfi.c
2056
io->header.cmd = MFI_CMD_LD_READ;
sys/dev/raid/mfi/mfi.c
2060
io->header.cmd = MFI_CMD_LD_WRITE;
sys/dev/raid/mfi/mfi.c
2070
io->header.target_id = disk->ld_id;
sys/dev/raid/mfi/mfi.c
2071
io->header.timeout = 0;
sys/dev/raid/mfi/mfi.c
2072
io->header.flags = 0;
sys/dev/raid/mfi/mfi.c
2073
io->header.scsi_status = 0;
sys/dev/raid/mfi/mfi.c
2074
io->header.sense_len = MFI_SENSE_LEN;
sys/dev/raid/mfi/mfi.c
2075
io->header.data_len = blkcount;
sys/dev/raid/mfi/mfi.c
2100
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
2159
if ((cm->cm_data != NULL) && (cm->cm_frame->header.cmd != MFI_CMD_STP)) {
sys/dev/raid/mfi/mfi.c
2188
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
2204
if (((cm->cm_frame->header.cmd == MFI_CMD_PD_SCSI_IO) ||
sys/dev/raid/mfi/mfi.c
2205
(cm->cm_frame->header.cmd == MFI_CMD_LD_READ) ||
sys/dev/raid/mfi/mfi.c
2206
(cm->cm_frame->header.cmd == MFI_CMD_LD_WRITE)) &&
sys/dev/raid/mfi/mfi.c
2217
if (cm->cm_frame->header.cmd == MFI_CMD_STP) {
sys/dev/raid/mfi/mfi.c
2278
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
2333
(cm->cm_frame->header.cmd == MFI_CMD_STP))
sys/dev/raid/mfi/mfi.c
2366
context = cm->cm_frame->header.context;
sys/dev/raid/mfi/mfi.c
2368
cm->cm_frame->header.context = context;
sys/dev/raid/mfi/mfi.c
2371
abort->header.cmd = MFI_CMD_ABORT;
sys/dev/raid/mfi/mfi.c
2372
abort->header.flags = 0;
sys/dev/raid/mfi/mfi.c
2373
abort->header.scsi_status = 0;
sys/dev/raid/mfi/mfi.c
2374
abort->abort_context = cm_abort->cm_frame->header.context;
sys/dev/raid/mfi/mfi.c
2408
context = cm->cm_frame->header.context;
sys/dev/raid/mfi/mfi.c
2410
cm->cm_frame->header.context = context;
sys/dev/raid/mfi/mfi.c
2413
io->header.cmd = MFI_CMD_LD_WRITE;
sys/dev/raid/mfi/mfi.c
2414
io->header.target_id = id;
sys/dev/raid/mfi/mfi.c
2415
io->header.timeout = 0;
sys/dev/raid/mfi/mfi.c
2416
io->header.flags = 0;
sys/dev/raid/mfi/mfi.c
2417
io->header.scsi_status = 0;
sys/dev/raid/mfi/mfi.c
2418
io->header.sense_len = MFI_SENSE_LEN;
sys/dev/raid/mfi/mfi.c
2419
io->header.data_len = (len + MFI_SECTOR_LEN - 1) / MFI_SECTOR_LEN;
sys/dev/raid/mfi/mfi.c
2453
pass->header.cmd = MFI_CMD_PD_SCSI_IO;
sys/dev/raid/mfi/mfi.c
2462
pass->header.target_id = id;
sys/dev/raid/mfi/mfi.c
2463
pass->header.timeout = 0;
sys/dev/raid/mfi/mfi.c
2464
pass->header.flags = 0;
sys/dev/raid/mfi/mfi.c
2465
pass->header.scsi_status = 0;
sys/dev/raid/mfi/mfi.c
2466
pass->header.sense_len = MFI_SENSE_LEN;
sys/dev/raid/mfi/mfi.c
2467
pass->header.data_len = len;
sys/dev/raid/mfi/mfi.c
2468
pass->header.cdb_len = 10;
sys/dev/raid/mfi/mfi.c
2630
if (cm->cm_frame->header.cmd_status == MFI_STAT_OK) {
sys/dev/raid/mfi/mfi.c
2640
if (cm->cm_frame->header.cmd_status == MFI_STAT_OK) {
sys/dev/raid/mfi/mfi.c
2655
if (cm->cm_frame->header.cmd_status == MFI_STAT_OK)
sys/dev/raid/mfi/mfi.c
2670
if (syspd && cm->cm_frame->header.cmd_status != MFI_STAT_OK)
sys/dev/raid/mfi/mfi.c
2699
ld_cm->cm_frame->header.target_id = cm->cm_frame->dcmd.mbox[0];
sys/dev/raid/mfi/mfi.c
2707
if (ld_cm->cm_frame->header.cmd_status != MFI_STAT_OK) {
sys/dev/raid/mfi/mfi.c
2735
cm->cm_frame->header.sg_count = ioc->mfi_sge_count;
sys/dev/raid/mfi/mfi.c
2738
cm->cm_frame->header.flags |= MFI_FRAME_SGL64;
sys/dev/raid/mfi/mfi.c
2835
context = cm->cm_frame->header.context;
sys/dev/raid/mfi/mfi.c
2846
cm->cm_frame->header.context = context;
sys/dev/raid/mfi/mfi.c
2970
context = cm->cm_frame->header.context;
sys/dev/raid/mfi/mfi.c
2971
cm->cm_frame->header.context = cm->cm_index;
sys/dev/raid/mfi/mfi.c
2977
cm->cm_frame->header.scsi_status = 0;
sys/dev/raid/mfi/mfi.c
2978
cm->cm_frame->header.pad0 = 0;
sys/dev/raid/mfi/mfi.c
2984
if (cm->cm_frame->header.flags & MFI_FRAME_DATAIN)
sys/dev/raid/mfi/mfi.c
2986
if (cm->cm_frame->header.flags & MFI_FRAME_DATAOUT)
sys/dev/raid/mfi/mfi.c
2991
cm->cm_len = cm->cm_frame->header.data_len;
sys/dev/raid/mfi/mfi.c
2992
if (cm->cm_frame->header.cmd == MFI_CMD_STP) {
sys/dev/raid/mfi/mfi.c
3005
cm->cm_frame->header.context = context;
sys/dev/raid/mfi/mfi.c
3007
if (cm->cm_frame->header.cmd == MFI_CMD_STP) {
sys/dev/raid/mfi/mfi.c
3014
(cm->cm_frame->header.cmd == MFI_CMD_STP)) {
sys/dev/raid/mfi/mfi.c
3029
if (cm->cm_frame->header.cmd == MFI_CMD_DCMD)
sys/dev/raid/mfi/mfi.c
3033
if (cm->cm_frame->header.cmd == MFI_CMD_PD_SCSI_IO) {
sys/dev/raid/mfi/mfi.c
3060
if (cm->cm_frame->header.cmd != MFI_CMD_STP) {
sys/dev/raid/mfi/mfi.c
3063
(cm->cm_frame->header.cmd == MFI_CMD_STP)) {
sys/dev/raid/mfi/mfi.c
3092
ioc->mfi_frame.hdr.cmd_status = cm->cm_frame->header.cmd_status;
sys/dev/raid/mfi/mfi.c
3097
if (cm->cm_frame->header.cmd == MFI_CMD_STP) {
sys/dev/raid/mfi/mfi.c
3223
context = cm->cm_frame->header.context;
sys/dev/raid/mfi/mfi.c
3229
cm->cm_frame->header.scsi_status = 0;
sys/dev/raid/mfi/mfi.c
3230
cm->cm_frame->header.pad0 = 0;
sys/dev/raid/mfi/mfi.c
3235
if (cm->cm_frame->header.flags & MFI_FRAME_DATAIN)
sys/dev/raid/mfi/mfi.c
3237
if (cm->cm_frame->header.flags & MFI_FRAME_DATAOUT)
sys/dev/raid/mfi/mfi.c
3239
cm->cm_len = cm->cm_frame->header.data_len;
sys/dev/raid/mfi/mfi.c
3249
cm->cm_frame->header.context = context;
sys/dev/raid/mfi/mfi.c
3266
if (cm->cm_frame->header.cmd == MFI_CMD_DCMD)
sys/dev/raid/mfi/mfi.c
3269
if (cm->cm_frame->header.cmd == MFI_CMD_PD_SCSI_IO) {
sys/dev/raid/mfi/mfi.c
3330
error = copyout(&cm->cm_frame->header.cmd_status,
sys/dev/raid/mfi/mfi.c
772
cm->cm_frame->header.context = i;
sys/dev/raid/mfi/mfi.c
804
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
844
context = cm->cm_frame->header.context;
sys/dev/raid/mfi/mfi.c
846
cm->cm_frame->header.context = context;
sys/dev/raid/mfi/mfi.c
863
dcmd->header.cmd = MFI_CMD_DCMD;
sys/dev/raid/mfi/mfi.c
864
dcmd->header.timeout = 0;
sys/dev/raid/mfi/mfi.c
865
dcmd->header.flags = 0;
sys/dev/raid/mfi/mfi.c
866
dcmd->header.data_len = bufsize;
sys/dev/raid/mfi/mfi.c
867
dcmd->header.scsi_status = 0;
sys/dev/raid/mfi/mfi.c
898
context = cm->cm_frame->header.context;
sys/dev/raid/mfi/mfi.c
900
cm->cm_frame->header.context = context;
sys/dev/raid/mfi/mfi.c
918
init->header.cmd = MFI_CMD_INIT;
sys/dev/raid/mfi/mfi.c
919
init->header.data_len = sizeof(struct mfi_init_qinfo);
sys/dev/raid/mfi/mfi_cam.c
272
context = cm->cm_frame->header.context;
sys/dev/raid/mfi/mfi_cam.c
274
cm->cm_frame->header.context = context;
sys/dev/raid/mfi/mfi_cam.c
277
pt->header.cmd = MFI_CMD_PD_SCSI_IO;
sys/dev/raid/mfi/mfi_cam.c
278
pt->header.cmd_status = 0;
sys/dev/raid/mfi/mfi_cam.c
279
pt->header.scsi_status = 0;
sys/dev/raid/mfi/mfi_cam.c
280
pt->header.target_id = ccbh->target_id;
sys/dev/raid/mfi/mfi_cam.c
281
pt->header.lun_id = ccbh->target_lun;
sys/dev/raid/mfi/mfi_cam.c
282
pt->header.flags = 0;
sys/dev/raid/mfi/mfi_cam.c
283
pt->header.timeout = 0;
sys/dev/raid/mfi/mfi_cam.c
284
pt->header.data_len = csio->dxfer_len;
sys/dev/raid/mfi/mfi_cam.c
285
pt->header.sense_len = MFI_SENSE_LEN;
sys/dev/raid/mfi/mfi_cam.c
286
pt->header.cdb_len = csio->cdb_len;
sys/dev/raid/mfi/mfi_cam.c
328
switch (pt->header.cmd_status) {
sys/dev/raid/mfi/mfi_cam.c
334
csio->scsi_status = pt->header.scsi_status;
sys/dev/raid/mfi/mfi_cam.c
352
csio->scsi_status = pt->header.scsi_status;
sys/dev/raid/mfi/mfi_cam.c
353
if (pt->header.sense_len < csio->sense_len)
sys/dev/raid/mfi/mfi_cam.c
355
pt->header.sense_len;
sys/dev/raid/mfi/mfi_cam.c
358
sense_len = min(pt->header.sense_len,
sys/dev/raid/mfi/mfi_cam.c
369
csio->scsi_status = pt->header.scsi_status;
sys/dev/raid/mfi/mfi_cam.c
373
csio->scsi_status = pt->header.scsi_status;
sys/dev/raid/mfi/mfi_debug.c
110
hdr = &io->header;
sys/dev/raid/mfi/mfi_debug.c
128
hdr = &dcmd->header;
sys/dev/raid/mfi/mfi_debug.c
211
switch (cm->cm_frame->header.cmd) {
sys/dev/raid/mfi/mfi_debug.c
244
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi_tbolt.c
1029
sge_count = mfi_cmd->cm_frame->header.sg_count;
sys/dev/raid/mfi/mfi_tbolt.c
1107
req_desc->header.SMID = index;
sys/dev/raid/mfi/mfi_tbolt.c
1129
req_desc->header.RequestFlags = (MPI2_REQ_DESCRIPT_FLAGS_SCSI_IO <<
sys/dev/raid/mfi/mfi_tbolt.c
1131
req_desc->header.SMID = index;
sys/dev/raid/mfi/mfi_tbolt.c
1143
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi_tbolt.c
360
cm->cm_frame->header.context = 0;
sys/dev/raid/mfi/mfi_tbolt.c
411
mfi_init->header.flags |= MFI_FRAME_DONT_POST_IN_REPLY_QUEUE;
sys/dev/raid/mfi/mfi_tbolt.c
413
mfi_init->header.cmd = MFI_CMD_INIT;
sys/dev/raid/mfi/mfi_tbolt.c
414
mfi_init->header.data_len = sizeof(struct MPI2_IOC_INIT_REQUEST);
sys/dev/raid/mfi/mfi_tbolt.c
415
mfi_init->header.cmd_status = MFI_STAT_INVALID_STATUS;
sys/dev/raid/mfi/mfi_tbolt.c
430
if (mfi_init->header.cmd_status == 0) {
sys/dev/raid/mfi/mfi_tbolt.c
435
mfi_init->header.cmd_status);
sys/dev/raid/mfi/mfi_tbolt.c
590
mfi_cmd->cm_frame->header.cmd_status = 0;
sys/dev/raid/mfi/mfi_tbolt.c
591
mfi_cmd->cm_frame->dcmd.header.cmd_status = 0;
sys/dev/raid/mfi/mfi_tbolt.c
596
mfi_cmd->cm_frame->header.cmd_status = status;
sys/dev/raid/mfi/mfi_tbolt.c
597
mfi_cmd->cm_frame->header.scsi_status = ext_status;
sys/dev/raid/mfi/mfi_tbolt.c
598
mfi_cmd->cm_frame->dcmd.header.cmd_status = status;
sys/dev/raid/mfi/mfi_tbolt.c
599
mfi_cmd->cm_frame->dcmd.header.scsi_status
sys/dev/raid/mfi/mfi_tbolt.c
604
mfi_cmd->cm_frame->header.cmd_status = ext_status;
sys/dev/raid/mfi/mfi_tbolt.c
605
mfi_cmd->cm_frame->dcmd.header.cmd_status = ext_status;
sys/dev/raid/mfi/mfi_tbolt.c
610
mfi_cmd->cm_frame->header.cmd_status = status;
sys/dev/raid/mfi/mfi_tbolt.c
611
mfi_cmd->cm_frame->dcmd.header.cmd_status = status;
sys/dev/raid/mfi/mfi_tbolt.c
615
mfi_cmd->cm_frame->header.cmd_status = status;
sys/dev/raid/mfi/mfi_tbolt.c
616
mfi_cmd->cm_frame->dcmd.header.cmd_status = status;
sys/dev/raid/mfi/mfi_tbolt.c
677
status = cmd_mfi->cm_frame->dcmd.header.cmd_status;
sys/dev/raid/mfi/mfi_tbolt.c
678
extStatus = cmd_mfi->cm_frame->dcmd.header.scsi_status;
sys/dev/raid/mfi/mfi_tbolt.c
689
if (cmd_mfi->cm_frame->header.cmd_status
sys/dev/raid/mfi/mfi_tbolt.c
715
if (cmd_mfi->cm_frame->header.cmd_status != 0)
sys/dev/raid/mfi/mfi_tbolt.c
853
device_id = mfi_cmd->cm_frame->io.header.target_id;
sys/dev/raid/mfi/mfi_tbolt.c
864
io_info.numBlocks = mfi_cmd->cm_frame->io.header.data_len;
sys/dev/raid/mfi/mfi_tbolt.c
866
if ((mfi_cmd->cm_frame->header.flags & MFI_FRAME_DIR_READ) ==
sys/dev/raid/mfi/mfi_tbolt.c
873
cmd->request_desc->header.RequestFlags =
sys/dev/raid/mfi/mfi_tbolt.c
877
io_request->DataLength = mfi_cmd->cm_frame->io.header.data_len
sys/dev/raid/mfi/mfi_tbolt.c
883
if (mfi_cmd->cm_frame->header.cmd == MFI_CMD_LD_READ
sys/dev/raid/mfi/mfi_tbolt.c
884
|| mfi_cmd->cm_frame->header.cmd == MFI_CMD_LD_WRITE)
sys/dev/raid/mfi/mfi_tbolt.c
925
if (mfi_cmd->cm_frame->header.cmd == MFI_CMD_LD_WRITE)
sys/dev/raid/mfi/mfi_tbolt.c
947
num_lba = mfi_cmd->cm_frame->io.header.data_len;
sys/dev/raid/mfi/mfi_tbolt.c
952
if (mfi_cmd->cm_frame->header.cmd == MFI_CMD_LD_WRITE)
sys/dev/raid/mfi/mfi_tbolt.c
964
if (mfi_cmd->cm_frame->header.cmd == MFI_CMD_LD_WRITE)
sys/dev/raid/mfi/mfi_tbolt.c
977
if (mfi_cmd->cm_frame->header.cmd == MFI_CMD_LD_WRITE)
sys/dev/raid/mfi/mfi_tbolt.c
992
if (mfi_cmd->cm_frame->header.cmd == MFI_CMD_LD_WRITE)
sys/dev/raid/mfi/mfireg.h
1762
struct mfi_mpi2_request_header header;
sys/dev/raid/mfi/mfireg.h
1767
struct mfi_mpi2_request_header header;
sys/dev/raid/mfi/mfireg.h
1772
struct mfi_mpi2_request_header header;
sys/dev/raid/mfi/mfireg.h
1778
struct mfi_mpi2_request_header header;
sys/dev/raid/mfi/mfireg.h
1806
struct mfi_mpi2_reply_header header;
sys/dev/raid/mfi/mfireg.h
1811
struct mfi_mpi2_reply_header header;
sys/dev/raid/mfi/mfireg.h
1816
struct mfi_mpi2_reply_header header;
sys/dev/raid/mfi/mfireg.h
1822
struct mfi_mpi2_reply_header header;
sys/dev/raid/mfi/mfireg.h
1829
struct mfi_mpi2_reply_header header;
sys/dev/raid/mfi/mfireg.h
1837
struct mfi_mpi2_reply_header header;
sys/dev/raid/mfi/mfireg.h
1844
struct mfi_mpi2_reply_header header;
sys/dev/raid/mfi/mfireg.h
517
struct mfi_frame_header header;
sys/dev/raid/mfi/mfireg.h
547
struct mfi_frame_header header;
sys/dev/raid/mfi/mfireg.h
557
struct mfi_frame_header header;
sys/dev/raid/mfi/mfireg.h
566
struct mfi_frame_header header;
sys/dev/raid/mfi/mfireg.h
573
struct mfi_frame_header header;
sys/dev/raid/mfi/mfireg.h
583
struct mfi_frame_header header;
sys/dev/raid/mfi/mfireg.h
592
struct mfi_frame_header header;
sys/dev/raid/mfi/mfireg.h
602
struct mfi_frame_header header;
sys/dev/raid/mpr/mpr_ioctl.h
86
MPI2_CONFIG_PAGE_HEADER header;
sys/dev/raid/mpr/mpr_ioctl.h
94
MPI2_CONFIG_EXTENDED_PAGE_HEADER header;
sys/dev/raid/mpr/mpr_user.c
2428
MPI2_CONFIG_PAGE_HEADER header;
sys/dev/raid/mpr/mpr_user.c
2436
MPI2_CONFIG_EXTENDED_PAGE_HEADER header;
sys/dev/raid/mpr/mpr_user.c
2503
CP(*page32, arg.page, header);
sys/dev/raid/mpr/mpr_user.c
251
hdr->PageNumber = page_req->header.PageNumber;
sys/dev/raid/mpr/mpr_user.c
2516
CP(*ext32, arg.ext, header);
sys/dev/raid/mpr/mpr_user.c
252
hdr->PageType = page_req->header.PageType;
sys/dev/raid/mpr/mpr_user.c
2559
CP(arg.page, *page32, header);
sys/dev/raid/mpr/mpr_user.c
2568
CP(arg.ext, *ext32, header);
sys/dev/raid/mpr/mpr_user.c
271
bcopy(hdr, &page_req->header, sizeof(page_req->header));
sys/dev/raid/mpr/mpr_user.c
316
hdr->PageVersion = ext_page_req->header.PageVersion;
sys/dev/raid/mpr/mpr_user.c
319
hdr->PageNumber = ext_page_req->header.PageNumber;
sys/dev/raid/mpr/mpr_user.c
320
hdr->ExtPageType = ext_page_req->header.ExtPageType;
sys/dev/raid/mpr/mpr_user.c
340
ext_page_req->header.PageVersion = hdr->PageVersion;
sys/dev/raid/mpr/mpr_user.c
341
ext_page_req->header.PageNumber = hdr->PageNumber;
sys/dev/raid/mpr/mpr_user.c
342
ext_page_req->header.PageType = hdr->PageType;
sys/dev/raid/mpr/mpr_user.c
343
ext_page_req->header.ExtPageLength = hdr->ExtPageLength;
sys/dev/raid/mpr/mpr_user.c
344
ext_page_req->header.ExtPageType = hdr->ExtPageType;
sys/dev/raid/mps/mps_ioctl.h
87
MPI2_CONFIG_PAGE_HEADER header;
sys/dev/raid/mps/mps_ioctl.h
95
MPI2_CONFIG_EXTENDED_PAGE_HEADER header;
sys/dev/raid/mps/mps_user.c
2208
MPI2_CONFIG_PAGE_HEADER header;
sys/dev/raid/mps/mps_user.c
2216
MPI2_CONFIG_EXTENDED_PAGE_HEADER header;
sys/dev/raid/mps/mps_user.c
2283
CP(*page32, arg.page, header);
sys/dev/raid/mps/mps_user.c
2296
CP(*ext32, arg.ext, header);
sys/dev/raid/mps/mps_user.c
233
hdr->PageNumber = page_req->header.PageNumber;
sys/dev/raid/mps/mps_user.c
2339
CP(arg.page, *page32, header);
sys/dev/raid/mps/mps_user.c
234
hdr->PageType = page_req->header.PageType;
sys/dev/raid/mps/mps_user.c
2348
CP(arg.ext, *ext32, header);
sys/dev/raid/mps/mps_user.c
253
bcopy(hdr, &page_req->header, sizeof(page_req->header));
sys/dev/raid/mps/mps_user.c
298
hdr->PageVersion = ext_page_req->header.PageVersion;
sys/dev/raid/mps/mps_user.c
301
hdr->PageNumber = ext_page_req->header.PageNumber;
sys/dev/raid/mps/mps_user.c
302
hdr->ExtPageType = ext_page_req->header.ExtPageType;
sys/dev/raid/mps/mps_user.c
318
ext_page_req->header.PageVersion = hdr->PageVersion;
sys/dev/raid/mps/mps_user.c
319
ext_page_req->header.PageNumber = hdr->PageNumber;
sys/dev/raid/mps/mps_user.c
320
ext_page_req->header.PageType = hdr->PageType;
sys/dev/raid/mps/mps_user.c
321
ext_page_req->header.ExtPageLength = hdr->ExtPageLength;
sys/dev/raid/mps/mps_user.c
322
ext_page_req->header.ExtPageType = hdr->ExtPageType;
sys/kern/init_main.c
749
kpmap->header[0].type = UKPTYPE_VERSION;
sys/kern/init_main.c
750
kpmap->header[0].offset = offsetof(struct sys_kpmap, version);
sys/kern/init_main.c
751
kpmap->header[1].type = KPTYPE_UPTICKS;
sys/kern/init_main.c
752
kpmap->header[1].offset = offsetof(struct sys_kpmap, upticks);
sys/kern/init_main.c
753
kpmap->header[2].type = KPTYPE_TS_UPTIME;
sys/kern/init_main.c
754
kpmap->header[2].offset = offsetof(struct sys_kpmap, ts_uptime);
sys/kern/init_main.c
755
kpmap->header[3].type = KPTYPE_TS_REALTIME;
sys/kern/init_main.c
756
kpmap->header[3].offset = offsetof(struct sys_kpmap, ts_realtime);
sys/kern/init_main.c
757
kpmap->header[4].type = KPTYPE_TSC_FREQ;
sys/kern/init_main.c
758
kpmap->header[4].offset = offsetof(struct sys_kpmap, tsc_freq);
sys/kern/init_main.c
759
kpmap->header[5].type = KPTYPE_TICK_FREQ;
sys/kern/init_main.c
760
kpmap->header[5].offset = offsetof(struct sys_kpmap, tick_freq);
sys/kern/init_main.c
761
kpmap->header[6].type = KPTYPE_FAST_GTOD;
sys/kern/init_main.c
762
kpmap->header[6].offset = offsetof(struct sys_kpmap, fast_gtod);
sys/kern/kern_proc.c
1275
upmap->header[0].type = UKPTYPE_VERSION;
sys/kern/kern_proc.c
1276
upmap->header[0].offset = offsetof(struct sys_upmap, version);
sys/kern/kern_proc.c
1277
upmap->header[1].type = UPTYPE_RUNTICKS;
sys/kern/kern_proc.c
1278
upmap->header[1].offset = offsetof(struct sys_upmap, runticks);
sys/kern/kern_proc.c
1279
upmap->header[2].type = UPTYPE_FORKID;
sys/kern/kern_proc.c
1280
upmap->header[2].offset = offsetof(struct sys_upmap, forkid);
sys/kern/kern_proc.c
1281
upmap->header[3].type = UPTYPE_PID;
sys/kern/kern_proc.c
1282
upmap->header[3].offset = offsetof(struct sys_upmap, pid);
sys/kern/kern_proc.c
1283
upmap->header[4].type = UPTYPE_PROC_TITLE;
sys/kern/kern_proc.c
1284
upmap->header[4].offset = offsetof(struct sys_upmap,proc_title);
sys/kern/kern_proc.c
1285
upmap->header[5].type = UPTYPE_INVFORK;
sys/kern/kern_proc.c
1286
upmap->header[5].offset = offsetof(struct sys_upmap, invfork);
sys/kern/kern_proc.c
1327
lpmap->header[0].type = UKPTYPE_VERSION;
sys/kern/kern_proc.c
1328
lpmap->header[0].offset = offsetof(struct sys_lpmap, version);
sys/kern/kern_proc.c
1329
lpmap->header[1].type = LPTYPE_BLOCKALLSIGS;
sys/kern/kern_proc.c
1330
lpmap->header[1].offset = offsetof(struct sys_lpmap,
sys/kern/kern_proc.c
1332
lpmap->header[2].type = LPTYPE_THREAD_TITLE;
sys/kern/kern_proc.c
1333
lpmap->header[2].offset = offsetof(struct sys_lpmap,
sys/kern/kern_proc.c
1335
lpmap->header[3].type = LPTYPE_THREAD_TID;
sys/kern/kern_proc.c
1336
lpmap->header[3].offset = offsetof(struct sys_lpmap, tid);
sys/net/rtsock.c
450
skip = m->m_pkthdr.header;
sys/net/rtsock.c
451
m->m_pkthdr.header = NULL;
sys/net/rtsock.c
470
m->m_pkthdr.header = skip; /* XXX steal field in pkthdr */
sys/net/zlib.c
1001
header |= (level_flags << 6);
sys/net/zlib.c
1002
if (s->strstart != 0) header |= PRESET_DICT;
sys/net/zlib.c
1003
header += 31 - (header % 31);
sys/net/zlib.c
1006
putShortMSB(s, header);
sys/net/zlib.c
1976
int header));
sys/net/zlib.c
2990
copy_block(deflate_state *s, charf *buf, unsigned len, int header)
sys/net/zlib.c
2995
if (header) {
sys/net/zlib.c
997
uInt header = (Z_DEFLATED + ((s->w_bits-8)<<4)) << 8;
sys/netgraph/async/ng_async.c
291
switch (msg->header.typecookie) {
sys/netgraph/async/ng_async.c
293
switch (msg->header.cmd) {
sys/netgraph/async/ng_async.c
309
if (msg->header.arglen != sizeof(*cfg))
sys/netgraph/bpf/ng_bpf.c
266
switch (msg->header.typecookie) {
sys/netgraph/bpf/ng_bpf.c
268
switch (msg->header.cmd) {
sys/netgraph/bpf/ng_bpf.c
276
if (msg->header.arglen < sizeof(*hp)
sys/netgraph/bpf/ng_bpf.c
277
|| msg->header.arglen
sys/netgraph/bpf/ng_bpf.c
297
if (msg->header.arglen == 0)
sys/netgraph/bpf/ng_bpf.c
299
msg->data[msg->header.arglen - 1] = '\0';
sys/netgraph/bpf/ng_bpf.c
324
if (msg->header.arglen == 0)
sys/netgraph/bpf/ng_bpf.c
326
msg->data[msg->header.arglen - 1] = '\0';
sys/netgraph/bpf/ng_bpf.c
334
if (msg->header.cmd != NGM_BPF_CLR_STATS) {
sys/netgraph/bpf/ng_bpf.c
343
if (msg->header.cmd != NGM_BPF_GET_STATS)
sys/netgraph/bridge/ng_bridge.c
387
switch (msg->header.typecookie) {
sys/netgraph/bridge/ng_bridge.c
389
switch (msg->header.cmd) {
sys/netgraph/bridge/ng_bridge.c
409
if (msg->header.arglen
sys/netgraph/bridge/ng_bridge.c
445
if (msg->header.arglen != sizeof(u_int32_t)) {
sys/netgraph/bridge/ng_bridge.c
460
if (msg->header.cmd != NGM_BRIDGE_CLR_STATS) {
sys/netgraph/bridge/ng_bridge.c
470
if (msg->header.cmd != NGM_BRIDGE_GET_STATS)
sys/netgraph/cisco/ng_cisco.c
255
switch (msg->header.typecookie) {
sys/netgraph/cisco/ng_cisco.c
257
switch (msg->header.cmd) {
sys/netgraph/cisco/ng_cisco.c
274
resp->header.arglen = pos + 1;
sys/netgraph/cisco/ng_cisco.c
283
switch (msg->header.cmd) {
sys/netgraph/cisco/ng_cisco.c
285
if ((msg->header.flags & NGF_RESP) == 0) {
sys/netgraph/cisco/ng_cisco.c
304
if (msg->header.arglen < 2 * sizeof(*ips)) {
sys/netgraph/echo/ng_echo.c
88
msg->header.flags |= NGF_RESP;
sys/netgraph/eiface/ng_eiface.c
392
switch (msg->header.typecookie) {
sys/netgraph/eiface/ng_eiface.c
394
switch (msg->header.cmd) {
sys/netgraph/eiface/ng_eiface.c
400
if (msg->header.arglen != sizeof(struct ng_eiface_par))
sys/netgraph/etf/ng_etf.c
266
switch (msg->header.typecookie) {
sys/netgraph/etf/ng_etf.c
268
switch (msg->header.cmd) {
sys/netgraph/etf/ng_etf.c
284
if (msg->header.arglen != sizeof(u_int32_t)) {
sys/netgraph/etf/ng_etf.c
297
if (msg->header.arglen != sizeof(*f)) {
sys/netgraph/ether/ng_ether.c
405
switch (msg->header.typecookie) {
sys/netgraph/ether/ng_ether.c
407
switch (msg->header.cmd) {
sys/netgraph/ether/ng_ether.c
435
if (msg->header.arglen != ETHER_ADDR_LEN) {
sys/netgraph/ether/ng_ether.c
455
if (msg->header.arglen != sizeof(u_int32_t)) {
sys/netgraph/ether/ng_ether.c
476
if (msg->header.arglen != sizeof(u_int32_t)) {
sys/netgraph/fec/ng_fec.c
1169
switch (msg->header.typecookie) {
sys/netgraph/fec/ng_fec.c
1171
switch (msg->header.cmd) {
sys/netgraph/iface/ng_iface.c
642
switch (msg->header.typecookie) {
sys/netgraph/iface/ng_iface.c
644
switch (msg->header.cmd) {
sys/netgraph/iface/ng_iface.c
669
switch (msg->header.cmd) {
sys/netgraph/iface/ng_iface.c
688
switch (msg->header.cmd) {
sys/netgraph/ksocket/ng_ksocket.c
1008
response->header.flags |= NGF_RESP;
sys/netgraph/ksocket/ng_ksocket.c
1009
response->header.token = priv->response_token;
sys/netgraph/ksocket/ng_ksocket.c
1188
resp->header.flags |= NGF_RESP;
sys/netgraph/ksocket/ng_ksocket.c
1189
resp->header.token = priv->response_token;
sys/netgraph/ksocket/ng_ksocket.c
399
return msg->header.arglen - sizeof(*sopt);
sys/netgraph/ksocket/ng_ksocket.c
646
switch (msg->header.typecookie) {
sys/netgraph/ksocket/ng_ksocket.c
648
switch (msg->header.cmd) {
sys/netgraph/ksocket/ng_ksocket.c
655
if (msg->header.arglen < SADATA_OFFSET
sys/netgraph/ksocket/ng_ksocket.c
656
|| msg->header.arglen < sa->sa_len)
sys/netgraph/ksocket/ng_ksocket.c
668
if (msg->header.arglen != sizeof(int32_t))
sys/netgraph/ksocket/ng_ksocket.c
681
if (msg->header.arglen != 0)
sys/netgraph/ksocket/ng_ksocket.c
701
priv->response_token = msg->header.token;
sys/netgraph/ksocket/ng_ksocket.c
717
if (msg->header.arglen < SADATA_OFFSET
sys/netgraph/ksocket/ng_ksocket.c
718
|| msg->header.arglen < sa->sa_len)
sys/netgraph/ksocket/ng_ksocket.c
732
priv->response_token = msg->header.token;
sys/netgraph/ksocket/ng_ksocket.c
747
if (msg->header.arglen != 0)
sys/netgraph/ksocket/ng_ksocket.c
753
if (msg->header.cmd == NGM_KSOCKET_GETPEERNAME) {
sys/netgraph/ksocket/ng_ksocket.c
788
if (msg->header.arglen != sizeof(*ksopt))
sys/netgraph/ksocket/ng_ksocket.c
814
resp->header.arglen = sizeof(*ksopt)
sys/netgraph/ksocket/ng_ksocket.c
823
const int valsize = msg->header.arglen - sizeof(*ksopt);
sys/netgraph/ksocket/ng_ksocket.c
849
switch (msg->header.cmd) {
sys/netgraph/l2tp/ng_l2tp.c
405
switch (msg->header.typecookie) {
sys/netgraph/l2tp/ng_l2tp.c
407
switch (msg->header.cmd) {
sys/netgraph/l2tp/ng_l2tp.c
414
if (msg->header.arglen != sizeof(*conf)) {
sys/netgraph/l2tp/ng_l2tp.c
475
if (msg->header.arglen != sizeof(*conf)) {
sys/netgraph/l2tp/ng_l2tp.c
508
if (msg->header.arglen != sizeof(session_id)) {
sys/netgraph/l2tp/ng_l2tp.c
545
if (msg->header.cmd != NGM_L2TP_CLR_STATS) {
sys/netgraph/l2tp/ng_l2tp.c
555
if (msg->header.cmd != NGM_L2TP_GET_STATS)
sys/netgraph/lmi/ng_lmi.c
461
switch (msg->header.typecookie) {
sys/netgraph/lmi/ng_lmi.c
463
switch (msg->header.cmd) {
sys/netgraph/lmi/ng_lmi.c
500
(*resp)->header.arglen = pos + 1;
sys/netgraph/lmi/ng_lmi.c
509
switch (msg->header.cmd) {
sys/netgraph/mppc/ng_mppc.c
240
switch (msg->header.typecookie) {
sys/netgraph/mppc/ng_mppc.c
242
switch (msg->header.cmd) {
sys/netgraph/mppc/ng_mppc.c
249
msg->header.cmd == NGM_MPPC_CONFIG_COMP;
sys/netgraph/mppc/ng_mppc.c
254
if (msg->header.arglen != sizeof(*cfg))
sys/netgraph/mppc/ng_mppc.c
468
u_int16_t header;
sys/netgraph/mppc/ng_mppc.c
472
header = d->cc;
sys/netgraph/mppc/ng_mppc.c
474
header |= MPPC_FLAG_FLUSHED;
sys/netgraph/mppc/ng_mppc.c
519
header |= MPPC_FLAG_COMPRESSED;
sys/netgraph/mppc/ng_mppc.c
521
header |= MPPC_FLAG_RESTART;
sys/netgraph/mppc/ng_mppc.c
529
if ((header & MPPC_FLAG_COMPRESSED) == 0) {
sys/netgraph/mppc/ng_mppc.c
537
header |= MPPC_FLAG_FLUSHED;
sys/netgraph/mppc/ng_mppc.c
544
header |= MPPC_FLAG_ENCRYPTED;
sys/netgraph/mppc/ng_mppc.c
545
if ((header & MPPC_FLAG_FLUSHED) != 0)
sys/netgraph/mppc/ng_mppc.c
565
*((u_int16_t *)outbuf) = htons(header);
sys/netgraph/mppc/ng_mppc.c
582
u_int16_t header, cc;
sys/netgraph/mppc/ng_mppc.c
590
m_copydata(m, 0, MPPC_HDRLEN, &header);
sys/netgraph/mppc/ng_mppc.c
591
header = ntohs(header);
sys/netgraph/mppc/ng_mppc.c
592
cc = (header & MPPC_CCOUNT_MASK);
sys/netgraph/mppc/ng_mppc.c
605
if ((header & MPPC_FLAG_FLUSHED) != 0) {
sys/netgraph/mppc/ng_mppc.c
650
if ((header & MPPC_FLAG_ENCRYPTED) != 0) {
sys/netgraph/mppc/ng_mppc.c
684
if ((header & MPPC_FLAG_COMPRESSED) != 0
sys/netgraph/mppc/ng_mppc.c
695
if ((header & MPPC_FLAG_COMPRESSED) != 0) {
sys/netgraph/mppc/ng_mppc.c
715
if ((header & MPPC_FLAG_RESTART) != 0)
sys/netgraph/netgraph/ng_base.c
1188
if((msg)->header.typecookie == NGM_GENERIC_COOKIE) { \
sys/netgraph/netgraph/ng_base.c
1230
(*rptr)->header.flags |= NGF_RESP;
sys/netgraph/netgraph/ng_base.c
1250
if (msg->header.typecookie != NGM_GENERIC_COOKIE) {
sys/netgraph/netgraph/ng_base.c
1255
switch (msg->header.cmd) {
sys/netgraph/netgraph/ng_base.c
1263
if (msg->header.arglen != sizeof(*mkp)) {
sys/netgraph/netgraph/ng_base.c
1279
if (msg->header.arglen != sizeof(*con)) {
sys/netgraph/netgraph/ng_base.c
1296
if (msg->header.arglen != sizeof(*nam)) {
sys/netgraph/netgraph/ng_base.c
1309
if (msg->header.arglen != sizeof(*rmh)) {
sys/netgraph/netgraph/ng_base.c
1402
const int unnamed = (msg->header.cmd == NGM_LISTNODES);
sys/netgraph/netgraph/ng_base.c
1514
if (msg->header.arglen < sizeof(struct ng_mesg)
sys/netgraph/netgraph/ng_base.c
1515
|| msg->header.arglen - sizeof(struct ng_mesg)
sys/netgraph/netgraph/ng_base.c
1516
< binary->header.arglen) {
sys/netgraph/netgraph/ng_base.c
1535
if (binary->header.typecookie == c->cookie
sys/netgraph/netgraph/ng_base.c
1536
&& binary->header.cmd == c->cmd)
sys/netgraph/netgraph/ng_base.c
1541
if (binary->header.typecookie == c->cookie
sys/netgraph/netgraph/ng_base.c
1542
&& binary->header.cmd == c->cmd)
sys/netgraph/netgraph/ng_base.c
1553
ksnprintf(ascii->header.cmdstr, sizeof(ascii->header.cmdstr),
sys/netgraph/netgraph/ng_base.c
1557
argstype = (binary->header.flags & NGF_RESP) ?
sys/netgraph/netgraph/ng_base.c
1572
ascii->header.arglen = bufSize;
sys/netgraph/netgraph/ng_base.c
1573
rp->header.arglen = sizeof(*ascii) + bufSize;
sys/netgraph/netgraph/ng_base.c
1588
if (msg->header.arglen < sizeof(*ascii) + 1
sys/netgraph/netgraph/ng_base.c
1589
|| ascii->header.arglen < 1
sys/netgraph/netgraph/ng_base.c
1590
|| msg->header.arglen
sys/netgraph/netgraph/ng_base.c
1591
< sizeof(*ascii) + ascii->header.arglen) {
sys/netgraph/netgraph/ng_base.c
1595
ascii->data[ascii->header.arglen - 1] = '\0';
sys/netgraph/netgraph/ng_base.c
1611
if (strcmp(ascii->header.cmdstr, c->name) == 0)
sys/netgraph/netgraph/ng_base.c
1616
if (strcmp(ascii->header.cmdstr, c->name) == 0)
sys/netgraph/netgraph/ng_base.c
1627
binary->header.cmd = c->cmd;
sys/netgraph/netgraph/ng_base.c
1628
binary->header.typecookie = c->cookie;
sys/netgraph/netgraph/ng_base.c
1631
argstype = (binary->header.flags & NGF_RESP) ?
sys/netgraph/netgraph/ng_base.c
1644
binary->header.arglen = bufSize;
sys/netgraph/netgraph/ng_base.c
1645
rp->header.arglen = sizeof(*binary) + bufSize;
sys/netgraph/netgraph/ng_parse.c
1027
return msg->header.arglen;
sys/netgraph/ng_message.h
283
(msg)->header.version = NG_VERSION; \
sys/netgraph/ng_message.h
284
(msg)->header.typecookie = (cookie); \
sys/netgraph/ng_message.h
285
(msg)->header.cmd = (cmdid); \
sys/netgraph/ng_message.h
286
(msg)->header.arglen = (len); \
sys/netgraph/ng_message.h
287
strncpy((msg)->header.cmdstr, #cmdid, \
sys/netgraph/ng_message.h
288
sizeof((msg)->header.cmdstr) - 1); \
sys/netgraph/ng_message.h
301
(rsp)->header.version = NG_VERSION; \
sys/netgraph/ng_message.h
302
(rsp)->header.arglen = (len); \
sys/netgraph/ng_message.h
303
(rsp)->header.token = (msg)->header.token; \
sys/netgraph/ng_message.h
304
(rsp)->header.typecookie = (msg)->header.typecookie; \
sys/netgraph/ng_message.h
305
(rsp)->header.cmd = (msg)->header.cmd; \
sys/netgraph/ng_message.h
306
bcopy((msg)->header.cmdstr, (rsp)->header.cmdstr, \
sys/netgraph/ng_message.h
307
sizeof((rsp)->header.cmdstr)); \
sys/netgraph/ng_message.h
308
(rsp)->header.flags |= NGF_RESP; \
sys/netgraph/ng_message.h
72
} header;
sys/netgraph/ng_sample.c
267
switch (msg->header.typecookie) {
sys/netgraph/ng_sample.c
269
switch (msg->header.cmd) {
sys/netgraph/ng_sample.c
285
if (msg->header.arglen != sizeof(u_int32_t)) {
sys/netgraph/one2many/ng_one2many.c
271
switch (msg->header.typecookie) {
sys/netgraph/one2many/ng_one2many.c
273
switch (msg->header.cmd) {
sys/netgraph/one2many/ng_one2many.c
280
if (msg->header.arglen != sizeof(*conf)) {
sys/netgraph/one2many/ng_one2many.c
332
if (msg->header.arglen != sizeof(int32_t)) {
sys/netgraph/one2many/ng_one2many.c
348
if (msg->header.cmd != NGM_ONE2MANY_CLR_STATS) {
sys/netgraph/one2many/ng_one2many.c
358
if (msg->header.cmd != NGM_ONE2MANY_GET_STATS)
sys/netgraph/ppp/ng_ppp.c
474
switch (msg->header.typecookie) {
sys/netgraph/ppp/ng_ppp.c
476
switch (msg->header.cmd) {
sys/netgraph/ppp/ng_ppp.c
484
if (msg->header.arglen != sizeof(*conf))
sys/netgraph/ppp/ng_ppp.c
535
if (msg->header.arglen != sizeof(u_int16_t))
sys/netgraph/ppp/ng_ppp.c
543
if (msg->header.cmd != NGM_PPP_CLR_LINK_STATS) {
sys/netgraph/ppp/ng_ppp.c
550
if (msg->header.cmd != NGM_PPP_GET_LINK_STATS)
sys/netgraph/pppoe/ng_pppoe.c
593
switch (msg->header.typecookie) {
sys/netgraph/pppoe/ng_pppoe.c
595
switch (msg->header.cmd) {
sys/netgraph/pppoe/ng_pppoe.c
601
if (( sizeof(*ourmsg) > msg->header.arglen)
sys/netgraph/pppoe/ng_pppoe.c
603
> msg->header.arglen)) {
sys/netgraph/pppoe/ng_pppoe.c
630
if (msg->header.cmd == NGM_PPPOE_LISTEN) {
sys/netgraph/pppoe/ng_pppoe.c
645
if (msg->header.cmd == NGM_PPPOE_SERVICE) {
sys/netgraph/pppoe/ng_pppoe.c
689
switch (msg->header.cmd) {
sys/netgraph/pptpgre/ng_pptpgre.c
341
switch (msg->header.typecookie) {
sys/netgraph/pptpgre/ng_pptpgre.c
343
switch (msg->header.cmd) {
sys/netgraph/pptpgre/ng_pptpgre.c
350
if (msg->header.arglen != sizeof(*newConf))
sys/netgraph/pptpgre/ng_pptpgre.c
366
if (msg->header.cmd != NGM_PPTPGRE_CLR_STATS) {
sys/netgraph/pptpgre/ng_pptpgre.c
374
if (msg->header.cmd != NGM_PPTPGRE_GET_STATS)
sys/netgraph/socket/ng_socket.c
737
msglen = sizeof(struct ng_mesg) + msg->header.arglen;
sys/netgraph/socket/ng_socket.c
805
if (msg->header.typecookie == NGM_SOCKET_COOKIE) {
sys/netgraph/socket/ng_socket.c
806
switch (msg->header.cmd) {
sys/netgraph/tee/ng_tee.c
209
switch (msg->header.typecookie) {
sys/netgraph/tee/ng_tee.c
211
switch (msg->header.cmd) {
sys/netgraph/tee/ng_tee.c
218
if (msg->header.cmd != NGM_TEE_CLR_STATS) {
sys/netgraph/tee/ng_tee.c
235
if (msg->header.cmd != NGM_TEE_GET_STATS) {
sys/netgraph/tty/ng_tty.c
609
switch (msg->header.typecookie) {
sys/netgraph/tty/ng_tty.c
611
switch (msg->header.cmd) {
sys/netgraph/tty/ng_tty.c
616
if (msg->header.arglen != sizeof(int))
sys/netgraph/vjc/ng_vjc.c
301
switch (msg->header.typecookie) {
sys/netgraph/vjc/ng_vjc.c
303
switch (msg->header.cmd) {
sys/netgraph/vjc/ng_vjc.c
309
if (msg->header.arglen != sizeof(*c))
sys/netgraph7/UI/ng_UI.c
145
if ((msg->header.typecookie == NGM_FLOW_COOKIE) && lasthook) {
sys/netgraph7/async/ng_async.c
312
switch (msg->header.typecookie) {
sys/netgraph7/async/ng_async.c
314
switch (msg->header.cmd) {
sys/netgraph7/async/ng_async.c
330
if (msg->header.arglen != sizeof(*cfg))
sys/netgraph7/bluetooth/drivers/bt3c/ng_bt3c_pccard.c
374
switch (msg->header.typecookie) {
sys/netgraph7/bluetooth/drivers/bt3c/ng_bt3c_pccard.c
376
switch (msg->header.cmd) {
sys/netgraph7/bluetooth/drivers/bt3c/ng_bt3c_pccard.c
407
switch (msg->header.cmd) {
sys/netgraph7/bluetooth/drivers/bt3c/ng_bt3c_pccard.c
419
if (msg->header.arglen != sizeof(ng_bt3c_node_debug_ep))
sys/netgraph7/bluetooth/drivers/bt3c/ng_bt3c_pccard.c
467
if (msg->header.arglen != sizeof(ng_bt3c_node_qlen_ep)){
sys/netgraph7/bluetooth/drivers/bt3c/ng_bt3c_pccard.c
509
if (msg->header.arglen <
sys/netgraph7/bluetooth/drivers/bt3c/ng_bt3c_pccard.c
514
msg->header.arglen);
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
854
switch (msg->header.typecookie) {
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
856
switch (msg->header.cmd) {
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
884
switch (msg->header.cmd) {
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
913
if (msg->header.arglen != sizeof(ng_h4_node_debug_ep))
sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
931
if (msg->header.arglen != sizeof(ng_h4_node_qlen_ep))
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1569
switch (msg->header.typecookie) {
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1571
switch (msg->header.cmd) {
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1604
switch (msg->header.cmd) {
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1606
if (msg->header.arglen != sizeof(ng_ubt_node_debug_ep)){
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1626
if (msg->header.arglen != sizeof(ng_ubt_node_qlen_ep)) {
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
1657
if (msg->header.arglen != sizeof(ng_ubt_node_qlen_ep)) {
sys/netgraph7/bluetooth/hci/ng_hci_main.c
288
switch (msg->header.typecookie) {
sys/netgraph7/bluetooth/hci/ng_hci_main.c
290
switch (msg->header.cmd) {
sys/netgraph7/bluetooth/hci/ng_hci_main.c
339
switch (msg->header.cmd) {
sys/netgraph7/bluetooth/hci/ng_hci_main.c
378
if (msg->header.arglen != sizeof(ng_hci_node_debug_ep)){
sys/netgraph7/bluetooth/hci/ng_hci_main.c
562
if (msg->header.arglen !=
sys/netgraph7/bluetooth/hci/ng_hci_main.c
588
if (msg->header.arglen !=
sys/netgraph7/bluetooth/hci/ng_hci_main.c
613
if (msg->header.arglen !=
sys/netgraph7/bluetooth/hci/ng_hci_main.c
652
switch (NGI_MSG(item)->header.typecookie) {
sys/netgraph7/bluetooth/hci/ng_hci_main.c
654
switch (NGI_MSG(item)->header.cmd) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
498
if (NGI_MSG(item)->header.arglen != sizeof(*ep)) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
502
NGI_MSG(item)->header.arglen);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
706
if (NGI_MSG(item)->header.arglen != sizeof(*ep)) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
710
NGI_MSG(item)->header.arglen);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
77
if (NGI_MSG(item)->header.arglen != sizeof(ng_hci_lp_con_req_ep)) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
81
NGI_MSG(item)->header.arglen);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
955
if (NGI_MSG(item)->header.arglen != sizeof(*ep)) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
959
NGI_MSG(item)->header.arglen);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
142
if (msg->header.arglen != sizeof(*ep)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
212
if (msg->header.arglen != sizeof(*ep)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
291
if (msg->header.arglen != sizeof(*ep)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
414
if (msg->header.arglen != sizeof(*ep)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
442
if (msg->header.arglen != sizeof(*ep)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
264
switch (msg->header.typecookie) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
266
switch (msg->header.cmd) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
271
if (msg->header.arglen != sizeof(*ep))
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
301
if (msg->header.arglen != sizeof(*ep))
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
384
switch (msg->header.typecookie) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
386
switch (msg->header.cmd) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
482
switch (msg->header.typecookie) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
484
switch (msg->header.cmd) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
516
switch (msg->header.cmd) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
541
if (msg->header.arglen !=
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
653
if (msg->header.arglen !=
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1083
if (msg->header.arglen != sizeof(*ip)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1087
msg->header.arglen);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1119
NG_L2CAP_DISCON_REQ, msg->header.token);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
114
NG_L2CAP_CON_REQ, msg->header.token);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1178
msg->header.token = token;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1179
msg->header.flags |= NGF_RESP;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1306
if (msg->header.arglen < sizeof(*ip)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1310
msg->header.arglen);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1344
NG_L2CAP_ECHO_REQ, msg->header.token);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1403
msg->header.token = token;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1404
msg->header.flags |= NGF_RESP;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1435
if (msg->header.arglen != sizeof(*ip)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1439
msg->header.arglen);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1466
NG_L2CAP_INFO_REQ, msg->header.token);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1524
msg->header.token = token;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1525
msg->header.flags |= NGF_RESP;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1559
if (msg->header.arglen != sizeof(*ip)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1563
msg->header.arglen);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1621
* token = msg->header.token;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1628
* msg->header.token = token;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1629
* msg->header.flags |= NGF_RESP;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
175
msg->header.token = token;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
176
msg->header.flags |= NGF_RESP;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
211
if (msg->header.arglen != sizeof(*ip)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
215
msg->header.arglen);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
277
msg->header.token);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
332
msg->header.token = token;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
333
msg->header.flags |= NGF_RESP;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
401
if (msg->header.arglen != sizeof(*ip)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
405
msg->header.arglen);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
457
NG_L2CAP_CFG_REQ, msg->header.token);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
520
msg->header.token = token;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
521
msg->header.flags |= NGF_RESP;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
571
if (msg->header.arglen != sizeof(*ip)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
575
msg->header.arglen);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
625
msg->header.token);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
679
msg->header.token = token;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
680
msg->header.flags |= NGF_RESP;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
72
if (msg->header.arglen != sizeof(*ip)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
76
msg->header.arglen);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
862
msg->header.token = token;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
863
msg->header.flags |= NGF_RESP;
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
1213
ng_btsocket_hci_raw_get_token(&ngmsg->header.token);
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
1214
pcb->token = ngmsg->header.token;
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
1232
pcb->msg->header.cmd == NGM_HCI_NODE_GET_NEIGHBOR_CACHE) {
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
1269
ng_btsocket_hci_raw_get_token(&ngmsg->header.token);
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
1270
pcb->token = ngmsg->header.token;
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
1288
pcb->msg->header.cmd == NGM_HCI_NODE_GET_CON_LIST) {
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
1389
ng_btsocket_hci_raw_get_token(&ngmsg->header.token);
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
1390
pcb->token = ngmsg->header.token;
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
1407
if (pcb->msg != NULL && pcb->msg->header.cmd == NGM_LISTNAMES) {
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
262
(msg->header.typecookie == NGM_HCI_COOKIE ||
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
263
msg->header.typecookie == NGM_GENERIC_COOKIE) &&
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
264
msg->header.flags & NGF_RESP) {
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
265
if (msg->header.token == 0) {
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
413
ng_btsocket_hci_raw_get_token(&msg->header.token);
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
414
pcb->token = msg->header.token;
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
430
if (pcb->msg != NULL && pcb->msg->header.cmd == cmd)
sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
561
if (msg->header.token == pcb->token) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1026
if (msg->header.arglen != sizeof(*ip))
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1082
if (msg->header.arglen != sizeof(*op))
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1090
pcb = ng_btsocket_l2cap_pcb_by_token(msg->header.token);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1166
msg->header.token = pcb->token;
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1198
msg->header.token = token;
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1234
msg->header.token = pcb->token;
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1270
msg->header.token = pcb->token;
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1305
msg->header.token = token;
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1549
switch (msg->header.cmd) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1553
if (hook == NULL || msg->header.arglen != sizeof(bdaddr_t))
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1589
"%s: Unknown message, cmd=%d\n", __func__, msg->header.cmd);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1618
switch (msg->header.cmd) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1659
"%s: Unknown L2CA message, cmd=%d\n", __func__, msg->header.cmd);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1701
switch (msg->header.cmd) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
327
if (msg != NULL && msg->header.typecookie == NGM_L2CAP_COOKIE) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
398
if (msg->header.arglen != sizeof(*op))
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
406
pcb = ng_btsocket_l2cap_pcb_by_token(msg->header.token);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
417
"state=%d\n", __func__, msg->header.token,
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
494
if (msg->header.arglen != sizeof(*op))
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
502
pcb = ng_btsocket_l2cap_pcb_by_token(msg->header.token);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
513
__func__, msg->header.token,
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
564
if (msg->header.arglen != sizeof(*ip))
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
672
if (msg->header.arglen != sizeof(*op))
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
685
pcb = ng_btsocket_l2cap_pcb_by_token(msg->header.token);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
703
__func__, msg->header.token,
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
790
if (msg->header.arglen != sizeof(*op))
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
798
pcb = ng_btsocket_l2cap_pcb_by_token(msg->header.token);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
810
__func__, msg->header.token,
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
885
if (msg->header.arglen != sizeof(*ip))
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
969
if (msg->header.arglen != sizeof(*op))
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
982
pcb = ng_btsocket_l2cap_pcb_by_token(msg->header.token);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
995
__func__, msg->header.token,
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
1014
ng_btsocket_l2cap_raw_get_token(&ngmsg->header.token);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
1015
pcb->token = ngmsg->header.token;
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
1046
pcb->msg->header.cmd == NGM_L2CAP_L2CA_PING) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
1084
ng_btsocket_l2cap_raw_get_token(&ngmsg->header.token);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
1085
pcb->token = ngmsg->header.token;
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
1107
pcb->msg->header.cmd == NGM_L2CAP_L2CA_GET_INFO) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
1367
ng_btsocket_l2cap_raw_get_token(&msg->header.token);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
1368
pcb->token = msg->header.token;
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
1385
if (pcb->msg != NULL && pcb->msg->header.cmd == cmd)
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
274
if (msg != NULL && msg->header.typecookie == NGM_L2CAP_COOKIE) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
282
if (msg->header.cmd != NGM_L2CAP_NODE_HOOK_INFO) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
283
if (msg->header.token == 0 ||
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
284
!(msg->header.flags & NGF_RESP)) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
362
switch (msg->header.cmd) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
367
msg->header.arglen != sizeof(bdaddr_t))
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
418
if (pcb->token == msg->header.token) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
434
"%s: Unknown message, cmd=%d\n", __func__, msg->header.cmd);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
899
ng_btsocket_l2cap_raw_get_token(&ngmsg->header.token);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
900
pcb->token = ngmsg->header.token;
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
918
pcb->msg->header.cmd == NGM_L2CAP_NODE_GET_CON_LIST) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
954
ng_btsocket_l2cap_raw_get_token(&ngmsg->header.token);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
955
pcb->token = ngmsg->header.token;
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
973
pcb->msg->header.cmd == NGM_L2CAP_NODE_GET_CHAN_LIST) {
sys/netgraph7/bpf/ng_bpf.c
306
switch (msg->header.typecookie) {
sys/netgraph7/bpf/ng_bpf.c
308
switch (msg->header.cmd) {
sys/netgraph7/bpf/ng_bpf.c
316
if (msg->header.arglen < sizeof(*hp)
sys/netgraph7/bpf/ng_bpf.c
317
|| msg->header.arglen
sys/netgraph7/bpf/ng_bpf.c
337
if (msg->header.arglen == 0)
sys/netgraph7/bpf/ng_bpf.c
339
msg->data[msg->header.arglen - 1] = '\0';
sys/netgraph7/bpf/ng_bpf.c
364
if (msg->header.arglen == 0)
sys/netgraph7/bpf/ng_bpf.c
366
msg->data[msg->header.arglen - 1] = '\0';
sys/netgraph7/bpf/ng_bpf.c
374
if (msg->header.cmd != NGM_BPF_CLR_STATS) {
sys/netgraph7/bpf/ng_bpf.c
383
if (msg->header.cmd != NGM_BPF_GET_STATS)
sys/netgraph7/bridge/ng_bridge.c
390
switch (msg->header.typecookie) {
sys/netgraph7/bridge/ng_bridge.c
392
switch (msg->header.cmd) {
sys/netgraph7/bridge/ng_bridge.c
412
if (msg->header.arglen
sys/netgraph7/bridge/ng_bridge.c
448
if (msg->header.arglen != sizeof(u_int32_t)) {
sys/netgraph7/bridge/ng_bridge.c
463
if (msg->header.cmd != NGM_BRIDGE_CLR_STATS) {
sys/netgraph7/bridge/ng_bridge.c
473
if (msg->header.cmd != NGM_BRIDGE_GET_STATS)
sys/netgraph7/cisco/ng_cisco.c
249
switch (msg->header.typecookie) {
sys/netgraph7/cisco/ng_cisco.c
251
switch (msg->header.cmd) {
sys/netgraph7/cisco/ng_cisco.c
267
resp->header.arglen = pos + 1;
sys/netgraph7/cisco/ng_cisco.c
276
switch (msg->header.cmd) {
sys/netgraph7/cisco/ng_cisco.c
278
if ((msg->header.flags & NGF_RESP) == 0) {
sys/netgraph7/cisco/ng_cisco.c
297
if (msg->header.arglen < 2 * sizeof(*ips)) {
sys/netgraph7/deflate/ng_deflate.c
223
if (msg->header.typecookie != NGM_DEFLATE_COOKIE)
sys/netgraph7/deflate/ng_deflate.c
226
switch (msg->header.cmd) {
sys/netgraph7/deflate/ng_deflate.c
233
if (msg->header.arglen != sizeof(*cfg))
sys/netgraph7/deflate/ng_deflate.c
297
if (msg->header.cmd != NGM_DEFLATE_CLR_STATS) {
sys/netgraph7/deflate/ng_deflate.c
307
if (msg->header.cmd != NGM_DEFLATE_GET_STATS)
sys/netgraph7/echo/ng_echo.c
93
msg->header.flags |= NGF_RESP;
sys/netgraph7/eiface/ng_eiface.c
425
switch (msg->header.typecookie) {
sys/netgraph7/eiface/ng_eiface.c
427
switch (msg->header.cmd) {
sys/netgraph7/eiface/ng_eiface.c
431
if (msg->header.arglen != ETHER_ADDR_LEN) {
sys/netgraph7/eiface/ng_eiface.c
502
switch (msg->header.cmd) {
sys/netgraph7/etf/ng_etf.c
260
switch (msg->header.typecookie) {
sys/netgraph7/etf/ng_etf.c
262
switch (msg->header.cmd) {
sys/netgraph7/etf/ng_etf.c
278
if (msg->header.arglen != sizeof(u_int32_t)) {
sys/netgraph7/etf/ng_etf.c
291
if (msg->header.arglen != sizeof(*f)) {
sys/netgraph7/ether/ng_ether.c
421
switch (msg->header.typecookie) {
sys/netgraph7/ether/ng_ether.c
423
switch (msg->header.cmd) {
sys/netgraph7/ether/ng_ether.c
451
if (msg->header.arglen != ETHER_ADDR_LEN) {
sys/netgraph7/ether/ng_ether.c
471
if (msg->header.arglen != sizeof(u_int32_t)) {
sys/netgraph7/ether/ng_ether.c
492
if (msg->header.arglen != sizeof(u_int32_t)) {
sys/netgraph7/ether/ng_ether.c
504
if (msg->header.arglen != ETHER_ADDR_LEN) {
sys/netgraph7/ether/ng_ether.c
538
if (msg->header.arglen != ETHER_ADDR_LEN) {
sys/netgraph7/hole/ng_hole.c
156
switch (msg->header.typecookie) {
sys/netgraph7/hole/ng_hole.c
158
switch (msg->header.cmd) {
sys/netgraph7/hole/ng_hole.c
163
if (msg->header.arglen != NG_HOOKSIZ) {
sys/netgraph7/hole/ng_hole.c
175
if (msg->header.cmd != NGM_HOLE_CLR_STATS) {
sys/netgraph7/hole/ng_hole.c
185
if (msg->header.cmd != NGM_HOLE_GET_STATS)
sys/netgraph7/iface/ng_iface.c
663
switch (msg->header.typecookie) {
sys/netgraph7/iface/ng_iface.c
665
switch (msg->header.cmd) {
sys/netgraph7/iface/ng_iface.c
684
switch (msg->header.cmd) {
sys/netgraph7/iface/ng_iface.c
712
switch (msg->header.cmd) {
sys/netgraph7/iface/ng_iface.c
748
switch (msg->header.cmd) {
sys/netgraph7/ksocket/ng_ksocket.c
1038
response->header.flags |= NGF_RESP;
sys/netgraph7/ksocket/ng_ksocket.c
1039
response->header.token = priv->response_token;
sys/netgraph7/ksocket/ng_ksocket.c
1214
resp->header.flags |= NGF_RESP;
sys/netgraph7/ksocket/ng_ksocket.c
1215
resp->header.token = priv->response_token;
sys/netgraph7/ksocket/ng_ksocket.c
400
return msg->header.arglen - sizeof(*sopt);
sys/netgraph7/ksocket/ng_ksocket.c
669
switch (msg->header.typecookie) {
sys/netgraph7/ksocket/ng_ksocket.c
671
switch (msg->header.cmd) {
sys/netgraph7/ksocket/ng_ksocket.c
678
if (msg->header.arglen < SADATA_OFFSET
sys/netgraph7/ksocket/ng_ksocket.c
679
|| msg->header.arglen < sa->sa_len)
sys/netgraph7/ksocket/ng_ksocket.c
691
if (msg->header.arglen != sizeof(int32_t))
sys/netgraph7/ksocket/ng_ksocket.c
704
if (msg->header.arglen != 0)
sys/netgraph7/ksocket/ng_ksocket.c
724
priv->response_token = msg->header.token;
sys/netgraph7/ksocket/ng_ksocket.c
739
if (msg->header.arglen < SADATA_OFFSET
sys/netgraph7/ksocket/ng_ksocket.c
740
|| msg->header.arglen < sa->sa_len)
sys/netgraph7/ksocket/ng_ksocket.c
754
priv->response_token = msg->header.token;
sys/netgraph7/ksocket/ng_ksocket.c
769
if (msg->header.arglen != 0)
sys/netgraph7/ksocket/ng_ksocket.c
775
if (msg->header.cmd == NGM_KSOCKET_GETPEERNAME) {
sys/netgraph7/ksocket/ng_ksocket.c
811
if (msg->header.arglen != sizeof(*ksopt))
sys/netgraph7/ksocket/ng_ksocket.c
836
resp->header.arglen = sizeof(*ksopt)
sys/netgraph7/ksocket/ng_ksocket.c
845
const int valsize = msg->header.arglen - sizeof(*ksopt);
sys/netgraph7/l2tp/ng_l2tp.c
458
switch (msg->header.typecookie) {
sys/netgraph7/l2tp/ng_l2tp.c
460
switch (msg->header.cmd) {
sys/netgraph7/l2tp/ng_l2tp.c
467
if (msg->header.arglen != sizeof(*conf)) {
sys/netgraph7/l2tp/ng_l2tp.c
519
if (msg->header.arglen != sizeof(*conf)) {
sys/netgraph7/l2tp/ng_l2tp.c
546
if (msg->header.arglen != sizeof(session_id)) {
sys/netgraph7/l2tp/ng_l2tp.c
578
if (msg->header.cmd != NGM_L2TP_CLR_STATS) {
sys/netgraph7/l2tp/ng_l2tp.c
588
if (msg->header.cmd != NGM_L2TP_GET_STATS)
sys/netgraph7/l2tp/ng_l2tp.c
600
if (msg->header.arglen != sizeof(session_id)) {
sys/netgraph7/l2tp/ng_l2tp.c
614
if (msg->header.cmd != NGM_L2TP_CLR_SESSION_STATS) {
sys/netgraph7/l2tp/ng_l2tp.c
624
if (msg->header.cmd != NGM_L2TP_GET_SESSION_STATS)
sys/netgraph7/l2tp/ng_l2tp.c
634
if (msg->header.arglen != sizeof(*conf)) {
sys/netgraph7/lmi/ng_lmi.c
451
switch (msg->header.typecookie) {
sys/netgraph7/lmi/ng_lmi.c
453
switch (msg->header.cmd) {
sys/netgraph7/lmi/ng_lmi.c
490
resp->header.arglen = pos + 1;
sys/netgraph7/lmi/ng_lmi.c
499
switch (msg->header.cmd) {
sys/netgraph7/mppc/ng_mppc.c
255
switch (msg->header.typecookie) {
sys/netgraph7/mppc/ng_mppc.c
257
switch (msg->header.cmd) {
sys/netgraph7/mppc/ng_mppc.c
264
msg->header.cmd == NGM_MPPC_CONFIG_COMP;
sys/netgraph7/mppc/ng_mppc.c
269
if (msg->header.arglen != sizeof(*cfg))
sys/netgraph7/mppc/ng_mppc.c
470
u_int16_t header;
sys/netgraph7/mppc/ng_mppc.c
474
header = d->cc;
sys/netgraph7/mppc/ng_mppc.c
478
header |= MPPC_FLAG_FLUSHED;
sys/netgraph7/mppc/ng_mppc.c
526
header |= MPPC_FLAG_COMPRESSED;
sys/netgraph7/mppc/ng_mppc.c
528
header |= MPPC_FLAG_RESTART;
sys/netgraph7/mppc/ng_mppc.c
552
header |= MPPC_FLAG_ENCRYPTED;
sys/netgraph7/mppc/ng_mppc.c
559
} else if ((header & MPPC_FLAG_FLUSHED) != 0) {
sys/netgraph7/mppc/ng_mppc.c
586
*(mtod(m, uint16_t *)) = htons(header);
sys/netgraph7/mppc/ng_mppc.c
601
u_int16_t header, cc;
sys/netgraph7/mppc/ng_mppc.c
610
m_copydata(m, 0, MPPC_HDRLEN, &header);
sys/netgraph7/mppc/ng_mppc.c
611
header = ntohs(header);
sys/netgraph7/mppc/ng_mppc.c
612
cc = (header & MPPC_CCOUNT_MASK);
sys/netgraph7/mppc/ng_mppc.c
619
if ((header & MPPC_FLAG_FLUSHED) != 0) {
sys/netgraph7/mppc/ng_mppc.c
664
if ((header & MPPC_FLAG_ENCRYPTED) != 0) {
sys/netgraph7/mppc/ng_mppc.c
711
if ((header & MPPC_FLAG_COMPRESSED) != 0
sys/netgraph7/mppc/ng_mppc.c
722
if ((header & MPPC_FLAG_COMPRESSED) != 0) {
sys/netgraph7/mppc/ng_mppc.c
754
if ((header & MPPC_FLAG_RESTART) != 0)
sys/netgraph7/netflow/netflow.c
167
dgram->header.count = 0;
sys/netgraph7/netflow/netflow.c
168
dgram->header.version = htons(NETFLOW_V5);
sys/netgraph7/netflow/netflow.c
586
struct netflow_v5_header *header = &dgram->header;
sys/netgraph7/netflow/netflow.c
592
header->count + sizeof(struct netflow_v5_header);
sys/netgraph7/netflow/netflow.c
595
header->sys_uptime = htonl(MILLIUPTIME(time_uptime));
sys/netgraph7/netflow/netflow.c
597
header->unix_secs = htonl(ts.tv_sec);
sys/netgraph7/netflow/netflow.c
598
header->unix_nsecs = htonl(ts.tv_nsec);
sys/netgraph7/netflow/netflow.c
599
header->engine_type = 0;
sys/netgraph7/netflow/netflow.c
600
header->engine_id = 0;
sys/netgraph7/netflow/netflow.c
601
header->pad = 0;
sys/netgraph7/netflow/netflow.c
602
header->flow_seq = htonl(atomic_fetchadd_32(&priv->flow_seq,
sys/netgraph7/netflow/netflow.c
603
header->count));
sys/netgraph7/netflow/netflow.c
604
header->count = htons(header->count);
sys/netgraph7/netflow/netflow.c
621
struct netflow_v5_header *header = &dgram->header;
sys/netgraph7/netflow/netflow.c
624
rec = &dgram->r[header->count];
sys/netgraph7/netflow/netflow.c
625
header->count ++;
sys/netgraph7/netflow/netflow.c
627
KASSERT(header->count <= NETFLOW_V5_MAX_RECORDS,
sys/netgraph7/netflow/netflow.c
651
if (header->count == NETFLOW_V5_MAX_RECORDS)
sys/netgraph7/netflow/netflow.h
127
struct netflow_v5_header header;
sys/netgraph7/netflow/ng_netflow.c
298
switch (msg->header.typecookie) {
sys/netgraph7/netflow/ng_netflow.c
300
switch (msg->header.cmd) {
sys/netgraph7/netflow/ng_netflow.c
317
if (msg->header.arglen != sizeof(uint16_t))
sys/netgraph7/netflow/ng_netflow.c
341
if (msg->header.arglen != sizeof(struct ng_netflow_setdlt))
sys/netgraph7/netflow/ng_netflow.c
370
if (msg->header.arglen != sizeof(struct ng_netflow_setifindex))
sys/netgraph7/netflow/ng_netflow.c
390
if (msg->header.arglen != sizeof(struct ng_netflow_settimeouts))
sys/netgraph7/netflow/ng_netflow.c
404
if (msg->header.arglen != sizeof(uint32_t))
sys/netgraph7/netgraph/ng_base.c
2059
if ((NGI_MSG(item)->header.typecookie == NGM_GENERIC_COOKIE) &&
sys/netgraph7/netgraph/ng_base.c
2060
((NGI_MSG(item)->header.flags & NGF_RESP) == 0)) {
sys/netgraph7/netgraph/ng_base.c
2127
if (msg->header.typecookie != NGM_GENERIC_COOKIE) {
sys/netgraph7/netgraph/ng_base.c
2132
switch (msg->header.cmd) {
sys/netgraph7/netgraph/ng_base.c
2140
if (msg->header.arglen != sizeof(*mkp)) {
sys/netgraph7/netgraph/ng_base.c
2157
if (msg->header.arglen != sizeof(*con)) {
sys/netgraph7/netgraph/ng_base.c
2178
if (msg->header.arglen != sizeof(*nam)) {
sys/netgraph7/netgraph/ng_base.c
2192
if (msg->header.arglen != sizeof(*rmh)) {
sys/netgraph7/netgraph/ng_base.c
2392
if (msg->header.arglen < sizeof(struct ng_mesg) ||
sys/netgraph7/netgraph/ng_base.c
2393
(msg->header.arglen - sizeof(struct ng_mesg) <
sys/netgraph7/netgraph/ng_base.c
2394
binary->header.arglen)) {
sys/netgraph7/netgraph/ng_base.c
2414
if (binary->header.typecookie == c->cookie
sys/netgraph7/netgraph/ng_base.c
2415
&& binary->header.cmd == c->cmd)
sys/netgraph7/netgraph/ng_base.c
2420
if (binary->header.typecookie == c->cookie
sys/netgraph7/netgraph/ng_base.c
2421
&& binary->header.cmd == c->cmd)
sys/netgraph7/netgraph/ng_base.c
2432
ksnprintf(ascii->header.cmdstr, sizeof(ascii->header.cmdstr),
sys/netgraph7/netgraph/ng_base.c
2436
argstype = (binary->header.flags & NGF_RESP) ?
sys/netgraph7/netgraph/ng_base.c
2451
ascii->header.arglen = bufSize;
sys/netgraph7/netgraph/ng_base.c
2452
resp->header.arglen = sizeof(*ascii) + bufSize;
sys/netgraph7/netgraph/ng_base.c
2466
if ((msg->header.arglen < sizeof(*ascii) + 1) ||
sys/netgraph7/netgraph/ng_base.c
2467
(ascii->header.arglen < 1) ||
sys/netgraph7/netgraph/ng_base.c
2468
(msg->header.arglen < sizeof(*ascii) +
sys/netgraph7/netgraph/ng_base.c
2469
ascii->header.arglen)) {
sys/netgraph7/netgraph/ng_base.c
2474
ascii->data[ascii->header.arglen - 1] = '\0';
sys/netgraph7/netgraph/ng_base.c
2490
if (strcmp(ascii->header.cmdstr, c->name) == 0)
sys/netgraph7/netgraph/ng_base.c
2495
if (strcmp(ascii->header.cmdstr, c->name) == 0)
sys/netgraph7/netgraph/ng_base.c
2506
binary->header.cmd = c->cmd;
sys/netgraph7/netgraph/ng_base.c
2507
binary->header.typecookie = c->cookie;
sys/netgraph7/netgraph/ng_base.c
2510
argstype = (binary->header.flags & NGF_RESP) ?
sys/netgraph7/netgraph/ng_base.c
2523
binary->header.arglen = bufSize;
sys/netgraph7/netgraph/ng_base.c
2524
resp->header.arglen = sizeof(*binary) + bufSize;
sys/netgraph7/netgraph/ng_base.c
3017
if (msg->header.cmd & NGM_READONLY)
sys/netgraph7/netgraph/ng_parse.c
1185
return msg->header.arglen;
sys/netgraph7/ng_car.c
388
switch (msg->header.typecookie) {
sys/netgraph7/ng_car.c
390
switch (msg->header.cmd) {
sys/netgraph7/ng_car.c
409
if (msg->header.cmd == NGM_CAR_GET_STATS)
sys/netgraph7/ng_car.c
454
if (msg->header.arglen != sizeof(*bconf)) {
sys/netgraph7/ng_device.c
209
if (msg->header.typecookie == NGM_DEVICE_COOKIE) {
sys/netgraph7/ng_device.c
210
switch (msg->header.cmd) {
sys/netgraph7/ng_fec.c
1284
switch (msg->header.typecookie) {
sys/netgraph7/ng_fec.c
1286
switch (msg->header.cmd) {
sys/netgraph7/ng_gif.c
405
switch (msg->header.typecookie) {
sys/netgraph7/ng_gif.c
407
switch (msg->header.cmd) {
sys/netgraph7/ng_gif_demux.c
282
switch (msg->header.typecookie) {
sys/netgraph7/ng_gif_demux.c
284
switch (msg->header.cmd) {
sys/netgraph7/ng_message.h
398
(msg)->header.version = NG_VERSION; \
sys/netgraph7/ng_message.h
399
(msg)->header.typecookie = (cookie); \
sys/netgraph7/ng_message.h
400
(msg)->header.cmd = (cmdid); \
sys/netgraph7/ng_message.h
401
(msg)->header.arglen = (len); \
sys/netgraph7/ng_message.h
402
strncpy((msg)->header.cmdstr, #cmdid, \
sys/netgraph7/ng_message.h
403
sizeof((msg)->header.cmdstr) - 1); \
sys/netgraph7/ng_message.h
416
(rsp)->header.version = NG_VERSION; \
sys/netgraph7/ng_message.h
417
(rsp)->header.arglen = (len); \
sys/netgraph7/ng_message.h
418
(rsp)->header.token = (msg)->header.token; \
sys/netgraph7/ng_message.h
419
(rsp)->header.typecookie = (msg)->header.typecookie; \
sys/netgraph7/ng_message.h
420
(rsp)->header.cmd = (msg)->header.cmd; \
sys/netgraph7/ng_message.h
421
bcopy((msg)->header.cmdstr, (rsp)->header.cmdstr, \
sys/netgraph7/ng_message.h
422
sizeof((rsp)->header.cmdstr)); \
sys/netgraph7/ng_message.h
423
(rsp)->header.flags |= NGF_RESP; \
sys/netgraph7/ng_message.h
431
(copy) = kmalloc(sizeof(struct ng_mesg) + (msg)->header.arglen,\
sys/netgraph7/ng_message.h
435
(copy)->header.version = NG_VERSION; \
sys/netgraph7/ng_message.h
436
(copy)->header.arglen = (msg)->header.arglen; \
sys/netgraph7/ng_message.h
437
(copy)->header.token = (msg)->header.token; \
sys/netgraph7/ng_message.h
438
(copy)->header.typecookie = (msg)->header.typecookie; \
sys/netgraph7/ng_message.h
439
(copy)->header.cmd = (msg)->header.cmd; \
sys/netgraph7/ng_message.h
440
(copy)->header.flags = (msg)->header.flags; \
sys/netgraph7/ng_message.h
441
bcopy((msg)->header.cmdstr, (copy)->header.cmdstr, \
sys/netgraph7/ng_message.h
442
sizeof((copy)->header.cmdstr)); \
sys/netgraph7/ng_message.h
443
if ((msg)->header.arglen > 0) \
sys/netgraph7/ng_message.h
444
bcopy((msg)->data, (copy)->data, (msg)->header.arglen); \
sys/netgraph7/ng_message.h
80
} header;
sys/netgraph7/ng_nat.c
338
switch (msg->header.typecookie) {
sys/netgraph7/ng_nat.c
340
switch (msg->header.cmd) {
sys/netgraph7/ng_nat.c
345
if (msg->header.arglen < sizeof(*ia)) {
sys/netgraph7/ng_nat.c
360
if (msg->header.arglen < sizeof(*mode)) {
sys/netgraph7/ng_nat.c
377
if (msg->header.arglen < sizeof(*ia)) {
sys/netgraph7/ng_nat.c
391
if (msg->header.arglen < sizeof(*rp)) {
sys/netgraph7/ng_nat.c
450
if (msg->header.arglen < sizeof(*ra)) {
sys/netgraph7/ng_nat.c
502
if (msg->header.arglen < sizeof(*rp)) {
sys/netgraph7/ng_nat.c
556
if (msg->header.arglen < sizeof(*id)) {
sys/netgraph7/ng_nat.c
573
if (msg->header.cmd == NGM_NAT_REDIRECT_DYNAMIC) {
sys/netgraph7/ng_nat.c
595
if (msg->header.arglen < sizeof(*as)) {
sys/netgraph7/ng_nat.c
647
if (msg->header.arglen < 6) {
sys/netgraph7/ng_pred1.c
236
if (msg->header.typecookie != NGM_PRED1_COOKIE)
sys/netgraph7/ng_pred1.c
239
switch (msg->header.cmd) {
sys/netgraph7/ng_pred1.c
246
if (msg->header.arglen != sizeof(*cfg))
sys/netgraph7/ng_pred1.c
269
if (msg->header.cmd != NGM_PRED1_CLR_STATS) {
sys/netgraph7/ng_pred1.c
278
if (msg->header.cmd != NGM_PRED1_GET_STATS)
sys/netgraph7/ng_sample.c
272
switch (msg->header.typecookie) {
sys/netgraph7/ng_sample.c
274
switch (msg->header.cmd) {
sys/netgraph7/ng_sample.c
290
if (msg->header.arglen != sizeof(u_int32_t)) {
sys/netgraph7/ng_source.c
349
switch (msg->header.typecookie) {
sys/netgraph7/ng_source.c
351
if (msg->header.flags & NGF_RESP) {
sys/netgraph7/ng_source.c
355
switch (msg->header.cmd) {
sys/netgraph7/ng_source.c
362
if (msg->header.cmd != NGM_SOURCE_CLR_STATS) {
sys/netgraph7/ng_source.c
380
if (msg->header.cmd != NGM_SOURCE_GET_STATS)
sys/netgraph7/ng_source.c
388
if (msg->header.arglen != sizeof(uint64_t)) {
sys/netgraph7/ng_source.c
409
if (msg->header.arglen < 2) {
sys/netgraph7/ng_source.c
421
if (msg->header.arglen != sizeof(uint32_t)) {
sys/netgraph7/ng_source.c
436
if (msg->header.arglen != sizeof(*embed)) {
sys/netgraph7/ng_source.c
463
if (msg->header.arglen != sizeof(*embed)) {
sys/netgraph7/ng_source.c
504
if (!(msg->header.flags & NGF_RESP)) {
sys/netgraph7/ng_source.c
508
switch (msg->header.cmd) {
sys/netgraph7/ng_source.c
513
if (msg->header.arglen < 2) {
sys/netgraph7/ng_sppp.c
326
switch (msg->header.typecookie) {
sys/netgraph7/ng_sppp.c
328
switch (msg->header.cmd) {
sys/netgraph7/ng_tag.c
353
switch (msg->header.typecookie) {
sys/netgraph7/ng_tag.c
355
switch (msg->header.cmd) {
sys/netgraph7/ng_tag.c
363
if (msg->header.arglen < sizeof(*hp)
sys/netgraph7/ng_tag.c
364
|| msg->header.arglen !=
sys/netgraph7/ng_tag.c
385
if (msg->header.arglen < sizeof(*hp)
sys/netgraph7/ng_tag.c
386
|| msg->header.arglen !=
sys/netgraph7/ng_tag.c
406
if (msg->header.arglen == 0)
sys/netgraph7/ng_tag.c
408
msg->data[msg->header.arglen - 1] = '\0';
sys/netgraph7/ng_tag.c
430
if (msg->header.arglen == 0)
sys/netgraph7/ng_tag.c
432
msg->data[msg->header.arglen - 1] = '\0';
sys/netgraph7/ng_tag.c
457
if (msg->header.arglen == 0)
sys/netgraph7/ng_tag.c
459
msg->data[msg->header.arglen - 1] = '\0';
sys/netgraph7/ng_tag.c
467
if (msg->header.cmd != NGM_TAG_CLR_STATS) {
sys/netgraph7/ng_tag.c
475
if (msg->header.cmd != NGM_TAG_GET_STATS)
sys/netgraph7/ng_vlan.c
207
switch (msg->header.typecookie) {
sys/netgraph7/ng_vlan.c
209
switch (msg->header.cmd) {
sys/netgraph7/ng_vlan.c
212
if (msg->header.arglen != sizeof(*vf)) {
sys/netgraph7/ng_vlan.c
262
if (msg->header.arglen != NG_HOOKSIZ) {
sys/netgraph7/one2many/ng_one2many.c
265
switch (msg->header.typecookie) {
sys/netgraph7/one2many/ng_one2many.c
267
switch (msg->header.cmd) {
sys/netgraph7/one2many/ng_one2many.c
274
if (msg->header.arglen != sizeof(*conf)) {
sys/netgraph7/one2many/ng_one2many.c
328
if (msg->header.arglen != sizeof(int32_t)) {
sys/netgraph7/one2many/ng_one2many.c
344
if (msg->header.cmd != NGM_ONE2MANY_CLR_STATS) {
sys/netgraph7/one2many/ng_one2many.c
354
if (msg->header.cmd != NGM_ONE2MANY_GET_STATS)
sys/netgraph7/one2many/ng_one2many.c
385
switch (msg->header.cmd) {
sys/netgraph7/ppp/ng_ppp.c
593
switch (msg->header.typecookie) {
sys/netgraph7/ppp/ng_ppp.c
595
switch (msg->header.cmd) {
sys/netgraph7/ppp/ng_ppp.c
603
if (msg->header.arglen != sizeof(*conf))
sys/netgraph7/ppp/ng_ppp.c
657
if (msg->header.arglen != sizeof(uint16_t))
sys/netgraph7/ppp/ng_ppp.c
667
if (msg->header.cmd == NGM_PPP_GET_LINK_STATS64 ||
sys/netgraph7/ppp/ng_ppp.c
668
msg->header.cmd == NGM_PPP_GETCLR_LINK_STATS64) {
sys/netgraph7/ppp/ng_ppp.c
676
if (msg->header.cmd == NGM_PPP_GET_LINK_STATS ||
sys/netgraph7/ppp/ng_ppp.c
677
msg->header.cmd == NGM_PPP_GETCLR_LINK_STATS) {
sys/netgraph7/ppp/ng_ppp.c
695
if (msg->header.cmd != NGM_PPP_GET_LINK_STATS &&
sys/netgraph7/ppp/ng_ppp.c
696
msg->header.cmd != NGM_PPP_GET_LINK_STATS64)
sys/netgraph7/pppoe/ng_pppoe.c
1003
if (msg->header.arglen != ETHER_ADDR_LEN)
sys/netgraph7/pppoe/ng_pppoe.c
1013
if (!(msg->header.flags & NGF_RESP))
sys/netgraph7/pppoe/ng_pppoe.c
1015
switch (msg->header.cmd) {
sys/netgraph7/pppoe/ng_pppoe.c
1017
if (msg->header.arglen != ETHER_ADDR_LEN)
sys/netgraph7/pppoe/ng_pppoe.c
729
__func__, node->nd_ID, node, msg->header.cmd,
sys/netgraph7/pppoe/ng_pppoe.c
730
msg->header.typecookie);
sys/netgraph7/pppoe/ng_pppoe.c
733
switch (msg->header.typecookie) {
sys/netgraph7/pppoe/ng_pppoe.c
735
switch (msg->header.cmd) {
sys/netgraph7/pppoe/ng_pppoe.c
741
if (msg->header.arglen < sizeof(*ourmsg)) {
sys/netgraph7/pppoe/ng_pppoe.c
746
if (msg->header.arglen - sizeof(*ourmsg) >
sys/netgraph7/pppoe/ng_pppoe.c
752
if (msg->header.arglen - sizeof(*ourmsg) <
sys/netgraph7/pppoe/ng_pppoe.c
757
msg->header.arglen - sizeof (*ourmsg));
sys/netgraph7/pppoe/ng_pppoe.c
773
if (msg->header.cmd == NGM_PPPOE_LISTEN) {
sys/netgraph7/pppoe/ng_pppoe.c
787
if (msg->header.cmd == NGM_PPPOE_SERVICE)
sys/netgraph7/pppoe/ng_pppoe.c
824
switch (msg->header.cmd) {
sys/netgraph7/pppoe/ng_pppoe.c
939
if (msg->header.arglen == 0)
sys/netgraph7/pppoe/ng_pppoe.c
943
len = msg->header.arglen - 1;
sys/netgraph7/pptpgre/ng_pptpgre.c
373
switch (msg->header.typecookie) {
sys/netgraph7/pptpgre/ng_pptpgre.c
375
switch (msg->header.cmd) {
sys/netgraph7/pptpgre/ng_pptpgre.c
384
if (msg->header.arglen != sizeof(*newConf))
sys/netgraph7/pptpgre/ng_pptpgre.c
404
if (msg->header.arglen == 2) {
sys/netgraph7/pptpgre/ng_pptpgre.c
410
} else if (msg->header.arglen == 0) {
sys/netgraph7/pptpgre/ng_pptpgre.c
425
if (msg->header.cmd != NGM_PPTPGRE_CLR_STATS) {
sys/netgraph7/pptpgre/ng_pptpgre.c
433
if (msg->header.cmd != NGM_PPTPGRE_GET_STATS)
sys/netgraph7/rfc1490/ng_rfc1490.c
223
if (msg->header.typecookie == NGM_RFC1490_COOKIE) {
sys/netgraph7/rfc1490/ng_rfc1490.c
224
switch (msg->header.cmd) {
sys/netgraph7/rfc1490/ng_rfc1490.c
231
if (msg->header.arglen == 0)
sys/netgraph7/rfc1490/ng_rfc1490.c
235
len = msg->header.arglen - 1;
sys/netgraph7/socket/ng_socket.c
264
if (msg->header.version != NG_VERSION) {
sys/netgraph7/socket/ng_socket.c
276
if (msg->header.typecookie == NGM_GENERIC_COOKIE &&
sys/netgraph7/socket/ng_socket.c
277
msg->header.cmd == NGM_MKPEER) {
sys/netgraph7/socket/ng_socket.c
321
msg->header.typecookie,
sys/netgraph7/socket/ng_socket.c
322
msg->header.cmd,
sys/netgraph7/socket/ng_socket.c
323
msg->header.cmdstr,
sys/netgraph7/socket/ng_socket.c
324
msg->header.flags,
sys/netgraph7/socket/ng_socket.c
325
msg->header.token,
sys/netgraph7/socket/ng_socket.c
907
msg->header.typecookie,
sys/netgraph7/socket/ng_socket.c
908
msg->header.cmd,
sys/netgraph7/socket/ng_socket.c
909
msg->header.cmdstr,
sys/netgraph7/socket/ng_socket.c
910
msg->header.flags,
sys/netgraph7/socket/ng_socket.c
911
msg->header.token);
sys/netgraph7/socket/ng_socket.c
914
if (msg->header.typecookie == NGM_SOCKET_COOKIE) {
sys/netgraph7/socket/ng_socket.c
915
switch (msg->header.cmd) {
sys/netgraph7/socket/ng_socket.c
944
m = m_devget(msg, sizeof(struct ng_mesg) + msg->header.arglen, 0, NULL);
sys/netgraph7/tcpmss/ng_tcpmss.c
185
switch (msg->header.typecookie) {
sys/netgraph7/tcpmss/ng_tcpmss.c
187
switch (msg->header.cmd) {
sys/netgraph7/tcpmss/ng_tcpmss.c
196
if (msg->header.arglen != NG_HOOKSIZ)
sys/netgraph7/tcpmss/ng_tcpmss.c
207
if (msg->header.cmd != NGM_TCPMSS_CLR_STATS) {
sys/netgraph7/tcpmss/ng_tcpmss.c
216
if (msg->header.cmd != NGM_TCPMSS_GET_STATS)
sys/netgraph7/tcpmss/ng_tcpmss.c
228
if (msg->header.arglen !=
sys/netgraph7/tee/ng_tee.c
219
switch (msg->header.typecookie) {
sys/netgraph7/tee/ng_tee.c
221
switch (msg->header.cmd) {
sys/netgraph7/tee/ng_tee.c
228
if (msg->header.cmd != NGM_TEE_CLR_STATS) {
sys/netgraph7/tee/ng_tee.c
245
if (msg->header.cmd != NGM_TEE_GET_STATS) {
sys/netgraph7/tty/ng_tty.c
623
switch (msg->header.typecookie) {
sys/netgraph7/tty/ng_tty.c
625
switch (msg->header.cmd) {
sys/netgraph7/tty/ng_tty.c
630
if (msg->header.arglen != sizeof(int))
sys/netgraph7/vjc/ng_vjc.c
295
switch (msg->header.typecookie) {
sys/netgraph7/vjc/ng_vjc.c
297
switch (msg->header.cmd) {
sys/netgraph7/vjc/ng_vjc.c
303
if (msg->header.arglen != sizeof(*c))
sys/netinet/ip_input.c
1070
m->m_pkthdr.header = ip;
sys/netinet/ip_input.c
1111
#define GETIP(m) ((struct ip*)((m)->m_pkthdr.header))
sys/sys/cdio.h
99
struct cd_sub_channel_header header;
sys/sys/mbuf.h
158
void *header; /* pointer to packet header */
sys/sys/mpt_ioctl.h
104
CONFIG_EXTENDED_PAGE_HEADER header;
sys/sys/mpt_ioctl.h
57
CONFIG_PAGE_HEADER header;
sys/sys/mpt_ioctl.h
65
CONFIG_EXTENDED_PAGE_HEADER header;
sys/sys/mpt_ioctl.h
96
CONFIG_PAGE_HEADER header;
sys/sys/upmap.h
136
ukpheader_t header[64];
sys/sys/upmap.h
153
ukpheader_t header[64];
sys/sys/upmap.h
185
ukpheader_t header[64];
sys/vfs/hammer2/zlib/hammer2_zlib_deflate.c
392
uInt header = (Z_DEFLATED + ((s->w_bits-8)<<4)) << 8;
sys/vfs/hammer2/zlib/hammer2_zlib_deflate.c
403
header |= (level_flags << 6);
sys/vfs/hammer2/zlib/hammer2_zlib_deflate.c
404
if (s->strstart != 0) header |= PRESET_DICT;
sys/vfs/hammer2/zlib/hammer2_zlib_deflate.c
405
header += 31 - (header % 31);
sys/vfs/hammer2/zlib/hammer2_zlib_deflate.c
408
putShortMSB(s, header);
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
1215
copy_block(deflate_state *s, charf *buf, unsigned len, int header)
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
1219
if (header) {
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
156
int header);
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
332
FILE *header = fopen("trees.h", "w");
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
335
Assert (header != NULL, "Can't open trees.h");
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
336
fprintf(header,
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
339
fprintf(header, "local const ct_data static_ltree[L_CODES+2] = {\n");
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
341
fprintf(header, "{{%3u},{%3u}}%s", static_ltree[i].Code,
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
345
fprintf(header, "local const ct_data static_dtree[D_CODES] = {\n");
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
347
fprintf(header, "{{%2u},{%2u}}%s", static_dtree[i].Code,
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
351
fprintf(header, "const uch ZLIB_INTERNAL _dist_code[DIST_CODE_LEN] = {\n");
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
353
fprintf(header, "%2u%s", _dist_code[i],
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
357
fprintf(header,
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
360
fprintf(header, "%2u%s", _length_code[i],
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
364
fprintf(header, "local const int base_length[LENGTH_CODES] = {\n");
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
366
fprintf(header, "%1u%s", base_length[i],
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
370
fprintf(header, "local const int base_dist[D_CODES] = {\n");
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
372
fprintf(header, "%5u%s", base_dist[i],
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
376
fclose(header);
usr.bin/compress/zopen.c
457
u_char *bp, header[3];
usr.bin/compress/zopen.c
476
if (fread(header,
usr.bin/compress/zopen.c
477
sizeof(char), sizeof(header), fp) != sizeof(header) ||
usr.bin/compress/zopen.c
478
memcmp(header, magic_header, sizeof(magic_header)) != 0) {
usr.bin/compress/zopen.c
482
maxbits = header[2]; /* Set -b from file. */
usr.bin/finger/lprint.c
286
show_text(const char *directory, const char *file_name, const char *header)
usr.bin/finger/lprint.c
302
if ((uintptr_t)sb.st_size <= LINE_LEN - strlen(header) - 5) {
usr.bin/finger/lprint.c
312
if (*header != '\0')
usr.bin/finger/lprint.c
313
(void)printf("%s: ", header);
usr.bin/finger/lprint.c
327
if (*header != '\0')
usr.bin/finger/lprint.c
328
(void)printf("%s:\n", header);
usr.bin/gzip/gzip.c
519
static char header[] = { GZIP_MAGIC0, GZIP_MAGIC1, Z_DEFLATED, 0,
usr.bin/gzip/gzip.c
537
memcpy(outbufp, header, sizeof header);
usr.bin/gzip/gzip.c
538
i = sizeof header;
usr.bin/gzip/zuncompress.c
216
u_char *bp, header[3];
usr.bin/gzip/zuncompress.c
236
header[i] = *compressed_pre++;
usr.bin/gzip/zuncompress.c
238
if (fread(header + i, 1, sizeof(header) - i, zs->zs_fp) !=
usr.bin/gzip/zuncompress.c
239
sizeof(header) - i ||
usr.bin/gzip/zuncompress.c
240
memcmp(header, magic_header, sizeof(magic_header)) != 0) {
usr.bin/gzip/zuncompress.c
245
zs->zs_maxbits = header[2]; /* Set -b from file. */
usr.bin/mail/cmd3.c
199
struct header head;
usr.bin/mail/cmd3.c
574
struct header head;
usr.bin/mail/collect.c
69
collect(struct header *hp, int printheaders)
usr.bin/mail/extern.h
121
void fixhead(struct header *, struct name *);
usr.bin/mail/extern.h
133
int grabh(struct header *, int);
usr.bin/mail/extern.h
163
void mail1(struct header *, int);
usr.bin/mail/extern.h
186
int puthead(struct header *, FILE *, int);
usr.bin/mail/extern.h
40
struct name *outof(struct name *, FILE *, struct header *);
usr.bin/mail/extern.h
47
FILE *collect(struct header *, int);
usr.bin/mail/extern.h
54
FILE *infix(struct header *, FILE *);
usr.bin/mail/names.c
277
outof(struct name *names, FILE *fo, struct header *hp)
usr.bin/mail/send.c
245
struct header head;
usr.bin/mail/send.c
266
struct header head;
usr.bin/mail/send.c
284
mail1(struct header *hp, int printheaders)
usr.bin/mail/send.c
421
fixhead(struct header *hp, struct name *tolist)
usr.bin/mail/send.c
449
infix(struct header *hp, FILE *fi)
usr.bin/mail/send.c
498
puthead(struct header *hp, FILE *fo, int w)
usr.bin/mail/tty.c
53
grabh(struct header *hp, int gflags)
usr.bin/pr/pr.c
1270
if (header != NULL)
usr.bin/pr/pr.c
1271
*fname = header;
usr.bin/pr/pr.c
1293
if (header != NULL)
usr.bin/pr/pr.c
1294
*fname = header;
usr.bin/pr/pr.c
1321
if (header != NULL)
usr.bin/pr/pr.c
1322
*fname = header;
usr.bin/pr/pr.c
1633
header = eoptarg;
usr.bin/pr/pr.c
80
static char *header; /* header name instead of file name */
usr.bin/systat/swap.c
112
char *header;
usr.bin/systat/swap.c
119
header = getbsize(&hlen, &blocksize);
usr.bin/systat/swap.c
121
"Disk", hlen, header, "Used",
usr.bin/systat/swap.c
53
void showspace(char *header, int hlen, long blocksize);
usr.bin/w/w.c
156
header = 0;
usr.bin/w/w.c
162
header = 0;
usr.bin/w/w.c
251
if (header || wcmd == 0) {
usr.bin/w/w.c
82
static int header = 1; /* true if -h flag: don't print heading */
usr.sbin/burncd/burncd.c
156
struct ioc_toc_header header;
usr.sbin/burncd/burncd.c
158
if (ioctl(fd, CDIOREADTOCHEADER, &header) < 0)
usr.sbin/burncd/burncd.c
162
entry.track = header.ending_track;
usr.sbin/cdcontrol/cdcontrol.c
1133
return s.data->header.audio_status;
usr.sbin/fwcontrol/fwdv.c
253
int len, tlen, header, fd, frames, packets, vec, offset, nhdr, i;
usr.sbin/fwcontrol/fwdv.c
337
header = (dv->sct == 0 && dv->dseq == 0);
usr.sbin/fwcontrol/fwdv.c
339
header = (packets == 0 || packets % npackets[systype] == 0);
usr.sbin/fwcontrol/fwdv.c
343
if (header) {
usr.sbin/lpr/common_source/displayq.c
199
header();
usr.sbin/lpr/common_source/lp.h
274
void header(void);
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_deflate.c
392
uInt header = (Z_DEFLATED + ((s->w_bits-8)<<4)) << 8;
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_deflate.c
403
header |= (level_flags << 6);
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_deflate.c
404
if (s->strstart != 0) header |= PRESET_DICT;
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_deflate.c
405
header += 31 - (header % 31);
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_deflate.c
408
putShortMSB(s, header);
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
1215
copy_block(deflate_state *s, charf *buf, unsigned len, int header)
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
1219
if (header) {
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
156
int header);
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
332
FILE *header = fopen("trees.h", "w");
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
335
Assert (header != NULL, "Can't open trees.h");
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
336
fprintf(header,
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
339
fprintf(header, "local const ct_data static_ltree[L_CODES+2] = {\n");
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
341
fprintf(header, "{{%3u},{%3u}}%s", static_ltree[i].Code,
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
345
fprintf(header, "local const ct_data static_dtree[D_CODES] = {\n");
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
347
fprintf(header, "{{%2u},{%2u}}%s", static_dtree[i].Code,
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
351
fprintf(header, "const uch ZLIB_INTERNAL _dist_code[DIST_CODE_LEN] = {\n");
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
353
fprintf(header, "%2u%s", _dist_code[i],
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
357
fprintf(header,
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
360
fprintf(header, "%2u%s", _length_code[i],
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
364
fprintf(header, "local const int base_length[LENGTH_CODES] = {\n");
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
366
fprintf(header, "%1u%s", base_length[i],
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
370
fprintf(header, "local const int base_dist[D_CODES] = {\n");
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
372
fprintf(header, "%5u%s", base_dist[i],
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
376
fclose(header);
usr.sbin/mfiutil/mfi_cmd.c
274
dcmd->header.cmd = MFI_CMD_DCMD;
usr.sbin/mfiutil/mfi_cmd.c
275
dcmd->header.timeout = 0;
usr.sbin/mfiutil/mfi_cmd.c
276
dcmd->header.flags = 0;
usr.sbin/mfiutil/mfi_cmd.c
277
dcmd->header.data_len = bufsize;
usr.sbin/mfiutil/mfi_cmd.c
287
*statusp = dcmd->header.cmd_status;
usr.sbin/mfiutil/mfi_cmd.c
288
else if (dcmd->header.cmd_status != MFI_STAT_OK) {
usr.sbin/mfiutil/mfi_cmd.c
290
mfi_status(dcmd->header.cmd_status));
usr.sbin/mfiutil/mfi_flash.c
49
struct mfi_info_component header;
usr.sbin/mfiutil/mfi_flash.c
60
strcpy(header.name, "Name");
usr.sbin/mfiutil/mfi_flash.c
61
strcpy(header.version, "Version");
usr.sbin/mfiutil/mfi_flash.c
62
strcpy(header.build_date, "Date");
usr.sbin/mfiutil/mfi_flash.c
63
strcpy(header.build_time, "Time");
usr.sbin/mfiutil/mfi_flash.c
64
scan_firmware(&header);
usr.sbin/mfiutil/mfi_flash.c
69
display_firmware(&header, "");
usr.sbin/mfiutil/mfi_show.c
563
struct mfi_info_component header;
usr.sbin/mfiutil/mfi_show.c
590
strcpy(header.name, "Name");
usr.sbin/mfiutil/mfi_show.c
591
strcpy(header.version, "Version");
usr.sbin/mfiutil/mfi_show.c
592
strcpy(header.build_date, "Date");
usr.sbin/mfiutil/mfi_show.c
593
strcpy(header.build_time, "Time");
usr.sbin/mfiutil/mfi_show.c
594
scan_firmware(&header);
usr.sbin/mfiutil/mfi_show.c
603
display_firmware(&header, "Status");
usr.sbin/mpsutil/mpr_ioctl.h
85
MPI2_CONFIG_PAGE_HEADER header;
usr.sbin/mpsutil/mpr_ioctl.h
93
MPI2_CONFIG_EXTENDED_PAGE_HEADER header;
usr.sbin/mpsutil/mps_cmd.c
288
MPI2_CONFIG_PAGE_HEADER *header, U16 *IOCStatus)
usr.sbin/mpsutil/mps_cmd.c
309
if (header == NULL)
usr.sbin/mpsutil/mps_cmd.c
311
*header = reply.Header;
usr.sbin/mpsutil/mps_cmd.c
316
mps_read_ext_config_page_header(int fd, U8 ExtPageType, U8 PageNumber, U32 PageAddress, MPI2_CONFIG_PAGE_HEADER *header, U16 *ExtPageLength, U16 *IOCStatus)
usr.sbin/mpsutil/mps_cmd.c
338
if ((header == NULL) || (ExtPageLength == NULL))
usr.sbin/mpsutil/mps_cmd.c
340
*header = reply.Header;
usr.sbin/mpsutil/mps_cmd.c
350
MPI2_CONFIG_PAGE_HEADER header;
usr.sbin/mpsutil/mps_cmd.c
355
bzero(&header, sizeof(header));
usr.sbin/mpsutil/mps_cmd.c
357
PageAddress, &header, IOCStatus);
usr.sbin/mpsutil/mps_cmd.c
367
req.Header = header;
usr.sbin/mpsutil/mps_cmd.c
398
MPI2_CONFIG_PAGE_HEADER header;
usr.sbin/mpsutil/mps_cmd.c
406
bzero(&header, sizeof(header));
usr.sbin/mpsutil/mps_cmd.c
408
PageAddress, &header, &pagelen, IOCStatus);
usr.sbin/mpsutil/mps_cmd.c
418
req.Header = header;
usr.sbin/mpsutil/mps_cmd.c
506
MPI2_CONFIG_PAGE_HEADER *header, U16 *IOCStatus)
usr.sbin/mpsutil/mps_cmd.c
512
if (header == NULL)
usr.sbin/mpsutil/mps_cmd.c
515
req.header.PageType = PageType;
usr.sbin/mpsutil/mps_cmd.c
516
req.header.PageNumber = PageNumber;
usr.sbin/mpsutil/mps_cmd.c
525
bcopy(&req.header, header, sizeof(*header));
usr.sbin/mpsutil/mps_cmd.c
538
PageAddress, &req.header, IOCStatus);
usr.sbin/mpsutil/mps_cmd.c
544
if (req.header.PageLength == 0)
usr.sbin/mpsutil/mps_cmd.c
545
req.header.PageLength = 4;
usr.sbin/mpsutil/mps_cmd.c
546
req.len = req.header.PageLength * 4;
usr.sbin/mpsutil/mps_cmd.c
549
bcopy(&req.header, buf, sizeof(req.header));
usr.sbin/mpsutil/mps_cmd.c
580
req.header.PageVersion = PageVersion;
usr.sbin/mpsutil/mps_cmd.c
581
req.header.PageNumber = PageNumber;
usr.sbin/mpsutil/mps_cmd.c
582
req.header.ExtPageType = ExtPageType;
usr.sbin/mpsutil/mps_cmd.c
595
req.len = req.header.ExtPageLength * 4;
usr.sbin/mpsutil/mps_cmd.c
598
bcopy(&req.header, buf, sizeof(req.header));
usr.sbin/mpsutil/mps_ioctl.h
85
MPI2_CONFIG_PAGE_HEADER header;
usr.sbin/mpsutil/mps_ioctl.h
93
MPI2_CONFIG_EXTENDED_PAGE_HEADER header;
usr.sbin/mpsutil/mpsutil.h
118
U32 PageAddress, MPI2_CONFIG_PAGE_HEADER *header, U16 *IOCStatus);
usr.sbin/mpsutil/mpsutil.h
120
U32 PageAddress, MPI2_CONFIG_PAGE_HEADER *header,
usr.sbin/mptutil/mpt_cmd.c
347
CONFIG_PAGE_HEADER *header, U16 *IOCStatus)
usr.sbin/mptutil/mpt_cmd.c
354
req.header.PageType = PageType;
usr.sbin/mptutil/mpt_cmd.c
355
req.header.PageNumber = PageNumber;
usr.sbin/mptutil/mpt_cmd.c
367
*header = req.header;
usr.sbin/mptutil/mpt_cmd.c
382
req.header.PageType = PageType;
usr.sbin/mptutil/mpt_cmd.c
383
req.header.PageNumber = PageNumber;
usr.sbin/mptutil/mpt_cmd.c
396
req.len = req.header.PageLength * 4;
usr.sbin/mptutil/mpt_cmd.c
399
bcopy(&req.header, buf, sizeof(req.header));
usr.sbin/mptutil/mpt_cmd.c
430
req.header.PageVersion = PageVersion;
usr.sbin/mptutil/mpt_cmd.c
431
req.header.PageNumber = PageNumber;
usr.sbin/mptutil/mpt_cmd.c
432
req.header.ExtPageType = ExtPageType;
usr.sbin/mptutil/mpt_cmd.c
445
req.len = req.header.ExtPageLength * 4;
usr.sbin/mptutil/mpt_cmd.c
448
bcopy(&req.header, buf, sizeof(req.header));
usr.sbin/mptutil/mpt_config.c
148
CONFIG_PAGE_HEADER header;
usr.sbin/mptutil/mpt_config.c
154
0, 0, &header, NULL);
usr.sbin/mptutil/mpt_config.c
157
if (header.PageVersion > MPI_RAIDPHYSDISKPAGE0_PAGEVERSION) {
usr.sbin/mptutil/mpt_config.c
159
header.PageVersion);
usr.sbin/mptutil/mpt_config.c
469
CONFIG_PAGE_HEADER header;
usr.sbin/mptutil/mpt_config.c
479
0, 0, &header, NULL);
usr.sbin/mptutil/mpt_config.c
484
if (header.PageVersion > MPI_RAIDVOLPAGE0_PAGEVERSION) {
usr.sbin/mptutil/mpt_config.c
486
header.PageVersion);
usr.sbin/mptutil/mptutil.h
100
U32 PageAddress, CONFIG_PAGE_HEADER *header, U16 *IOCStatus);
usr.sbin/ngctl/config.c
94
|| (resp->header.flags & NGF_RESP) == 0)
usr.sbin/ngctl/msg.c
125
NGM_BINARY2ASCII, m, sizeof(*m) + m->header.arglen) < 0
usr.sbin/ngctl/msg.c
128
(m->header.flags & NGF_RESP) != 0 ? "response" : "command",
usr.sbin/ngctl/msg.c
129
m->header.cmd, path);
usr.sbin/ngctl/msg.c
130
if (m->header.arglen == 0)
usr.sbin/ngctl/msg.c
133
DumpAscii(m->data, m->header.arglen);
usr.sbin/ngctl/msg.c
139
(ascii->header.flags & NGF_RESP) != 0 ? "response" : "command",
usr.sbin/ngctl/msg.c
140
ascii->header.cmdstr, ascii->header.cmd, path);
usr.sbin/ngctl/status.c
85
|| (resp->header.flags & NGF_RESP) == 0)
usr.sbin/pciconf/err.c
112
print_bits(const char *header, struct bit_table *table, uint32_t mask)
usr.sbin/pciconf/err.c
120
printf("%14s = ", header);
usr.sbin/pciconf/err.c
129
printf("%14s = ", header);
usr.sbin/pfctl/pfctl.c
813
u_int32_t nr, mnr, header = 0;
usr.sbin/pfctl/pfctl.c
832
header++;
usr.sbin/pfctl/pfctl.c
840
if (format == PFCTL_SHOW_RULES && (pr.nr > 0 || header))
usr.sbin/ppp/bundle.c
557
if (bundle->dev.header) {
usr.sbin/ppp/bundle.c
573
if (bundle->dev.header) {
usr.sbin/ppp/bundle.c
580
af = ntohl(tun.header.family);
usr.sbin/ppp/bundle.c
637
tun.header.timeout = secs;
usr.sbin/ppp/bundle.c
638
ncp_Enqueue(&bundle->ncp, af, pri, (char *)&tun, n + sizeof tun.header);
usr.sbin/ppp/bundle.c
795
bundle.dev.header = 0;
usr.sbin/ppp/bundle.c
797
bundle.dev.header = 1;
usr.sbin/ppp/bundle.c
801
bundle.dev.header = 1;
usr.sbin/ppp/bundle.c
808
bundle.dev.header = 0;
usr.sbin/ppp/bundle.h
77
unsigned header : 1; /* Family header sent & received ? */
usr.sbin/ppp/ether.c
254
if (rep->header.version != NG_VERSION) {
usr.sbin/ppp/ether.c
256
(long)rep->header.version, (long)NG_VERSION);
usr.sbin/ppp/ether.c
260
if (rep->header.typecookie != NGM_PPPOE_COOKIE) {
usr.sbin/ppp/ether.c
262
(long)rep->header.typecookie, (long)NGM_PPPOE_COOKIE);
usr.sbin/ppp/ether.c
267
switch (rep->header.cmd) {
usr.sbin/ppp/ether.c
280
asciilen = rep->header.arglen;
usr.sbin/ppp/ether.c
294
snprintf(unknown, sizeof unknown, "<%d>", (int)rep->header.cmd);
usr.sbin/ppp/ether.c
305
switch (rep->header.cmd) {
usr.sbin/ppp/ip.c
472
struct dns_header header;
usr.sbin/ppp/ip.c
480
if (len < sizeof header + 5) /* rfc1024 */
usr.sbin/ppp/ip.c
484
hptr = (u_short *)&header;
usr.sbin/ppp/ip.c
485
ptr += sizeof header;
usr.sbin/ppp/ip.c
486
len -= sizeof header;
usr.sbin/ppp/ip.c
493
if (header.opcode == OPCODE_QUERY && header.qr == 0) {
usr.sbin/ppp/ip.c
909
if (bundle->dev.header) {
usr.sbin/ppp/ip.c
910
tun.header.family = htonl(af);
usr.sbin/ppp/mp.c
137
mp_ReadHeader(struct mp *mp, struct mbuf *m, struct mp_header *header)
usr.sbin/ppp/mp.c
147
header->begin = val & 0x8000 ? 1 : 0;
usr.sbin/ppp/mp.c
148
header->end = val & 0x4000 ? 1 : 0;
usr.sbin/ppp/mp.c
149
header->seq = val & 0x0fff;
usr.sbin/ppp/mp.c
152
ua_ntohl(MBUF_CTOP(m), &header->seq);
usr.sbin/ppp/mp.c
153
if (header->seq & 0x3f000000) {
usr.sbin/ppp/mp.c
157
header->begin = header->seq & 0x80000000 ? 1 : 0;
usr.sbin/ppp/mp.c
158
header->end = header->seq & 0x40000000 ? 1 : 0;
usr.sbin/ppp/mp.c
159
header->seq &= 0x00ffffff;
usr.sbin/ppp/mp.c
903
unsigned f, header;
usr.sbin/ppp/mp.c
933
header = strlen(result);
usr.sbin/ppp/mp.c
934
if (len + header + 1 > sizeof result)
usr.sbin/ppp/mp.c
935
len = sizeof result - header - 1;
usr.sbin/ppp/mp.c
937
sprintf(result + header + 2 * f, "%02x", address[f]);
usr.sbin/ppp/mp.c
946
header = strlen(result);
usr.sbin/ppp/mp.c
947
if (len + header + 1 > sizeof result)
usr.sbin/ppp/mp.c
948
len = sizeof result - header - 1;
usr.sbin/ppp/mp.c
950
sprintf(result + header + 2 * f, "%02x", address[f]);
usr.sbin/ppp/netgraph.c
214
rep->header.cmdstr);
usr.sbin/ppp/netgraph.c
217
rep->header.cmdstr);
usr.sbin/ppp/netgraph.c
218
len = strlen(rep->header.cmdstr);
usr.sbin/ppp/netgraph.c
221
memcpy(buf, rep->header.cmdstr, sz);
usr.sbin/ppp/tun.h
34
} header;
usr.sbin/pstat/pstat.c
925
const char *header;
usr.sbin/pstat/pstat.c
941
header = " Blocks";
usr.sbin/pstat/pstat.c
943
header = getbsize(&hlen, &blocksize);
usr.sbin/pstat/pstat.c
948
"Device", hlen, header,
usr.sbin/quot/quot.c
537
header = getbsize(&headerlen,&blocksize);
usr.sbin/quot/quot.c
61
static char *header;