Symbol: hdr
include/link.h
130
#define HH_BADMAG(hdr) ((hdr).hh_magic != HH_MAGIC)
lib/libc/asr/gethostnamadr_async.c
498
struct asr_dns_header hdr;
lib/libc/asr/gethostnamadr_async.c
507
_asr_unpack_header(&p, &hdr);
lib/libc/asr/gethostnamadr_async.c
508
for (; hdr.qdcount; hdr.qdcount--)
lib/libc/asr/gethostnamadr_async.c
512
for (; hdr.ancount; hdr.ancount--) {
lib/libc/db/hash/hash.c
139
hdrsize = read(hashp->fp, &hashp->hdr, sizeof(HASHHDR));
lib/libc/db/hash/hash.c
479
whdrp = &hashp->hdr;
lib/libc/db/hash/hash.c
482
swap_header_copy(&hashp->hdr, whdrp);
lib/libc/db/hash/hash.c
933
hdrp = &hashp->hdr;
lib/libc/db/hash/hash.h
272
#define BSIZE hdr.bsize
lib/libc/db/hash/hash.h
273
#define BSHIFT hdr.bshift
lib/libc/db/hash/hash.h
274
#define DSIZE hdr.dsize
lib/libc/db/hash/hash.h
275
#define SGSIZE hdr.ssize
lib/libc/db/hash/hash.h
276
#define SSHIFT hdr.sshift
lib/libc/db/hash/hash.h
277
#define LORDER hdr.lorder
lib/libc/db/hash/hash.h
278
#define OVFL_POINT hdr.ovfl_point
lib/libc/db/hash/hash.h
279
#define LAST_FREED hdr.last_freed
lib/libc/db/hash/hash.h
280
#define MAX_BUCKET hdr.max_bucket
lib/libc/db/hash/hash.h
281
#define FFACTOR hdr.ffactor
lib/libc/db/hash/hash.h
282
#define HIGH_MASK hdr.high_mask
lib/libc/db/hash/hash.h
283
#define LOW_MASK hdr.low_mask
lib/libc/db/hash/hash.h
284
#define NKEYS hdr.nkeys
lib/libc/db/hash/hash.h
285
#define HDRPAGES hdr.hdrpages
lib/libc/db/hash/hash.h
286
#define SPARES hdr.spares
lib/libc/db/hash/hash.h
287
#define BITMAPS hdr.bitmaps
lib/libc/db/hash/hash.h
288
#define VERSION hdr.version
lib/libc/db/hash/hash.h
289
#define MAGIC hdr.magic
lib/libc/db/hash/hash.h
290
#define NEXT_FREE hdr.next_free
lib/libc/db/hash/hash.h
291
#define H_CHARKEY hdr.h_charkey
lib/libc/db/hash/hash.h
91
HASHHDR hdr; /* Header */
lib/libc/gen/auth_subr.c
1005
struct cmsghdr hdr;
lib/libc/gmon/gmon.c
349
struct gmonhdr *hdr;
lib/libc/gmon/gmon.c
388
hdr = (struct gmonhdr *)p->outbuf;
lib/libc/gmon/gmon.c
389
hdr->lpc = p->lowpc;
lib/libc/gmon/gmon.c
390
hdr->hpc = p->highpc;
lib/libc/gmon/gmon.c
391
hdr->ncnt = p->kcountsize + sizeof(*hdr);
lib/libc/gmon/gmon.c
392
hdr->version = GMONVERSION;
lib/libc/gmon/gmon.c
393
hdr->profrate = clockinfo.profhz;
lib/libc/gmon/gmon.c
425
hdr->totarc = totarc * sizeof(struct rawarc);
lib/libcrypto/asn1/asn1_local.h
181
const char *hdr, const ASN1_ITEM *it);
lib/libcrypto/asn1/asn_mime.c
109
static MIME_PARAM *mime_param_find(MIME_HEADER *hdr, char *name);
lib/libcrypto/asn1/asn_mime.c
110
static void mime_hdr_free(MIME_HEADER *hdr);
lib/libcrypto/asn1/asn_mime.c
174
const char *hdr, const ASN1_ITEM *it)
lib/libcrypto/asn1/asn_mime.c
178
BIO_printf(out, "-----BEGIN %s-----\n", hdr);
lib/libcrypto/asn1/asn_mime.c
180
BIO_printf(out, "-----END %s-----\n", hdr);
lib/libcrypto/asn1/asn_mime.c
434
MIME_HEADER *hdr;
lib/libcrypto/asn1/asn_mime.c
447
if (!(hdr = mime_hdr_find(headers, "content-type")) || !hdr->value) {
lib/libcrypto/asn1/asn_mime.c
455
if (!strcmp(hdr->value, "multipart/signed")) {
lib/libcrypto/asn1/asn_mime.c
457
prm = mime_param_find(hdr, "boundary");
lib/libcrypto/asn1/asn_mime.c
482
if (!(hdr = mime_hdr_find(headers, "content-type")) ||
lib/libcrypto/asn1/asn_mime.c
483
!hdr->value) {
lib/libcrypto/asn1/asn_mime.c
490
if (strcmp(hdr->value, "application/x-pkcs7-signature") &&
lib/libcrypto/asn1/asn_mime.c
491
strcmp(hdr->value, "application/pkcs7-signature")) {
lib/libcrypto/asn1/asn_mime.c
493
ERR_asprintf_error_data("type: %s", hdr->value);
lib/libcrypto/asn1/asn_mime.c
517
if (strcmp (hdr->value, "application/x-pkcs7-mime") &&
lib/libcrypto/asn1/asn_mime.c
518
strcmp (hdr->value, "application/pkcs7-mime")) {
lib/libcrypto/asn1/asn_mime.c
520
ERR_asprintf_error_data("type: %s", hdr->value);
lib/libcrypto/asn1/asn_mime.c
579
MIME_HEADER *hdr;
lib/libcrypto/asn1/asn_mime.c
585
if (!(hdr = mime_hdr_find(headers, "content-type")) || !hdr->value) {
lib/libcrypto/asn1/asn_mime.c
590
if (strcmp (hdr->value, "text/plain")) {
lib/libcrypto/asn1/asn_mime.c
592
ERR_asprintf_error_data("type: %s", hdr->value);
lib/libcrypto/asn1/asn_mime.c
942
mime_param_find(MIME_HEADER *hdr, char *name)
lib/libcrypto/asn1/asn_mime.c
947
idx = sk_MIME_PARAM_find(hdr->params, &param);
lib/libcrypto/asn1/asn_mime.c
950
return sk_MIME_PARAM_value(hdr->params, idx);
lib/libcrypto/asn1/asn_mime.c
954
mime_hdr_free(MIME_HEADER *hdr)
lib/libcrypto/asn1/asn_mime.c
956
free(hdr->name);
lib/libcrypto/asn1/asn_mime.c
957
free(hdr->value);
lib/libcrypto/asn1/asn_mime.c
958
if (hdr->params)
lib/libcrypto/asn1/asn_mime.c
959
sk_MIME_PARAM_pop_free(hdr->params, mime_param_free);
lib/libcrypto/asn1/asn_mime.c
960
free(hdr);
lib/libcrypto/pem/pem.h
329
int PEM_write_bio(BIO *bp, const char *name, const char *hdr,
lib/libcrypto/pem/pem.h
345
int PEM_write(FILE *fp, const char *name, const char *hdr,
lib/libpcap/pcap.c
108
s.hdr = h;
lib/libpcap/pcap.c
115
struct pcap_pkthdr *hdr;
lib/libpcap/pcap.c
125
*sp->hdr = *h;
lib/libpcap/pcap.c
135
s.hdr = &p->pcap_header;
lib/libpcap/pcap.c
90
struct pcap_pkthdr *hdr;
lib/libpcap/pcap.c
99
*sp->hdr = *h;
lib/libpcap/savefile.c
129
struct pcap_file_header hdr;
lib/libpcap/savefile.c
143
if (fread((char *)&hdr, sizeof(hdr), 1, fp) != 1) {
lib/libpcap/savefile.c
148
if (hdr.magic != TCPDUMP_MAGIC) {
lib/libpcap/savefile.c
149
if (SWAPLONG(hdr.magic) != TCPDUMP_MAGIC) {
lib/libpcap/savefile.c
155
swap_hdr(&hdr);
lib/libpcap/savefile.c
157
if (hdr.version_major < PCAP_VERSION_MAJOR) {
lib/libpcap/savefile.c
161
p->tzoff = hdr.thiszone;
lib/libpcap/savefile.c
162
p->snapshot = hdr.snaplen;
lib/libpcap/savefile.c
181
switch (hdr.linktype) {
lib/libpcap/savefile.c
219
p->linktype = hdr.linktype;
lib/libpcap/savefile.c
223
p->bufsize = hdr.snaplen;
lib/libpcap/savefile.c
251
p->sf.version_major = hdr.version_major;
lib/libpcap/savefile.c
252
p->sf.version_minor = hdr.version_minor;
lib/libpcap/savefile.c
270
sf_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char *buf, int buflen)
lib/libpcap/savefile.c
275
if (fread((char *)hdr, sizeof(struct pcap_pkthdr), 1, fp) != 1) {
lib/libpcap/savefile.c
282
hdr->caplen = SWAPLONG(hdr->caplen);
lib/libpcap/savefile.c
283
hdr->len = SWAPLONG(hdr->len);
lib/libpcap/savefile.c
284
hdr->ts.tv_sec = SWAPLONG(hdr->ts.tv_sec);
lib/libpcap/savefile.c
285
hdr->ts.tv_usec = SWAPLONG(hdr->ts.tv_usec);
lib/libpcap/savefile.c
294
(p->sf.version_minor == 3 && hdr->caplen > hdr->len)) {
lib/libpcap/savefile.c
295
int t = hdr->caplen;
lib/libpcap/savefile.c
296
hdr->caplen = hdr->len;
lib/libpcap/savefile.c
297
hdr->len = t;
lib/libpcap/savefile.c
300
if (hdr->caplen > buflen) {
lib/libpcap/savefile.c
310
if (hdr->caplen > 65535) {
lib/libpcap/savefile.c
316
if (tsize < hdr->caplen) {
lib/libpcap/savefile.c
317
tsize = ((hdr->caplen + 1023) / 1024) * 1024;
lib/libpcap/savefile.c
327
if (fread((char *)tp, hdr->caplen, 1, fp) != 1) {
lib/libpcap/savefile.c
339
hdr->caplen = buflen;
lib/libpcap/savefile.c
345
if (fread((char *)buf, hdr->caplen, 1, fp) != 1) {
lib/libpcap/savefile.c
73
struct pcap_file_header hdr;
lib/libpcap/savefile.c
75
hdr.magic = TCPDUMP_MAGIC;
lib/libpcap/savefile.c
76
hdr.version_major = PCAP_VERSION_MAJOR;
lib/libpcap/savefile.c
77
hdr.version_minor = PCAP_VERSION_MINOR;
lib/libpcap/savefile.c
79
hdr.thiszone = thiszone;
lib/libpcap/savefile.c
80
hdr.snaplen = snaplen;
lib/libpcap/savefile.c
81
hdr.sigfigs = 0;
lib/libpcap/savefile.c
82
hdr.linktype = linktype;
lib/libpcap/savefile.c
84
if (fwrite((char *)&hdr, sizeof(hdr), 1, fp) != 1)
lib/libutil/imsg-buffer.c
754
struct cmsghdr hdr;
lib/libutil/imsg-buffer.c
901
struct cmsghdr hdr;
lib/libutil/imsg.c
125
if (ibuf_get(buf, &m.hdr, sizeof(m.hdr)) == -1)
lib/libutil/imsg.c
133
m.hdr.len &= ~IMSG_FD_MARK;
lib/libutil/imsg.c
158
if (ibuf_get(buf, &m.hdr, sizeof(m.hdr)) == -1)
lib/libutil/imsg.c
166
m.hdr.len &= ~IMSG_FD_MARK;
lib/libutil/imsg.c
225
return (imsg->hdr.peerid);
lib/libutil/imsg.c
237
return (imsg->hdr.pid);
lib/libutil/imsg.c
243
return (imsg->hdr.type);
lib/libutil/imsg.c
305
struct imsg_hdr hdr;
lib/libutil/imsg.c
312
hdr.type = type;
lib/libutil/imsg.c
313
hdr.len = ibuf_size(buf) + IMSG_HEADER_SIZE;
lib/libutil/imsg.c
314
hdr.peerid = id;
lib/libutil/imsg.c
315
if ((hdr.pid = pid) == 0)
lib/libutil/imsg.c
316
hdr.pid = imsgbuf->pid;
lib/libutil/imsg.c
320
if (ibuf_add(hdrbuf, &hdr, sizeof(hdr)) == -1)
lib/libutil/imsg.c
343
if (ibuf_skip(msg->buf, sizeof(msg->hdr)) == -1)
lib/libutil/imsg.c
347
if ((wbuf = imsg_create(imsgbuf, msg->hdr.type, msg->hdr.peerid,
lib/libutil/imsg.c
348
msg->hdr.pid, len)) == NULL)
lib/libutil/imsg.c
367
struct imsg_hdr hdr;
lib/libutil/imsg.c
375
hdr.len = 0;
lib/libutil/imsg.c
376
hdr.type = type;
lib/libutil/imsg.c
377
hdr.peerid = id;
lib/libutil/imsg.c
378
if ((hdr.pid = pid) == 0)
lib/libutil/imsg.c
379
hdr.pid = imsgbuf->pid;
lib/libutil/imsg.c
382
if (ibuf_add(wbuf, &hdr, sizeof(hdr)) == -1)
lib/libutil/imsg.c
435
struct imsg_hdr hdr;
lib/libutil/imsg.c
439
if (ibuf_get(buf, &hdr, sizeof(hdr)) == -1)
lib/libutil/imsg.c
442
len = hdr.len & ~IMSG_FD_MARK;
lib/libutil/imsg.c
450
if (hdr.len & IMSG_FD_MARK) {
lib/libutil/imsg.h
63
struct imsg_hdr hdr;
libexec/ftpd/monitor_fdpass.c
36
struct cmsghdr hdr;
libexec/ftpd/monitor_fdpass.c
74
struct cmsghdr hdr;
libexec/ld.so/ldconfig/ldconfig.c
302
struct hints_header hdr;
libexec/ld.so/ldconfig/ldconfig.c
314
hdr.hh_magic = HH_MAGIC;
libexec/ld.so/ldconfig/ldconfig.c
315
hdr.hh_version = LD_HINTS_VERSION_2;
libexec/ld.so/ldconfig/ldconfig.c
316
hdr.hh_nbucket = 1 * nhints;
libexec/ld.so/ldconfig/ldconfig.c
317
n = hdr.hh_nbucket * sizeof(struct hints_bucket);
libexec/ld.so/ldconfig/ldconfig.c
318
hdr.hh_hashtab = sizeof(struct hints_header);
libexec/ld.so/ldconfig/ldconfig.c
319
hdr.hh_strtab = hdr.hh_hashtab + n;
libexec/ld.so/ldconfig/ldconfig.c
320
hdr.hh_dirlist = strtab_sz;
libexec/ld.so/ldconfig/ldconfig.c
322
hdr.hh_strtab_sz = strtab_sz;
libexec/ld.so/ldconfig/ldconfig.c
323
hdr.hh_ehints = hdr.hh_strtab + hdr.hh_strtab_sz;
libexec/ld.so/ldconfig/ldconfig.c
327
nhints, hdr.hh_nbucket, strtab_sz);
libexec/ld.so/ldconfig/ldconfig.c
332
for (i = 0; i < hdr.hh_nbucket; i++)
libexec/ld.so/ldconfig/ldconfig.c
343
hdr.hh_nbucket);
libexec/ld.so/ldconfig/ldconfig.c
348
for (j = 0; j < hdr.hh_nbucket; j++) {
libexec/ld.so/ldconfig/ldconfig.c
352
if (j == hdr.hh_nbucket) {
libexec/ld.so/ldconfig/ldconfig.c
394
if (write(fd, &hdr, sizeof(struct hints_header)) !=
libexec/ld.so/ldconfig/ldconfig.c
399
if (write(fd, blist, hdr.hh_nbucket * sizeof(struct hints_bucket)) !=
libexec/ld.so/ldconfig/ldconfig.c
400
hdr.hh_nbucket * sizeof(struct hints_bucket)) {
libexec/ld.so/ldconfig/ldconfig.c
428
struct hints_header *hdr;
libexec/ld.so/ldconfig/ldconfig.c
453
hdr = (struct hints_header *)addr;
libexec/ld.so/ldconfig/ldconfig.c
454
if (HH_BADMAG(*hdr)) {
libexec/ld.so/ldconfig/ldconfig.c
456
_PATH_LD_HINTS, hdr->hh_magic);
libexec/ld.so/ldconfig/ldconfig.c
460
if (hdr->hh_ehints > msize) {
libexec/ld.so/ldconfig/ldconfig.c
462
_PATH_LD_HINTS, hdr->hh_ehints, msize);
libexec/ld.so/ldconfig/ldconfig.c
466
if (hdr->hh_version != LD_HINTS_VERSION_2) {
libexec/ld.so/ldconfig/ldconfig.c
467
warnx("Unsupported version: %ld", hdr->hh_version);
libexec/ld.so/ldconfig/ldconfig.c
473
blist = (struct hints_bucket *)(addr + hdr->hh_hashtab);
libexec/ld.so/ldconfig/ldconfig.c
474
strtab = (char *)(addr + hdr->hh_strtab);
libexec/ld.so/ldconfig/ldconfig.c
476
dir_list = xstrdup(strtab + hdr->hh_dirlist);
libexec/ld.so/ldconfig/ldconfig.c
481
for (i = 0; i < hdr->hh_nbucket; i++) {
libexec/ld.so/ldconfig/ldconfig.c
485
if (bp->hi_namex >= hdr->hh_strtab_sz) {
libexec/ld.so/ldconfig/ldconfig.c
489
if (bp->hi_pathx >= hdr->hh_strtab_sz) {
libexec/login_skey/login_skey.c
279
struct cmsghdr hdr;
libexec/snmpd/snmpd_metrics/util.c
45
struct cmsghdr hdr;
libexec/snmpd/snmpd_metrics/util.c
98
struct cmsghdr hdr;
libexec/spamd/sync.c
240
struct spam_synchdr *hdr;
libexec/spamd/sync.c
268
hdr = (struct spam_synchdr *)buf;
libexec/spamd/sync.c
270
hdr->sh_version != SPAM_SYNC_VERSION ||
libexec/spamd/sync.c
271
hdr->sh_af != AF_INET ||
libexec/spamd/sync.c
272
len < ntohs(hdr->sh_length))
libexec/spamd/sync.c
274
len = ntohs(hdr->sh_length);
libexec/spamd/sync.c
277
memcpy(hmac[0], hdr->sh_hmac, SPAM_SYNC_HMAC_LEN);
libexec/spamd/sync.c
278
explicit_bzero(hdr->sh_hmac, SPAM_SYNC_HMAC_LEN);
libexec/spamd/sync.c
289
p = (u_int8_t *)(hdr + 1);
libexec/spamd/sync.c
421
struct spam_synchdr hdr;
libexec/spamd/sync.c
435
memset(&hdr, 0, sizeof(hdr));
libexec/spamd/sync.c
452
hdr.sh_version = SPAM_SYNC_VERSION;
libexec/spamd/sync.c
453
hdr.sh_af = AF_INET;
libexec/spamd/sync.c
454
hdr.sh_counter = htonl(sync_counter++);
libexec/spamd/sync.c
455
hdr.sh_length = htons(sizeof(hdr) + sglen + padlen + sizeof(end));
libexec/spamd/sync.c
456
iov[i].iov_base = &hdr;
libexec/spamd/sync.c
457
iov[i].iov_len = sizeof(hdr);
libexec/spamd/sync.c
509
if (!HMAC_Final(ctx, hdr.sh_hmac, &hmac_len))
libexec/spamd/sync.c
523
struct spam_synchdr hdr;
libexec/spamd/sync.c
534
memset(&hdr, 0, sizeof(hdr));
libexec/spamd/sync.c
543
hdr.sh_version = SPAM_SYNC_VERSION;
libexec/spamd/sync.c
544
hdr.sh_af = AF_INET;
libexec/spamd/sync.c
545
hdr.sh_counter = htonl(sync_counter++);
libexec/spamd/sync.c
546
hdr.sh_length = htons(sizeof(hdr) + sizeof(sd) + sizeof(end));
libexec/spamd/sync.c
547
iov[i].iov_base = &hdr;
libexec/spamd/sync.c
548
iov[i].iov_len = sizeof(hdr);
libexec/spamd/sync.c
574
if (!HMAC_Final(ctx, hdr.sh_hmac, &hmac_len))
libexec/spamlogd/spamlogd.c
245
const struct pfloghdr *hdr;
libexec/spamlogd/spamlogd.c
248
hdr = (const struct pfloghdr *)sp;
libexec/spamlogd/spamlogd.c
249
if (hdr->length < MIN_PFLOG_HDRLEN) {
libexec/spamlogd/spamlogd.c
251
"packet dropped.", hdr->length, MIN_PFLOG_HDRLEN);
libexec/spamlogd/spamlogd.c
254
hdrlen = BPF_WORDALIGN(hdr->length);
libexec/spamlogd/spamlogd.c
263
if (hdr->action != PF_PASS)
libexec/spamlogd/spamlogd.c
266
af = hdr->af;
libexec/spamlogd/spamlogd.c
269
if (hdr->dir == PF_IN)
libexec/spamlogd/spamlogd.c
272
else if (hdr->dir == PF_OUT && !flag_inbound)
libexec/spamlogd/spamlogd.c
278
if (hdr->dir == PF_IN)
regress/lib/libpthread/pcap/pcap.c
24
packet_ignore(u_char *tag, const struct pcap_pkthdr *hdr, const u_char *data)
regress/sbin/iked/parser/test_parser_fuzz.c
417
prepare_header(struct ike_header *hdr, struct ibuf *data)
regress/sbin/iked/parser/test_parser_fuzz.c
419
bzero(hdr, sizeof(*hdr));
regress/sbin/iked/parser/test_parser_fuzz.c
420
bcopy(get_icookie(ibuf_data(data)), &hdr->ike_ispi,
regress/sbin/iked/parser/test_parser_fuzz.c
421
sizeof(hdr->ike_ispi));
regress/sbin/iked/parser/test_parser_fuzz.c
422
bcopy(get_rcookie(ibuf_data(data)), &hdr->ike_rspi,
regress/sbin/iked/parser/test_parser_fuzz.c
423
sizeof(hdr->ike_rspi));
regress/sbin/iked/parser/test_parser_fuzz.c
424
hdr->ike_nextpayload = get_nextpayload(ibuf_data(data));
regress/sbin/iked/parser/test_parser_fuzz.c
425
hdr->ike_version = get_version(ibuf_data(data));
regress/sbin/iked/parser/test_parser_fuzz.c
426
hdr->ike_exchange = get_exchange(ibuf_data(data));
regress/sbin/iked/parser/test_parser_fuzz.c
427
hdr->ike_length = get_length(ibuf_data(data));
regress/sbin/iked/parser/test_parser_fuzz.c
448
struct ike_header hdr;
regress/sbin/iked/parser/test_parser_fuzz.c
451
bzero(&hdr, sizeof(hdr));
regress/sbin/iked/parser/test_parser_fuzz.c
465
prepare_header(&hdr, fuzzed);
regress/sbin/iked/parser/test_parser_fuzz.c
468
ikev2_pld_parse(NULL, &hdr, &msg, 0);
regress/sbin/iked/parser/test_parser_fuzz.c
478
struct ike_header hdr;
regress/sbin/iked/parser/test_parser_fuzz.c
490
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
492
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
509
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
511
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
528
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
530
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
547
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
549
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
566
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
568
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
585
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
587
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
604
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
606
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
623
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
625
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
642
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
644
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
661
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
663
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
680
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
682
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
699
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
701
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
718
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
720
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
737
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
739
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
756
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
758
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
775
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
777
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
794
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
796
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sbin/iked/parser/test_parser_fuzz.c
811
prepare_header(&hdr, data);
regress/sbin/iked/parser/test_parser_fuzz.c
813
ASSERT_INT_EQ(ikev2_pld_parse(NULL, &hdr, &msg, 0), 0);
regress/sys/dev/kcov/kcov.c
383
struct cmsghdr hdr;
regress/sys/kern/kqueue/kqueue-fdpass.c
27
struct cmsghdr hdr;
regress/sys/kern/pledge/filedescriptor/pass.c
35
struct cmsghdr hdr;
regress/sys/kern/pledge/ioctl/unfdpass.c
214
struct cmsghdr hdr;
regress/sys/kern/pledge/ioctl/unfdpass.c
74
struct cmsghdr hdr;
regress/sys/kern/pledge/sendrecvfd/sendrecvfd.c
103
struct cmsghdr hdr;
regress/sys/kern/pledge/sendrecvfd/sendrecvfd.c
50
struct cmsghdr hdr;
regress/sys/kern/recvwait/mcontrol-stream.c
35
struct cmsghdr hdr;
regress/sys/kern/unfdpass/unfdpass.c
70
struct cmsghdr hdr;
regress/sys/netinet6/pktinfo_addr/runtest.c
169
struct cmsghdr hdr;
regress/usr.sbin/bgpd/unittests/rde_community_test.c
260
u_char hdr[4];
regress/usr.sbin/bgpd/unittests/rde_community_test.c
265
hdr[2] = (data_len >> 8) & 0xff;
regress/usr.sbin/bgpd/unittests/rde_community_test.c
266
hdr[3] = data_len & 0xff;
regress/usr.sbin/bgpd/unittests/rde_community_test.c
268
hdr[2] = data_len & 0xff;
regress/usr.sbin/bgpd/unittests/rde_community_test.c
271
hdr[0] = flags;
regress/usr.sbin/bgpd/unittests/rde_community_test.c
272
hdr[1] = type;
regress/usr.sbin/bgpd/unittests/rde_community_test.c
274
if (ibuf_add(buf, hdr, flags & ATTR_EXTLEN ? 4 : 3) == -1)
regress/usr.sbin/ospfd/opentap.c
49
struct cmsghdr hdr;
sbin/dhcp6leased/control.c
259
switch (imsg.hdr.type) {
sbin/dhcp6leased/control.c
261
frontend_imsg_compose_main(imsg.hdr.type, 0, NULL, 0);
sbin/dhcp6leased/control.c
266
c->iev.ibuf.pid = imsg.hdr.pid;
sbin/dhcp6leased/control.c
268
frontend_imsg_compose_main(imsg.hdr.type, imsg.hdr.pid,
sbin/dhcp6leased/control.c
270
frontend_imsg_compose_engine(imsg.hdr.type, 0,
sbin/dhcp6leased/control.c
271
imsg.hdr.pid, imsg.data, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/control.c
279
c->iev.ibuf.pid = imsg.hdr.pid;
sbin/dhcp6leased/control.c
280
frontend_imsg_compose_engine(imsg.hdr.type, 0,
sbin/dhcp6leased/control.c
281
imsg.hdr.pid, imsg.data, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/control.c
286
c->iev.ibuf.pid = imsg.hdr.pid;
sbin/dhcp6leased/control.c
288
imsg.hdr.pid, imsg.data, IMSG_DATA_SIZE(imsg));
sbin/dhcp6leased/control.c
292
imsg.hdr.type);
sbin/dhcp6leased/control.c
306
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
sbin/dhcp6leased/control.c
309
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
sbin/dhcp6leased/dhcp6leased.c
454
switch (imsg.hdr.type) {
sbin/dhcp6leased/dhcp6leased.c
486
imsg.hdr.type);
sbin/dhcp6leased/dhcp6leased.c
532
switch (imsg.hdr.type) {
sbin/dhcp6leased/dhcp6leased.c
590
imsg.hdr.type);
sbin/dhcp6leased/dhcp6leased.h
94
#define IMSG_DATA_SIZE(imsg) ((imsg).hdr.len - IMSG_HEADER_SIZE)
sbin/dhcp6leased/engine.c
305
switch (imsg.hdr.type) {
sbin/dhcp6leased/engine.c
365
imsg.hdr.type);
sbin/dhcp6leased/engine.c
414
switch (imsg.hdr.type) {
sbin/dhcp6leased/engine.c
566
imsg.hdr.type);
sbin/dhcp6leased/engine.c
605
switch (imsg->hdr.type) {
sbin/dhcp6leased/engine.c
608
send_interface_info(iface, imsg->hdr.pid);
sbin/dhcp6leased/engine.c
611
imsg->hdr.pid, NULL, 0);
sbin/dhcp6leased/engine.c
729
struct dhcp_hdr hdr;
sbin/dhcp6leased/engine.c
765
memcpy(&hdr, p, sizeof(struct dhcp_hdr));
sbin/dhcp6leased/engine.c
771
dhcp_message_type2str(hdr.msg_type), hdr.xid[0], hdr.xid[1],
sbin/dhcp6leased/engine.c
772
hdr.xid[2]);
sbin/dhcp6leased/engine.c
897
switch (hdr.msg_type) {
sbin/dhcp6leased/engine.c
907
__func__, dhcp_message_type2str(hdr.msg_type));
sbin/dhcp6leased/engine.c
912
"server", __func__, dhcp_message_type2str(hdr.msg_type));
sbin/dhcp6leased/engine.c
917
dhcp_message_type2str(hdr.msg_type));
sbin/dhcp6leased/engine.c
938
dhcp_message_type2str(hdr.msg_type));
sbin/dhcp6leased/engine.c
958
__func__, dhcp_message_type2str(hdr.msg_type));
sbin/dhcp6leased/engine.c
962
__func__, dhcp_message_type2str(hdr.msg_type));
sbin/dhcp6leased/frontend.c
268
switch (imsg.hdr.type) {
sbin/dhcp6leased/frontend.c
440
imsg.hdr.type);
sbin/dhcp6leased/frontend.c
485
switch (imsg.hdr.type) {
sbin/dhcp6leased/frontend.c
508
switch (imsg.hdr.type) {
sbin/dhcp6leased/frontend.c
526
imsg.hdr.type);
sbin/dhcp6leased/frontend.c
749
struct dhcp_hdr hdr;
sbin/dhcp6leased/frontend.c
777
hdr.msg_type = message_type;
sbin/dhcp6leased/frontend.c
778
memcpy(hdr.xid, iface->xid, sizeof(hdr.xid));
sbin/dhcp6leased/frontend.c
779
memcpy(p, &hdr, sizeof(struct dhcp_hdr));
sbin/dhcpleased/frontend.c
849
struct bpf_hdr *hdr;
sbin/dhcpleased/frontend.c
872
if ((size_t)rem < sizeof(*hdr)) {
sbin/dhcpleased/frontend.c
876
hdr = (struct bpf_hdr *)p;
sbin/dhcpleased/frontend.c
877
if (hdr->bh_caplen != hdr->bh_datalen) {
sbin/dhcpleased/frontend.c
881
if (rem < hdr->bh_hdrlen + hdr->bh_caplen)
sbin/dhcpleased/frontend.c
884
if (hdr->bh_caplen > sizeof(imsg_dhcp.packet)) {
sbin/dhcpleased/frontend.c
888
memcpy(&imsg_dhcp.packet, p + hdr->bh_hdrlen, hdr->bh_caplen);
sbin/dhcpleased/frontend.c
889
imsg_dhcp.len = hdr->bh_caplen;
sbin/dhcpleased/frontend.c
890
imsg_dhcp.csumflags = hdr->bh_csumflags;
sbin/dhcpleased/frontend.c
894
p += BPF_WORDALIGN(hdr->bh_hdrlen + hdr->bh_caplen);
sbin/dhcpleased/frontend.c
895
rem -= BPF_WORDALIGN(hdr->bh_hdrlen + hdr->bh_caplen);
sbin/dhcpleased/frontend.c
937
struct dhcp_hdr *hdr;
sbin/dhcpleased/frontend.c
949
hdr = (struct dhcp_hdr *)p;
sbin/dhcpleased/frontend.c
950
hdr->op = DHCP_BOOTREQUEST;
sbin/dhcpleased/frontend.c
951
hdr->htype = HTYPE_ETHER;
sbin/dhcpleased/frontend.c
952
hdr->hlen = 6;
sbin/dhcpleased/frontend.c
953
hdr->hops = 0;
sbin/dhcpleased/frontend.c
954
hdr->xid = htonl(xid);
sbin/dhcpleased/frontend.c
955
hdr->secs = 0;
sbin/dhcpleased/frontend.c
956
hdr->ciaddr = *ciaddr;
sbin/dhcpleased/frontend.c
957
memcpy(hdr->chaddr, hw_address, sizeof(*hw_address));
sbin/iked/ca.c
1407
IMSG_CTL_SHOW_CERTSTORE, imsg->hdr.peerid,
sbin/iked/ca.c
337
switch (imsg->hdr.type) {
sbin/iked/ca.c
344
proc_compose(&env->sc_ps, PROC_PARENT, imsg->hdr.type, NULL, 0);
sbin/iked/ca.c
379
switch (imsg->hdr.type) {
sbin/iked/ca.c
402
switch (imsg->hdr.type) {
sbin/iked/ca.c
408
IMSG_CTL_SHOW_CERTSTORE, imsg->hdr.peerid,
sbin/iked/config.c
1140
ca_getkey(&env->sc_ps, &id, imsg->hdr.type);
sbin/iked/control.c
293
imsg.hdr.peerid = c->peerid;
sbin/iked/control.c
295
switch (imsg.hdr.type) {
sbin/iked/control.c
335
__func__, imsg.hdr.type);
sbin/iked/control.c
351
imsg_compose_event(&c->iev, imsg->hdr.type,
sbin/iked/control.c
352
0, imsg->hdr.pid, -1, imsg->data,
sbin/iked/control.c
353
imsg->hdr.len - IMSG_HEADER_SIZE);
sbin/iked/control.c
362
if (c->peerid == imsg->hdr.peerid)
sbin/iked/control.c
363
imsg_compose_event(&c->iev, imsg->hdr.type,
sbin/iked/control.c
364
0, imsg->hdr.pid, -1, imsg->data,
sbin/iked/control.c
365
imsg->hdr.len - IMSG_HEADER_SIZE);
sbin/iked/control.c
371
switch (imsg->hdr.type) {
sbin/iked/control.c
386
switch (imsg->hdr.type) {
sbin/iked/eap.c
417
struct eap_header *hdr = data;
sbin/iked/eap.c
429
len = betoh16(hdr->eap_length);
sbin/iked/eap.c
435
switch (hdr->eap_code) {
sbin/iked/eap.c
447
print_map(hdr->eap_code, eap_code_map));
sbin/iked/eap.c
451
msg->msg_parent->msg_eap.eam_id = hdr->eap_id;
sbin/iked/iked.c
434
switch (imsg->hdr.type) {
sbin/iked/iked.c
455
unsigned int type = imsg->hdr.type;
sbin/iked/iked.c
493
switch (imsg->hdr.type) {
sbin/iked/iked.h
1202
#define SPI_IH(hdr) ikev2_ikesa_info(betoh64((hdr)->ike_ispi), NULL)
sbin/iked/iked.h
73
#define IMSG_DATA_SIZE(imsg) ((imsg)->hdr.len - IMSG_HEADER_SIZE)
sbin/iked/ikev2.c
1168
struct ike_header *hdr)
sbin/iked/ikev2.c
1173
if (ikev2_msg_valid_ike_sa(env, hdr, msg) == -1) {
sbin/iked/ikev2.c
1179
switch (hdr->ike_exchange) {
sbin/iked/ikev2.c
1183
betoh64(hdr->ike_ispi), betoh64(hdr->ike_rspi), 1,
sbin/iked/ikev2.c
1199
print_map(hdr->ike_exchange, ikev2_exchange_map));
sbin/iked/ikev2.c
1203
if (ikev2_pld_parse(env, hdr, msg, msg->msg_offset) != 0) {
sbin/iked/ikev2.c
1231
switch (hdr->ike_exchange) {
sbin/iked/ikev2.c
1301
print_map(hdr->ike_exchange, ikev2_exchange_map));
sbin/iked/ikev2.c
1383
struct ike_header *hdr;
sbin/iked/ikev2.c
1442
if ((hdr = ikev2_add_header(buf, sa, req.msg_msgid,
sbin/iked/ikev2.c
1534
if (ikev2_set_header(hdr, ibuf_size(buf) - sizeof(*hdr)) == -1)
sbin/iked/ikev2.c
1537
(void)ikev2_pld_parse(env, hdr, &req, 0);
sbin/iked/ikev2.c
1815
struct ikev2_id hdr;
sbin/iked/ikev2.c
1843
bzero(&hdr, sizeof(hdr));
sbin/iked/ikev2.c
1844
hdr.id_type = id->id_type = polid->id_type;
sbin/iked/ikev2.c
1845
id->id_offset = sizeof(hdr);
sbin/iked/ikev2.c
1848
if ((id->id_buf = ibuf_new(&hdr, sizeof(hdr))) == NULL)
sbin/iked/ikev2.c
1907
struct ike_header *hdr;
sbin/iked/ikev2.c
1909
if ((hdr = ibuf_reserve(buf, sizeof(*hdr))) == NULL) {
sbin/iked/ikev2.c
1914
hdr->ike_ispi = htobe64(sa->sa_hdr.sh_ispi);
sbin/iked/ikev2.c
1915
hdr->ike_rspi = htobe64(sa->sa_hdr.sh_rspi);
sbin/iked/ikev2.c
1916
hdr->ike_nextpayload = nextpayload;
sbin/iked/ikev2.c
1917
hdr->ike_version = IKEV2_VERSION;
sbin/iked/ikev2.c
1918
hdr->ike_exchange = exchange;
sbin/iked/ikev2.c
1919
hdr->ike_msgid = htobe32(msgid);
sbin/iked/ikev2.c
1920
hdr->ike_length = htobe32(sizeof(*hdr));
sbin/iked/ikev2.c
1921
hdr->ike_flags = flags;
sbin/iked/ikev2.c
1924
hdr->ike_flags |= IKEV2_FLAG_INITIATOR;
sbin/iked/ikev2.c
1926
return (hdr);
sbin/iked/ikev2.c
1930
ikev2_set_header(struct ike_header *hdr, size_t length)
sbin/iked/ikev2.c
1932
uint32_t hdrlength = sizeof(*hdr) + length;
sbin/iked/ikev2.c
1939
hdr->ike_length = htobe32(sizeof(*hdr) + length);
sbin/iked/ikev2.c
2325
struct ike_header *hdr;
sbin/iked/ikev2.c
2343
if ((hdr = ibuf_seek(buf, 0, sizeof(*hdr))) == NULL)
sbin/iked/ikev2.c
2345
ispi = hdr->ike_ispi;
sbin/iked/ikev2.c
2346
rspi = hdr->ike_rspi;
sbin/iked/ikev2.c
241
switch (imsg->hdr.type) {
sbin/iked/ikev2.c
246
return (config_getcoupled(env, imsg->hdr.type));
sbin/iked/ikev2.c
249
if (config_getmode(env, imsg->hdr.type) == -1)
sbin/iked/ikev2.c
2937
struct ike_header *hdr)
sbin/iked/ikev2.c
2941
switch (hdr->ike_exchange) {
sbin/iked/ikev2.c
2948
betoh64(hdr->ike_ispi), betoh64(hdr->ike_rspi),
sbin/iked/ikev2.c
2960
if (ikev2_msg_valid_ike_sa(env, hdr, msg) == -1)
sbin/iked/ikev2.c
2969
if (ikev2_msg_valid_ike_sa(env, hdr, msg) == -1)
sbin/iked/ikev2.c
2974
print_map(hdr->ike_exchange, ikev2_exchange_map));
sbin/iked/ikev2.c
2978
if (ikev2_pld_parse(env, hdr, msg, msg->msg_offset) != 0) {
sbin/iked/ikev2.c
3014
switch (hdr->ike_exchange) {
sbin/iked/ikev2.c
3055
ikev2_send_error(env, sa, msg, hdr->ike_exchange);
sbin/iked/ikev2.c
3065
ikev2_send_error(env, sa, msg, hdr->ike_exchange);
sbin/iked/ikev2.c
335
switch (imsg->hdr.type) {
sbin/iked/ikev2.c
3388
struct ike_header *hdr;
sbin/iked/ikev2.c
3420
if ((hdr = ikev2_add_header(buf, sa, resp.msg_msgid,
sbin/iked/ikev2.c
3499
if (ikev2_set_header(hdr, ibuf_size(buf) - sizeof(*hdr)) == -1)
sbin/iked/ikev2.c
3502
(void)ikev2_pld_parse(env, hdr, &resp, 0);
sbin/iked/ikev2.c
3702
struct ike_header *hdr;
sbin/iked/ikev2.c
3728
if ((hdr = ikev2_add_header(buf, sa, resp.msg_msgid,
sbin/iked/ikev2.c
3740
if (ikev2_set_header(hdr, ibuf_size(buf) - sizeof(*hdr)) == -1)
sbin/iked/ikev2.c
3743
(void)ikev2_pld_parse(env, hdr, &resp, 0);
sbin/iked/ikev2.c
377
if (imsg->hdr.type == IMSG_CERTVALID) {
sbin/iked/ikev2.c
527
switch (imsg->hdr.type) {
sbin/iked/ikev2.c
529
ikev2_ctl_reset_id(env, imsg, imsg->hdr.type);
sbin/iked/ikev2.c
5323
struct ike_header *hdr;
sbin/iked/ikev2.c
5373
if ((hdr = ikev2_add_header(buf, sa, resp.msg_msgid,
sbin/iked/ikev2.c
5392
if (ikev2_set_header(hdr, ibuf_size(buf) - sizeof(*hdr)) == -1)
sbin/iked/ikev2.c
5401
if ((hdr = ibuf_seek(msg->msg_data, 0, sizeof(*hdr))) == NULL)
sbin/iked/ikev2.c
5405
sah.sa_hdr.sh_rspi = betoh64(hdr->ike_rspi);
sbin/iked/ikev2.c
5406
sah.sa_hdr.sh_ispi = betoh64(hdr->ike_ispi);
sbin/iked/ikev2.c
5408
hdr->ike_flags & IKEV2_FLAG_INITIATOR ? 0 : 1;
sbin/iked/ikev2.c
5413
if ((hdr = ikev2_add_header(buf, &sah, resp.msg_msgid,
sbin/iked/ikev2.c
5419
if (ikev2_set_header(hdr, ibuf_size(buf) - sizeof(*hdr)) == -1)
sbin/iked/ikev2.c
601
IMSG_CTL_SHOW_STATS, imsg->hdr.peerid, -1,
sbin/iked/ikev2.c
630
__func__, imsg->hdr.type,
sbin/iked/ikev2.c
656
struct ike_header *hdr;
sbin/iked/ikev2.c
662
hdr = ibuf_seek(msg->msg_data, msg->msg_offset, sizeof(*hdr));
sbin/iked/ikev2.c
664
if (hdr == NULL || ibuf_size(msg->msg_data) <
sbin/iked/ikev2.c
665
(betoh32(hdr->ike_length) - msg->msg_offset))
sbin/iked/ikev2.c
670
initiator = (hdr->ike_flags & IKEV2_FLAG_INITIATOR) ? 0 : 1;
sbin/iked/ikev2.c
671
msg->msg_response = (hdr->ike_flags & IKEV2_FLAG_RESPONSE) ? 1 : 0;
sbin/iked/ikev2.c
672
msg->msg_exchange = hdr->ike_exchange;
sbin/iked/ikev2.c
674
betoh64(hdr->ike_ispi), betoh64(hdr->ike_rspi),
sbin/iked/ikev2.c
676
msg->msg_msgid = betoh32(hdr->ike_msgid);
sbin/iked/ikev2.c
683
logit(hdr->ike_exchange == IKEV2_EXCHANGE_INFORMATIONAL ?
sbin/iked/ikev2.c
686
SPI_IH(hdr),
sbin/iked/ikev2.c
687
print_map(hdr->ike_exchange, ikev2_exchange_map),
sbin/iked/ikev2.c
695
print_spi(betoh64(hdr->ike_ispi), 8),
sbin/iked/ikev2.c
696
print_spi(betoh64(hdr->ike_rspi), 8));
sbin/iked/ikev2.c
703
if (hdr->ike_exchange == IKEV2_EXCHANGE_CREATE_CHILD_SA)
sbin/iked/ikev2.c
705
if (hdr->ike_exchange == IKEV2_EXCHANGE_INFORMATIONAL)
sbin/iked/ikev2.c
708
if (hdr->ike_exchange != IKEV2_EXCHANGE_IKE_SA_INIT &&
sbin/iked/ikev2.c
709
hdr->ike_nextpayload != IKEV2_PAYLOAD_SK &&
sbin/iked/ikev2.c
710
hdr->ike_nextpayload != IKEV2_PAYLOAD_SKF) {
sbin/iked/ikev2.c
721
hdr->ike_exchange);
sbin/iked/ikev2.c
722
if (hdr->ike_exchange != IKEV2_EXCHANGE_INFORMATIONAL &&
sbin/iked/ikev2.c
741
if (mr != NULL && hdr->ike_nextpayload != IKEV2_PAYLOAD_SKF)
sbin/iked/ikev2.c
752
hdr->ike_exchange == IKEV2_EXCHANGE_IKE_SA_INIT &&
sbin/iked/ikev2.c
7576
IMSG_CTL_SHOW_SA, imsg->hdr.peerid, -1,
sbin/iked/ikev2.c
7612
IMSG_CTL_SHOW_SA, imsg->hdr.peerid, -1,
sbin/iked/ikev2.c
7659
IMSG_CTL_SHOW_SA, imsg->hdr.peerid, -1,
sbin/iked/ikev2.c
7700
imsg->hdr.peerid, -1, NULL, 0);
sbin/iked/ikev2.c
772
if ((r = ikev2_msg_retransmit_response(env, sa, msg, hdr))
sbin/iked/ikev2.c
795
ikev2_init_recv(env, msg, hdr);
sbin/iked/ikev2.c
797
ikev2_resp_recv(env, msg, hdr);
sbin/iked/ikev2_msg.c
102
if (hdr.ike_version == IKEV1_VERSION)
sbin/iked/ikev2_msg.c
113
struct ike_header *hdr;
sbin/iked/ikev2_msg.c
115
if (ibuf_size(msg->msg_data) <= sizeof(*hdr)) {
sbin/iked/ikev2_msg.c
1167
struct ike_header *hdr;
sbin/iked/ikev2_msg.c
1172
(hdr = ibuf_seek(msg->msg_data, 0, sizeof(*hdr))) == NULL)
sbin/iked/ikev2_msg.c
1176
(hdr->ike_flags & IKEV2_FLAG_INITIATOR))
sbin/iked/ikev2_msg.c
1179
(hdr->ike_flags & IKEV2_FLAG_INITIATOR) == 0)
sbin/iked/ikev2_msg.c
120
hdr = (struct ike_header *)ibuf_data(msg->msg_data);
sbin/iked/ikev2_msg.c
125
print_spi(betoh64(hdr->ike_ispi), 8),
sbin/iked/ikev2_msg.c
126
print_spi(betoh64(hdr->ike_rspi), 8),
sbin/iked/ikev2_msg.c
127
hdr->ike_nextpayload,
sbin/iked/ikev2_msg.c
128
hdr->ike_version,
sbin/iked/ikev2_msg.c
1281
struct iked_message *msg, struct ike_header *hdr)
sbin/iked/ikev2_msg.c
1287
hdr->ike_exchange)) == NULL)
sbin/iked/ikev2_msg.c
129
hdr->ike_exchange,
sbin/iked/ikev2_msg.c
1290
if (hdr->ike_nextpayload == IKEV2_PAYLOAD_SKF) {
sbin/iked/ikev2_msg.c
1292
if (ikev2_pld_parse_quick(env, hdr, msg,
sbin/iked/ikev2_msg.c
130
hdr->ike_flags,
sbin/iked/ikev2_msg.c
131
betoh32(hdr->ike_msgid),
sbin/iked/ikev2_msg.c
1311
print_map(hdr->ike_exchange, ikev2_exchange_map),
sbin/iked/ikev2_msg.c
132
betoh32(hdr->ike_length));
sbin/iked/ikev2_msg.c
279
struct ike_header *hdr;
sbin/iked/ikev2_msg.c
282
if (buf == NULL || (hdr = ibuf_seek(msg->msg_data,
sbin/iked/ikev2_msg.c
283
msg->msg_offset, sizeof(*hdr))) == NULL)
sbin/iked/ikev2_msg.c
288
exchange = hdr->ike_exchange;
sbin/iked/ikev2_msg.c
289
flags = hdr->ike_flags;
sbin/iked/ikev2_msg.c
292
SPI_IH(hdr),
sbin/iked/ikev2_msg.c
295
betoh32(hdr->ike_msgid),
sbin/iked/ikev2_msg.c
378
struct ibuf *buf, struct ibuf *e, struct ike_header *hdr,
sbin/iked/ikev2_msg.c
402
if (ikev2_set_header(hdr, ibuf_size(buf) + pldlen - sizeof(*hdr)) == -1)
sbin/iked/ikev2_msg.c
62
struct ike_header hdr;
sbin/iked/ikev2_msg.c
753
struct ike_header *hdr;
sbin/iked/ikev2_msg.c
772
if ((hdr = ikev2_add_header(buf, sa, resp.msg_msgid, IKEV2_PAYLOAD_SK,
sbin/iked/ikev2_msg.c
779
if (ikev2_msg_encrypt_prepare(sa, pld, buf, e, hdr, firstpayload, 0) == -1)
sbin/iked/ikev2_msg.c
801
(void)ikev2_pld_parse(env, hdr, &resp, 0);
sbin/iked/ikev2_msg.c
818
struct ike_header *hdr;
sbin/iked/ikev2_msg.c
863
if ((hdr = ikev2_add_header(buf, sa, resp.msg_msgid,
sbin/iked/ikev2_msg.c
887
if (ikev2_msg_encrypt_prepare(sa, pld, buf, e, hdr,
sbin/iked/ikev2_msg.c
906
ibuf_size(buf) - sizeof(*hdr));
sbin/iked/ikev2_msg.c
91
if ((size_t)(len - off) <= sizeof(hdr))
sbin/iked/ikev2_msg.c
93
memcpy(&hdr, buf + off, sizeof(hdr));
sbin/iked/ikev2_pld.c
118
ikev2_pld_parse(struct iked *env, struct ike_header *hdr,
sbin/iked/ikev2_pld.c
124
print_spi(betoh64(hdr->ike_ispi), 8),
sbin/iked/ikev2_pld.c
125
print_spi(betoh64(hdr->ike_rspi), 8),
sbin/iked/ikev2_pld.c
126
print_map(hdr->ike_nextpayload, ikev2_payload_map),
sbin/iked/ikev2_pld.c
127
hdr->ike_version,
sbin/iked/ikev2_pld.c
128
print_map(hdr->ike_exchange, ikev2_exchange_map),
sbin/iked/ikev2_pld.c
129
hdr->ike_flags,
sbin/iked/ikev2_pld.c
130
betoh32(hdr->ike_msgid),
sbin/iked/ikev2_pld.c
131
betoh32(hdr->ike_length),
sbin/iked/ikev2_pld.c
134
if (ibuf_size(msg->msg_data) < betoh32(hdr->ike_length)) {
sbin/iked/ikev2_pld.c
139
offset += sizeof(*hdr);
sbin/iked/ikev2_pld.c
142
betoh32(hdr->ike_length), hdr->ike_nextpayload));
sbin/iked/ikev2_pld.c
2073
struct eap_header *hdr)
sbin/iked/ikev2_pld.c
2077
if (left < sizeof(*hdr)) {
sbin/iked/ikev2_pld.c
2079
"(%zu < %zu)", __func__, left, sizeof(*hdr));
sbin/iked/ikev2_pld.c
2082
memcpy(hdr, msgbuf + offset, sizeof(*hdr));
sbin/iked/ikev2_pld.c
2091
struct eap_header hdr;
sbin/iked/ikev2_pld.c
2096
if (ikev2_validate_eap(msg, offset, left, &hdr))
sbin/iked/ikev2_pld.c
2099
eap_len = betoh16(hdr.eap_length);
sbin/iked/ikev2_pld.c
2108
print_map(hdr.eap_code, eap_code_map),
sbin/iked/ikev2_pld.c
2109
hdr.eap_id, betoh16(hdr.eap_length));
sbin/iked/ikev2_pld.c
2141
ikev2_pld_parse_quick(struct iked *env, struct ike_header *hdr,
sbin/iked/ikev2_pld.c
2155
print_spi(betoh64(hdr->ike_ispi), 8),
sbin/iked/ikev2_pld.c
2156
print_spi(betoh64(hdr->ike_rspi), 8),
sbin/iked/ikev2_pld.c
2157
print_map(hdr->ike_nextpayload, ikev2_payload_map),
sbin/iked/ikev2_pld.c
2158
hdr->ike_version,
sbin/iked/ikev2_pld.c
2159
print_map(hdr->ike_exchange, ikev2_exchange_map),
sbin/iked/ikev2_pld.c
2160
hdr->ike_flags,
sbin/iked/ikev2_pld.c
2161
betoh32(hdr->ike_msgid),
sbin/iked/ikev2_pld.c
2162
betoh32(hdr->ike_length),
sbin/iked/ikev2_pld.c
2165
length = betoh32(hdr->ike_length);
sbin/iked/ikev2_pld.c
2172
offset += sizeof(*hdr);
sbin/iked/ikev2_pld.c
2177
payload = hdr->ike_nextpayload;
sbin/iked/pfkey.c
1386
struct sadb_msg hdr;
sbin/iked/pfkey.c
1413
if (recv(fd, &hdr, sizeof(hdr), MSG_PEEK) != sizeof(hdr)) {
sbin/iked/pfkey.c
1418
if (hdr.sadb_msg_version != PF_KEY_V2) {
sbin/iked/pfkey.c
1423
if ((data = reallocarray(NULL, hdr.sadb_msg_len,
sbin/iked/pfkey.c
1428
len = hdr.sadb_msg_len * PFKEYV2_CHUNK;
sbin/iked/pfkey.c
1437
if (hdr.sadb_msg_seq == sadb_msg_seq &&
sbin/iked/pfkey.c
1438
hdr.sadb_msg_pid == (uint32_t)getpid())
sbin/iked/pfkey.c
1442
if (hdr.sadb_msg_pid != 0 &&
sbin/iked/pfkey.c
1443
hdr.sadb_msg_pid != (uint32_t)getpid()) {
sbin/iked/pfkey.c
1467
if (datap == NULL && hdr.sadb_msg_errno != 0) {
sbin/iked/pfkey.c
1468
errno = hdr.sadb_msg_errno;
sbin/iked/pfkey.c
1797
struct sadb_msg hdr;
sbin/iked/pfkey.c
1801
if (recv(fd, &hdr, sizeof(hdr), MSG_PEEK) != sizeof(hdr)) {
sbin/iked/pfkey.c
1806
if (hdr.sadb_msg_version != PF_KEY_V2) {
sbin/iked/pfkey.c
1811
if ((data = reallocarray(NULL, hdr.sadb_msg_len, PFKEYV2_CHUNK))
sbin/iked/pfkey.c
1816
len = hdr.sadb_msg_len * PFKEYV2_CHUNK;
sbin/iked/pfkey.c
1878
struct sadb_msg *hdr;
sbin/iked/pfkey.c
1898
hdr = (struct sadb_msg *)data;
sbin/iked/pfkey.c
1900
switch (hdr->sadb_msg_type) {
sbin/iked/pfkey.c
1945
sa_pol.sadb_x_policy_seq = hdr->sadb_msg_seq;
sbin/iked/pfkey.c
2043
switch (hdr->sadb_msg_satype) {
sbin/iked/pfkey.c
2092
switch (hdr->sadb_msg_satype) {
sbin/iked/pfkey.c
2105
__func__, hdr->sadb_msg_satype,
sbin/iked/proc.c
654
imsg.hdr.type, imsg.hdr.peerid, p->p_title, imsg.hdr.pid);
sbin/iked/proc.c
669
switch (imsg.hdr.type) {
sbin/iked/proc.c
685
ps->ps_connecting, p->p_title, imsg.hdr.pid,
sbin/iked/proc.c
712
imsg.hdr.type, imsg.hdr.peerid,
sbin/iked/proc.c
713
p->p_title, imsg.hdr.pid);
sbin/iked/proc.c
835
return (proc_compose_imsg(ps, id, n, imsg->hdr.type,
sbin/iked/proc.c
836
imsg->hdr.peerid, -1, imsg->data, IMSG_DATA_SIZE(imsg)));
sbin/iked/util.c
296
struct cmsghdr hdr;
sbin/iked/util.c
349
struct cmsghdr hdr;
sbin/iked/vroute.c
314
add = (imsg->hdr.type == IMSG_IF_ADDADDR);
sbin/iked/vroute.c
368
add = (imsg->hdr.type == IMSG_VDNS_ADD);
sbin/iked/vroute.c
627
switch(imsg->hdr.type) {
sbin/ipsecctl/pfkey.c
777
struct sadb_msg hdr;
sbin/ipsecctl/pfkey.c
781
if (recv(sd, &hdr, sizeof(hdr), MSG_PEEK) != sizeof(hdr)) {
sbin/ipsecctl/pfkey.c
785
len = hdr.sadb_msg_len * PFKEYV2_CHUNK;
sbin/ipsecctl/pfkey.c
800
if (datap == NULL && hdr.sadb_msg_errno != 0) {
sbin/ipsecctl/pfkey.c
801
errno = hdr.sadb_msg_errno;
sbin/isakmpd/log.c
492
struct packhdr hdr;
sbin/isakmpd/log.c
510
bzero(&hdr, sizeof hdr);
sbin/isakmpd/log.c
529
hdr.sa_family = htonl(src->sa_family);
sbin/isakmpd/log.c
533
hdr.sa_family = htonl(AF_INET);
sbin/isakmpd/log.c
534
hdr.ip.ip4.ip_src.s_addr = 0x02020202;
sbin/isakmpd/log.c
535
hdr.ip.ip4.ip_dst.s_addr = 0x01010101;
sbin/isakmpd/log.c
540
hdr.ip.ip4.ip_src.s_addr =
sbin/isakmpd/log.c
542
hdr.ip.ip4.ip_dst.s_addr =
sbin/isakmpd/log.c
546
hdrlen = sizeof hdr.ip.ip4;
sbin/isakmpd/log.c
547
hdr.ip.ip4.ip_v = 0x4;
sbin/isakmpd/log.c
548
hdr.ip.ip4.ip_hl = 0x5;
sbin/isakmpd/log.c
549
hdr.ip.ip4.ip_p = IPPROTO_UDP;
sbin/isakmpd/log.c
550
hdr.ip.ip4.ip_len = htons(datalen + hdrlen);
sbin/isakmpd/log.c
552
i = ntohs(hdr.ip.ip4.ip_id) + 1;
sbin/isakmpd/log.c
553
hdr.ip.ip4.ip_id = htons(i);
sbin/isakmpd/log.c
555
hdr.ip.ip4.ip_sum = in_cksum((u_int16_t *) & hdr.ip.ip4,
sbin/isakmpd/log.c
556
hdr.ip.ip4.ip_hl << 2);
sbin/isakmpd/log.c
560
hdrlen = sizeof(hdr.ip.ip6);
sbin/isakmpd/log.c
561
hdr.ip.ip6.ip6_vfc = IPV6_VERSION;
sbin/isakmpd/log.c
562
hdr.ip.ip6.ip6_nxt = IPPROTO_UDP;
sbin/isakmpd/log.c
563
hdr.ip.ip6.ip6_plen = udp.uh_ulen;
sbin/isakmpd/log.c
564
memcpy(&hdr.ip.ip6.ip6_src,
sbin/isakmpd/log.c
566
sizeof hdr.ip.ip6.ip6_src);
sbin/isakmpd/log.c
567
memcpy(&hdr.ip.ip6.ip6_dst,
sbin/isakmpd/log.c
569
sizeof hdr.ip.ip6.ip6_dst);
sbin/isakmpd/log.c
574
udp.uh_sum = udp_cksum(&hdr, &udp, (u_int16_t *) packet_buf);
sbin/isakmpd/log.c
575
hdrlen += sizeof hdr.sa_family;
sbin/isakmpd/log.c
579
hdr.pcap.ts.tv_sec = tv.tv_sec;
sbin/isakmpd/log.c
580
hdr.pcap.ts.tv_usec = tv.tv_usec;
sbin/isakmpd/log.c
581
hdr.pcap.caplen = datalen + hdrlen;
sbin/isakmpd/log.c
582
hdr.pcap.len = datalen + hdrlen;
sbin/isakmpd/log.c
588
fwrite(&hdr, hdrlen, 1, packet_log); /* pcap + IP */
sbin/isakmpd/log.c
600
udp_cksum(struct packhdr *hdr, const struct udphdr *u, u_int16_t *d)
sbin/isakmpd/log.c
629
switch (ntohl(hdr->sa_family)) {
sbin/isakmpd/log.c
631
ip4 = &hdr->ip.ip4;
sbin/isakmpd/log.c
640
ip6 = &hdr->ip.ip6;
sbin/isakmpd/log.c
654
return (ntohl(hdr->sa_family) == AF_INET ? 0 : 0xFFFF);
sbin/isakmpd/monitor_fdpass.c
43
struct cmsghdr hdr;
sbin/isakmpd/monitor_fdpass.c
81
struct cmsghdr hdr;
sbin/isakmpd/pf_key_v2.c
204
struct sadb_msg hdr;
sbin/isakmpd/pf_key_v2.c
231
n = recv(pf_key_v2_socket, &hdr, sizeof hdr, MSG_PEEK);
sbin/isakmpd/pf_key_v2.c
237
if (n != sizeof hdr) {
sbin/isakmpd/pf_key_v2.c
243
buf = reallocarray(NULL, hdr.sadb_msg_len, PF_KEY_V2_CHUNK);
sbin/isakmpd/pf_key_v2.c
246
hdr.sadb_msg_len, PF_KEY_V2_CHUNK);
sbin/isakmpd/pf_key_v2.c
249
n = hdr.sadb_msg_len * PF_KEY_V2_CHUNK;
sbin/isakmpd/pf_key_v2.c
257
if (n != hdr.sadb_msg_len * PF_KEY_V2_CHUNK) {
sbin/mountd/mountd.c
436
switch (imsg.hdr.type) {
sbin/mountd/mountd.c
579
if (imsg.hdr.type != IMSG_GETFH_RESP || size != sizeof(*resp)) {
sbin/mountd/mountd.c
624
if (imsg.hdr.type != IMSG_EXPORT_RESP || size != sizeof(int)) {
sbin/pflogd/pflogd.c
331
struct pcap_file_header hdr;
sbin/pflogd/pflogd.c
382
hdr.magic = TCPDUMP_MAGIC;
sbin/pflogd/pflogd.c
383
hdr.version_major = PCAP_VERSION_MAJOR;
sbin/pflogd/pflogd.c
384
hdr.version_minor = PCAP_VERSION_MINOR;
sbin/pflogd/pflogd.c
385
hdr.thiszone = hpcap->tzoff;
sbin/pflogd/pflogd.c
386
hdr.snaplen = hpcap->snapshot;
sbin/pflogd/pflogd.c
387
hdr.sigfigs = 0;
sbin/pflogd/pflogd.c
388
hdr.linktype = hpcap->linktype;
sbin/pflogd/pflogd.c
390
if (fwrite((char *)&hdr, sizeof(hdr), 1, fp) != 1) {
sbin/pflogd/pflogd.c
412
struct pcap_file_header hdr;
sbin/pflogd/pflogd.c
426
if (fread((char *)&hdr, sizeof(hdr), 1, fp) != 1) {
sbin/pflogd/pflogd.c
431
if (hdr.magic != TCPDUMP_MAGIC ||
sbin/pflogd/pflogd.c
432
hdr.version_major != PCAP_VERSION_MAJOR ||
sbin/pflogd/pflogd.c
433
hdr.version_minor != PCAP_VERSION_MINOR ||
sbin/pflogd/pflogd.c
434
hdr.linktype != hpcap->linktype ||
sbin/pflogd/pflogd.c
435
hdr.snaplen > PFLOGD_MAXSNAPLEN) {
sbin/pflogd/pflogd.c
439
pos = sizeof(hdr);
sbin/pflogd/pflogd.c
448
if (ph.caplen > hdr.snaplen || ph.caplen > PFLOGD_MAXSNAPLEN)
sbin/pflogd/pflogd.c
459
if (hdr.snaplen != cur_snaplen) {
sbin/pflogd/pflogd.c
462
hdr.snaplen);
sbin/pflogd/pflogd.c
463
if (set_snaplen(hdr.snaplen)) {
sbin/pflogd/privsep_fdpass.c
54
struct cmsghdr hdr;
sbin/pflogd/privsep_fdpass.c
93
struct cmsghdr hdr;
sbin/ping/ping.c
800
struct cmsghdr hdr;
sbin/ping/ping.c
862
struct cmsghdr hdr;
sbin/restore/symtab.c
440
struct symtableheader hdr;
sbin/restore/symtab.c
498
hdr.volno = checkpt;
sbin/restore/symtab.c
499
hdr.maxino = maxino;
sbin/restore/symtab.c
500
hdr.entrytblsize = entrytblsize;
sbin/restore/symtab.c
501
hdr.stringsize = stroff;
sbin/restore/symtab.c
502
hdr.dumptime = dumptime;
sbin/restore/symtab.c
503
hdr.dumpdate = dumpdate;
sbin/restore/symtab.c
504
hdr.ntrec = ntrec;
sbin/restore/symtab.c
505
(void)fwrite((char *)&hdr, sizeof(struct symtableheader), 1, fp);
sbin/restore/symtab.c
524
struct symtableheader hdr;
sbin/restore/symtab.c
552
read(fd, &hdr, sizeof(struct symtableheader)) == -1) {
sbin/restore/symtab.c
563
if (hdr.dumpdate != dumptime)
sbin/restore/symtab.c
565
(hdr.dumpdate < dumptime) ? "low" : "high");
sbin/restore/symtab.c
572
dumptime = hdr.dumptime;
sbin/restore/symtab.c
573
dumpdate = hdr.dumpdate;
sbin/restore/symtab.c
575
newtapebuf(hdr.ntrec);
sbin/restore/symtab.c
576
getvol(hdr.volno);
sbin/restore/symtab.c
582
maxino = hdr.maxino;
sbin/restore/symtab.c
583
entrytblsize = hdr.entrytblsize;
sbin/restore/symtab.c
586
baseep = (struct entry *)(base + hdr.stringsize - sizeof(struct entry));
sbin/unwind/control.c
266
switch (imsg.hdr.type) {
sbin/unwind/control.c
279
c->iev.ibuf.pid = imsg.hdr.pid;
sbin/unwind/control.c
280
switch (imsg.hdr.type) {
sbin/unwind/control.c
282
frontend_imsg_compose_main(imsg.hdr.type, imsg.hdr.pid,
sbin/unwind/control.c
290
frontend_imsg_compose_main(imsg.hdr.type, imsg.hdr.pid,
sbin/unwind/control.c
292
frontend_imsg_compose_resolver(imsg.hdr.type,
sbin/unwind/control.c
293
imsg.hdr.pid, imsg.data, IMSG_DATA_SIZE(imsg));
sbin/unwind/control.c
303
frontend_imsg_compose_resolver(imsg.hdr.type,
sbin/unwind/control.c
304
imsg.hdr.pid, NULL, 0);
sbin/unwind/control.c
308
imsg.hdr.type);
sbin/unwind/control.c
322
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
sbin/unwind/control.c
325
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
sbin/unwind/frontend.c
339
switch (imsg.hdr.type) {
sbin/unwind/frontend.c
474
imsg.hdr.type);
sbin/unwind/frontend.c
521
switch (imsg.hdr.type) {
sbin/unwind/frontend.c
652
imsg.hdr.type);
sbin/unwind/libunbound/util/netevent.c
1002
struct cmsghdr hdr;
sbin/unwind/libunbound/util/netevent.c
1355
struct cmsghdr hdr;
sbin/unwind/libunbound/util/netevent.c
1572
struct cmsghdr hdr;
sbin/unwind/libunbound/util/netevent.c
633
struct cmsghdr hdr;
sbin/unwind/resolver.c
520
switch (imsg.hdr.type) {
sbin/unwind/resolver.c
551
show_status(imsg.hdr.pid);
sbin/unwind/resolver.c
557
show_autoconf(imsg.hdr.pid);
sbin/unwind/resolver.c
563
show_mem(imsg.hdr.pid);
sbin/unwind/resolver.c
614
imsg.hdr.type);
sbin/unwind/resolver.c
661
switch (imsg.hdr.type) {
sbin/unwind/resolver.c
714
imsg.hdr.type);
sbin/unwind/unwind.c
425
switch (imsg.hdr.type) {
sbin/unwind/unwind.c
444
imsg.hdr.type);
sbin/unwind/unwind.c
490
switch (imsg.hdr.type) {
sbin/unwind/unwind.c
493
imsg.hdr.type);
sbin/unwind/unwind.c
893
switch (imsg->hdr.type) {
sbin/unwind/unwind.c
975
imsg->hdr.type);
sbin/unwind/unwind.h
46
#define IMSG_DATA_SIZE(imsg) ((imsg).hdr.len - IMSG_HEADER_SIZE)
sys/arch/alpha/alpha/dec_2100_a50.c
279
mc_hdr_avanti *hdr;
sys/arch/alpha/alpha/dec_2100_a50.c
291
hdr = (mc_hdr_avanti *) logout;
sys/arch/alpha/alpha/dec_2100_a50.c
292
ptr = (mc_uc_avanti *) (logout + sizeof (*hdr));
sys/arch/alpha/alpha/dec_2100_a50.c
295
type, hdr->mcheck_code);
sys/arch/alpha/alpha/dec_2100_a50.c
372
switch(hdr->mcheck_code) {
sys/arch/alpha/alpha/dec_2100_a50.c
502
switch(hdr->mcheck_code) {
sys/arch/alpha/alpha/dec_6600.c
329
mc_hdr_ev6 *hdr = (mc_hdr_ev6 *)logout;
sys/arch/alpha/alpha/dec_6600.c
330
mc_env_ev6 *env = (mc_env_ev6 *)(logout + hdr->la_system_offset);
sys/arch/alpha/alpha/dec_6600.c
381
"Code 0x%x\n", hdr->mcheck_code);
sys/arch/alpha/alpha/dec_6600.c
450
mc_hdr_ev6 *hdr = (mc_hdr_ev6 *)logout;
sys/arch/alpha/alpha/dec_6600.c
463
vector, hdr->mcheck_code);
sys/arch/alpha/alpha/dec_6600.c
467
mc_sys_ev6 *sys = (mc_sys_ev6 *)(logout + hdr->la_system_offset);
sys/arch/alpha/alpha/dec_6600.c
471
mc_cpu_ev6 *cpu = (mc_cpu_ev6 *)(logout + hdr->la_cpu_offset);
sys/arch/alpha/alpha/dec_6600.c
472
size_t cpu_size = hdr->la_system_offset - hdr->la_cpu_offset;
sys/arch/alpha/stand/loadfile_subr.c
35
check_phdr(void *hdr)
sys/arch/alpha/stand/loadfile_subr.c
37
Elf64_Phdr *phdr = (Elf64_Phdr *)hdr;
sys/arch/amd64/amd64/bios.c
100
if (hdr == NULL) {
sys/arch/amd64/amd64/bios.c
104
hdr = smbios_find(p);
sys/arch/amd64/amd64/bios.c
105
if (hdr != NULL)
sys/arch/amd64/amd64/bios.c
110
if (hdr != NULL) {
sys/arch/amd64/amd64/bios.c
111
pa = trunc_page(hdr->addr);
sys/arch/amd64/amd64/bios.c
112
end = round_page(hdr->addr + hdr->size);
sys/arch/amd64/amd64/bios.c
117
smbios_entry.addr = (uint8_t *)(va + (hdr->addr & PGOFSET));
sys/arch/amd64/amd64/bios.c
118
smbios_entry.len = hdr->size;
sys/arch/amd64/amd64/bios.c
119
smbios_entry.mjr = hdr->majrev;
sys/arch/amd64/amd64/bios.c
120
smbios_entry.min = hdr->minrev;
sys/arch/amd64/amd64/bios.c
121
smbios_entry.count = hdr->count;
sys/arch/amd64/amd64/bios.c
127
hdr->majrev, hdr->minrev, hdr->addr, hdr->count);
sys/arch/amd64/amd64/bios.c
129
smbiosrev = hdr->majrev * 100 + hdr->minrev;
sys/arch/amd64/amd64/bios.c
130
if (hdr->minrev < 10)
sys/arch/amd64/amd64/bios.c
131
smbiosrev = hdr->majrev * 100 + hdr->minrev * 10;
sys/arch/amd64/amd64/bios.c
246
struct smbhdr *hdr = (struct smbhdr *)p;
sys/arch/amd64/amd64/bios.c
250
if (hdr->sig != SMBIOS_SIGNATURE)
sys/arch/amd64/amd64/bios.c
252
i = hdr->len;
sys/arch/amd64/amd64/bios.c
266
return (hdr);
sys/arch/amd64/amd64/bios.c
282
struct smbtblhdr *hdr;
sys/arch/amd64/amd64/bios.c
296
if ((uint8_t *)st->hdr >= va && (uint8_t *)st->hdr < end) {
sys/arch/amd64/amd64/bios.c
297
hdr = st->hdr;
sys/arch/amd64/amd64/bios.c
298
if (hdr->type == type) {
sys/arch/amd64/amd64/bios.c
299
va = (uint8_t *)hdr + hdr->size;
sys/arch/amd64/amd64/bios.c
310
hdr = (struct smbtblhdr *)va;
sys/arch/amd64/amd64/bios.c
311
if (hdr->type == type) {
sys/arch/amd64/amd64/bios.c
313
st->hdr = hdr;
sys/arch/amd64/amd64/bios.c
318
if (hdr->type == SMBIOS_TYPE_EOT)
sys/arch/amd64/amd64/bios.c
320
va += hdr->size;
sys/arch/amd64/amd64/bios.c
336
va = (uint8_t *)st->hdr + st->hdr->size;
sys/arch/amd64/amd64/bios.c
93
struct smbhdr *hdr = NULL;
sys/arch/amd64/amd64/bios.c
97
hdr = smbios_find(PMAP_DIRECT_MAP(
sys/arch/amd64/amd64/ucode.c
279
struct intel_ucode_header *hdr;
sys/arch/amd64/amd64/ucode.c
286
hdr = (struct intel_ucode_header *)data;
sys/arch/amd64/amd64/ucode.c
296
if (hdr->data_size)
sys/arch/amd64/amd64/ucode.c
297
total_size = hdr->total_size;
sys/arch/amd64/amd64/ucode.c
306
if (cpu_ucode_intel_verify(hdr)) {
sys/arch/amd64/amd64/ucode.c
310
if (cpu_ucode_intel_match(hdr, sig, mask, current))
sys/arch/amd64/amd64/ucode.c
311
return hdr;
sys/arch/amd64/amd64/ucode.c
321
cpu_ucode_intel_verify(struct intel_ucode_header *hdr)
sys/arch/amd64/amd64/ucode.c
323
uint32_t *data = (uint32_t *)hdr;
sys/arch/amd64/amd64/ucode.c
334
if (hdr->loader_rev != 1) {
sys/arch/amd64/amd64/ucode.c
339
if (hdr->data_size)
sys/arch/amd64/amd64/ucode.c
340
total_size = hdr->total_size;
sys/arch/amd64/amd64/ucode.c
361
cpu_ucode_intel_match(struct intel_ucode_header *hdr,
sys/arch/amd64/amd64/ucode.c
370
data_size = hdr->data_size;
sys/arch/amd64/amd64/ucode.c
371
total_size = hdr->total_size;
sys/arch/amd64/amd64/ucode.c
383
if (ucode_revision > hdr->update_revision)
sys/arch/amd64/amd64/ucode.c
385
if (hdr->processor_sig == processor_sig &&
sys/arch/amd64/amd64/ucode.c
386
(hdr->processor_flags & processor_mask))
sys/arch/amd64/amd64/ucode.c
392
ehdr = (void *)((char *)hdr + sizeof(struct intel_ucode_header) +
sys/arch/amd64/include/smbiosvar.h
91
struct smbtblhdr *hdr;
sys/arch/amd64/pci/acpipci.c
193
if (sc->sc_acpi->sc_fadt->hdr.revision >= 2 &&
sys/arch/amd64/pci/acpipci.c
200
if (sc->sc_acpi->sc_fadt->hdr.revision == 1 &&
sys/arch/arm64/dev/acpicpu.c
111
hdr = entry->q_table;
sys/arch/arm64/dev/acpicpu.c
112
if (strncmp(hdr->signature, MADT_SIG,
sys/arch/arm64/dev/acpicpu.c
113
sizeof(hdr->signature)) == 0) {
sys/arch/arm64/dev/acpicpu.c
123
while (addr < (caddr_t)madt + madt->hdr.length) {
sys/arch/arm64/dev/acpicpu.c
91
struct acpi_table_header *hdr;
sys/arch/arm64/dev/acpiiort.c
123
struct acpi_table_header *hdr;
sys/arch/arm64/dev/acpiiort.c
135
hdr = entry->q_table;
sys/arch/arm64/dev/acpiiort.c
136
if (strncmp(hdr->signature, IORT_SIG,
sys/arch/arm64/dev/acpiiort.c
137
sizeof(hdr->signature)) == 0) {
sys/arch/arm64/dev/acpiiort.c
46
struct acpi_table_header *hdr;
sys/arch/arm64/dev/acpiiort.c
53
hdr = (struct acpi_table_header *)aaa->aaa_table;
sys/arch/arm64/dev/acpiiort.c
54
if (memcmp(hdr->signature, IORT_SIG, sizeof(IORT_SIG) - 1) != 0)
sys/arch/arm64/dev/acpipci.c
382
struct acpi_table_header *hdr;
sys/arch/arm64/dev/acpipci.c
395
hdr = entry->q_table;
sys/arch/arm64/dev/acpipci.c
396
if (strncmp(hdr->signature, IORT_SIG,
sys/arch/arm64/dev/acpipci.c
397
sizeof(hdr->signature)) == 0) {
sys/arch/arm64/dev/acpipci.c
873
struct acpi_table_header *hdr;
sys/arch/arm64/dev/acpipci.c
885
hdr = entry->q_table;
sys/arch/arm64/dev/acpipci.c
886
if (strncmp(hdr->signature, IORT_SIG,
sys/arch/arm64/dev/acpipci.c
887
sizeof(hdr->signature)) == 0) {
sys/arch/arm64/dev/ampchwm.c
116
union metrics_hdr hdr;
sys/arch/arm64/dev/ampchwm.c
136
bus_space_read_region_8(sc->sc_iot, sc->sc_ioh, offset, &hdr.data, 1);
sys/arch/arm64/dev/ampchwm.c
138
if (hdr.id != HWMON_ID) {
sys/arch/arm64/dev/ampchwm.c
139
printf(": bad id %x\n", hdr.id);
sys/arch/arm64/dev/ampchwm.c
143
printf(": ver %d", hdr.version);
sys/arch/arm64/dev/ampchwm.c
148
offset += sizeof(hdr);
sys/arch/arm64/dev/ampchwm.c
149
for (i = 0; i < hdr.count; i++) {
sys/arch/arm64/dev/ampchwm.c
155
sc->sc_count = MIN(hdr.count, HWMON_MAX_METRIC_COUNT);
sys/arch/arm64/dev/apldc.c
1013
hdr = (struct mtp_fwhdr *)ucode;
sys/arch/arm64/dev/apldc.c
1014
if (sizeof(hdr) > ucode_size ||
sys/arch/arm64/dev/apldc.c
1015
hdr->hdr_len + hdr->data_len > ucode_size) {
sys/arch/arm64/dev/apldc.c
1020
if (hdr->magic != MTP_FW_MAGIC) {
sys/arch/arm64/dev/apldc.c
1022
sc->sc_dev.dv_xname, hdr->magic);
sys/arch/arm64/dev/apldc.c
1025
if (hdr->version != MTP_FW_VERSION) {
sys/arch/arm64/dev/apldc.c
1027
sc->sc_dev.dv_xname, hdr->version);
sys/arch/arm64/dev/apldc.c
1030
data = ucode + hdr->hdr_len;
sys/arch/arm64/dev/apldc.c
1031
if (hdr->iface_off)
sys/arch/arm64/dev/apldc.c
1032
data[hdr->iface_off] = sc->sc_iface_mt;
sys/arch/arm64/dev/apldc.c
1033
size = hdr->data_len;
sys/arch/arm64/dev/apldc.c
764
struct mtp_hdr hdr;
sys/arch/arm64/dev/apldc.c
769
apldchidev_read(sc, &hdr, sizeof(hdr), &checksum);
sys/arch/arm64/dev/apldc.c
770
apldchidev_read(sc, buf, hdr.pkt_len + 4, &checksum);
sys/arch/arm64/dev/apldc.c
775
if (hdr.pkt_len < sizeof(*shdr)) {
sys/arch/arm64/dev/apldc.c
783
if (hdr.iface != sc->sc_cmd_iface) {
sys/arch/arm64/dev/apldc.c
787
if (hdr.seq != sc->sc_cmd_seq) {
sys/arch/arm64/dev/apldc.c
809
if (hdr.iface == MTP_IFACE_COMM)
sys/arch/arm64/dev/apldc.c
811
else if (hdr.iface == sc->sc_iface_kbd && sc->sc_kbd)
sys/arch/arm64/dev/apldc.c
813
else if (hdr.iface == sc->sc_iface_mt && sc->sc_mt)
sys/arch/arm64/dev/apldc.c
817
sc->sc_dev.dv_xname, hdr.iface);
sys/arch/arm64/dev/apldc.c
828
struct mtp_hdr hdr;
sys/arch/arm64/dev/apldc.c
836
memset(&hdr, 0, sizeof(hdr));
sys/arch/arm64/dev/apldc.c
837
hdr.hdr_len = sizeof(hdr);
sys/arch/arm64/dev/apldc.c
838
hdr.chan = MTP_CHAN_CMD;
sys/arch/arm64/dev/apldc.c
839
hdr.pkt_len = roundup(len, 4) + sizeof(shdr);
sys/arch/arm64/dev/apldc.c
841
hdr.seq = sc->sc_seq_comm++;
sys/arch/arm64/dev/apldc.c
843
hdr.seq = sc->sc_seq_kbd++;
sys/arch/arm64/dev/apldc.c
845
hdr.seq = sc->sc_seq_mt++;
sys/arch/arm64/dev/apldc.c
847
hdr.seq = sc->sc_seq_stm++;
sys/arch/arm64/dev/apldc.c
848
hdr.iface = iface;
sys/arch/arm64/dev/apldc.c
849
sc->sc_cmd_iface = hdr.iface;
sys/arch/arm64/dev/apldc.c
850
sc->sc_cmd_seq = hdr.seq;
sys/arch/arm64/dev/apldc.c
854
apldchidev_write(sc, &hdr, sizeof(hdr), &checksum);
sys/arch/arm64/dev/apldc.c
999
struct mtp_fwhdr *hdr;
sys/arch/arm64/dev/aplhidev.c
116
struct aplhidev_msghdr hdr;
sys/arch/arm64/dev/aplhidev.c
121
struct aplhidev_msghdr hdr;
sys/arch/arm64/dev/aplhidev.c
128
struct aplhidev_msghdr hdr;
sys/arch/arm64/dev/aplhidev.c
319
msg->hdr.type = APLHIDEV_GET_INFO;
sys/arch/arm64/dev/aplhidev.c
320
msg->hdr.device = APLHIDEV_INFO_DEVICE;
sys/arch/arm64/dev/aplhidev.c
321
msg->hdr.msgid = sc->sc_msgid++;
sys/arch/arm64/dev/aplhidev.c
322
msg->hdr.cmdlen = 0;
sys/arch/arm64/dev/aplhidev.c
323
msg->hdr.rsplen = APLHIDEV_DESC_MAX;
sys/arch/arm64/dev/aplhidev.c
352
msg->hdr.type = APLHIDEV_GET_DESCRIPTOR;
sys/arch/arm64/dev/aplhidev.c
353
msg->hdr.device = device;
sys/arch/arm64/dev/aplhidev.c
354
msg->hdr.msgid = sc->sc_msgid++;
sys/arch/arm64/dev/aplhidev.c
355
msg->hdr.cmdlen = 0;
sys/arch/arm64/dev/aplhidev.c
356
msg->hdr.rsplen = APLHIDEV_DESC_MAX;
sys/arch/arm64/dev/aplhidev.c
385
msg->hdr.type = APLHIDEV_SET_LEDS;
sys/arch/arm64/dev/aplhidev.c
386
msg->hdr.device = APLHIDEV_KBD_DEVICE;
sys/arch/arm64/dev/aplhidev.c
387
msg->hdr.msgid = sc->sc_msgid++;
sys/arch/arm64/dev/aplhidev.c
388
msg->hdr.cmdlen = sizeof(*msg) - sizeof(struct aplhidev_msghdr) - 2;
sys/arch/arm64/dev/aplhidev.c
389
msg->hdr.rsplen = msg->hdr.cmdlen;
sys/arch/arm64/dev/aplhidev.c
425
msg->hdr.type = APLHIDEV_SET_MODE;
sys/arch/arm64/dev/aplhidev.c
426
msg->hdr.device = APLHIDEV_TP_DEVICE;
sys/arch/arm64/dev/aplhidev.c
427
msg->hdr.msgid = sc->sc_msgid++;
sys/arch/arm64/dev/aplhidev.c
428
msg->hdr.cmdlen = sizeof(*msg) - sizeof(struct aplhidev_msghdr) - 2;
sys/arch/arm64/dev/aplhidev.c
429
msg->hdr.rsplen = msg->hdr.cmdlen;
sys/arch/arm64/dev/aplhidev.c
460
msg->hdr.type = APLHIDEV_GET_DIMENSIONS;
sys/arch/arm64/dev/aplhidev.c
461
msg->hdr.device = 0;
sys/arch/arm64/dev/aplhidev.c
462
msg->hdr.msgid = sc->sc_msgid++;
sys/arch/arm64/dev/aplhidev.c
463
msg->hdr.cmdlen = 0;
sys/arch/arm64/dev/aplhidev.c
464
msg->hdr.rsplen = APLHIDEV_DESC_MAX;
sys/arch/arm64/dev/aplhidev.c
485
struct aplhidev_msghdr *hdr = (struct aplhidev_msghdr *)&packet.data[0];
sys/arch/arm64/dev/aplhidev.c
503
hdr->type == APLHIDEV_KBD_REPORT) {
sys/arch/arm64/dev/aplhidev.c
505
aplkbd_intr(sc->sc_kbd, &packet.data[8], hdr->cmdlen);
sys/arch/arm64/dev/aplhidev.c
512
hdr->type == APLHIDEV_TP_REPORT) {
sys/arch/arm64/dev/aplhidev.c
514
aplms_intr(sc->sc_ms, &packet.data[8], hdr->cmdlen);
sys/arch/arm64/dev/aplhidev.c
521
hdr->type == APLHIDEV_GET_INFO) {
sys/arch/arm64/dev/aplhidev.c
530
hdr->type == APLHIDEV_GET_DESCRIPTOR) {
sys/arch/arm64/dev/aplhidev.c
531
switch (hdr->device) {
sys/arch/arm64/dev/aplhidev.c
533
memcpy(sc->sc_kbddesc, &packet.data[8], hdr->cmdlen);
sys/arch/arm64/dev/aplhidev.c
534
sc->sc_kbddesclen = hdr->cmdlen;
sys/arch/arm64/dev/aplhidev.c
537
memcpy(sc->sc_tpdesc, &packet.data[8], hdr->cmdlen);
sys/arch/arm64/dev/aplhidev.c
538
sc->sc_tpdesclen = hdr->cmdlen;
sys/arch/arm64/dev/aplhidev.c
546
hdr->type == APLHIDEV_SET_MODE) {
sys/arch/arm64/dev/aplhidev.c
552
hdr->type == APLHIDEV_GET_DIMENSIONS) {
sys/arch/arm64/dev/aplhidev.c
553
memcpy(sc->sc_dimdesc, &packet.data[8], hdr->cmdlen);
sys/arch/arm64/dev/aplhidev.c
554
sc->sc_dimdesclen = hdr->cmdlen;
sys/arch/arm64/dev/rtkit.c
425
struct rtkit_crashlog_header hdr;
sys/arch/arm64/dev/rtkit.c
428
if (size < sizeof(hdr))
sys/arch/arm64/dev/rtkit.c
431
memcpy(&hdr, buf, sizeof(hdr));
sys/arch/arm64/dev/rtkit.c
432
if (letoh32(hdr.fourcc) != RTKIT_FOURCC("CLHE")) {
sys/arch/arm64/dev/rtkit.c
437
if (letoh32(hdr.size) > size) {
sys/arch/arm64/dev/rtkit.c
442
off = sizeof(hdr);
sys/arch/arm64/dev/rtkit.c
443
while (off < letoh32(hdr.size)) {
sys/arch/arm64/dev/smbios.c
105
hdr = bus_space_vaddr(sc->sc_iot, ioh);
sys/arch/arm64/dev/smbios.c
106
if (hdr->len != sizeof(*hdr)) {
sys/arch/arm64/dev/smbios.c
107
bus_space_unmap(sc->sc_iot, ioh, sizeof(*hdr));
sys/arch/arm64/dev/smbios.c
111
for (i = 0, p = (uint8_t *)hdr; i < hdr->len; i++)
sys/arch/arm64/dev/smbios.c
114
bus_space_unmap(sc->sc_iot, ioh, sizeof(*hdr));
sys/arch/arm64/dev/smbios.c
119
printf(": SMBIOS %d.%d", hdr->majrev, hdr->minrev);
sys/arch/arm64/dev/smbios.c
121
smbios_entry.len = hdr->size;
sys/arch/arm64/dev/smbios.c
122
smbios_entry.mjr = hdr->majrev;
sys/arch/arm64/dev/smbios.c
123
smbios_entry.min = hdr->minrev;
sys/arch/arm64/dev/smbios.c
124
smbios_entry.count = hdr->count;
sys/arch/arm64/dev/smbios.c
126
addr = hdr->addr;
sys/arch/arm64/dev/smbios.c
127
size = hdr->size;
sys/arch/arm64/dev/smbios.c
128
bus_space_unmap(sc->sc_iot, ioh, sizeof(*hdr));
sys/arch/arm64/dev/smbios.c
130
struct smb3hdr *hdr;
sys/arch/arm64/dev/smbios.c
134
if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr, sizeof(*hdr),
sys/arch/arm64/dev/smbios.c
140
hdr = bus_space_vaddr(sc->sc_iot, ioh);
sys/arch/arm64/dev/smbios.c
141
if (hdr->len != sizeof(*hdr) || hdr->epr != 0x01) {
sys/arch/arm64/dev/smbios.c
142
bus_space_unmap(sc->sc_iot, ioh, sizeof(*hdr));
sys/arch/arm64/dev/smbios.c
146
for (i = 0, p = (uint8_t *)hdr; i < hdr->len; i++)
sys/arch/arm64/dev/smbios.c
149
bus_space_unmap(sc->sc_iot, ioh, sizeof(*hdr));
sys/arch/arm64/dev/smbios.c
154
printf(": SMBIOS %d.%d.%d", hdr->majrev, hdr->minrev,
sys/arch/arm64/dev/smbios.c
155
hdr->docrev);
sys/arch/arm64/dev/smbios.c
157
smbios_entry.len = hdr->size;
sys/arch/arm64/dev/smbios.c
158
smbios_entry.mjr = hdr->majrev;
sys/arch/arm64/dev/smbios.c
159
smbios_entry.min = hdr->minrev;
sys/arch/arm64/dev/smbios.c
162
addr = hdr->addr;
sys/arch/arm64/dev/smbios.c
163
size = hdr->size;
sys/arch/arm64/dev/smbios.c
164
bus_space_unmap(sc->sc_iot, ioh, sizeof(*hdr));
sys/arch/arm64/dev/smbios.c
222
struct smbtblhdr *hdr;
sys/arch/arm64/dev/smbios.c
236
if ((uint8_t *)st->hdr >= va && (uint8_t *)st->hdr < end) {
sys/arch/arm64/dev/smbios.c
237
hdr = st->hdr;
sys/arch/arm64/dev/smbios.c
238
if (hdr->type == type) {
sys/arch/arm64/dev/smbios.c
239
va = (uint8_t *)hdr + hdr->size;
sys/arch/arm64/dev/smbios.c
250
hdr = (struct smbtblhdr *)va;
sys/arch/arm64/dev/smbios.c
251
if (hdr->type == type) {
sys/arch/arm64/dev/smbios.c
253
st->hdr = hdr;
sys/arch/arm64/dev/smbios.c
258
if (hdr->type == SMBIOS_TYPE_EOT)
sys/arch/arm64/dev/smbios.c
260
va += hdr->size;
sys/arch/arm64/dev/smbios.c
276
va = (uint8_t *)st->hdr + st->hdr->size;
sys/arch/arm64/dev/smbios.c
95
struct smbhdr *hdr;
sys/arch/arm64/dev/smbios.c
99
if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr, sizeof(*hdr),
sys/arch/arm64/include/smbiosvar.h
88
struct smbtblhdr *hdr;
sys/arch/arm64/stand/efiboot/efiacpi.c
111
struct acpi_table_header hdr;
sys/arch/arm64/stand/efiboot/efiacpi.c
213
struct acpi_table_header hdr;
sys/arch/arm64/stand/efiboot/efiacpi.c
234
struct acpi_table_header hdr;
sys/arch/arm64/stand/efiboot/efiacpi.c
316
struct acpi_table_header hdr;
sys/arch/arm64/stand/efiboot/efiacpi.c
345
struct acpi_table_header hdr;
sys/arch/arm64/stand/efiboot/efiacpi.c
377
efi_acpi_fadt(struct acpi_table_header *hdr)
sys/arch/arm64/stand/efiboot/efiacpi.c
379
struct acpi_fadt *fadt = (struct acpi_fadt *)hdr;
sys/arch/arm64/stand/efiboot/efiacpi.c
399
efi_acpi_gtdt(struct acpi_table_header *hdr)
sys/arch/arm64/stand/efiboot/efiacpi.c
401
struct acpi_gtdt *gtdt = (struct acpi_gtdt *)hdr;
sys/arch/arm64/stand/efiboot/efiacpi.c
567
efi_acpi_madt(struct acpi_table_header *hdr)
sys/arch/arm64/stand/efiboot/efiacpi.c
569
struct acpi_madt *madt = (struct acpi_madt *)hdr;
sys/arch/arm64/stand/efiboot/efiacpi.c
580
while (addr < (char *)madt + madt->hdr.length) {
sys/arch/arm64/stand/efiboot/efiacpi.c
66
#define hdr_signature hdr.signature
sys/arch/arm64/stand/efiboot/efiacpi.c
68
#define hdr_length hdr.length
sys/arch/arm64/stand/efiboot/efiacpi.c
70
#define hdr_revision hdr.revision
sys/arch/arm64/stand/efiboot/efiacpi.c
707
efi_acpi_spcr(struct acpi_table_header *hdr)
sys/arch/arm64/stand/efiboot/efiacpi.c
709
struct acpi_spcr *spcr = (struct acpi_spcr *)hdr;
sys/arch/arm64/stand/efiboot/efiacpi.c
72
#define hdr_checksum hdr.checksum
sys/arch/arm64/stand/efiboot/efiacpi.c
731
efi_acpi_dbg2(struct acpi_table_header *hdr)
sys/arch/arm64/stand/efiboot/efiacpi.c
733
struct acpi_dbg2 *dbg2 = (struct acpi_dbg2 *)hdr;
sys/arch/arm64/stand/efiboot/efiacpi.c
738
info = (struct acpi_dbg2_info *)((char *)hdr + dbg2->info_offset);
sys/arch/arm64/stand/efiboot/efiacpi.c
74
#define hdr_oemid hdr.oemid
sys/arch/arm64/stand/efiboot/efiacpi.c
76
#define hdr_oemtableid hdr.oemtableid
sys/arch/arm64/stand/efiboot/efiacpi.c
769
struct acpi_table_header *hdr;
sys/arch/arm64/stand/efiboot/efiacpi.c
78
#define hdr_oemrevision hdr.oemrevision
sys/arch/arm64/stand/efiboot/efiacpi.c
791
len = xsdt->hdr.length;
sys/arch/arm64/stand/efiboot/efiacpi.c
80
#define hdr_aslcompilerid hdr.aslcompilerid
sys/arch/arm64/stand/efiboot/efiacpi.c
801
hdr = (struct acpi_table_header *)xsdt->table_offsets[i];
sys/arch/arm64/stand/efiboot/efiacpi.c
802
printf("%c%c%c%c ", hdr->signature[0], hdr->signature[1],
sys/arch/arm64/stand/efiboot/efiacpi.c
803
hdr->signature[2], hdr->signature[3]);
sys/arch/arm64/stand/efiboot/efiacpi.c
804
if (memcmp(hdr->signature, FADT_SIG, 4) == 0)
sys/arch/arm64/stand/efiboot/efiacpi.c
805
efi_acpi_fadt(hdr);
sys/arch/arm64/stand/efiboot/efiacpi.c
806
if (memcmp(hdr->signature, GTDT_SIG, 4) == 0)
sys/arch/arm64/stand/efiboot/efiacpi.c
807
efi_acpi_gtdt(hdr);
sys/arch/arm64/stand/efiboot/efiacpi.c
808
if (memcmp(hdr->signature, MADT_SIG, 4) == 0)
sys/arch/arm64/stand/efiboot/efiacpi.c
809
efi_acpi_madt(hdr);
sys/arch/arm64/stand/efiboot/efiacpi.c
810
if (memcmp(hdr->signature, SPCR_SIG, 4) == 0)
sys/arch/arm64/stand/efiboot/efiacpi.c
811
efi_acpi_spcr(hdr);
sys/arch/arm64/stand/efiboot/efiacpi.c
816
hdr = (struct acpi_table_header *)xsdt->table_offsets[i];
sys/arch/arm64/stand/efiboot/efiacpi.c
817
if (memcmp(hdr->signature, DBG2_SIG, 4) == 0 && !serial)
sys/arch/arm64/stand/efiboot/efiacpi.c
818
efi_acpi_dbg2(hdr);
sys/arch/arm64/stand/efiboot/efiacpi.c
82
#define hdr_aslcompilerrevision hdr.aslcompilerrevision
sys/arch/arm64/stand/efiboot/efiacpi.c
86
struct acpi_table_header hdr;
sys/arch/arm64/stand/efiboot/smbios.c
101
smbios_entry.len = hdr->size;
sys/arch/arm64/stand/efiboot/smbios.c
102
smbios_entry.mjr = hdr->majrev;
sys/arch/arm64/stand/efiboot/smbios.c
103
smbios_entry.min = hdr->minrev;
sys/arch/arm64/stand/efiboot/smbios.c
106
addr = hdr->addr;
sys/arch/arm64/stand/efiboot/smbios.c
157
struct smbtblhdr *hdr;
sys/arch/arm64/stand/efiboot/smbios.c
171
if ((uint8_t *)st->hdr >= va && (uint8_t *)st->hdr < end) {
sys/arch/arm64/stand/efiboot/smbios.c
172
hdr = st->hdr;
sys/arch/arm64/stand/efiboot/smbios.c
173
if (hdr->type == type) {
sys/arch/arm64/stand/efiboot/smbios.c
174
va = (uint8_t *)hdr + hdr->size;
sys/arch/arm64/stand/efiboot/smbios.c
185
hdr = (struct smbtblhdr *)va;
sys/arch/arm64/stand/efiboot/smbios.c
186
if (hdr->type == type) {
sys/arch/arm64/stand/efiboot/smbios.c
188
st->hdr = hdr;
sys/arch/arm64/stand/efiboot/smbios.c
193
if (hdr->type == SMBIOS_TYPE_EOT)
sys/arch/arm64/stand/efiboot/smbios.c
195
va += hdr->size;
sys/arch/arm64/stand/efiboot/smbios.c
211
va = (uint8_t *)st->hdr + st->hdr->size;
sys/arch/arm64/stand/efiboot/smbios.c
67
struct smbhdr *hdr = smbios;
sys/arch/arm64/stand/efiboot/smbios.c
71
if (hdr->len != sizeof(*hdr))
sys/arch/arm64/stand/efiboot/smbios.c
73
for (i = 0, p = (uint8_t *)hdr; i < hdr->len; i++)
sys/arch/arm64/stand/efiboot/smbios.c
78
DPRINTF("SMBIOS %d.%d", hdr->majrev, hdr->minrev);
sys/arch/arm64/stand/efiboot/smbios.c
80
smbios_entry.len = hdr->size;
sys/arch/arm64/stand/efiboot/smbios.c
81
smbios_entry.mjr = hdr->majrev;
sys/arch/arm64/stand/efiboot/smbios.c
82
smbios_entry.min = hdr->minrev;
sys/arch/arm64/stand/efiboot/smbios.c
83
smbios_entry.count = hdr->count;
sys/arch/arm64/stand/efiboot/smbios.c
85
addr = hdr->addr;
sys/arch/arm64/stand/efiboot/smbios.c
87
struct smb3hdr *hdr = smbios;
sys/arch/arm64/stand/efiboot/smbios.c
91
if (hdr->len != sizeof(*hdr) || hdr->epr != 0x01)
sys/arch/arm64/stand/efiboot/smbios.c
93
for (i = 0, p = (uint8_t *)hdr; i < hdr->len; i++)
sys/arch/arm64/stand/efiboot/smbios.c
98
DPRINTF("SMBIOS %d.%d.%d", hdr->majrev, hdr->minrev,
sys/arch/arm64/stand/efiboot/smbios.c
99
hdr->docrev);
sys/arch/i386/i386/bios.c
837
struct smbtblhdr *hdr;
sys/arch/i386/i386/bios.c
851
if ((uint8_t *)st->hdr >= va && (uint8_t *)st->hdr < end) {
sys/arch/i386/i386/bios.c
852
hdr = st->hdr;
sys/arch/i386/i386/bios.c
853
if (hdr->type == type) {
sys/arch/i386/i386/bios.c
854
va = (uint8_t *)hdr + hdr->size;
sys/arch/i386/i386/bios.c
865
hdr = (struct smbtblhdr *)va;
sys/arch/i386/i386/bios.c
866
if (hdr->type == type) {
sys/arch/i386/i386/bios.c
868
st->hdr = hdr;
sys/arch/i386/i386/bios.c
873
if (hdr->type == SMBIOS_TYPE_EOT)
sys/arch/i386/i386/bios.c
875
va += hdr->size;
sys/arch/i386/i386/bios.c
891
va = (uint8_t *)st->hdr + st->hdr->size;
sys/arch/i386/i386/esm.c
1061
err = esm_cmd(sc, req, sizeof(req->hdr) + req->h_txlen, resp,
sys/arch/i386/i386/esm.c
1062
sizeof(resp->hdr) + req->h_rxlen, wait, step);
sys/arch/i386/i386/esmreg.h
160
} __packed hdr;
sys/arch/i386/i386/esmreg.h
161
#define h_cmd hdr._cmd
sys/arch/i386/i386/esmreg.h
162
#define h_dev hdr._dev
sys/arch/i386/i386/esmreg.h
163
#define h_txlen hdr._txlen
sys/arch/i386/i386/esmreg.h
164
#define h_rxlen hdr._rxlen
sys/arch/i386/i386/esmreg.h
200
} __packed hdr;
sys/arch/i386/i386/esmreg.h
201
#define h_status hdr._status
sys/arch/i386/i386/esmreg.h
202
#define h_i2csts hdr._i2csts
sys/arch/i386/i386/esmreg.h
203
#define h_procsts hdr._procsts
sys/arch/i386/i386/esmreg.h
204
#define h_tx hdr._tx
sys/arch/i386/i386/esmreg.h
205
#define h_rx hdr._rx
sys/arch/i386/i386/ucode.c
302
struct intel_ucode_header *hdr;
sys/arch/i386/i386/ucode.c
309
hdr = (struct intel_ucode_header *)data;
sys/arch/i386/i386/ucode.c
319
if (hdr->data_size)
sys/arch/i386/i386/ucode.c
320
total_size = hdr->total_size;
sys/arch/i386/i386/ucode.c
329
if (cpu_ucode_intel_verify(hdr)) {
sys/arch/i386/i386/ucode.c
333
if (cpu_ucode_intel_match(hdr, sig, mask, current))
sys/arch/i386/i386/ucode.c
334
return hdr;
sys/arch/i386/i386/ucode.c
344
cpu_ucode_intel_verify(struct intel_ucode_header *hdr)
sys/arch/i386/i386/ucode.c
346
uint32_t *data = (uint32_t *)hdr;
sys/arch/i386/i386/ucode.c
357
if (hdr->loader_rev != 1) {
sys/arch/i386/i386/ucode.c
362
if (hdr->data_size)
sys/arch/i386/i386/ucode.c
363
total_size = hdr->total_size;
sys/arch/i386/i386/ucode.c
384
cpu_ucode_intel_match(struct intel_ucode_header *hdr,
sys/arch/i386/i386/ucode.c
393
data_size = hdr->data_size;
sys/arch/i386/i386/ucode.c
394
total_size = hdr->total_size;
sys/arch/i386/i386/ucode.c
406
if (ucode_revision > hdr->update_revision)
sys/arch/i386/i386/ucode.c
408
if (hdr->processor_sig == processor_sig &&
sys/arch/i386/i386/ucode.c
409
(hdr->processor_flags & processor_mask))
sys/arch/i386/i386/ucode.c
415
ehdr = (void *)((char *)hdr + sizeof(struct intel_ucode_header) +
sys/arch/i386/include/smbiosvar.h
91
struct smbtblhdr *hdr;
sys/arch/octeon/dev/if_ogx.c
1258
uint64_t ehdrlen, hdr, scroff, word;
sys/arch/octeon/dev/if_ogx.c
1266
hdr = PKO3_SEND_HDR_DF;
sys/arch/octeon/dev/if_ogx.c
1267
hdr |= m0->m_pkthdr.len << PKO3_SEND_HDR_TOTAL_S;
sys/arch/octeon/dev/if_ogx.c
1276
hdr |= ehdrlen << PKO3_SEND_HDR_L3PTR_S;
sys/arch/octeon/dev/if_ogx.c
1277
hdr |= (ehdrlen + sizeof(struct ip)) <<
sys/arch/octeon/dev/if_ogx.c
1281
hdr |= ehdrlen << PKO3_SEND_HDR_L3PTR_S;
sys/arch/octeon/dev/if_ogx.c
1282
hdr |= (ehdrlen + sizeof(struct ip6_hdr)) <<
sys/arch/octeon/dev/if_ogx.c
1290
hdr |= PKO3_SEND_HDR_CKL3;
sys/arch/octeon/dev/if_ogx.c
1292
hdr |= PKO3_SEND_HDR_CKL4_TCP;
sys/arch/octeon/dev/if_ogx.c
1294
hdr |= PKO3_SEND_HDR_CKL4_UDP;
sys/arch/octeon/dev/if_ogx.c
1306
octeon_cvmseg_write_8(scroff, hdr);
sys/arch/octeon/dev/if_ogx.c
1307
scroff += sizeof(hdr);
sys/arch/powerpc64/include/smbiosvar.h
88
struct smbtblhdr *hdr;
sys/arch/sparc64/dev/cbus.c
239
struct md_header *hdr;
sys/arch/sparc64/dev/cbus.c
250
hdr = (struct md_header *)mdesc;
sys/arch/sparc64/dev/cbus.c
252
name_blk = mdesc + sizeof(struct md_header) + hdr->node_blk_sz;
sys/arch/sparc64/dev/vcc.c
110
struct md_header *hdr;
sys/arch/sparc64/dev/vcc.c
116
hdr = (struct md_header *)mdesc;
sys/arch/sparc64/dev/vcc.c
118
name_blk = mdesc + sizeof(struct md_header) + hdr->node_blk_sz;
sys/arch/sparc64/dev/vcc.c
71
struct md_header *hdr;
sys/arch/sparc64/dev/vcc.c
80
hdr = (struct md_header *)mdesc;
sys/arch/sparc64/dev/vcc.c
82
name_blk = mdesc + sizeof(struct md_header) + hdr->node_blk_sz;
sys/arch/sparc64/dev/vds.c
107
struct md_header *hdr;
sys/arch/sparc64/dev/vds.c
113
hdr = (struct md_header *)mdesc;
sys/arch/sparc64/dev/vds.c
115
name_blk = mdesc + sizeof(struct md_header) + hdr->node_blk_sz;
sys/arch/sparc64/dev/vds.c
71
struct md_header *hdr;
sys/arch/sparc64/dev/vds.c
80
hdr = (struct md_header *)mdesc;
sys/arch/sparc64/dev/vds.c
82
name_blk = mdesc + sizeof(struct md_header) + hdr->node_blk_sz;
sys/arch/sparc64/dev/vdsk.c
1084
sc->sc_vd->vd_desc[desc].hdr.ack = 1;
sys/arch/sparc64/dev/vdsk.c
1086
sc->sc_vd->vd_desc[desc].hdr.ack = 0;
sys/arch/sparc64/dev/vdsk.c
1094
sc->sc_vd->vd_desc[desc].hdr.dstate = VIO_DESC_READY;
sys/arch/sparc64/dev/vdsk.c
1137
sc->sc_vd->vd_desc[desc].hdr.dstate = VIO_DESC_FREE;
sys/arch/sparc64/dev/vdsk.c
700
while (sc->sc_vd->vd_desc[cons].hdr.dstate == VIO_DESC_DONE) {
sys/arch/sparc64/dev/vdsk.c
859
vd->vd_desc[i].hdr.dstate = VIO_DESC_FREE;
sys/arch/sparc64/dev/vdsk.c
89
struct vio_dring_hdr hdr;
sys/arch/sparc64/dev/vdsk.c
978
if (sc->sc_vd->vd_desc[desc].hdr.dstate == VIO_DESC_DONE)
sys/arch/sparc64/dev/vdsk.c
983
if (sc->sc_vd->vd_desc[desc].hdr.dstate == VIO_DESC_DONE) {
sys/arch/sparc64/dev/vdsp.c
1266
vd->hdr.dstate = VIO_DESC_DONE;
sys/arch/sparc64/dev/vdsp.c
1336
vd->hdr.dstate = VIO_DESC_DONE;
sys/arch/sparc64/dev/vdsp.c
1351
vd->hdr.dstate = VIO_DESC_DONE;
sys/arch/sparc64/dev/vdsp.c
1449
vd->hdr.dstate = VIO_DESC_DONE;
sys/arch/sparc64/dev/vdsp.c
152
struct vio_dring_hdr hdr;
sys/arch/sparc64/dev/vdsp.c
1541
vd->hdr.dstate = VIO_DESC_DONE;
sys/arch/sparc64/dev/vdsp.c
1634
vd->hdr.dstate = VIO_DESC_DONE;
sys/arch/sparc64/dev/vdsp.c
1646
vd->hdr.dstate = VIO_DESC_DONE;
sys/arch/sparc64/dev/viovar.h
30
uint64_t hdr;
sys/arch/sparc64/dev/vldc.c
111
struct md_header *hdr;
sys/arch/sparc64/dev/vldc.c
117
hdr = (struct md_header *)mdesc;
sys/arch/sparc64/dev/vldc.c
119
name_blk = mdesc + sizeof(struct md_header) + hdr->node_blk_sz;
sys/arch/sparc64/dev/vldc.c
72
struct md_header *hdr;
sys/arch/sparc64/dev/vldc.c
81
hdr = (struct md_header *)mdesc;
sys/arch/sparc64/dev/vldc.c
83
name_blk = mdesc + sizeof(struct md_header) + hdr->node_blk_sz;
sys/arch/sparc64/dev/vnet.c
1124
while (sc->sc_vd->vd_desc[prod].hdr.dstate == VIO_DESC_FREE) {
sys/arch/sparc64/dev/vnet.c
1177
sc->sc_vd->vd_desc[prod].hdr.dstate = VIO_DESC_READY;
sys/arch/sparc64/dev/vnet.c
1191
sc->sc_vd->vd_desc[start].hdr.dstate = VIO_DESC_READY;
sys/arch/sparc64/dev/vnet.c
1525
vd->vd_desc[i].hdr.dstate = VIO_DESC_FREE;
sys/arch/sparc64/dev/vnet.c
832
if (desc.hdr.dstate != VIO_DESC_READY)
sys/arch/sparc64/dev/vnet.c
858
desc.hdr.dstate = VIO_DESC_DONE;
sys/arch/sparc64/dev/vnet.c
892
while (sc->sc_vd->vd_desc[cons].hdr.dstate == VIO_DESC_DONE) {
sys/arch/sparc64/dev/vnet.c
899
sc->sc_vd->vd_desc[cons].hdr.dstate = VIO_DESC_FREE;
sys/arch/sparc64/dev/vnet.c
91
struct vio_dring_hdr hdr;
sys/arch/sparc64/dev/vnet.c
952
sc->sc_vd->vd_desc[i].hdr.dstate = VIO_DESC_FREE;
sys/arch/sparc64/dev/vsw.c
107
struct md_header *hdr;
sys/arch/sparc64/dev/vsw.c
113
hdr = (struct md_header *)mdesc;
sys/arch/sparc64/dev/vsw.c
115
name_blk = mdesc + sizeof(struct md_header) + hdr->node_blk_sz;
sys/arch/sparc64/dev/vsw.c
71
struct md_header *hdr;
sys/arch/sparc64/dev/vsw.c
80
hdr = (struct md_header *)mdesc;
sys/arch/sparc64/dev/vsw.c
82
name_blk = mdesc + sizeof(struct md_header) + hdr->node_blk_sz;
sys/arch/sparc64/sparc64/mdesc.c
180
struct md_header *hdr;
sys/arch/sparc64/sparc64/mdesc.c
185
hdr = (struct md_header *)mdesc;
sys/arch/sparc64/sparc64/mdesc.c
187
name_blk = mdesc + sizeof(struct md_header) + hdr->node_blk_sz;
sys/arch/sparc64/sparc64/mdesc.c
202
struct md_header *hdr;
sys/arch/sparc64/sparc64/mdesc.c
208
hdr = (struct md_header *)mdesc;
sys/arch/sparc64/sparc64/mdesc.c
210
name_blk = mdesc + sizeof(struct md_header) + hdr->node_blk_sz;
sys/arch/sparc64/sparc64/mdesc.c
211
data_blk = name_blk + hdr->name_blk_sz;
sys/arch/sparc64/sparc64/mdesc.c
226
struct md_header *hdr;
sys/arch/sparc64/sparc64/mdesc.c
232
hdr = (struct md_header *)mdesc;
sys/arch/sparc64/sparc64/mdesc.c
234
name_blk = mdesc + sizeof(struct md_header) + hdr->node_blk_sz;
sys/arch/sparc64/sparc64/mdesc.c
235
data_blk = name_blk + hdr->name_blk_sz;
sys/arch/sparc64/sparc64/mdesc.c
252
struct md_header *hdr;
sys/arch/sparc64/sparc64/mdesc.c
258
hdr = (struct md_header *)mdesc;
sys/arch/sparc64/sparc64/mdesc.c
274
struct md_header *hdr;
sys/arch/sparc64/sparc64/mdesc.c
281
hdr = (struct md_header *)mdesc;
sys/arch/sparc64/sparc64/mdesc.c
283
name_blk = mdesc + sizeof(struct md_header) + hdr->node_blk_sz;
sys/arch/sparc64/sparc64/mdesc.c
303
struct md_header *hdr;
sys/arch/sparc64/sparc64/mdesc.c
309
hdr = (struct md_header *)mdesc;
sys/arch/sparc64/sparc64/mdesc.c
311
name_blk = mdesc + sizeof(struct md_header) + hdr->node_blk_sz;
sys/arch/sparc64/stand/ofwboot/boot.c
218
} hdr;
sys/arch/sparc64/stand/ofwboot/boot.c
231
if ((rval = read(fd, &hdr, sizeof(hdr))) != sizeof(hdr)) {
sys/arch/sparc64/stand/ofwboot/boot.c
236
rval, sizeof(hdr));
sys/arch/sparc64/stand/ofwboot/boot.c
242
if (bcmp(hdr.elf64.e_ident, ELFMAG, SELFMAG) == 0 &&
sys/arch/sparc64/stand/ofwboot/boot.c
243
hdr.elf64.e_ident[EI_CLASS] == ELFCLASS64) {
sys/arch/sparc64/stand/ofwboot/boot.c
245
rval = elf64_exec(fd, &hdr.elf64, &entry, &ssym, &esym);
sys/dev/acpi/acpi.c
1129
sc->sc_major = sc->sc_fadt->hdr.revision;
sys/dev/acpi/acpi.c
1191
p_dsdt->hdr_length - sizeof(p_dsdt->hdr));
sys/dev/acpi/acpi.c
1199
p_dsdt->hdr_length - sizeof(p_dsdt->hdr));
sys/dev/acpi/acpi.c
1422
struct acpi_table_header *hdr;
sys/dev/acpi/acpi.c
1429
if (acpi_map(addr, sizeof(*hdr), &handle))
sys/dev/acpi/acpi.c
1431
hdr = (struct acpi_table_header *)handle.va;
sys/dev/acpi/acpi.c
1432
len = hdr->length;
sys/dev/acpi/acpi.c
1438
hdr = (struct acpi_table_header *)handle.va;
sys/dev/acpi/acpi.c
1439
if (acpi_checksum(hdr, len))
sys/dev/acpi/acpi.c
1441
DEVNAME(sc), hdr->signature);
sys/dev/acpi/acpi.c
1443
if ((sig && memcmp(sig, hdr->signature, 4)) ||
sys/dev/acpi/acpi.c
1444
(oem && memcmp(oem, hdr->oemid, 6)) ||
sys/dev/acpi/acpi.c
1445
(tbl && memcmp(tbl, hdr->oemtableid, 8))) {
sys/dev/acpi/acpi.c
1485
len = xsdt->hdr.length;
sys/dev/acpi/acpi.c
1504
len = rsdt->hdr.length;
sys/dev/acpi/acpidmar.c
2616
while (off < dmar->hdr.length) {
sys/dev/acpi/acpidmar.c
3443
DPRINTF(0,"IVRS Version: %d\n", ivrs->hdr.revision);
sys/dev/acpi/acpidmar.c
3455
while (off < ivrs->hdr.length) {
sys/dev/acpi/acpidmar.c
3546
struct acpi_table_header *hdr;
sys/dev/acpi/acpidmar.c
3553
hdr = (struct acpi_table_header *)aaa->aaa_table;
sys/dev/acpi/acpidmar.c
3554
if (memcmp(hdr->signature, DMAR_SIG, sizeof(DMAR_SIG) - 1) == 0)
sys/dev/acpi/acpidmar.c
3556
if (memcmp(hdr->signature, IVRS_SIG, sizeof(IVRS_SIG) - 1) == 0)
sys/dev/acpi/acpidmar.c
3569
struct acpi_table_header *hdr;
sys/dev/acpi/acpidmar.c
3573
hdr = (struct acpi_table_header *)aaa->aaa_table;
sys/dev/acpi/acpidmar.c
3576
if (memcmp(hdr->signature, DMAR_SIG, sizeof(DMAR_SIG) - 1) == 0) {
sys/dev/acpi/acpidmar.c
3580
if (memcmp(hdr->signature, IVRS_SIG, sizeof(IVRS_SIG) - 1) == 0) {
sys/dev/acpi/acpiec.c
264
!memcmp(ecdt->hdr.signature, ECDT_SIG, sizeof(ECDT_SIG) - 1))
sys/dev/acpi/acpihpet.c
185
struct acpi_table_header *hdr;
sys/dev/acpi/acpihpet.c
196
hdr = (struct acpi_table_header *)aaa->aaa_table;
sys/dev/acpi/acpihpet.c
197
if (memcmp(hdr->signature, HPET_SIG, sizeof(HPET_SIG) - 1) != 0)
sys/dev/acpi/acpihve.c
30
struct acpi_table_header hdr;
sys/dev/acpi/acpihve.c
52
struct acpi_table_header *hdr;
sys/dev/acpi/acpihve.c
60
hdr = (struct acpi_table_header *)aaa->aaa_table;
sys/dev/acpi/acpihve.c
61
if (memcmp(hdr->signature, "OEM0", 4) != 0 ||
sys/dev/acpi/acpihve.c
62
memcmp(hdr->oemid, "VRTUAL", 6) != 0 ||
sys/dev/acpi/acpihve.c
63
memcmp(hdr->oemtableid, "MICROSFT", 8) != 0)
sys/dev/acpi/acpihve.c
78
if (oem0->hdr.length != sizeof(*oem0)) {
sys/dev/acpi/acpihve.c
79
printf(": unexpected table length %u\n", oem0->hdr.length);
sys/dev/acpi/acpimadt.c
228
while (addr < (caddr_t)madt + madt->hdr.length) {
sys/dev/acpi/acpimadt.c
347
while (addr < (caddr_t)madt + madt->hdr.length) {
sys/dev/acpi/acpimadt.c
62
struct acpi_table_header *hdr;
sys/dev/acpi/acpimadt.c
73
hdr = (struct acpi_table_header *)aaa->aaa_table;
sys/dev/acpi/acpimadt.c
74
if (memcmp(hdr->signature, MADT_SIG, sizeof(MADT_SIG) - 1) != 0)
sys/dev/acpi/acpimadt.c
85
while (addr < (caddr_t)madt + madt->hdr.length) {
sys/dev/acpi/acpimadt.c
92
if (addr + length > (caddr_t)madt + madt->hdr.length)
sys/dev/acpi/acpimcfg.c
41
struct acpi_table_header *hdr;
sys/dev/acpi/acpimcfg.c
52
hdr = (struct acpi_table_header *)aaa->aaa_table;
sys/dev/acpi/acpimcfg.c
53
if (memcmp(hdr->signature, MCFG_SIG, sizeof(MCFG_SIG) - 1) != 0)
sys/dev/acpi/acpimcfg.c
68
while (addr < (caddr_t)mcfg + mcfg->hdr.length) {
sys/dev/acpi/acpireg.h
102
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
204
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
210
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
219
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
224
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
393
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
401
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
411
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
418
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
424
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
434
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
448
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
493
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
504
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
51
#define hdr_signature hdr.signature
sys/dev/acpi/acpireg.h
53
#define hdr_length hdr.length
sys/dev/acpi/acpireg.h
55
#define hdr_revision hdr.revision
sys/dev/acpi/acpireg.h
57
#define hdr_checksum hdr.checksum
sys/dev/acpi/acpireg.h
59
#define hdr_oemid hdr.oemid
sys/dev/acpi/acpireg.h
594
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
61
#define hdr_oemtableid hdr.oemtableid
sys/dev/acpi/acpireg.h
63
#define hdr_oemrevision hdr.oemrevision
sys/dev/acpi/acpireg.h
65
#define hdr_aslcompilerid hdr.aslcompilerid
sys/dev/acpi/acpireg.h
67
#define hdr_aslcompilerrevision hdr.aslcompilerrevision
sys/dev/acpi/acpireg.h
71
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
738
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
750
struct acpi_table_header hdr;
sys/dev/acpi/acpireg.h
77
struct acpi_table_header hdr;
sys/dev/acpi/com_acpi.c
155
struct acpi_table_header *hdr;
sys/dev/acpi/com_acpi.c
161
hdr = entry->q_table;
sys/dev/acpi/com_acpi.c
162
if (strncmp(hdr->signature, SPCR_SIG,
sys/dev/acpi/com_acpi.c
163
sizeof(hdr->signature)) == 0) {
sys/dev/acpi/dsdt.c
1652
if (crs->hdr.typecode == SRT_ENDTAG || !rlen)
sys/dev/acpi/dsdt.c
3853
struct acpi_table_header *hdr;
sys/dev/acpi/dsdt.c
3861
hdr = entry->q_table;
sys/dev/acpi/dsdt.c
3862
if (strncmp(hdr->signature, signature,
sys/dev/acpi/dsdt.c
3863
sizeof(hdr->signature)) == 0 &&
sys/dev/acpi/dsdt.c
3864
strncmp(hdr->oemid, oemid, sizeof(hdr->oemid)) == 0 &&
sys/dev/acpi/dsdt.c
3865
strncmp(hdr->oemtableid, oemtableid,
sys/dev/acpi/dsdt.c
3866
sizeof(hdr->oemtableid)) == 0) {
sys/dev/acpi/dsdt.c
3869
p_dsdt->hdr_length - sizeof(p_dsdt->hdr));
sys/dev/acpi/dsdt.c
3905
tmp.length = p_ssdt->hdr_length - sizeof(p_ssdt->hdr);
sys/dev/acpi/dsdt.h
115
} __packed hdr;
sys/dev/acpi/dsdt.h
292
#define AML_CRSTYPE(x) ((x)->hdr.typecode & 0x80 ? \
sys/dev/acpi/dsdt.h
293
(x)->hdr.typecode : (x)->hdr.typecode >> 3)
sys/dev/acpi/dsdt.h
294
#define AML_CRSLEN(x) ((x)->hdr.typecode & 0x80 ? \
sys/dev/acpi/dsdt.h
295
3+(x)->hdr.length : 1+((x)->hdr.typecode & 0x7))
sys/dev/acpi/intelpmc.c
162
while (addr < (caddr_t)lpit + lpit->hdr.length) {
sys/dev/acpi/intelpmc.c
169
if (addr + length > (caddr_t)lpit + lpit->hdr.length)
sys/dev/acpi/pluart_acpi.c
102
struct acpi_table_header *hdr;
sys/dev/acpi/pluart_acpi.c
108
hdr = entry->q_table;
sys/dev/acpi/pluart_acpi.c
109
if (strncmp(hdr->signature, SPCR_SIG,
sys/dev/acpi/pluart_acpi.c
110
sizeof(hdr->signature)) == 0) {
sys/dev/acpi/qcuart_acpi.c
102
hdr = entry->q_table;
sys/dev/acpi/qcuart_acpi.c
103
if (strncmp(hdr->signature, SPCR_SIG,
sys/dev/acpi/qcuart_acpi.c
104
sizeof(hdr->signature)) == 0) {
sys/dev/acpi/qcuart_acpi.c
96
struct acpi_table_header *hdr;
sys/dev/ata/atascsi.c
726
struct scsi_vpd_hdr hdr;
sys/dev/ata/atascsi.c
738
pg.hdr.device = T_DIRECT;
sys/dev/ata/atascsi.c
739
pg.hdr.page_code = SI_PG_SUPPORTED;
sys/dev/ata/atascsi.c
740
_lto2b(sizeof(pg.list) - fat, pg.hdr.page_length);
sys/dev/ata/atascsi.c
764
pg.hdr.device = T_DIRECT;
sys/dev/ata/atascsi.c
765
pg.hdr.page_code = SI_PG_SERIAL;
sys/dev/ata/atascsi.c
766
_lto2b(sizeof(ap->ap_identify.serial), pg.hdr.page_length);
sys/dev/ata/atascsi.c
781
struct scsi_vpd_hdr hdr;
sys/dev/ata/atascsi.c
816
pg.hdr.device = T_DIRECT;
sys/dev/ata/atascsi.c
817
pg.hdr.page_code = SI_PG_DEVID;
sys/dev/ata/atascsi.c
818
_lto2b(pg_len, pg.hdr.page_length);
sys/dev/ata/atascsi.c
819
pg_len += sizeof(pg.hdr);
sys/dev/ata/atascsi.c
836
pg.hdr.device = T_DIRECT;
sys/dev/ata/atascsi.c
837
pg.hdr.page_code = SI_PG_ATA;
sys/dev/ata/atascsi.c
838
_lto2b(sizeof(pg) - sizeof(pg.hdr), pg.hdr.page_length);
sys/dev/ata/atascsi.c
877
pg.hdr.device = T_DIRECT;
sys/dev/ata/atascsi.c
878
pg.hdr.page_code = SI_PG_DISK_LIMITS;
sys/dev/ata/atascsi.c
879
_lto2b(SI_PG_DISK_LIMITS_LEN_THIN, pg.hdr.page_length);
sys/dev/ata/atascsi.c
908
pg.hdr.device = T_DIRECT;
sys/dev/ata/atascsi.c
909
pg.hdr.page_code = SI_PG_DISK_INFO;
sys/dev/ata/atascsi.c
910
_lto2b(sizeof(pg) - sizeof(pg.hdr), pg.hdr.page_length);
sys/dev/ata/atascsi.c
934
pg.hdr.device = T_DIRECT;
sys/dev/ata/atascsi.c
935
pg.hdr.page_code = SI_PG_DISK_THIN;
sys/dev/ata/atascsi.c
936
_lto2b(sizeof(pg) - sizeof(pg.hdr), pg.hdr.page_length);
sys/dev/fdt/qcpas.c
1286
struct pmic_glink_hdr hdr;
sys/dev/fdt/qcpas.c
1290
msg.hdr.owner = PMIC_GLINK_OWNER_BATTMGR;
sys/dev/fdt/qcpas.c
1291
msg.hdr.type = PMIC_GLINK_TYPE_REQ_RESP;
sys/dev/fdt/qcpas.c
1292
msg.hdr.opcode = BATTMGR_OPCODE_BAT_INFO;
sys/dev/fdt/qcpas.c
1301
struct pmic_glink_hdr hdr;
sys/dev/fdt/qcpas.c
1305
msg.hdr.owner = PMIC_GLINK_OWNER_BATTMGR;
sys/dev/fdt/qcpas.c
1306
msg.hdr.type = PMIC_GLINK_TYPE_REQ_RESP;
sys/dev/fdt/qcpas.c
1307
msg.hdr.opcode = BATTMGR_OPCODE_BAT_STATUS;
sys/dev/fdt/qcpas.c
1317
struct pmic_glink_hdr hdr;
sys/dev/fdt/qcpas.c
1323
msg.hdr.owner = PMIC_GLINK_OWNER_BATTMGR;
sys/dev/fdt/qcpas.c
1324
msg.hdr.type = PMIC_GLINK_TYPE_REQ_RESP;
sys/dev/fdt/qcpas.c
1325
msg.hdr.opcode = BATTMGR_OPCODE_CHG_CTRL_LIMIT;
sys/dev/fdt/qcpas.c
1372
struct pmic_glink_hdr hdr;
sys/dev/fdt/qcpas.c
1375
if (len < sizeof(hdr)) {
sys/dev/fdt/qcpas.c
1381
memcpy(&hdr, buf, sizeof(hdr));
sys/dev/fdt/qcpas.c
1383
switch (hdr.owner) {
sys/dev/fdt/qcpas.c
1385
switch (hdr.opcode) {
sys/dev/fdt/qcpas.c
1387
if (len - sizeof(hdr) != sizeof(uint32_t)) {
sys/dev/fdt/qcpas.c
1392
memcpy(&notification, buf + sizeof(hdr),
sys/dev/fdt/qcpas.c
1414
if (len - sizeof(hdr) < sizeof(*bat)) {
sys/dev/fdt/qcpas.c
1420
memcpy(bat, buf + sizeof(hdr), sizeof(*bat));
sys/dev/fdt/qcpas.c
1427
if (len - sizeof(hdr) != sizeof(*bat)) {
sys/dev/fdt/qcpas.c
1433
memcpy(bat, buf + sizeof(hdr), sizeof(*bat));
sys/dev/fdt/qcpas.c
1442
__func__, hdr.opcode);
sys/dev/fdt/qcpas.c
1448
__func__, hdr.owner);
sys/dev/ic/ahci.c
487
struct ahci_cmd_hdr *hdr;
sys/dev/ic/ahci.c
599
hdr = AHCI_DMA_KVA(ap->ap_dmamem_cmd_list);
sys/dev/ic/ahci.c
614
ccb->ccb_cmd_hdr = &hdr[i];
sys/dev/ic/ami.c
2012
if (_2btol(vpdbuf->hdr.page_length) < sizeof ser)
sys/dev/ic/ami.c
2013
ser[_2btol(vpdbuf->hdr.page_length)] = '\0';
sys/dev/ic/ami.c
2260
if (_2btol(vpdbuf->hdr.page_length) <
sys/dev/ic/ami.c
2262
ser[_2btol(vpdbuf->hdr.page_length)] =
sys/dev/ic/ar9003.c
341
uint32_t hdr;
sys/dev/ic/ar9003.c
349
error = ops->read_rom_data(sc, sc->eep_base, &hdr, sizeof(hdr));
sys/dev/ic/ar9003.c
350
if (error == 0 && hdr != 0 && hdr != 0xffffffff)
sys/dev/ic/ar9003.c
355
error = ops->read_rom_data(sc, sc->eep_base, &hdr, sizeof(hdr));
sys/dev/ic/ar9003.c
356
if (error == 0 && hdr != 0 && hdr != 0xffffffff)
sys/dev/ic/ar9003.c
364
error = ops->read_rom_data(sc, sc->eep_base, &hdr, sizeof(hdr));
sys/dev/ic/ar9003.c
365
if (error == 0 && hdr != 0 && hdr != 0xffffffff)
sys/dev/ic/ar9003.c
370
error = ops->read_rom_data(sc, sc->eep_base, &hdr, sizeof(hdr));
sys/dev/ic/ar9003.c
371
if (error == 0 && hdr != 0 && hdr != 0xffffffff)
sys/dev/ic/ar9003.c
431
uint32_t hdr;
sys/dev/ic/ar9003.c
448
error = ops->read_rom_data(sc, addr, &hdr, sizeof(hdr));
sys/dev/ic/ar9003.c
451
if (hdr == 0 || hdr == 0xffffffff)
sys/dev/ic/ar9003.c
453
addr -= sizeof(hdr);
sys/dev/ic/ar9003.c
456
ptr = (uint8_t *)&hdr;
sys/dev/ic/bwfm.c
1621
size_t size = sizeof(dcmd->hdr) + *len;
sys/dev/ic/bwfm.c
1630
dcmd->hdr.cmd = htole32(cmd);
sys/dev/ic/bwfm.c
1631
dcmd->hdr.len = htole32(*len);
sys/dev/ic/bwfm.c
1632
dcmd->hdr.flags |= BWFM_BCDC_DCMD_GET;
sys/dev/ic/bwfm.c
1633
dcmd->hdr.flags |= BWFM_BCDC_DCMD_ID_SET(reqid);
sys/dev/ic/bwfm.c
1634
dcmd->hdr.flags |= BWFM_BCDC_DCMD_IF_SET(ifidx);
sys/dev/ic/bwfm.c
1635
dcmd->hdr.flags = htole32(dcmd->hdr.flags);
sys/dev/ic/bwfm.c
1648
if (dcmd->hdr.flags & BWFM_BCDC_DCMD_ERROR)
sys/dev/ic/bwfm.c
1649
ret = dcmd->hdr.status;
sys/dev/ic/bwfm.c
1661
size_t size = sizeof(dcmd->hdr) + len;
sys/dev/ic/bwfm.c
1670
dcmd->hdr.cmd = htole32(cmd);
sys/dev/ic/bwfm.c
1671
dcmd->hdr.len = htole32(len);
sys/dev/ic/bwfm.c
1672
dcmd->hdr.flags |= BWFM_BCDC_DCMD_SET;
sys/dev/ic/bwfm.c
1673
dcmd->hdr.flags |= BWFM_BCDC_DCMD_ID_SET(reqid);
sys/dev/ic/bwfm.c
1674
dcmd->hdr.flags |= BWFM_BCDC_DCMD_IF_SET(ifidx);
sys/dev/ic/bwfm.c
1675
dcmd->hdr.flags = htole32(dcmd->hdr.flags);
sys/dev/ic/bwfm.c
1683
if (dcmd->hdr.flags & BWFM_BCDC_DCMD_ERROR)
sys/dev/ic/bwfm.c
1684
ret = dcmd->hdr.status;
sys/dev/ic/bwfm.c
1741
if (len < sizeof(dcmd->hdr))
sys/dev/ic/bwfm.c
1745
dcmd->hdr.cmd = letoh32(dcmd->hdr.cmd);
sys/dev/ic/bwfm.c
1746
dcmd->hdr.len = letoh32(dcmd->hdr.len);
sys/dev/ic/bwfm.c
1747
dcmd->hdr.flags = letoh32(dcmd->hdr.flags);
sys/dev/ic/bwfm.c
1748
dcmd->hdr.status = letoh32(dcmd->hdr.status);
sys/dev/ic/bwfm.c
1751
if (ctl->reqid != BWFM_BCDC_DCMD_ID_GET(dcmd->hdr.flags))
sys/dev/ic/bwfm.c
1768
struct bwfm_proto_bcdc_hdr *hdr;
sys/dev/ic/bwfm.c
1770
hdr = mtod(m, struct bwfm_proto_bcdc_hdr *);
sys/dev/ic/bwfm.c
1771
if (m->m_len < sizeof(*hdr)) {
sys/dev/ic/bwfm.c
1775
if (m->m_len < sizeof(*hdr) + (hdr->data_offset << 2)) {
sys/dev/ic/bwfm.c
1779
m_adj(m, sizeof(*hdr) + (hdr->data_offset << 2));
sys/dev/ic/bwfm.c
2370
memcmp(BWFM_BRCM_OUI, e->hdr.oui, sizeof(e->hdr.oui)) == 0 &&
sys/dev/ic/bwfm.c
2371
ntohs(e->hdr.usr_subtype) == BWFM_BRCM_SUBTYPE_EVENT) {
sys/dev/ic/bwfmreg.h
327
} hdr;
sys/dev/ic/bwfmreg.h
781
struct bwfm_ethhdr hdr;
sys/dev/ic/bwi.c
1662
const struct bwi_fwhdr *hdr;
sys/dev/ic/bwi.c
1664
if (fw_len < sizeof(*hdr)) {
sys/dev/ic/bwi.c
1670
hdr = (const struct bwi_fwhdr *)fw;
sys/dev/ic/bwi.c
1676
if (betoh32(hdr->fw_size) != fw_len - sizeof(*hdr)) {
sys/dev/ic/bwi.c
1681
betoh32(hdr->fw_size),
sys/dev/ic/bwi.c
1682
fw_len - sizeof(*hdr));
sys/dev/ic/bwi.c
1687
if (hdr->fw_type != fw_type) {
sys/dev/ic/bwi.c
1690
sc->sc_dev.dv_xname, fw_name, hdr->fw_type, fw_type);
sys/dev/ic/bwi.c
1694
if (hdr->fw_gen != BWI_FW_GEN_1) {
sys/dev/ic/bwi.c
1697
sc->sc_dev.dv_xname, fw_name, hdr->fw_gen, BWI_FW_GEN_1);
sys/dev/ic/bwi.c
1973
const struct bwi_fwhdr *hdr;
sys/dev/ic/bwi.c
1978
hdr = (const struct bwi_fwhdr *)fw;
sys/dev/ic/bwi.c
1979
n = betoh32(hdr->fw_iv_cnt);
sys/dev/ic/bwi.c
1983
iv_img_size = fw_len - sizeof(*hdr);
sys/dev/ic/bwi.c
1986
iv = (const struct bwi_fw_iv *)(fw + sizeof(*hdr));
sys/dev/ic/bwi.c
5926
bwi_rf_calc_rssi_bcm2050(struct bwi_mac *mac, const struct bwi_rxbuf_hdr *hdr)
sys/dev/ic/bwi.c
5931
rssi = hdr->rxh_rssi;
sys/dev/ic/bwi.c
5932
flags1 = letoh16(hdr->rxh_flags1);
sys/dev/ic/bwi.c
5933
flags3 = letoh16(hdr->rxh_flags3);
sys/dev/ic/bwi.c
5966
lna_gain = __SHIFTOUT(letoh16(hdr->rxh_phyinfo),
sys/dev/ic/bwi.c
5969
lna_gain, letoh16(hdr->rxh_phyinfo));
sys/dev/ic/bwi.c
6031
bwi_rf_calc_rssi_bcm2053(struct bwi_mac *mac, const struct bwi_rxbuf_hdr *hdr)
sys/dev/ic/bwi.c
6036
rssi = (((int)hdr->rxh_rssi - 11) * 103) / 64;
sys/dev/ic/bwi.c
6038
flags1 = letoh16(hdr->rxh_flags1);
sys/dev/ic/bwi.c
6048
bwi_rf_calc_rssi_bcm2060(struct bwi_mac *mac, const struct bwi_rxbuf_hdr *hdr)
sys/dev/ic/bwi.c
6052
rssi = hdr->rxh_rssi;
sys/dev/ic/bwi.c
8183
struct bwi_rxbuf_hdr *hdr;
sys/dev/ic/bwi.c
8214
hdr = (struct bwi_rxbuf_hdr *)(sc->sc_bounce_rx_data +
sys/dev/ic/bwi.c
8216
bzero(hdr, sizeof(*hdr));
sys/dev/ic/bwi.c
8224
m->m_len - sizeof(*hdr));
sys/dev/ic/bwi.c
8234
struct bwi_rxbuf_hdr *hdr;
sys/dev/ic/bwi.c
8295
hdr = mtod(rxbuf->rb_mbuf, struct bwi_rxbuf_hdr *);
sys/dev/ic/bwi.c
8296
bzero(hdr, sizeof(*hdr));
sys/dev/ic/bwi.c
8304
rxbuf->rb_mbuf->m_len - sizeof(*hdr));
sys/dev/ic/bwi.c
8368
struct bwi_rxbuf_hdr *hdr;
sys/dev/ic/bwi.c
8397
hdr = mtod(m, struct bwi_rxbuf_hdr *);
sys/dev/ic/bwi.c
8398
flags2 = letoh16(hdr->rxh_flags2);
sys/dev/ic/bwi.c
8405
buflen = letoh16(hdr->rxh_buflen);
sys/dev/ic/bwi.c
8414
bcopy((uint8_t *)(hdr + 1) + hdr_extra, &plcp, sizeof(plcp));
sys/dev/ic/bwi.c
8415
rssi = bwi_calc_rssi(sc, hdr);
sys/dev/ic/bwi.c
8417
m->m_len = m->m_pkthdr.len = buflen + sizeof(*hdr);
sys/dev/ic/bwi.c
8418
m_adj(m, sizeof(*hdr) + wh_ofs);
sys/dev/ic/bwi.c
8420
if (htole16(hdr->rxh_flags1) & BWI_RXH_F1_OFDM)
sys/dev/ic/bwi.c
8431
tap->wr_tsf = hdr->rxh_tsf;
sys/dev/ic/bwi.c
8458
rxi.rxi_rssi = hdr->rxh_rssi;
sys/dev/ic/bwi.c
8459
rxi.rxi_tstamp = letoh16(hdr->rxh_tsf);
sys/dev/ic/bwi.c
8841
struct bwi_txbuf_hdr *hdr;
sys/dev/ic/bwi.c
8916
M_PREPEND(m, sizeof(*hdr), M_DONTWAIT);
sys/dev/ic/bwi.c
8921
hdr = mtod(m, struct bwi_txbuf_hdr *);
sys/dev/ic/bwi.c
8923
bzero(hdr, sizeof(*hdr));
sys/dev/ic/bwi.c
8925
bcopy(wh->i_fc, hdr->txh_fc, sizeof(hdr->txh_fc));
sys/dev/ic/bwi.c
8926
bcopy(wh->i_addr1, hdr->txh_addr1, sizeof(hdr->txh_addr1));
sys/dev/ic/bwi.c
8937
hdr->txh_fb_duration = htole16(dur);
sys/dev/ic/bwi.c
8940
hdr->txh_id = __SHIFTIN(BWI_TX_DATA_RING, BWI_TXH_ID_RING_MASK) |
sys/dev/ic/bwi.c
8943
bwi_plcp_header(hdr->txh_plcp, pkt_len, rate);
sys/dev/ic/bwi.c
8944
bwi_plcp_header(hdr->txh_fb_plcp, pkt_len, rate);
sys/dev/ic/bwi.c
8959
hdr->txh_mac_ctrl = htole32(mac_ctrl);
sys/dev/ic/bwi.c
8960
hdr->txh_phy_ctrl = htole16(phy_ctrl);
sys/dev/ic/bwi.c
8963
hdr = NULL;
sys/dev/ic/bwi.c
9470
bwi_calc_rssi(struct bwi_softc *sc, const struct bwi_rxbuf_hdr *hdr)
sys/dev/ic/bwi.c
9477
return (bwi_rf_calc_rssi(mac, hdr));
sys/dev/ic/dc.c
1507
struct dc_eblock_hdr *hdr;
sys/dev/ic/dc.c
1521
hdr = (struct dc_eblock_hdr *)ptr;
sys/dev/ic/dc.c
1522
if (hdr->dc_type == DC_EBLOCK_MII)
sys/dev/ic/dc.c
1525
ptr += (hdr->dc_len & 0x7F);
sys/dev/ic/dc.c
1536
hdr = (struct dc_eblock_hdr *)ptr;
sys/dev/ic/dc.c
1537
switch(hdr->dc_type) {
sys/dev/ic/dc.c
1539
dc_decode_leaf_mii(sc, (struct dc_eblock_mii *)hdr);
sys/dev/ic/dc.c
1544
(struct dc_eblock_sia *)hdr);
sys/dev/ic/dc.c
1549
(struct dc_eblock_sym *)hdr);
sys/dev/ic/dc.c
1555
ptr += (hdr->dc_len & 0x7F);
sys/dev/ic/if_wi.c
2479
struct wi_80211_hdr *hdr;
sys/dev/ic/if_wi.c
2485
hdr = (struct wi_80211_hdr *)data;
sys/dev/ic/if_wi.c
2491
bcopy(hdr, &tx_frame.wi_frame_ctl, sizeof(struct wi_80211_hdr));
sys/dev/ic/malo.c
1799
struct malo_cmdheader *hdr;
sys/dev/ic/malo.c
1815
hdr = sc->sc_cmd_mem;
sys/dev/ic/malo.c
1816
data = hdr + 1;
sys/dev/ic/malo.c
1821
hdr->cmd = htole16(0x0001);
sys/dev/ic/malo.c
1822
hdr->size = htole16(bsize);
sys/dev/ic/malo.c
1823
hdr->seqnum = htole16(sn++);
sys/dev/ic/malo.c
1824
hdr->result = 0;
sys/dev/ic/malo.c
1843
hdr->cmd = htole16(0x0001);
sys/dev/ic/malo.c
1844
hdr->size = 0;
sys/dev/ic/malo.c
1845
hdr->seqnum = htole16(sn++);
sys/dev/ic/malo.c
1846
hdr->result = 0;
sys/dev/ic/malo.c
2004
struct malo_cmdheader *hdr = sc->sc_cmd_mem;
sys/dev/ic/malo.c
2007
hdr->cmd = htole16(MALO_CMD_GET_HW_SPEC);
sys/dev/ic/malo.c
2008
hdr->size = htole16(sizeof(*hdr) + sizeof(*spec));
sys/dev/ic/malo.c
2009
hdr->seqnum = htole16(42); /* the one and only */
sys/dev/ic/malo.c
2010
hdr->result = 0;
sys/dev/ic/malo.c
2011
spec = (struct malo_hw_spec *)(hdr + 1);
sys/dev/ic/malo.c
2048
struct malo_cmdheader *hdr = sc->sc_cmd_mem;
sys/dev/ic/malo.c
2050
hdr->cmd = htole16(MALO_CMD_SET_PRESCAN);
sys/dev/ic/malo.c
2051
hdr->size = htole16(sizeof(*hdr));
sys/dev/ic/malo.c
2052
hdr->seqnum = 1;
sys/dev/ic/malo.c
2053
hdr->result = 0;
sys/dev/ic/malo.c
2064
struct malo_cmdheader *hdr = sc->sc_cmd_mem;
sys/dev/ic/malo.c
2067
hdr->cmd = htole16(MALO_CMD_SET_POSTSCAN);
sys/dev/ic/malo.c
2068
hdr->size = htole16(sizeof(*hdr) + sizeof(*body));
sys/dev/ic/malo.c
2069
hdr->seqnum = 1;
sys/dev/ic/malo.c
2070
hdr->result = 0;
sys/dev/ic/malo.c
2071
body = (struct malo_cmd_postscan *)(hdr + 1);
sys/dev/ic/malo.c
2086
struct malo_cmdheader *hdr = sc->sc_cmd_mem;
sys/dev/ic/malo.c
2089
hdr->cmd = htole16(MALO_CMD_SET_CHANNEL);
sys/dev/ic/malo.c
2090
hdr->size = htole16(sizeof(*hdr) + sizeof(*body));
sys/dev/ic/malo.c
2091
hdr->seqnum = 1;
sys/dev/ic/malo.c
2092
hdr->result = 0;
sys/dev/ic/malo.c
2093
body = (struct malo_cmd_channel *)(hdr + 1);
sys/dev/ic/malo.c
2108
struct malo_cmdheader *hdr = sc->sc_cmd_mem;
sys/dev/ic/malo.c
2111
hdr->cmd = htole16(MALO_CMD_SET_ANTENNA);
sys/dev/ic/malo.c
2112
hdr->size = htole16(sizeof(*hdr) + sizeof(*body));
sys/dev/ic/malo.c
2113
hdr->seqnum = 1;
sys/dev/ic/malo.c
2114
hdr->result = 0;
sys/dev/ic/malo.c
2115
body = (struct malo_cmd_antenna *)(hdr + 1);
sys/dev/ic/malo.c
2134
struct malo_cmdheader *hdr = sc->sc_cmd_mem;
sys/dev/ic/malo.c
2137
hdr->cmd = htole16(MALO_CMD_SET_RADIO);
sys/dev/ic/malo.c
2138
hdr->size = htole16(sizeof(*hdr) + sizeof(*body));
sys/dev/ic/malo.c
2139
hdr->seqnum = 1;
sys/dev/ic/malo.c
2140
hdr->result = 0;
sys/dev/ic/malo.c
2141
body = (struct malo_cmd_radio *)(hdr + 1);
sys/dev/ic/malo.c
2157
struct malo_cmdheader *hdr = sc->sc_cmd_mem;
sys/dev/ic/malo.c
2160
hdr->cmd = htole16(MALO_CMD_SET_AID);
sys/dev/ic/malo.c
2161
hdr->size = htole16(sizeof(*hdr) + sizeof(*body));
sys/dev/ic/malo.c
2162
hdr->seqnum = 1;
sys/dev/ic/malo.c
2163
hdr->result = 0;
sys/dev/ic/malo.c
2164
body = (struct malo_cmd_aid *)(hdr + 1);
sys/dev/ic/malo.c
2179
struct malo_cmdheader *hdr = sc->sc_cmd_mem;
sys/dev/ic/malo.c
2182
hdr->cmd = htole16(MALO_CMD_SET_TXPOWER);
sys/dev/ic/malo.c
2183
hdr->size = htole16(sizeof(*hdr) + sizeof(*body));
sys/dev/ic/malo.c
2184
hdr->seqnum = 1;
sys/dev/ic/malo.c
2185
hdr->result = 0;
sys/dev/ic/malo.c
2186
body = (struct malo_cmd_txpower *)(hdr + 1);
sys/dev/ic/malo.c
2206
struct malo_cmdheader *hdr = sc->sc_cmd_mem;
sys/dev/ic/malo.c
2209
hdr->cmd = htole16(MALO_CMD_SET_RTS);
sys/dev/ic/malo.c
2210
hdr->size = htole16(sizeof(*hdr) + sizeof(*body));
sys/dev/ic/malo.c
2211
hdr->seqnum = 1;
sys/dev/ic/malo.c
2212
hdr->result = 0;
sys/dev/ic/malo.c
2213
body = (struct malo_cmd_rts *)(hdr + 1);
sys/dev/ic/malo.c
2228
struct malo_cmdheader *hdr = sc->sc_cmd_mem;
sys/dev/ic/malo.c
2231
hdr->cmd = htole16(MALO_CMD_SET_SLOT);
sys/dev/ic/malo.c
2232
hdr->size = htole16(sizeof(*hdr) + sizeof(*body));
sys/dev/ic/malo.c
2233
hdr->seqnum = 1;
sys/dev/ic/malo.c
2234
hdr->result = 0;
sys/dev/ic/malo.c
2235
body = (struct malo_cmd_slot *)(hdr + 1);
sys/dev/ic/malo.c
2251
struct malo_cmdheader *hdr = sc->sc_cmd_mem;
sys/dev/ic/malo.c
2255
hdr->cmd = htole16(MALO_CMD_SET_RATE);
sys/dev/ic/malo.c
2256
hdr->size = htole16(sizeof(*hdr) + sizeof(*body));
sys/dev/ic/malo.c
2257
hdr->seqnum = 1;
sys/dev/ic/malo.c
2258
hdr->result = 0;
sys/dev/ic/malo.c
2259
body = (struct malo_cmd_rate *)(hdr + 1);
sys/dev/ic/malo.c
2306
struct malo_cmdheader *hdr = sc->sc_cmd_mem;
sys/dev/ic/malo.c
2308
if (letoh16(hdr->result) != MALO_CMD_RESULT_OK) {
sys/dev/ic/malo.c
2311
malo_cmd_string(hdr->cmd),
sys/dev/ic/malo.c
2312
malo_cmd_string_result(hdr->result));
sys/dev/ic/malo.c
2318
malo_cmd_string(hdr->cmd),
sys/dev/ic/malo.c
2319
malo_cmd_string_result(hdr->result));
sys/dev/ic/malo.c
2322
malo_hexdump(hdr, letoh16(hdr->size));
sys/dev/ic/malo.c
500
struct malo_cmdheader *hdr = sc->sc_cmd_mem;
sys/dev/ic/malo.c
511
if (hdr->cmd & htole16(0x8000))
sys/dev/ic/mfi.c
1059
struct mfi_frame_header *hdr = &ccb->ccb_frame->mfr_header;
sys/dev/ic/mfi.c
1064
switch (hdr->mfh_cmd_status) {
sys/dev/ic/mfi.c
1084
DEVNAME(sc), hdr->mfh_cmd_status, xs->cmd.opcode);
sys/dev/ic/mfi.c
1086
if (hdr->mfh_scsi_status != 0) {
sys/dev/ic/mfi.c
1089
DEVNAME(sc), hdr->mfh_scsi_status,
sys/dev/ic/mfi.c
1244
struct mfi_frame_header *hdr = &ccb->ccb_frame->mfr_header;
sys/dev/ic/mfi.c
1249
hdr->mfh_flags |= sc->sc_sgl_flags;
sys/dev/ic/mfi.c
1272
struct mfi_frame_header *hdr = &ccb->ccb_frame->mfr_header;
sys/dev/ic/mfi.c
1279
hdr->mfh_sg_count = 0;
sys/dev/ic/mfi.c
1297
hdr->mfh_flags |= MFI_FRAME_DIR_READ;
sys/dev/ic/mfi.c
1301
hdr->mfh_flags |= MFI_FRAME_DIR_WRITE;
sys/dev/ic/mfi.c
1306
hdr->mfh_sg_count = ccb->ccb_dmamap->dm_nsegs;
sys/dev/ic/mfi.c
1312
hdr->mfh_sg_count,
sys/dev/ic/mfi.c
231
struct mfi_frame_header *hdr = &ccb->ccb_frame->mfr_header;
sys/dev/ic/mfi.c
233
hdr->mfh_cmd_status = 0x0;
sys/dev/ic/mfi.c
234
hdr->mfh_flags = 0x0;
sys/dev/ic/mfi.c
2691
struct mfi_frame_header *hdr = &ccb->ccb_frame->mfr_header;
sys/dev/ic/mfi.c
2696
switch (hdr->mfh_cmd) {
sys/dev/ic/mfi.c
2706
hdr->mfh_flags |= MFI_FRAME_IEEE | MFI_FRAME_SGL64;
sys/dev/ic/mfi.c
880
struct mfi_frame_header *hdr;
sys/dev/ic/mfi.c
885
hdr = &ccb->ccb_frame->mfr_header;
sys/dev/ic/mfi.c
886
hdr->mfh_cmd_status = 0xff;
sys/dev/ic/mfi.c
887
hdr->mfh_flags |= MFI_FRAME_DONT_POST_IN_REPLY_QUEUE;
sys/dev/ic/mfi.c
898
if (hdr->mfh_cmd_status != 0xff)
sys/dev/ic/mfi.c
903
hdr->mfh_context);
sys/dev/ic/mpi.c
1608
struct mpi_cfg_hdr hdr;
sys/dev/ic/mpi.c
1620
0, link->target, MPI_PG_POLL, &hdr);
sys/dev/ic/mpi.c
1624
len = hdr.page_length * 4;
sys/dev/ic/mpi.c
1629
rv = mpi_req_cfg_page(sc, link->target, MPI_PG_POLL, &hdr, 1, rp0, len);
sys/dev/ic/mpi.c
2211
struct mpi_cfg_hdr hdr;
sys/dev/ic/mpi.c
2215
if (mpi_cfg_header(sc, MPI_CONFIG_REQ_PAGE_TYPE_IOC, 1, 0, &hdr) != 0) {
sys/dev/ic/mpi.c
2221
if (mpi_cfg_page(sc, 0, &hdr, 1, &pg, sizeof(pg)) != 0) {
sys/dev/ic/mpi.c
2240
if (mpi_cfg_page(sc, 0, &hdr, 0, &pg, sizeof(pg)) != 0) {
sys/dev/ic/mpi.c
2466
struct mpi_cfg_hdr hdr;
sys/dev/ic/mpi.c
2477
id, 0, &hdr) != 0) {
sys/dev/ic/mpi.c
2484
if (mpi_req_cfg_page(sc, id, 0, &hdr, 1, &pg, sizeof(pg)) != 0)
sys/dev/ic/mpi.c
2673
struct mpi_cfg_hdr hdr;
sys/dev/ic/mpi.c
2679
0, 0, &hdr) != 0)
sys/dev/ic/mpi.c
2682
pagelen = hdr.page_length * 4; /* dwords to bytes */
sys/dev/ic/mpi.c
2690
if (mpi_cfg_page(sc, 0, &hdr, 1, pg, pagelen) != 0)
sys/dev/ic/mpi.c
2708
struct mpi_cfg_hdr hdr;
sys/dev/ic/mpi.c
2715
if (mpi_cfg_header(sc, MPI_CONFIG_REQ_PAGE_TYPE_IOC, 2, 0, &hdr) != 0) {
sys/dev/ic/mpi.c
2721
pagelen = hdr.page_length * 4; /* dwords to bytes */
sys/dev/ic/mpi.c
2729
if (mpi_cfg_page(sc, 0, &hdr, 1, vol_page, pagelen) != 0) {
sys/dev/ic/mpi.c
2764
struct mpi_cfg_hdr *hdr = p;
sys/dev/ic/mpi.c
2842
*hdr = cp->config_header;
sys/dev/ic/mpi.c
2857
struct mpi_cfg_hdr *hdr = p;
sys/dev/ic/mpi.c
2864
DEVNAME(sc), address, read, hdr->page_type);
sys/dev/ic/mpi.c
2867
lemtoh16(&ehdr->ext_page_length) : hdr->page_length;
sys/dev/ic/mpi.c
2894
cq->config_header = *hdr;
sys/dev/ic/mpi.c
2989
struct mpi_cfg_hdr hdr;
sys/dev/ic/mpi.c
2997
link->target, MPI_PG_POLL, &hdr);
sys/dev/ic/mpi.c
3007
if (mpi_req_cfg_page(sc, link->target, MPI_PG_POLL, &hdr, 1,
sys/dev/ic/mpi.c
3087
struct mpi_cfg_hdr hdr;
sys/dev/ic/mpi.c
3122
address, 0, &hdr) != 0)
sys/dev/ic/mpi.c
3124
if (mpi_req_cfg_page(sc, address, 0, &hdr, 1, rpg0, len)) {
sys/dev/ic/mpi.c
3313
struct mpi_cfg_hdr hdr;
sys/dev/ic/mpi.c
3338
&hdr) != 0)
sys/dev/ic/mpi.c
3340
if (mpi_cfg_page(sc, address, &hdr, 1, &pdpg0, sizeof pdpg0)) {
sys/dev/ic/mpi.c
403
struct mpi_cfg_hdr hdr;
sys/dev/ic/mpi.c
407
&hdr) != 0)
sys/dev/ic/mpi.c
410
if (mpi_cfg_page(sc, 0x0, &hdr, 1, &port, sizeof(port)) != 0)
sys/dev/ic/mpi.c
432
if (mpi_cfg_page(sc, 0x0, &hdr, 0, &port, sizeof(port)) != 0) {
sys/dev/ic/mpi.c
443
struct mpi_cfg_hdr hdr;
sys/dev/ic/mpi.c
451
1, i, &hdr) != 0)
sys/dev/ic/mpi.c
454
if (mpi_cfg_page(sc, i, &hdr, 1, &page, sizeof(page)) != 0)
sys/dev/ic/mpi.c
469
if (mpi_cfg_page(sc, i, &hdr, 0, &page, sizeof(page)) != 0)
sys/dev/ic/mpi.c
477
struct mpi_cfg_hdr hdr;
sys/dev/ic/mpi.c
486
&hdr) != 0) {
sys/dev/ic/mpi.c
492
if (mpi_cfg_page(sc, 0x0, &hdr, 1, &port_pg, sizeof(port_pg)) != 0) {
sys/dev/ic/mpi.c
517
&hdr) != 0) {
sys/dev/ic/mpi.c
523
pagelen = hdr.page_length * 4; /* dwords to bytes */
sys/dev/ic/mpi.c
532
if (mpi_cfg_page(sc, 0, &hdr, 1, physdisk_pg, pagelen) != 0) {
sys/dev/ic/mpi.c
862
struct mpi_cfg_hdr hdr;
sys/dev/ic/mpi.c
867
&hdr) != 0) {
sys/dev/ic/mpi.c
872
if (mpi_cfg_page(sc, 0, &hdr, 1, &pg0, sizeof(pg0)) != 0) {
sys/dev/ic/mpi.c
882
&hdr) != 0) {
sys/dev/ic/mpi.c
887
if (mpi_cfg_page(sc, 0, &hdr, 1, &pg1, sizeof(pg1)) != 0) {
sys/dev/ic/mpi.c
895
if (mpi_cfg_page(sc, 0, &hdr, 0, &pg1, sizeof(pg1)) != 0) {
sys/dev/ic/ne2000.c
641
ne2000_read_hdr(struct dp8390_softc *sc, int buf, struct dp8390_ring *hdr)
sys/dev/ic/ne2000.c
646
buf, (u_int8_t *)hdr, sizeof(struct dp8390_ring),
sys/dev/ic/ne2000.c
649
hdr->count = swap16(hdr->count);
sys/dev/ic/qlw.c
1279
qlw_get_header(struct qlw_softc *sc, struct qlw_iocb_hdr *hdr,
sys/dev/ic/qlw.c
1283
*type = hdr->entry_count;
sys/dev/ic/qlw.c
1284
*flags = hdr->seqno;
sys/dev/ic/qlw.c
1286
*type = hdr->entry_type;
sys/dev/ic/qlw.c
1287
*flags = hdr->flags;
sys/dev/ic/qlw.c
1292
qlw_put_header(struct qlw_softc *sc, struct qlw_iocb_hdr *hdr,
sys/dev/ic/qlw.c
1296
hdr->entry_type = count;
sys/dev/ic/qlw.c
1297
hdr->entry_count = type;
sys/dev/ic/qlw.c
1298
hdr->seqno = 0;
sys/dev/ic/qlw.c
1299
hdr->flags = 0;
sys/dev/ic/qlw.c
1301
hdr->entry_type = type;
sys/dev/ic/qlw.c
1302
hdr->entry_count = count;
sys/dev/ic/qlw.c
1303
hdr->seqno = 0;
sys/dev/ic/qlw.c
1304
hdr->flags = 0;
sys/dev/ic/qlw.c
1321
qlw_put_header(sc, &marker->hdr, QLW_IOCB_MARKER, 1);
sys/dev/ic/qlw.c
1364
qlw_put_header(sc, &req->hdr, QLW_IOCB_CMD_TYPE_0, entry_count);
sys/dev/ic/qlw.c
1397
qlw_put_header(sc, &cont->hdr, QLW_IOCB_CONT_TYPE_0, 1);
sys/dev/ic/qlw.c
565
struct qlw_iocb_hdr *hdr;
sys/dev/ic/qlw.c
574
hdr = QLW_DMA_KVA(sc->sc_responses) + (id * QLW_QUEUE_ENTRY_SIZE);
sys/dev/ic/qlw.c
580
qlw_get_header(sc, hdr, &entry_type, &flags);
sys/dev/ic/qlw.c
583
status = (struct qlw_iocb_status *)hdr;
sys/dev/ic/qlw.c
595
qlw_dump_iocb(sc, hdr, QLW_D_INTR);
sys/dev/ic/qlw.c
695
qlw_dump_iocb(sc, hdr, QLW_D_INTR);
sys/dev/ic/qlw.c
704
qlw_dump_iocb(sc, hdr, QLW_D_INTR);
sys/dev/ic/qlwreg.h
270
struct qlw_iocb_hdr hdr; /* QLW_IOCB_REQ_TYPE0 */
sys/dev/ic/qlwreg.h
284
struct qlw_iocb_hdr hdr; /* QLW_IOCB_CONT_TYPE_0 */
sys/dev/ic/qlwreg.h
291
struct qlw_iocb_hdr hdr;
sys/dev/ic/qlwreg.h
324
struct qlw_iocb_hdr hdr; /* QLW_IOCB_MARKER */
sys/dev/ic/qwx.c
13447
struct mgmt_rx_event_params *hdr)
sys/dev/ic/qwx.c
13472
hdr->pdev_id = ev->pdev_id;
sys/dev/ic/qwx.c
13473
hdr->chan_freq = le32toh(ev->chan_freq);
sys/dev/ic/qwx.c
13474
hdr->channel = le32toh(ev->channel);
sys/dev/ic/qwx.c
13475
hdr->snr = le32toh(ev->snr);
sys/dev/ic/qwx.c
13476
hdr->rate = le32toh(ev->rate);
sys/dev/ic/qwx.c
13477
hdr->phy_mode = le32toh(ev->phy_mode);
sys/dev/ic/qwx.c
13478
hdr->buf_len = le32toh(ev->buf_len);
sys/dev/ic/qwx.c
13479
hdr->status = le32toh(ev->status);
sys/dev/ic/qwx.c
13480
hdr->flags = le32toh(ev->flags);
sys/dev/ic/qwx.c
13481
hdr->rssi = le32toh(ev->rssi);
sys/dev/ic/qwx.c
13482
hdr->tsf_delta = le32toh(ev->tsf_delta);
sys/dev/ic/qwx.c
13483
memcpy(hdr->rssi_ctl, ev->rssi_ctl, sizeof(hdr->rssi_ctl));
sys/dev/ic/qwx.c
13493
if (hdrlen + hdr->buf_len < hdr->buf_len) {
sys/dev/ic/qwx.c
13498
totlen = hdrlen + hdr->buf_len;
sys/dev/ic/qwx.c
13510
ath11k_ce_byte_swap(skb->data, hdr->buf_len);
sys/dev/ic/qwx.c
13579
hdr->frame_control = __cpu_to_le16(fc &
sys/dev/ic/qwx.c
13586
if (ieee80211_is_beacon(hdr->frame_control))
sys/dev/ic/qwx.c
14243
struct ath11k_htc_hdr *hdr;
sys/dev/ic/qwx.c
14245
hdr = mtod(m, struct ath11k_htc_hdr *);
sys/dev/ic/qwx.c
14247
memset(hdr, 0, sizeof(*hdr));
sys/dev/ic/qwx.c
14248
hdr->htc_info = FIELD_PREP(HTC_HDR_ENDPOINTID, ep->eid) |
sys/dev/ic/qwx.c
14249
FIELD_PREP(HTC_HDR_PAYLOADLEN, (m->m_pkthdr.len - sizeof(*hdr)));
sys/dev/ic/qwx.c
14252
hdr->htc_info |= FIELD_PREP(HTC_HDR_FLAGS,
sys/dev/ic/qwx.c
14257
hdr->ctrl_info = FIELD_PREP(HTC_HDR_CONTROLBYTES1, ep->seq_no++);
sys/dev/ic/qwx.c
16990
(void *)hdr + hdr_len,
sys/dev/ic/qwx.c
17044
(void *)hdr + hdr_len,
sys/dev/ic/qwx.c
17072
struct ieee80211_hdr *hdr;
sys/dev/ic/qwx.c
17086
hdr = (void *)msdu->data;
sys/dev/ic/qwx.c
17109
!ieee80211_has_morefrags(hdr->frame_control) &&
sys/dev/ic/qwx.c
17115
hdr_len = ieee80211_hdrlen(hdr->frame_control);
sys/dev/ic/qwx.c
17974
FIELD_GET(HAL_REO_STATUS_HDR_INFO0_STATUS_NUM, desc->hdr.info0);
sys/dev/ic/qwx.c
17976
FIELD_GET(HAL_REO_STATUS_HDR_INFO0_EXEC_STATUS, desc->hdr.info0);
sys/dev/ic/qwx.c
18040
HAL_REO_STATUS_HDR_INFO0_STATUS_NUM, desc->hdr.info0);
sys/dev/ic/qwx.c
18042
HAL_REO_STATUS_HDR_INFO0_EXEC_STATUS, desc->hdr.info0);
sys/dev/ic/qwx.c
18057
HAL_REO_STATUS_HDR_INFO0_STATUS_NUM, desc->hdr.info0);
sys/dev/ic/qwx.c
18059
HAL_REO_STATUS_HDR_INFO0_EXEC_STATUS, desc->hdr.info0);
sys/dev/ic/qwx.c
18095
HAL_REO_STATUS_HDR_INFO0_STATUS_NUM, desc->hdr.info0);
sys/dev/ic/qwx.c
18097
HAL_REO_STATUS_HDR_INFO0_EXEC_STATUS, desc->hdr.info0);
sys/dev/ic/qwx.c
18119
HAL_REO_STATUS_HDR_INFO0_STATUS_NUM, desc->hdr.info0);
sys/dev/ic/qwx.c
18121
HAL_REO_STATUS_HDR_INFO0_EXEC_STATUS, desc->hdr.info0);
sys/dev/ic/qwx.c
18143
HAL_REO_STATUS_HDR_INFO0_STATUS_NUM, desc->hdr.info0);
sys/dev/ic/qwx.c
18145
HAL_REO_STATUS_HDR_INFO0_EXEC_STATUS, desc->hdr.info0);
sys/dev/ic/qwx.c
21834
if (length < sizeof(record->hdr)) {
sys/dev/ic/qwx.c
21839
if (record->hdr.len > length) {
sys/dev/ic/qwx.c
21842
__func__, record->hdr.len);
sys/dev/ic/qwx.c
21848
switch (record->hdr.id) {
sys/dev/ic/qwx.c
21851
if (record->hdr.len < len) {
sys/dev/ic/qwx.c
21859
record->hdr.len, src_eid);
sys/dev/ic/qwx.c
21863
__func__, record->hdr.id, record->hdr.len);
sys/dev/ic/qwx.c
21872
buffer += sizeof(record->hdr) + record->hdr.len;
sys/dev/ic/qwx.c
21873
length -= sizeof(record->hdr) + record->hdr.len;
sys/dev/ic/qwx.c
21896
struct ath11k_htc_hdr *hdr;
sys/dev/ic/qwx.c
21910
hdr = mtod(m, struct ath11k_htc_hdr *);
sys/dev/ic/qwx.c
21912
eid = FIELD_GET(HTC_HDR_ENDPOINTID, hdr->htc_info);
sys/dev/ic/qwx.c
21916
printf("%s: HTC info: 0x%x\n", __func__, hdr->htc_info);
sys/dev/ic/qwx.c
21917
printf("%s: CTRL info: 0x%x\n", __func__, hdr->ctrl_info);
sys/dev/ic/qwx.c
21923
payload_len = FIELD_GET(HTC_HDR_PAYLOADLEN, hdr->htc_info);
sys/dev/ic/qwx.c
21925
if (payload_len + sizeof(*hdr) > ATH11K_HTC_MAX_LEN) {
sys/dev/ic/qwx.c
21927
payload_len + sizeof(*hdr));
sys/dev/ic/qwx.c
21938
trailer_present = (FIELD_GET(HTC_HDR_FLAGS, hdr->htc_info)) &
sys/dev/ic/qwx.c
21950
trailer_len = FIELD_GET(HTC_HDR_CONTROLBYTES0, hdr->ctrl_info);
sys/dev/ic/qwx.c
21960
trailer = (uint8_t *)hdr;
sys/dev/ic/qwx.c
21961
trailer += sizeof(*hdr);
sys/dev/ic/qwx.c
21977
m_adj(m, sizeof(*hdr));
sys/dev/ic/qwx.c
24421
qwx_hal_reo_set_desc_hdr(struct hal_desc_header *hdr, uint8_t owner, uint8_t buffer_type, uint32_t magic)
sys/dev/ic/qwx.c
24423
hdr->info0 = FIELD_PREP(HAL_DESC_HDR_INFO0_OWNER, owner) |
sys/dev/ic/qwx.c
24427
hdr->info0 |= FIELD_PREP(HAL_DESC_HDR_INFO0_DBG_RESERVED, magic);
sys/dev/ic/qwx.c
25168
!ieee80211_is_data(hdr->frame_control)))
sys/dev/ic/qwx.c
7580
struct qmi_header hdr;
sys/dev/ic/qwx.c
7583
if (size < sizeof(hdr)) {
sys/dev/ic/qwx.c
7589
memcpy(&hdr, mtod(m, void *), sizeof(hdr));
sys/dev/ic/qwx.c
7593
__func__, hdr.type, le16toh(hdr.txn_id),
sys/dev/ic/qwx.c
7594
le16toh(hdr.msg_id), le16toh(hdr.msg_len));
sys/dev/ic/qwx.c
7596
txn_id = le16toh(hdr.txn_id);
sys/dev/ic/qwx.c
7597
msg_id = le16toh(hdr.msg_id);
sys/dev/ic/qwx.c
7598
msg_len = le16toh(hdr.msg_len);
sys/dev/ic/qwx.c
7599
if (sizeof(hdr) + msg_len != size) {
sys/dev/ic/qwx.c
7605
switch (hdr.type) {
sys/dev/ic/qwx.c
7607
m_adj(m, sizeof(hdr));
sys/dev/ic/qwx.c
7611
m_adj(m, sizeof(hdr));
sys/dev/ic/qwx.c
7616
sc->sc_dev.dv_xname, hdr.type);
sys/dev/ic/qwx.c
7624
struct qrtr_hdr_v1 hdr;
sys/dev/ic/qwx.c
7630
totlen = sizeof(hdr) + sizeof(pkt);
sys/dev/ic/qwx.c
7650
memset(&hdr, 0, sizeof(hdr));
sys/dev/ic/qwx.c
7651
hdr.version = htole32(QRTR_PROTO_VER_1);
sys/dev/ic/qwx.c
7652
hdr.type = htole32(QRTR_TYPE_HELLO);
sys/dev/ic/qwx.c
7653
hdr.src_node_id = htole32(0x01); /* TODO make human-readable */
sys/dev/ic/qwx.c
7654
hdr.src_port_id = htole32(0xfffffffeU); /* TODO make human-readable */
sys/dev/ic/qwx.c
7655
hdr.dst_node_id = htole32(0x07); /* TODO make human-readable */
sys/dev/ic/qwx.c
7656
hdr.dst_port_id = htole32(0xfffffffeU); /* TODO make human-readable */
sys/dev/ic/qwx.c
7657
hdr.size = htole32(sizeof(pkt));
sys/dev/ic/qwx.c
7659
err = m_copyback(m, 0, sizeof(hdr), &hdr, M_NOWAIT);
sys/dev/ic/qwx.c
7666
err = m_copyback(m, sizeof(hdr), sizeof(pkt), &pkt, M_NOWAIT);
sys/dev/ic/qwx.c
7688
struct qrtr_hdr_v1 hdr;
sys/dev/ic/qwx.c
7694
totlen = sizeof(hdr) + sizeof(pkt);
sys/dev/ic/qwx.c
7714
memset(&hdr, 0, sizeof(hdr));
sys/dev/ic/qwx.c
7715
hdr.version = htole32(QRTR_PROTO_VER_1);
sys/dev/ic/qwx.c
7716
hdr.type = htole32(QRTR_TYPE_RESUME_TX);
sys/dev/ic/qwx.c
7717
hdr.src_node_id = htole32(0x01); /* TODO make human-readable */
sys/dev/ic/qwx.c
7718
hdr.src_port_id = htole32(0x4000); /* TODO make human-readable */
sys/dev/ic/qwx.c
7719
hdr.dst_node_id = htole32(0x07); /* TODO make human-readable */
sys/dev/ic/qwx.c
7720
hdr.dst_port_id = htole32(0x01); /* TODO make human-readable */
sys/dev/ic/qwx.c
7721
hdr.size = htole32(sizeof(pkt));
sys/dev/ic/qwx.c
7723
err = m_copyback(m, 0, sizeof(hdr), &hdr, M_NOWAIT);
sys/dev/ic/qwx.c
7732
err = m_copyback(m, sizeof(hdr), sizeof(pkt), &pkt, M_NOWAIT);
sys/dev/ic/qwx.c
8017
struct qmi_header hdr;
sys/dev/ic/qwx.c
8105
*encoded_len += sizeof(hdr);
sys/dev/ic/qwx.c
8110
hdr.type = type;
sys/dev/ic/qwx.c
8111
hdr.txn_id = htole16(*txn_id);
sys/dev/ic/qwx.c
8112
hdr.msg_id = htole16(msg_id);
sys/dev/ic/qwx.c
8113
hdr.msg_len = htole16(*encoded_len - sizeof(hdr));
sys/dev/ic/qwx.c
8114
memcpy(*encoded_msg, &hdr, sizeof(hdr));
sys/dev/ic/qwx.c
8118
p = *encoded_msg + sizeof(hdr);
sys/dev/ic/qwx.c
8119
remain = *encoded_len - sizeof(hdr);
sys/dev/ic/qwx.c
8230
type, *txn_id, msg_id, *encoded_len - sizeof(hdr));
sys/dev/ic/qwx.c
8252
struct qrtr_hdr_v1 hdr;
sys/dev/ic/qwx.c
8263
totlen = sizeof(hdr) + encoded_len;
sys/dev/ic/qwx.c
8283
memset(&hdr, 0, sizeof(hdr));
sys/dev/ic/qwx.c
8284
hdr.version = htole32(QRTR_PROTO_VER_1);
sys/dev/ic/qwx.c
8285
hdr.type = htole32(QRTR_TYPE_DATA);
sys/dev/ic/qwx.c
8286
hdr.src_node_id = htole32(0x01); /* TODO make human-readable */
sys/dev/ic/qwx.c
8287
hdr.src_port_id = htole32(0x4000); /* TODO make human-readable */
sys/dev/ic/qwx.c
8288
hdr.dst_node_id = htole32(0x07); /* TODO make human-readable */
sys/dev/ic/qwx.c
8289
hdr.dst_port_id = htole32(0x01); /* TODO make human-readable */
sys/dev/ic/qwx.c
8290
hdr.size = htole32(encoded_len);
sys/dev/ic/qwx.c
8292
err = m_copyback(m, 0, sizeof(hdr), &hdr, M_NOWAIT);
sys/dev/ic/qwx.c
8296
err = m_copyback(m, sizeof(hdr), encoded_len, encoded_msg, M_NOWAIT);
sys/dev/ic/qwx.c
8837
const struct ath11k_fw_ie *hdr;
sys/dev/ic/qwx.c
8848
hdr = buf;
sys/dev/ic/qwx.c
8849
board_ie_id = le32toh(hdr->id);
sys/dev/ic/qwx.c
8850
board_ie_len = le32toh(hdr->len);
sys/dev/ic/qwx.c
8851
board_ie_data = hdr->data;
sys/dev/ic/qwx.c
8853
buf_len -= sizeof(*hdr);
sys/dev/ic/qwx.c
8854
buf += sizeof(*hdr);
sys/dev/ic/qwx.c
8911
struct ath11k_fw_ie *hdr;
sys/dev/ic/qwx.c
8948
hdr = (struct ath11k_fw_ie *)data;
sys/dev/ic/qwx.c
8949
ie_id = le32toh(hdr->id);
sys/dev/ic/qwx.c
8950
ie_len = le32toh(hdr->len);
sys/dev/ic/qwx.c
8952
len -= sizeof(*hdr);
sys/dev/ic/qwx.c
8953
data = hdr->data;
sys/dev/ic/qwxreg.h
10190
struct ath11k_htc_record_hdr hdr;
sys/dev/ic/qwxreg.h
10201
struct ath11k_htc_hdr hdr;
sys/dev/ic/qwxreg.h
13026
uint32_t hdr;
sys/dev/ic/qwxreg.h
13115
struct htt_ext_stats_cfg_hdr hdr;
sys/dev/ic/qwxreg.h
9655
struct hal_reo_status_hdr hdr;
sys/dev/ic/qwxreg.h
9750
struct hal_reo_status_hdr hdr;
sys/dev/ic/qwxreg.h
9785
struct hal_reo_status_hdr hdr;
sys/dev/ic/qwxreg.h
9847
struct hal_reo_status_hdr hdr;
sys/dev/ic/qwxreg.h
9883
struct hal_reo_status_hdr hdr;
sys/dev/ic/qwxreg.h
9926
struct hal_reo_status_hdr hdr;
sys/dev/ic/qwz.c
11141
struct mgmt_rx_event_params *hdr)
sys/dev/ic/qwz.c
11166
hdr->pdev_id = ev->pdev_id;
sys/dev/ic/qwz.c
11167
hdr->chan_freq = le32toh(ev->chan_freq);
sys/dev/ic/qwz.c
11168
hdr->channel = le32toh(ev->channel);
sys/dev/ic/qwz.c
11169
hdr->snr = le32toh(ev->snr);
sys/dev/ic/qwz.c
11170
hdr->rate = le32toh(ev->rate);
sys/dev/ic/qwz.c
11171
hdr->phy_mode = le32toh(ev->phy_mode);
sys/dev/ic/qwz.c
11172
hdr->buf_len = le32toh(ev->buf_len);
sys/dev/ic/qwz.c
11173
hdr->status = le32toh(ev->status);
sys/dev/ic/qwz.c
11174
hdr->flags = le32toh(ev->flags);
sys/dev/ic/qwz.c
11175
hdr->rssi = le32toh(ev->rssi);
sys/dev/ic/qwz.c
11176
hdr->tsf_delta = le32toh(ev->tsf_delta);
sys/dev/ic/qwz.c
11177
memcpy(hdr->rssi_ctl, ev->rssi_ctl, sizeof(hdr->rssi_ctl));
sys/dev/ic/qwz.c
11187
if (hdrlen + hdr->buf_len < hdr->buf_len) {
sys/dev/ic/qwz.c
11192
totlen = hdrlen + hdr->buf_len;
sys/dev/ic/qwz.c
11204
ath12k_ce_byte_swap(skb->data, hdr->buf_len);
sys/dev/ic/qwz.c
11266
if (ieee80211_has_protected(hdr->frame_control) &&
sys/dev/ic/qwz.c
11267
!is_multicast_ether_addr(ieee80211_get_DA(hdr))) {
sys/dev/ic/qwz.c
11273
hdr->frame_control = __cpu_to_le16(fc &
sys/dev/ic/qwz.c
11278
if (ieee80211_is_beacon(hdr->frame_control))
sys/dev/ic/qwz.c
11917
struct ath12k_htc_hdr *hdr;
sys/dev/ic/qwz.c
11919
hdr = mtod(m, struct ath12k_htc_hdr *);
sys/dev/ic/qwz.c
11921
memset(hdr, 0, sizeof(*hdr));
sys/dev/ic/qwz.c
11922
hdr->htc_info = FIELD_PREP(HTC_HDR_ENDPOINTID, ep->eid) |
sys/dev/ic/qwz.c
11923
FIELD_PREP(HTC_HDR_PAYLOADLEN, (m->m_pkthdr.len - sizeof(*hdr)));
sys/dev/ic/qwz.c
11926
hdr->htc_info |= FIELD_PREP(HTC_HDR_FLAGS,
sys/dev/ic/qwz.c
11931
hdr->ctrl_info = FIELD_PREP(HTC_HDR_CONTROLBYTES1, ep->seq_no++);
sys/dev/ic/qwz.c
14447
struct ieee80211_hdr *hdr;
sys/dev/ic/qwz.c
14461
hdr = (void *)msdu->data;
sys/dev/ic/qwz.c
14484
!ieee80211_has_morefrags(hdr->frame_control) &&
sys/dev/ic/qwz.c
14490
hdr_len = ieee80211_hdrlen(hdr->frame_control);
sys/dev/ic/qwz.c
15322
FIELD_GET(HAL_REO_STATUS_HDR_INFO0_STATUS_NUM, desc->hdr.info0);
sys/dev/ic/qwz.c
15324
FIELD_GET(HAL_REO_STATUS_HDR_INFO0_EXEC_STATUS, desc->hdr.info0);
sys/dev/ic/qwz.c
15388
HAL_REO_STATUS_HDR_INFO0_STATUS_NUM, desc->hdr.info0);
sys/dev/ic/qwz.c
15390
HAL_REO_STATUS_HDR_INFO0_EXEC_STATUS, desc->hdr.info0);
sys/dev/ic/qwz.c
15405
HAL_REO_STATUS_HDR_INFO0_STATUS_NUM, desc->hdr.info0);
sys/dev/ic/qwz.c
15407
HAL_REO_STATUS_HDR_INFO0_EXEC_STATUS, desc->hdr.info0);
sys/dev/ic/qwz.c
15443
HAL_REO_STATUS_HDR_INFO0_STATUS_NUM, desc->hdr.info0);
sys/dev/ic/qwz.c
15445
HAL_REO_STATUS_HDR_INFO0_EXEC_STATUS, desc->hdr.info0);
sys/dev/ic/qwz.c
15467
HAL_REO_STATUS_HDR_INFO0_STATUS_NUM, desc->hdr.info0);
sys/dev/ic/qwz.c
15469
HAL_REO_STATUS_HDR_INFO0_EXEC_STATUS, desc->hdr.info0);
sys/dev/ic/qwz.c
15491
HAL_REO_STATUS_HDR_INFO0_STATUS_NUM, desc->hdr.info0);
sys/dev/ic/qwz.c
15493
HAL_REO_STATUS_HDR_INFO0_EXEC_STATUS, desc->hdr.info0);
sys/dev/ic/qwz.c
19105
if (length < sizeof(record->hdr)) {
sys/dev/ic/qwz.c
19110
if (record->hdr.len > length) {
sys/dev/ic/qwz.c
19113
__func__, record->hdr.len);
sys/dev/ic/qwz.c
19118
switch (record->hdr.id) {
sys/dev/ic/qwz.c
19121
if (record->hdr.len < len) {
sys/dev/ic/qwz.c
19129
record->hdr.len, src_eid);
sys/dev/ic/qwz.c
19133
__func__, record->hdr.id, record->hdr.len);
sys/dev/ic/qwz.c
19141
buffer += sizeof(record->hdr) + record->hdr.len;
sys/dev/ic/qwz.c
19142
length -= sizeof(record->hdr) + record->hdr.len;
sys/dev/ic/qwz.c
19165
struct ath12k_htc_hdr *hdr;
sys/dev/ic/qwz.c
19179
hdr = mtod(m, struct ath12k_htc_hdr *);
sys/dev/ic/qwz.c
19181
eid = FIELD_GET(HTC_HDR_ENDPOINTID, hdr->htc_info);
sys/dev/ic/qwz.c
19185
printf("%s: HTC info: 0x%x\n", __func__, hdr->htc_info);
sys/dev/ic/qwz.c
19186
printf("%s: CTRL info: 0x%x\n", __func__, hdr->ctrl_info);
sys/dev/ic/qwz.c
19192
payload_len = FIELD_GET(HTC_HDR_PAYLOADLEN, hdr->htc_info);
sys/dev/ic/qwz.c
19194
if (payload_len + sizeof(*hdr) > ATH12K_HTC_MAX_LEN) {
sys/dev/ic/qwz.c
19196
payload_len + sizeof(*hdr));
sys/dev/ic/qwz.c
19207
trailer_present = (FIELD_GET(HTC_HDR_FLAGS, hdr->htc_info)) &
sys/dev/ic/qwz.c
19219
trailer_len = FIELD_GET(HTC_HDR_CONTROLBYTES0, hdr->ctrl_info);
sys/dev/ic/qwz.c
19229
trailer = (uint8_t *)hdr;
sys/dev/ic/qwz.c
19230
trailer += sizeof(*hdr);
sys/dev/ic/qwz.c
19246
m_adj(m, sizeof(*hdr));
sys/dev/ic/qwz.c
21585
qwz_hal_reo_set_desc_hdr(struct hal_desc_header *hdr, uint8_t owner, uint8_t buffer_type, uint32_t magic)
sys/dev/ic/qwz.c
21587
hdr->info0 = FIELD_PREP(HAL_DESC_HDR_INFO0_OWNER, owner) |
sys/dev/ic/qwz.c
21591
hdr->info0 |= FIELD_PREP(HAL_DESC_HDR_INFO0_DBG_RESERVED, magic);
sys/dev/ic/qwz.c
22287
!ieee80211_is_data(hdr->frame_control)))
sys/dev/ic/qwz.c
22552
if ((ieee80211_is_action(hdr->frame_control) ||
sys/dev/ic/qwz.c
22553
ieee80211_is_deauth(hdr->frame_control) ||
sys/dev/ic/qwz.c
22554
ieee80211_is_disassoc(hdr->frame_control)) &&
sys/dev/ic/qwz.c
22555
ieee80211_has_protected(hdr->frame_control)) {
sys/dev/ic/qwz.c
5063
struct qmi_header hdr;
sys/dev/ic/qwz.c
5066
if (size < sizeof(hdr)) {
sys/dev/ic/qwz.c
5072
memcpy(&hdr, mtod(m, void *), sizeof(hdr));
sys/dev/ic/qwz.c
5076
__func__, hdr.type, le16toh(hdr.txn_id),
sys/dev/ic/qwz.c
5077
le16toh(hdr.msg_id), le16toh(hdr.msg_len));
sys/dev/ic/qwz.c
5079
txn_id = le16toh(hdr.txn_id);
sys/dev/ic/qwz.c
5080
msg_id = le16toh(hdr.msg_id);
sys/dev/ic/qwz.c
5081
msg_len = le16toh(hdr.msg_len);
sys/dev/ic/qwz.c
5082
if (sizeof(hdr) + msg_len != size) {
sys/dev/ic/qwz.c
5088
switch (hdr.type) {
sys/dev/ic/qwz.c
5090
m_adj(m, sizeof(hdr));
sys/dev/ic/qwz.c
5094
m_adj(m, sizeof(hdr));
sys/dev/ic/qwz.c
5099
sc->sc_dev.dv_xname, hdr.type);
sys/dev/ic/qwz.c
5107
struct qrtr_hdr_v1 hdr;
sys/dev/ic/qwz.c
5113
totlen = sizeof(hdr) + sizeof(pkt);
sys/dev/ic/qwz.c
5133
memset(&hdr, 0, sizeof(hdr));
sys/dev/ic/qwz.c
5134
hdr.version = htole32(QRTR_PROTO_VER_1);
sys/dev/ic/qwz.c
5135
hdr.type = htole32(QRTR_TYPE_HELLO);
sys/dev/ic/qwz.c
5136
hdr.src_node_id = htole32(0x01); /* TODO make human-readable */
sys/dev/ic/qwz.c
5137
hdr.src_port_id = htole32(0xfffffffeU); /* TODO make human-readable */
sys/dev/ic/qwz.c
5138
hdr.dst_node_id = htole32(0x07); /* TODO make human-readable */
sys/dev/ic/qwz.c
5139
hdr.dst_port_id = htole32(0xfffffffeU); /* TODO make human-readable */
sys/dev/ic/qwz.c
5140
hdr.size = htole32(sizeof(pkt));
sys/dev/ic/qwz.c
5142
err = m_copyback(m, 0, sizeof(hdr), &hdr, M_NOWAIT);
sys/dev/ic/qwz.c
5149
err = m_copyback(m, sizeof(hdr), sizeof(pkt), &pkt, M_NOWAIT);
sys/dev/ic/qwz.c
5171
struct qrtr_hdr_v1 hdr;
sys/dev/ic/qwz.c
5177
totlen = sizeof(hdr) + sizeof(pkt);
sys/dev/ic/qwz.c
5197
memset(&hdr, 0, sizeof(hdr));
sys/dev/ic/qwz.c
5198
hdr.version = htole32(QRTR_PROTO_VER_1);
sys/dev/ic/qwz.c
5199
hdr.type = htole32(QRTR_TYPE_RESUME_TX);
sys/dev/ic/qwz.c
5200
hdr.src_node_id = htole32(0x01); /* TODO make human-readable */
sys/dev/ic/qwz.c
5201
hdr.src_port_id = htole32(0x4000); /* TODO make human-readable */
sys/dev/ic/qwz.c
5202
hdr.dst_node_id = htole32(0x07); /* TODO make human-readable */
sys/dev/ic/qwz.c
5203
hdr.dst_port_id = htole32(0x01); /* TODO make human-readable */
sys/dev/ic/qwz.c
5204
hdr.size = htole32(sizeof(pkt));
sys/dev/ic/qwz.c
5206
err = m_copyback(m, 0, sizeof(hdr), &hdr, M_NOWAIT);
sys/dev/ic/qwz.c
5215
err = m_copyback(m, sizeof(hdr), sizeof(pkt), &pkt, M_NOWAIT);
sys/dev/ic/qwz.c
5500
struct qmi_header hdr;
sys/dev/ic/qwz.c
5588
*encoded_len += sizeof(hdr);
sys/dev/ic/qwz.c
5593
hdr.type = type;
sys/dev/ic/qwz.c
5594
hdr.txn_id = htole16(*txn_id);
sys/dev/ic/qwz.c
5595
hdr.msg_id = htole16(msg_id);
sys/dev/ic/qwz.c
5596
hdr.msg_len = htole16(*encoded_len - sizeof(hdr));
sys/dev/ic/qwz.c
5597
memcpy(*encoded_msg, &hdr, sizeof(hdr));
sys/dev/ic/qwz.c
5601
p = *encoded_msg + sizeof(hdr);
sys/dev/ic/qwz.c
5602
remain = *encoded_len - sizeof(hdr);
sys/dev/ic/qwz.c
5713
type, *txn_id, msg_id, *encoded_len - sizeof(hdr));
sys/dev/ic/qwz.c
5735
struct qrtr_hdr_v1 hdr;
sys/dev/ic/qwz.c
5746
totlen = sizeof(hdr) + encoded_len;
sys/dev/ic/qwz.c
5766
memset(&hdr, 0, sizeof(hdr));
sys/dev/ic/qwz.c
5767
hdr.version = htole32(QRTR_PROTO_VER_1);
sys/dev/ic/qwz.c
5768
hdr.type = htole32(QRTR_TYPE_DATA);
sys/dev/ic/qwz.c
5769
hdr.src_node_id = htole32(0x01); /* TODO make human-readable */
sys/dev/ic/qwz.c
5770
hdr.src_port_id = htole32(0x4000); /* TODO make human-readable */
sys/dev/ic/qwz.c
5771
hdr.dst_node_id = htole32(0x07); /* TODO make human-readable */
sys/dev/ic/qwz.c
5772
hdr.dst_port_id = htole32(0x01); /* TODO make human-readable */
sys/dev/ic/qwz.c
5773
hdr.size = htole32(encoded_len);
sys/dev/ic/qwz.c
5775
err = m_copyback(m, 0, sizeof(hdr), &hdr, M_NOWAIT);
sys/dev/ic/qwz.c
5779
err = m_copyback(m, sizeof(hdr), encoded_len, encoded_msg, M_NOWAIT);
sys/dev/ic/qwz.c
6297
const struct ath12k_fw_ie *hdr;
sys/dev/ic/qwz.c
6308
hdr = buf;
sys/dev/ic/qwz.c
6309
board_ie_id = le32toh(hdr->id);
sys/dev/ic/qwz.c
6310
board_ie_len = le32toh(hdr->len);
sys/dev/ic/qwz.c
6311
board_ie_data = hdr->data;
sys/dev/ic/qwz.c
6313
buf_len -= sizeof(*hdr);
sys/dev/ic/qwz.c
6314
buf += sizeof(*hdr);
sys/dev/ic/qwz.c
6371
struct ath12k_fw_ie *hdr;
sys/dev/ic/qwz.c
6408
hdr = (struct ath12k_fw_ie *)data;
sys/dev/ic/qwz.c
6409
ie_id = le32toh(hdr->id);
sys/dev/ic/qwz.c
6410
ie_len = le32toh(hdr->len);
sys/dev/ic/qwz.c
6412
len -= sizeof(*hdr);
sys/dev/ic/qwz.c
6413
data = hdr->data;
sys/dev/ic/qwzreg.h
10087
struct hal_reo_status_hdr hdr;
sys/dev/ic/qwzreg.h
10182
struct hal_reo_status_hdr hdr;
sys/dev/ic/qwzreg.h
10217
struct hal_reo_status_hdr hdr;
sys/dev/ic/qwzreg.h
10279
struct hal_reo_status_hdr hdr;
sys/dev/ic/qwzreg.h
10315
struct hal_reo_status_hdr hdr;
sys/dev/ic/qwzreg.h
10358
struct hal_reo_status_hdr hdr;
sys/dev/ic/qwzreg.h
10678
struct ath12k_htc_record_hdr hdr;
sys/dev/ic/qwzreg.h
10689
struct ath12k_htc_hdr hdr;
sys/dev/ic/qwzreg.h
13556
uint32_t hdr;
sys/dev/ic/qwzreg.h
13645
struct htt_ext_stats_cfg_hdr hdr;
sys/dev/ic/qwzvar.h
312
struct ieee80211_hdr *hdr);
sys/dev/ic/rtwn.c
1753
const struct r92c_fw_hdr *hdr;
sys/dev/ic/rtwn.c
1764
if (len < sizeof(*hdr)) {
sys/dev/ic/rtwn.c
1770
hdr = (const struct r92c_fw_hdr *)ptr;
sys/dev/ic/rtwn.c
1772
if ((letoh16(hdr->signature) >> 4) == 0x230 ||
sys/dev/ic/rtwn.c
1773
(letoh16(hdr->signature) >> 4) == 0x88c ||
sys/dev/ic/rtwn.c
1774
(letoh16(hdr->signature) >> 4) == 0x88e ||
sys/dev/ic/rtwn.c
1775
(letoh16(hdr->signature) >> 4) == 0x88f ||
sys/dev/ic/rtwn.c
1776
(letoh16(hdr->signature) >> 4) == 0x92c ||
sys/dev/ic/rtwn.c
1777
(letoh16(hdr->signature) >> 4) == 0x92e) {
sys/dev/ic/rtwn.c
1779
letoh16(hdr->version), letoh16(hdr->subversion),
sys/dev/ic/rtwn.c
1780
hdr->month, hdr->date, hdr->hour, hdr->minute));
sys/dev/ic/rtwn.c
1781
ptr += sizeof(*hdr);
sys/dev/ic/rtwn.c
1782
len -= sizeof(*hdr);
sys/dev/ic/ufshci.c
1012
ucd->cmd.hdr.tc = UPIU_TC_I2T_COMMAND;
sys/dev/ic/ufshci.c
1013
ucd->cmd.hdr.flags = (1 << 6); /* Bit-5 = Write, Bit-6 = Read */
sys/dev/ic/ufshci.c
1014
ucd->cmd.hdr.lun = 0;
sys/dev/ic/ufshci.c
1015
ucd->cmd.hdr.task_tag = slot;
sys/dev/ic/ufshci.c
1016
ucd->cmd.hdr.cmd_set_type = 0; /* SCSI command */
sys/dev/ic/ufshci.c
1017
ucd->cmd.hdr.query = 0;
sys/dev/ic/ufshci.c
1018
ucd->cmd.hdr.response = 0;
sys/dev/ic/ufshci.c
1019
ucd->cmd.hdr.status = 0;
sys/dev/ic/ufshci.c
1020
ucd->cmd.hdr.ehs_len = 0;
sys/dev/ic/ufshci.c
1021
ucd->cmd.hdr.device_info = 0;
sys/dev/ic/ufshci.c
1022
ucd->cmd.hdr.ds_len = 0;
sys/dev/ic/ufshci.c
1126
ucd->cmd.hdr.tc = UPIU_TC_I2T_COMMAND;
sys/dev/ic/ufshci.c
1128
ucd->cmd.hdr.flags = (1 << 6); /* Bit-6 = Read */
sys/dev/ic/ufshci.c
1130
ucd->cmd.hdr.flags = (1 << 5); /* Bit-5 = Write */
sys/dev/ic/ufshci.c
1131
ucd->cmd.hdr.lun = 0;
sys/dev/ic/ufshci.c
1132
ucd->cmd.hdr.task_tag = slot;
sys/dev/ic/ufshci.c
1133
ucd->cmd.hdr.cmd_set_type = 0; /* SCSI command */
sys/dev/ic/ufshci.c
1134
ucd->cmd.hdr.query = 0;
sys/dev/ic/ufshci.c
1135
ucd->cmd.hdr.response = 0;
sys/dev/ic/ufshci.c
1136
ucd->cmd.hdr.status = 0;
sys/dev/ic/ufshci.c
1137
ucd->cmd.hdr.ehs_len = 0;
sys/dev/ic/ufshci.c
1138
ucd->cmd.hdr.device_info = 0;
sys/dev/ic/ufshci.c
1139
ucd->cmd.hdr.ds_len = 0;
sys/dev/ic/ufshci.c
1244
ucd->cmd.hdr.tc = UPIU_TC_I2T_COMMAND;
sys/dev/ic/ufshci.c
1245
ucd->cmd.hdr.flags = 0; /* No data transfer */
sys/dev/ic/ufshci.c
1246
ucd->cmd.hdr.lun = 0;
sys/dev/ic/ufshci.c
1247
ucd->cmd.hdr.task_tag = slot;
sys/dev/ic/ufshci.c
1248
ucd->cmd.hdr.cmd_set_type = 0; /* SCSI command */
sys/dev/ic/ufshci.c
1249
ucd->cmd.hdr.query = 0;
sys/dev/ic/ufshci.c
1250
ucd->cmd.hdr.response = 0;
sys/dev/ic/ufshci.c
1251
ucd->cmd.hdr.status = 0;
sys/dev/ic/ufshci.c
1252
ucd->cmd.hdr.ehs_len = 0;
sys/dev/ic/ufshci.c
1253
ucd->cmd.hdr.device_info = 0;
sys/dev/ic/ufshci.c
1254
ucd->cmd.hdr.ds_len = 0;
sys/dev/ic/ufshci.c
1814
__func__, ccb->ccb_slot, utrd->dw2, ucd->rsp.hdr.tc);
sys/dev/ic/ufshci.c
1849
__func__, ccb->ccb_slot, utrd->dw2, ucd->rsp.hdr.tc);
sys/dev/ic/ufshci.c
1944
my->ucd.cmd.hdr.tc = UPIU_TC_I2T_COMMAND;
sys/dev/ic/ufshci.c
1945
my->ucd.cmd.hdr.flags = (1 << 5); /* Bit-5 = Write */
sys/dev/ic/ufshci.c
1947
my->ucd.cmd.hdr.lun = 0;
sys/dev/ic/ufshci.c
1948
my->ucd.cmd.hdr.task_tag = slot;
sys/dev/ic/ufshci.c
1949
my->ucd.cmd.hdr.cmd_set_type = 0; /* SCSI command */
sys/dev/ic/ufshci.c
1950
my->ucd.cmd.hdr.query = 0;
sys/dev/ic/ufshci.c
1951
my->ucd.cmd.hdr.response = 0;
sys/dev/ic/ufshci.c
1952
my->ucd.cmd.hdr.status = 0;
sys/dev/ic/ufshci.c
1953
my->ucd.cmd.hdr.ehs_len = 0;
sys/dev/ic/ufshci.c
1954
my->ucd.cmd.hdr.device_info = 0;
sys/dev/ic/ufshci.c
1955
my->ucd.cmd.hdr.ds_len = 0;
sys/dev/ic/ufshci.c
597
ucd->cmd.hdr.tc = UPIU_TC_I2T_NOP_OUT;
sys/dev/ic/ufshci.c
598
ucd->cmd.hdr.flags = 0;
sys/dev/ic/ufshci.c
599
ucd->cmd.hdr.lun = 0;
sys/dev/ic/ufshci.c
600
ucd->cmd.hdr.task_tag = slot;
sys/dev/ic/ufshci.c
601
ucd->cmd.hdr.cmd_set_type = 0; /* SCSI command */
sys/dev/ic/ufshci.c
602
ucd->cmd.hdr.query = 0;
sys/dev/ic/ufshci.c
603
ucd->cmd.hdr.response = 0;
sys/dev/ic/ufshci.c
604
ucd->cmd.hdr.status = 0;
sys/dev/ic/ufshci.c
605
ucd->cmd.hdr.ehs_len = 0;
sys/dev/ic/ufshci.c
606
ucd->cmd.hdr.device_info = 0;
sys/dev/ic/ufshci.c
607
ucd->cmd.hdr.ds_len = 0;
sys/dev/ic/ufshci.c
688
ucd->cmd.hdr.tc = UPIU_TC_I2T_COMMAND;
sys/dev/ic/ufshci.c
689
ucd->cmd.hdr.flags = (1 << 6); /* Bit-5 = Write, Bit-6 = Read */
sys/dev/ic/ufshci.c
690
ucd->cmd.hdr.lun = 0;
sys/dev/ic/ufshci.c
691
ucd->cmd.hdr.task_tag = slot;
sys/dev/ic/ufshci.c
692
ucd->cmd.hdr.cmd_set_type = 0; /* SCSI command */
sys/dev/ic/ufshci.c
693
ucd->cmd.hdr.query = 0;
sys/dev/ic/ufshci.c
694
ucd->cmd.hdr.response = 0;
sys/dev/ic/ufshci.c
695
ucd->cmd.hdr.status = 0;
sys/dev/ic/ufshci.c
696
ucd->cmd.hdr.ehs_len = 0;
sys/dev/ic/ufshci.c
697
ucd->cmd.hdr.device_info = 0;
sys/dev/ic/ufshci.c
698
ucd->cmd.hdr.ds_len = 0;
sys/dev/ic/ufshci.c
796
ucd->cmd.hdr.tc = UPIU_TC_I2T_COMMAND;
sys/dev/ic/ufshci.c
797
ucd->cmd.hdr.flags = (1 << 6); /* Bit-5 = Write, Bit-6 = Read */
sys/dev/ic/ufshci.c
798
ucd->cmd.hdr.lun = 0;
sys/dev/ic/ufshci.c
799
ucd->cmd.hdr.task_tag = slot;
sys/dev/ic/ufshci.c
800
ucd->cmd.hdr.cmd_set_type = 0; /* SCSI command */
sys/dev/ic/ufshci.c
801
ucd->cmd.hdr.query = 0;
sys/dev/ic/ufshci.c
802
ucd->cmd.hdr.response = 0;
sys/dev/ic/ufshci.c
803
ucd->cmd.hdr.status = 0;
sys/dev/ic/ufshci.c
804
ucd->cmd.hdr.ehs_len = 0;
sys/dev/ic/ufshci.c
805
ucd->cmd.hdr.device_info = 0;
sys/dev/ic/ufshci.c
806
ucd->cmd.hdr.ds_len = 0;
sys/dev/ic/ufshci.c
902
ucd->cmd.hdr.tc = UPIU_TC_I2T_COMMAND;
sys/dev/ic/ufshci.c
903
ucd->cmd.hdr.flags = (1 << 6); /* Bit-5 = Write, Bit-6 = Read */
sys/dev/ic/ufshci.c
904
ucd->cmd.hdr.lun = 0;
sys/dev/ic/ufshci.c
905
ucd->cmd.hdr.task_tag = slot;
sys/dev/ic/ufshci.c
906
ucd->cmd.hdr.cmd_set_type = 0; /* SCSI command */
sys/dev/ic/ufshci.c
907
ucd->cmd.hdr.query = 0;
sys/dev/ic/ufshci.c
908
ucd->cmd.hdr.response = 0;
sys/dev/ic/ufshci.c
909
ucd->cmd.hdr.status = 0;
sys/dev/ic/ufshci.c
910
ucd->cmd.hdr.ehs_len = 0;
sys/dev/ic/ufshci.c
911
ucd->cmd.hdr.device_info = 0;
sys/dev/ic/ufshci.c
912
ucd->cmd.hdr.ds_len = 0;
sys/dev/ic/ufshcireg.h
368
struct upiu_hdr hdr;
sys/dev/ic/ufshcireg.h
374
struct upiu_hdr hdr;
sys/dev/pci/arc.c
2307
bufhdr->hdr = arc_fw_hdr;
sys/dev/pci/arc.c
2477
if (memcmp(&bufhdr->hdr, &arc_fw_hdr, sizeof(bufhdr->hdr)) != 0) {
sys/dev/pci/arc.c
288
struct arc_fw_hdr hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_bios.c
491
struct acpi_table_header *hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_bios.c
496
if (!ACPI_SUCCESS(acpi_get_table("VFCT", 1, &hdr)))
sys/dev/pci/drm/amd/amdgpu/amdgpu_bios.c
498
tbl_size = hdr->length;
sys/dev/pci/drm/amd/amdgpu/amdgpu_bios.c
504
vfct = (UEFI_ACPI_VFCT *)hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_bios.c
508
GOP_VBIOS_CONTENT *vbios = (GOP_VBIOS_CONTENT *)((char *)hdr + offset);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
249
const struct smc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
375
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
376
amdgpu_ucode_print_smc_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
377
adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
378
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
379
ucode_start_address = le32_to_cpu(hdr->ucode_start_addr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cgs.c
381
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
101
hdr->notify_type = MCE;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
105
hdr->notify_type = CMC;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
107
hdr->notify_type = MCE;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
115
__inc_entry_length(hdr, HDR_LEN);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
150
struct cper_hdr *hdr,
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
160
section_desc = (struct cper_sec_desc *)((uint8_t *)hdr + SEC_DESC_OFFSET(idx));
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
161
section = (struct cper_sec_crashdump_fatal *)((uint8_t *)hdr +
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
162
FATAL_SEC_OFFSET(hdr->sec_cnt, idx));
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
166
FATAL_SEC_OFFSET(hdr->sec_cnt, idx));
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
172
__inc_entry_length(hdr, SEC_DESC_LEN + FATAL_SEC_LEN);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
179
struct cper_hdr *hdr,
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
193
section_desc = (struct cper_sec_desc *)((uint8_t *)hdr + SEC_DESC_OFFSET(idx));
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
194
section = (struct cper_sec_nonstd_err *)((uint8_t *)hdr +
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
195
NONSTD_SEC_OFFSET(hdr->sec_cnt, idx));
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
199
NONSTD_SEC_OFFSET(hdr->sec_cnt, idx));
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
203
section->hdr.valid_bits.err_info_cnt = 1;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
204
section->hdr.valid_bits.err_context_cnt = 1;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
213
__inc_entry_length(hdr, SEC_DESC_LEN + NONSTD_SEC_LEN);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
220
struct cper_hdr *hdr,
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
230
section_desc = (struct cper_sec_desc *)((uint8_t *)hdr + SEC_DESC_OFFSET(idx));
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
231
section = (struct cper_sec_nonstd_err *)((uint8_t *)hdr +
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
232
NONSTD_SEC_OFFSET(hdr->sec_cnt, idx));
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
236
NONSTD_SEC_OFFSET(hdr->sec_cnt, idx));
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
238
section->hdr.valid_bits.err_info_cnt = 1;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
239
section->hdr.valid_bits.err_context_cnt = 1;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
268
__inc_entry_length(hdr, SEC_DESC_LEN + NONSTD_SEC_LEN);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
278
struct cper_hdr *hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
300
hdr = kzalloc(size, GFP_KERNEL);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
301
if (!hdr)
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
305
hdr->sec_cnt = section_count;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
307
return hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
38
static void __inc_entry_length(struct cper_hdr *hdr, uint32_t size)
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
40
hdr->record_length += size;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
63
struct cper_hdr *hdr,
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
69
hdr->signature[0] = 'C';
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
70
hdr->signature[1] = 'P';
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
71
hdr->signature[2] = 'E';
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
72
hdr->signature[3] = 'R';
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
73
hdr->revision = CPER_HDR_REV_1;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
74
hdr->signature_end = 0xFFFFFFFF;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
75
hdr->error_severity = sev;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
77
hdr->valid_bits.platform_id = 1;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
78
hdr->valid_bits.timestamp = 1;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
80
amdgpu_cper_get_timestamp(&hdr->timestamp);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
87
memcpy(hdr->record_id, record_id, 8);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
89
snprintf(hdr->platform_id, 16, "0x%04X:0x%04X",
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
92
snprintf(hdr->creator_id, 16, "%s", CPER_CREATOR_ID_AMDGPU);
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
97
hdr->notify_type = BOOT;
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.h
71
struct cper_hdr *hdr,
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.h
75
struct cper_hdr *hdr,
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.h
79
struct cper_hdr *hdr,
sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.h
85
struct cper_hdr *hdr,
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
2661
const struct gpu_info_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
2707
hdr = (const struct gpu_info_firmware_header_v1_0 *)adev->firmware.gpu_info_fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
2708
amdgpu_ucode_print_gpu_info_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
2710
switch (hdr->version_major) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
2715
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
2741
if (hdr->version_minor >= 1) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
2744
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
2756
if (hdr->version_minor == 2) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
2759
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
2766
"Unsupported gpu_info table %d\n", hdr->header.ucode_version);
sys/dev/pci/drm/amd/amdgpu/amdgpu_isp.c
73
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_isp.c
89
hdr = (const struct common_firmware_header *)adev->isp.fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_isp.c
96
ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
2858
struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
2869
hdr = (struct common_firmware_header *)
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
2871
amdgpu_ucode_print_sdma_hdr(hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
2874
hdr = (struct common_firmware_header *)adev->gfx.ce_fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
2875
amdgpu_ucode_print_gfx_hdr(hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
2878
hdr = (struct common_firmware_header *)adev->gfx.pfp_fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
2879
amdgpu_ucode_print_gfx_hdr(hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
2882
hdr = (struct common_firmware_header *)adev->gfx.me_fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
2883
amdgpu_ucode_print_gfx_hdr(hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
2886
hdr = (struct common_firmware_header *)adev->gfx.mec_fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
2887
amdgpu_ucode_print_gfx_hdr(hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
2890
hdr = (struct common_firmware_header *)adev->gfx.rlc_fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
2891
amdgpu_ucode_print_rlc_hdr(hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
2894
hdr = (struct common_firmware_header *)adev->pm.fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
2895
amdgpu_ucode_print_smc_hdr(hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
3959
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
3972
hdr = (const struct common_firmware_header *)adev->psp.ta_fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
3973
switch (le16_to_cpu(hdr->header_version_major)) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp_ta.c
38
const struct common_firmware_header *hdr =
sys/dev/pci/drm/amd/amdgpu/amdgpu_psp_ta.c
41
return hdr->ucode_version;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1383
struct amdgpu_ras_eeprom_table_header *hdr = &control->tbl_hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1413
__decode_table_header_from_buf(hdr, buf);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1415
if (hdr->header != RAS_TABLE_HDR_VAL &&
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1416
hdr->header != RAS_TABLE_HDR_BAD) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1421
switch (hdr->version) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1424
control->ras_num_recs = RAS_NUM_RECS_V2_1(hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1429
control->ras_num_recs = RAS_NUM_RECS(hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1436
hdr->version);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1447
control->ras_fri = RAS_OFFSET_TO_INDEX(control, hdr->first_rec_offset);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1456
struct amdgpu_ras_eeprom_table_header *hdr = &control->tbl_hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1472
if (hdr->header == RAS_TABLE_HDR_VAL) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1477
if (hdr->version >= RAS_TABLE_VER_V2_1) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1497
} else if (hdr->header == RAS_TABLE_HDR_BAD &&
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1499
if (hdr->version >= RAS_TABLE_VER_V2_1) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
237
__encode_table_header_to_buf(struct amdgpu_ras_eeprom_table_header *hdr,
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
242
pp[0] = cpu_to_le32(hdr->header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
243
pp[1] = cpu_to_le32(hdr->version);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
244
pp[2] = cpu_to_le32(hdr->first_rec_offset);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
245
pp[3] = cpu_to_le32(hdr->tbl_size);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
246
pp[4] = cpu_to_le32(hdr->checksum);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
250
__decode_table_header_from_buf(struct amdgpu_ras_eeprom_table_header *hdr,
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
255
hdr->header = le32_to_cpu(pp[0]);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
256
hdr->version = le32_to_cpu(pp[1]);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
257
hdr->first_rec_offset = le32_to_cpu(pp[2]);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
258
hdr->tbl_size = le32_to_cpu(pp[3]);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
259
hdr->checksum = le32_to_cpu(pp[4]);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
393
struct amdgpu_ras_eeprom_table_header *hdr = &control->tbl_hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
398
csum = -hdr->checksum;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
400
hh = (void *) &hdr->header;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
406
hdr->header = header;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
407
hdr->checksum = csum;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
417
struct amdgpu_ras_eeprom_table_header *hdr = &control->tbl_hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
421
hdr->version = RAS_TABLE_VER_V2_1;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
425
hdr->version = RAS_TABLE_VER_V3;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
428
hdr->version = RAS_TABLE_VER_V1;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
443
struct amdgpu_ras_eeprom_table_header *hdr = &control->tbl_hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
451
hdr->header = RAS_TABLE_HDR_VAL;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
454
if (hdr->version >= RAS_TABLE_VER_V2_1) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
455
hdr->first_rec_offset = RAS_RECORD_START_V2_1;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
456
hdr->tbl_size = RAS_TABLE_HEADER_SIZE +
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
467
hdr->first_rec_offset = RAS_RECORD_START;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
468
hdr->tbl_size = RAS_TABLE_HEADER_SIZE;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
472
if (hdr->version >= RAS_TABLE_VER_V2_1)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
475
hdr->checksum = csum;
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
477
if (!res && hdr->version > RAS_TABLE_VER_V1)
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
203
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
207
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
208
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
209
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
211
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
215
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
216
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
217
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
219
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
223
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
224
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
225
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
227
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
231
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
232
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
233
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
235
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
239
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
240
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/pci/drm/amd/amdgpu/amdgpu_rlc.c
241
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/pci/drm/amd/amdgpu/amdgpu_sdma.c
154
const struct sdma_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_sdma.c
164
hdr = (const struct sdma_firmware_header_v1_0 *)sdma_inst->fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_sdma.c
165
sdma_inst->fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/pci/drm/amd/amdgpu/amdgpu_sdma.c
166
sdma_inst->feature_version = le32_to_cpu(hdr->ucode_feature_version);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
109
void amdgpu_ucode_print_gfx_hdr(const struct common_firmware_header *hdr)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
111
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
112
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
115
amdgpu_ucode_print_common_hdr(hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
119
container_of(hdr, struct gfx_firmware_header_v1_0, header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
127
container_of(hdr, struct gfx_firmware_header_v2_0, header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
136
void amdgpu_ucode_print_rlc_hdr(const struct common_firmware_header *hdr)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
138
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
139
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
142
amdgpu_ucode_print_common_hdr(hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
146
container_of(hdr, struct rlc_firmware_header_v1_0, header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
160
container_of(hdr, struct rlc_firmware_header_v2_0, header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
299
void amdgpu_ucode_print_sdma_hdr(const struct common_firmware_header *hdr)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
301
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
302
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
305
amdgpu_ucode_print_common_hdr(hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
309
container_of(hdr, struct sdma_firmware_header_v1_0, header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
324
container_of(hdr, struct sdma_firmware_header_v2_0, header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
335
container_of(hdr, struct sdma_firmware_header_v3_0, header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
345
void amdgpu_ucode_print_psp_hdr(const struct common_firmware_header *hdr)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
347
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
348
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
353
amdgpu_ucode_print_common_hdr(hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
357
container_of(hdr, struct psp_firmware_header_v1_0, header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
38
static void amdgpu_ucode_print_common_hdr(const struct common_firmware_header *hdr)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
40
DRM_DEBUG("size_bytes: %u\n", le32_to_cpu(hdr->size_bytes));
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
41
DRM_DEBUG("header_size_bytes: %u\n", le32_to_cpu(hdr->header_size_bytes));
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
417
container_of(hdr, struct psp_firmware_header_v2_0, header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
42
DRM_DEBUG("header_version_major: %u\n", le16_to_cpu(hdr->header_version_major));
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
43
DRM_DEBUG("header_version_minor: %u\n", le16_to_cpu(hdr->header_version_minor));
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
44
DRM_DEBUG("ip_version_major: %u\n", le16_to_cpu(hdr->ip_version_major));
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
45
DRM_DEBUG("ip_version_minor: %u\n", le16_to_cpu(hdr->ip_version_minor));
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
46
DRM_DEBUG("ucode_version: 0x%08x\n", le32_to_cpu(hdr->ucode_version));
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
47
DRM_DEBUG("ucode_size_bytes: %u\n", le32_to_cpu(hdr->ucode_size_bytes));
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
49
le32_to_cpu(hdr->ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
492
void amdgpu_ucode_print_gpu_info_hdr(const struct common_firmware_header *hdr)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
494
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
495
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
498
amdgpu_ucode_print_common_hdr(hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
50
DRM_DEBUG("crc32: 0x%08x\n", le32_to_cpu(hdr->crc32));
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
502
container_of(hdr, struct gpu_info_firmware_header_v1_0, header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
515
const struct common_firmware_header *hdr =
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
518
if (fw->size == le32_to_cpu(hdr->size_bytes))
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
524
bool amdgpu_ucode_hdr_version(union amdgpu_firmware_header *hdr,
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
527
if ((hdr->common.header_version_major == hdr_major) &&
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
528
(hdr->common.header_version_minor == hdr_minor))
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
53
void amdgpu_ucode_print_mc_hdr(const struct common_firmware_header *hdr)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
55
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
56
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
59
amdgpu_ucode_print_common_hdr(hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
63
container_of(hdr, struct mc_firmware_header_v1_0, header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
74
void amdgpu_ucode_print_smc_hdr(const struct common_firmware_header *hdr)
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
76
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
77
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
83
amdgpu_ucode_print_common_hdr(hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
86
v1_0_hdr = container_of(hdr, struct smc_firmware_header_v1_0, header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
91
v2_0_hdr = container_of(hdr, struct smc_firmware_header_v2_0, v1_0.header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
96
v2_1_hdr = container_of(hdr, struct smc_firmware_header_v2_1, v1_0.header);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.h
613
void amdgpu_ucode_print_mc_hdr(const struct common_firmware_header *hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.h
614
void amdgpu_ucode_print_smc_hdr(const struct common_firmware_header *hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.h
615
void amdgpu_ucode_print_imu_hdr(const struct common_firmware_header *hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.h
616
void amdgpu_ucode_print_gfx_hdr(const struct common_firmware_header *hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.h
617
void amdgpu_ucode_print_rlc_hdr(const struct common_firmware_header *hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.h
618
void amdgpu_ucode_print_sdma_hdr(const struct common_firmware_header *hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.h
619
void amdgpu_ucode_print_psp_hdr(const struct common_firmware_header *hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.h
620
void amdgpu_ucode_print_gpu_info_hdr(const struct common_firmware_header *hdr);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.h
625
bool amdgpu_ucode_hdr_version(union amdgpu_firmware_header *hdr,
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
188
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
274
hdr = (const struct common_firmware_header *)adev->uvd.fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
275
family_id = le32_to_cpu(hdr->ucode_version) & 0xff;
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
280
version_major = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xff;
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
281
version_minor = (le32_to_cpu(hdr->ucode_version) >> 8) & 0xff;
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
306
dec_minor = (le32_to_cpu(hdr->ucode_version) >> 8) & 0xff;
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
307
enc_minor = (le32_to_cpu(hdr->ucode_version) >> 24) & 0x3f;
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
308
enc_major = (le32_to_cpu(hdr->ucode_version) >> 30) & 0x3;
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
314
adev->uvd.fw_version = le32_to_cpu(hdr->ucode_version);
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
320
bo_size += AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
498
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
501
hdr = (const struct common_firmware_header *)adev->uvd.fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
503
offset = le32_to_cpu(hdr->ucode_array_offset_bytes);
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
506
le32_to_cpu(hdr->ucode_size_bytes));
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
509
size -= le32_to_cpu(hdr->ucode_size_bytes);
sys/dev/pci/drm/amd/amdgpu/amdgpu_uvd.c
510
ptr += le32_to_cpu(hdr->ucode_size_bytes);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
101
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
169
hdr = (const struct common_firmware_header *)adev->vce.fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
171
ucode_version = le32_to_cpu(hdr->ucode_version);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
289
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
309
hdr = (const struct common_firmware_header *)adev->vce.fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
310
offset = le32_to_cpu(hdr->ucode_array_offset_bytes);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
1127
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
1137
hdr = (const struct common_firmware_header *)adev->vcn.inst[i].fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
1147
ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
131
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
168
hdr = (const struct common_firmware_header *)adev->vcn.inst[i].fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
169
adev->vcn.inst[i].fw_version = le32_to_cpu(hdr->ucode_version);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
170
adev->vcn.fw_version = le32_to_cpu(hdr->ucode_version);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
178
fw_check = (le32_to_cpu(hdr->ucode_version) >> 20) & 0xf;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
182
fw_rev = le32_to_cpu(hdr->ucode_version) & 0xfff;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
183
enc_minor = (le32_to_cpu(hdr->ucode_version) >> 12) & 0xff;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
185
dec_ver = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xf;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
186
vep = (le32_to_cpu(hdr->ucode_version) >> 28) & 0xf;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
193
family_id = le32_to_cpu(hdr->ucode_version) & 0xff;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
194
version_major = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xff;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
195
version_minor = (le32_to_cpu(hdr->ucode_version) >> 8) & 0xff;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
202
bo_size += AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
388
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
391
hdr = (const struct common_firmware_header *)adev->vcn.inst[i].fw->data;
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
393
offset = le32_to_cpu(hdr->ucode_array_offset_bytes);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
397
le32_to_cpu(hdr->ucode_size_bytes));
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
400
size -= le32_to_cpu(hdr->ucode_size_bytes);
sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.c
401
ptr += le32_to_cpu(hdr->ucode_size_bytes);
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
530
const struct sdma_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
541
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
542
amdgpu_ucode_print_sdma_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
543
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
544
adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
545
adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version);
sys/dev/pci/drm/amd/amdgpu/cik_sdma.c
549
(adev->sdma.instance[i].fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
5532
const struct rlc_firmware_header_v2_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
5539
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
5540
amdgpu_ucode_print_rlc_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
5543
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c
5544
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2309
const struct rlc_firmware_header_v2_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2313
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2315
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2316
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2330
const struct rlc_firmware_header_v2_2 *hdr;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2335
hdr = (const struct rlc_firmware_header_v2_2 *)adev->gfx.rlc_fw->data;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2338
le32_to_cpu(hdr->rlc_iram_ucode_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2339
fw_size = le32_to_cpu(hdr->rlc_iram_ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2353
le32_to_cpu(hdr->rlc_dram_ucode_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2354
fw_size = le32_to_cpu(hdr->rlc_dram_ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2374
const struct rlc_firmware_header_v2_3 *hdr;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2379
hdr = (const struct rlc_firmware_header_v2_3 *)adev->gfx.rlc_fw->data;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2382
le32_to_cpu(hdr->rlcp_ucode_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2383
fw_size = le32_to_cpu(hdr->rlcp_ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2401
le32_to_cpu(hdr->rlcv_ucode_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2402
fw_size = le32_to_cpu(hdr->rlcv_ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2422
const struct rlc_firmware_header_v2_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2429
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2430
amdgpu_ucode_print_rlc_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2432
version_major = le16_to_cpu(hdr->header.header_version_major);
sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c
2433
version_minor = le16_to_cpu(hdr->header.header_version_minor);
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
1974
const struct rlc_firmware_header_v2_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
1978
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
1980
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
1981
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
1995
const struct rlc_firmware_header_v2_2 *hdr;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
2000
hdr = (const struct rlc_firmware_header_v2_2 *)adev->gfx.rlc_fw->data;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
2003
le32_to_cpu(hdr->rlc_iram_ucode_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
2004
fw_size = le32_to_cpu(hdr->rlc_iram_ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
2018
le32_to_cpu(hdr->rlc_dram_ucode_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
2019
fw_size = le32_to_cpu(hdr->rlc_dram_ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
2039
const struct rlc_firmware_header_v2_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
2046
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
2047
amdgpu_ucode_print_rlc_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
2049
version_major = le16_to_cpu(hdr->header.header_version_major);
sys/dev/pci/drm/amd/amdgpu/gfx_v12_0.c
2050
version_minor = le16_to_cpu(hdr->header.header_version_minor);
sys/dev/pci/drm/amd/amdgpu/gfx_v6_0.c
2505
const struct rlc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/gfx_v6_0.c
2528
hdr = (const struct rlc_firmware_header_v1_0 *)adev->gfx.rlc_fw->data;
sys/dev/pci/drm/amd/amdgpu/gfx_v6_0.c
2529
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gfx_v6_0.c
2531
(adev->gfx.rlc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gfx_v6_0.c
2533
amdgpu_ucode_print_rlc_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/gfx_v7_0.c
3418
const struct rlc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/gfx_v7_0.c
3426
hdr = (const struct rlc_firmware_header_v1_0 *)adev->gfx.rlc_fw->data;
sys/dev/pci/drm/amd/amdgpu/gfx_v7_0.c
3427
amdgpu_ucode_print_rlc_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/gfx_v7_0.c
3428
adev->gfx.rlc_fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/pci/drm/amd/amdgpu/gfx_v7_0.c
3430
hdr->ucode_feature_version);
sys/dev/pci/drm/amd/amdgpu/gfx_v7_0.c
3456
(adev->gfx.rlc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gfx_v7_0.c
3457
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
3168
const struct rlc_firmware_header_v2_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
3175
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
3176
amdgpu_ucode_print_rlc_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
3179
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c
3180
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
1602
const struct rlc_firmware_header_v2_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
1609
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
1610
amdgpu_ucode_print_rlc_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
1613
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c
1614
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gmc_v6_0.c
151
const struct mc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/gmc_v6_0.c
156
hdr = (const struct mc_firmware_header_v1_0 *)adev->gmc.fw->data;
sys/dev/pci/drm/amd/amdgpu/gmc_v6_0.c
158
amdgpu_ucode_print_mc_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/gmc_v6_0.c
160
adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/pci/drm/amd/amdgpu/gmc_v6_0.c
161
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
sys/dev/pci/drm/amd/amdgpu/gmc_v6_0.c
163
(adev->gmc.fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gmc_v6_0.c
164
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gmc_v6_0.c
166
(adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gmc_v7_0.c
179
const struct mc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/gmc_v7_0.c
188
hdr = (const struct mc_firmware_header_v1_0 *)adev->gmc.fw->data;
sys/dev/pci/drm/amd/amdgpu/gmc_v7_0.c
189
amdgpu_ucode_print_mc_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/gmc_v7_0.c
191
adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/pci/drm/amd/amdgpu/gmc_v7_0.c
192
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
sys/dev/pci/drm/amd/amdgpu/gmc_v7_0.c
194
(adev->gmc.fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gmc_v7_0.c
195
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gmc_v7_0.c
197
(adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gmc_v8_0.c
281
const struct mc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/gmc_v8_0.c
298
hdr = (const struct mc_firmware_header_v1_0 *)adev->gmc.fw->data;
sys/dev/pci/drm/amd/amdgpu/gmc_v8_0.c
299
amdgpu_ucode_print_mc_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/gmc_v8_0.c
301
adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/pci/drm/amd/amdgpu/gmc_v8_0.c
302
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
sys/dev/pci/drm/amd/amdgpu/gmc_v8_0.c
304
(adev->gmc.fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gmc_v8_0.c
305
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gmc_v8_0.c
307
(adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gmc_v8_0.c
350
const struct mc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/gmc_v8_0.c
367
hdr = (const struct mc_firmware_header_v1_0 *)adev->gmc.fw->data;
sys/dev/pci/drm/amd/amdgpu/gmc_v8_0.c
368
amdgpu_ucode_print_mc_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/gmc_v8_0.c
370
adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/pci/drm/amd/amdgpu/gmc_v8_0.c
371
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
sys/dev/pci/drm/amd/amdgpu/gmc_v8_0.c
373
(adev->gmc.fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/gmc_v8_0.c
374
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/gmc_v8_0.c
376
(adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/imu_v11_0.c
101
hdr = (const struct imu_firmware_header_v1_0 *)adev->gfx.imu_fw->data;
sys/dev/pci/drm/amd/amdgpu/imu_v11_0.c
105
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/imu_v11_0.c
106
fw_size = le32_to_cpu(hdr->imu_iram_ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/imu_v11_0.c
116
le32_to_cpu(hdr->header.ucode_array_offset_bytes) +
sys/dev/pci/drm/amd/amdgpu/imu_v11_0.c
117
le32_to_cpu(hdr->imu_iram_ucode_size_bytes));
sys/dev/pci/drm/amd/amdgpu/imu_v11_0.c
118
fw_size = le32_to_cpu(hdr->imu_dram_ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/imu_v11_0.c
94
const struct imu_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/imu_v12_0.c
100
fw_size = le32_to_cpu(hdr->imu_iram_ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/imu_v12_0.c
110
le32_to_cpu(hdr->header.ucode_array_offset_bytes) +
sys/dev/pci/drm/amd/amdgpu/imu_v12_0.c
111
le32_to_cpu(hdr->imu_iram_ucode_size_bytes));
sys/dev/pci/drm/amd/amdgpu/imu_v12_0.c
112
fw_size = le32_to_cpu(hdr->imu_dram_ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/imu_v12_0.c
89
const struct imu_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/imu_v12_0.c
96
hdr = (const struct imu_firmware_header_v1_0 *)adev->gfx.imu_fw->data;
sys/dev/pci/drm/amd/amdgpu/imu_v12_0.c
99
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/sdma_v2_4.c
133
const struct sdma_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/sdma_v2_4.c
156
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
sys/dev/pci/drm/amd/amdgpu/sdma_v2_4.c
157
adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/pci/drm/amd/amdgpu/sdma_v2_4.c
158
adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version);
sys/dev/pci/drm/amd/amdgpu/sdma_v3_0.c
273
const struct sdma_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/sdma_v3_0.c
316
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
sys/dev/pci/drm/amd/amdgpu/sdma_v3_0.c
317
adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/pci/drm/amd/amdgpu/sdma_v3_0.c
318
adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1341
const struct sdma_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1353
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1354
amdgpu_ucode_print_sdma_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1355
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c
1359
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
923
const struct sdma_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
935
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
936
amdgpu_ucode_print_sdma_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
937
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/sdma_v4_4_2.c
941
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
885
const struct sdma_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
897
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
898
amdgpu_ucode_print_sdma_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
899
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/sdma_v5_0.c
903
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
732
const struct sdma_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
744
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
745
amdgpu_ucode_print_sdma_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
746
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/amd/amdgpu/sdma_v5_2.c
750
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
667
const struct sdma_firmware_header_v2_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
685
hdr = (const struct sdma_firmware_header_v2_0 *)adev->sdma.instance[0].fw->data;
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
686
amdgpu_ucode_print_sdma_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
687
fw_size = le32_to_cpu(hdr->ctx_jt_offset + hdr->ctx_jt_size) / 4;
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
691
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
702
fw_size = le32_to_cpu(hdr->ctl_jt_offset + hdr->ctl_jt_size) / 4;
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
706
le32_to_cpu(hdr->ctl_ucode_offset));
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
719
hdr = (const struct sdma_firmware_header_v2_0 *)adev->sdma.instance[0].fw->data;
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
720
amdgpu_ucode_print_sdma_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
721
fw_size = le32_to_cpu(hdr->ctx_jt_offset + hdr->ctx_jt_size) / 4;
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
725
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
738
fw_size = le32_to_cpu(hdr->ctl_jt_offset + hdr->ctl_jt_size) / 4;
sys/dev/pci/drm/amd/amdgpu/sdma_v6_0.c
742
le32_to_cpu(hdr->ctl_ucode_offset));
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
681
const struct sdma_firmware_header_v3_0 *hdr;
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
693
hdr = (const struct sdma_firmware_header_v3_0 *)
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
695
amdgpu_ucode_print_sdma_hdr(&hdr->header);
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
698
le32_to_cpu(hdr->ucode_offset_bytes));
sys/dev/pci/drm/amd/amdgpu/sdma_v7_0.c
699
fw_size = le32_to_cpu(hdr->ucode_size_bytes);
sys/dev/pci/drm/amd/amdgpu/uvd_v7_0.c
428
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/uvd_v7_0.c
429
hdr = (const struct common_firmware_header *)adev->uvd.fw->data;
sys/dev/pci/drm/amd/amdgpu/uvd_v7_0.c
433
ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
sys/dev/pci/drm/amd/amdgpu/uvd_v7_0.c
439
ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
sys/dev/pci/drm/amd/amdgpu/vce_v4_0.c
446
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/vce_v4_0.c
453
hdr = (const struct common_firmware_header *)adev->vce.fw->data;
sys/dev/pci/drm/amd/amdgpu/vce_v4_0.c
457
ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0.c
452
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0.c
454
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst].fw->data;
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0.c
455
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0.c
515
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0.c
516
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst_idx].fw->data;
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0.c
517
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_3.c
457
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_3.c
459
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst_idx].fw->data;
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_3.c
460
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_3.c
534
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_3.c
536
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst_idx].fw->data;
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_3.c
537
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_5.c
403
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_5.c
405
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst].fw->data;
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_5.c
406
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_5.c
466
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_5.c
468
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst_idx].fw->data;
sys/dev/pci/drm/amd/amdgpu/vcn_v4_0_5.c
469
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_0.c
367
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_0.c
369
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst].fw->data;
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_0.c
370
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_0.c
430
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_0.c
432
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst_idx].fw->data;
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_0.c
433
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_1.c
425
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_1.c
427
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst].fw->data;
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_1.c
428
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_1.c
490
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_1.c
492
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst_idx].fw->data;
sys/dev/pci/drm/amd/amdgpu/vcn_v5_0_1.c
493
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1253
const struct dmcub_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1301
hdr = (const struct dmcub_firmware_header_v1_0 *)dmub_fw->data;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1304
le32_to_cpu(hdr->header.ucode_array_offset_bytes) +
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1308
le32_to_cpu(hdr->header.ucode_array_offset_bytes) +
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1309
le32_to_cpu(hdr->inst_const_bytes);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1312
fw_inst_const_size = le32_to_cpu(hdr->inst_const_bytes) -
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1315
fw_bss_data_size = le32_to_cpu(hdr->bss_data_bytes);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2326
const struct dmcu_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2412
hdr = (const struct dmcu_firmware_header_v1_0 *)adev->dm.fw_dmcu->data;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2416
ALIGN(le32_to_cpu(hdr->header.ucode_size_bytes) - le32_to_cpu(hdr->intv_size_bytes), PAGE_SIZE);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2421
ALIGN(le32_to_cpu(hdr->intv_size_bytes), PAGE_SIZE);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2423
adev->dm.dmcu_fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2453
const struct dmcub_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2521
hdr = (const struct dmcub_firmware_header_v1_0 *)adev->dm.dmub_fw->data;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2522
adev->dm.dmcub_fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2530
ALIGN(le32_to_cpu(hdr->inst_const_bytes), PAGE_SIZE);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2561
region_params.inst_const_size = le32_to_cpu(hdr->inst_const_bytes) -
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2563
region_params.bss_data_size = le32_to_cpu(hdr->bss_data_bytes);
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2567
le32_to_cpu(hdr->header.ucode_array_offset_bytes) +
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2568
le32_to_cpu(hdr->inst_const_bytes) : NULL;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2571
le32_to_cpu(hdr->header.ucode_array_offset_bytes) +
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
1188
ATOM_COMMON_TABLE_HEADER *hdr;
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
1193
hdr = GET_IMAGE(ATOM_COMMON_TABLE_HEADER, DATA_TABLES(LCD_Info));
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
1195
if (!hdr)
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
1198
switch (hdr->ucTableFormatRevision) {
sys/dev/pci/drm/amd/display/dc/bios/bios_parser.c
1200
switch (hdr->ucTableContentRevision) {
sys/dev/pci/drm/amd/include/amd_cper.h
218
struct cper_sec_nonstd_err_hdr hdr;
sys/dev/pci/drm/amd/include/amd_cper.h
258
struct cper_sec_crashdump_hdr hdr;
sys/dev/pci/drm/amd/include/amd_cper.h
263
struct cper_sec_crashdump_hdr hdr;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_smc.c
233
const struct smc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_smc.c
243
hdr = (const struct smc_firmware_header_v1_0 *)adev->pm.fw->data;
sys/dev/pci/drm/amd/pm/legacy-dpm/si_smc.c
245
amdgpu_ucode_print_smc_hdr(&hdr->header);
sys/dev/pci/drm/amd/pm/legacy-dpm/si_smc.c
247
adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/pci/drm/amd/pm/legacy-dpm/si_smc.c
248
ucode_start_address = le32_to_cpu(hdr->ucode_start_addr);
sys/dev/pci/drm/amd/pm/legacy-dpm/si_smc.c
249
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
sys/dev/pci/drm/amd/pm/legacy-dpm/si_smc.c
251
(adev->pm.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
113
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
114
amdgpu_ucode_print_smc_hdr(&hdr->header);
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
115
adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
144
const struct smc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
150
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
152
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
153
smc_fw_size = hdr->header.ucode_size_bytes;
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
316
const struct smc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
325
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
326
version_major = le16_to_cpu(hdr->header.header_version_major);
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
327
version_minor = le16_to_cpu(hdr->header.header_version_minor);
sys/dev/pci/drm/amd/pm/swsmu/smu11/smu_v11_0.c
98
const struct smc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
117
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
118
amdgpu_ucode_print_smc_hdr(&hdr->header);
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
119
adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
149
const struct smc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
155
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
157
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
158
smc_fw_size = hdr->header.ucode_size_bytes;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
372
const struct smc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
377
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
378
if (!hdr)
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
383
version_major = le16_to_cpu(hdr->header.header_version_major);
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
384
version_minor = le16_to_cpu(hdr->header.header_version_minor);
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c
98
const struct smc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
484
const struct common_firmware_header *hdr;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
511
hdr = (const struct common_firmware_header *)adev->pm.fw->data;
sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
512
amdgpu_ucode_print_smc_hdr(hdr);
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
123
const struct smc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
129
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
131
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
132
smc_fw_size = hdr->header.ucode_size_bytes;
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
362
const struct smc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
367
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
368
if (!hdr)
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
373
version_major = le16_to_cpu(hdr->header.header_version_major);
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
374
version_minor = le16_to_cpu(hdr->header.header_version_minor);
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
74
const struct smc_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
92
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
93
amdgpu_ucode_print_smc_hdr(&hdr->header);
sys/dev/pci/drm/amd/pm/swsmu/smu14/smu_v14_0.c
94
adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/pci/drm/apple/afk.c
166
bfr->hdr = ep->bfr + base;
sys/dev/pci/drm/apple/afk.c
167
bufsz = le32_to_cpu(bfr->hdr->bufsz);
sys/dev/pci/drm/apple/afk.c
168
if (bufsz + sizeof(*bfr->hdr) != size) {
sys/dev/pci/drm/apple/afk.c
171
ep->endpoint, bufsz, sizeof(*bfr->hdr));
sys/dev/pci/drm/apple/afk.c
175
bfr->buf = bfr->hdr + 1;
sys/dev/pci/drm/apple/afk.c
540
struct afk_qe *hdr;
sys/dev/pci/drm/apple/afk.c
550
rptr = le32_to_cpu(ep->rxbfr.hdr->rptr);
sys/dev/pci/drm/apple/afk.c
551
wptr = le32_to_cpu(ep->rxbfr.hdr->wptr);
sys/dev/pci/drm/apple/afk.c
557
if (rptr > (ep->rxbfr.bufsz - sizeof(*hdr))) {
sys/dev/pci/drm/apple/afk.c
560
ep->endpoint, rptr, ep->rxbfr.bufsz - sizeof(*hdr));
sys/dev/pci/drm/apple/afk.c
566
hdr = ep->rxbfr.buf + rptr;
sys/dev/pci/drm/apple/afk.c
567
magic = le32_to_cpu(hdr->magic);
sys/dev/pci/drm/apple/afk.c
568
size = le32_to_cpu(hdr->size);
sys/dev/pci/drm/apple/afk.c
582
if (rptr + size + sizeof(*hdr) > ep->rxbfr.bufsz) {
sys/dev/pci/drm/apple/afk.c
584
hdr = ep->rxbfr.buf + rptr;
sys/dev/pci/drm/apple/afk.c
585
magic = le32_to_cpu(hdr->magic);
sys/dev/pci/drm/apple/afk.c
586
size = le32_to_cpu(hdr->size);
sys/dev/pci/drm/apple/afk.c
596
ep->rxbfr.hdr->rptr = cpu_to_le32(rptr);
sys/dev/pci/drm/apple/afk.c
599
if (rptr + size + sizeof(*hdr) > ep->rxbfr.bufsz) {
sys/dev/pci/drm/apple/afk.c
602
ep->endpoint, rptr + size + sizeof(*hdr), ep->rxbfr.bufsz);
sys/dev/pci/drm/apple/afk.c
606
channel = le32_to_cpu(hdr->channel);
sys/dev/pci/drm/apple/afk.c
607
type = le32_to_cpu(hdr->type);
sys/dev/pci/drm/apple/afk.c
609
rptr = ALIGN(rptr + sizeof(*hdr) + size, 1 << BLOCK_SHIFT);
sys/dev/pci/drm/apple/afk.c
617
ep->rxbfr.hdr->rptr = cpu_to_le32(rptr);
sys/dev/pci/drm/apple/afk.c
627
afk_recv_handle(ep, channel, type, hdr->data, size);
sys/dev/pci/drm/apple/afk.c
699
struct afk_qe *hdr, *hdr2;
sys/dev/pci/drm/apple/afk.c
709
rptr = le32_to_cpu(ep->txbfr.hdr->rptr);
sys/dev/pci/drm/apple/afk.c
710
wptr = le32_to_cpu(ep->txbfr.hdr->wptr);
sys/dev/pci/drm/apple/afk.c
713
total_size = sizeof(*hdr) + total_epic_size;
sys/dev/pci/drm/apple/afk.c
715
hdr = hdr2 = NULL;
sys/dev/pci/drm/apple/afk.c
743
hdr = ep->txbfr.buf + wptr;
sys/dev/pci/drm/apple/afk.c
744
wptr += sizeof(*hdr);
sys/dev/pci/drm/apple/afk.c
747
if (wptr + sizeof(*hdr) > ep->txbfr.bufsz) {
sys/dev/pci/drm/apple/afk.c
763
if (sizeof(*hdr) > rptr) {
sys/dev/pci/drm/apple/afk.c
772
hdr = ep->txbfr.buf + wptr;
sys/dev/pci/drm/apple/afk.c
774
wptr = sizeof(*hdr);
sys/dev/pci/drm/apple/afk.c
783
hdr = ep->txbfr.buf + wptr;
sys/dev/pci/drm/apple/afk.c
784
wptr += sizeof(*hdr);
sys/dev/pci/drm/apple/afk.c
793
hdr->magic = cpu_to_le32(QE_MAGIC);
sys/dev/pci/drm/apple/afk.c
794
hdr->size = cpu_to_le32(total_epic_size);
sys/dev/pci/drm/apple/afk.c
795
hdr->channel = cpu_to_le32(channel);
sys/dev/pci/drm/apple/afk.c
796
hdr->type = cpu_to_le32(etype);
sys/dev/pci/drm/apple/afk.c
798
memcpy(hdr2, hdr, sizeof(*hdr));
sys/dev/pci/drm/apple/afk.c
828
ep->txbfr.hdr->wptr = cpu_to_le32(wptr);
sys/dev/pci/drm/apple/afk.h
148
struct afk_ringbuffer_header *hdr;
sys/dev/pci/drm/apple/iomfb.c
261
struct dcp_packet_header *hdr = data;
sys/dev/pci/drm/apple/iomfb.c
263
int tag = dcp_parse_tag(hdr->tag);
sys/dev/pci/drm/apple/iomfb.c
269
hdr->tag[3], hdr->tag[2], hdr->tag[1], hdr->tag[0]);
sys/dev/pci/drm/apple/iomfb.c
273
in = data + sizeof(*hdr);
sys/dev/pci/drm/apple/iomfb.c
274
out = in + hdr->in_len;
sys/dev/pci/drm/apple/iomfb.c
278
if (hdr->out_len)
sys/dev/pci/drm/apple/iomfb.c
279
memset(out, 0, hdr->out_len);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
274
static inline u8 drm_dp_calc_sb_hdr_size(struct drm_dp_sideband_msg_hdr *hdr)
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2771
static int set_hdr_from_dst_qlock(struct drm_dp_sideband_msg_hdr *hdr,
sys/dev/pci/drm/display/drm_dp_mst_topology.c
278
size += (hdr->lct / 2);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2781
hdr->broadcast = 1;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2783
hdr->broadcast = 0;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2784
hdr->path_msg = txmsg->path_msg;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2785
if (hdr->broadcast) {
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2786
hdr->lct = 1;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2787
hdr->lcr = 6;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2789
hdr->lct = mstb->lct;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2790
hdr->lcr = mstb->lct - 1;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2793
memcpy(hdr->rad, mstb->rad, hdr->lct / 2);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2805
struct drm_dp_sideband_msg_hdr hdr;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2812
memset(&hdr, 0, sizeof(struct drm_dp_sideband_msg_hdr));
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2818
ret = set_hdr_from_dst_qlock(&hdr, txmsg);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
282
static void drm_dp_encode_sideband_msg_hdr(struct drm_dp_sideband_msg_hdr *hdr,
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2826
space = 48 - 1 - drm_dp_calc_sb_hdr_size(&hdr);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2830
hdr.somt = 1;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2832
hdr.eomt = 1;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2835
hdr.msg_len = tosend + 1;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
2836
drm_dp_encode_sideband_msg_hdr(&hdr, chunk, &idx);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
289
buf[idx++] = ((hdr->lct & 0xf) << 4) | (hdr->lcr & 0xf);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
290
for (i = 0; i < (hdr->lct / 2); i++)
sys/dev/pci/drm/display/drm_dp_mst_topology.c
291
buf[idx++] = hdr->rad[i];
sys/dev/pci/drm/display/drm_dp_mst_topology.c
292
buf[idx++] = (hdr->broadcast << 7) | (hdr->path_msg << 6) |
sys/dev/pci/drm/display/drm_dp_mst_topology.c
293
(hdr->msg_len & 0x3f);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
294
buf[idx++] = (hdr->somt << 7) | (hdr->eomt << 6) | (hdr->seqno << 4);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
303
struct drm_dp_sideband_msg_hdr *hdr,
sys/dev/pci/drm/display/drm_dp_mst_topology.c
324
hdr->lct = (buf[0] & 0xf0) >> 4;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
325
hdr->lcr = (buf[0] & 0xf);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
327
for (i = 0; i < (hdr->lct / 2); i++)
sys/dev/pci/drm/display/drm_dp_mst_topology.c
328
hdr->rad[i] = buf[idx++];
sys/dev/pci/drm/display/drm_dp_mst_topology.c
329
hdr->broadcast = (buf[idx] >> 7) & 0x1;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
330
hdr->path_msg = (buf[idx] >> 6) & 0x1;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
331
hdr->msg_len = buf[idx] & 0x3f;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
332
if (hdr->msg_len < 1) /* min space for body CRC */
sys/dev/pci/drm/display/drm_dp_mst_topology.c
336
hdr->somt = (buf[idx] >> 7) & 0x1;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
337
hdr->eomt = (buf[idx] >> 6) & 0x1;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
338
hdr->seqno = (buf[idx] >> 4) & 0x1;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
3882
struct drm_dp_sideband_msg_hdr hdr;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
3898
ret = drm_dp_decode_sideband_msg_hdr(mgr, &hdr, replyblock, len, &hdrlen);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
3908
*mstb = drm_dp_get_mst_branch_device(mgr, hdr.lct, hdr.rad);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
3910
drm_dbg_kms(mgr->dev, "Got MST reply from unknown device %d\n", hdr.lct);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
3915
if (!drm_dp_sideband_msg_set_header(msg, &hdr, hdrlen)) {
sys/dev/pci/drm/display/drm_dp_mst_topology.c
3960
const struct drm_dp_sideband_msg_hdr *hdr = &rxmsg->initial_hdr;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
3972
mstb, hdr->seqno, mstb->lct, rad_str,
sys/dev/pci/drm/display/drm_dp_mst_topology.c
4000
struct drm_dp_sideband_msg_hdr *hdr;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
4002
hdr = &msg->initial_hdr;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
4004
mstb, hdr->seqno, hdr->lct, hdr->rad[0], msg->msg[0]);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
4067
struct drm_dp_sideband_msg_hdr *hdr = &up_req->hdr;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
4070
if (hdr->broadcast) {
sys/dev/pci/drm/display/drm_dp_mst_topology.c
4081
mstb = drm_dp_get_mst_branch_device(mgr, hdr->lct, hdr->rad);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
4085
drm_dbg_kms(mgr->dev, "Got MST reply from unknown device %d\n", hdr->lct);
sys/dev/pci/drm/display/drm_dp_mst_topology.c
4200
up_req->hdr = mgr->up_req_recv.initial_hdr;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
61
struct drm_dp_sideband_msg_hdr hdr;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
756
struct drm_dp_sideband_msg_hdr *hdr,
sys/dev/pci/drm/display/drm_dp_mst_topology.c
763
if (!hdr->somt && !msg->have_somt)
sys/dev/pci/drm/display/drm_dp_mst_topology.c
768
msg->curchunk_len = hdr->msg_len;
sys/dev/pci/drm/display/drm_dp_mst_topology.c
772
if (hdr->somt && msg->have_somt)
sys/dev/pci/drm/display/drm_dp_mst_topology.c
775
if (hdr->somt) {
sys/dev/pci/drm/display/drm_dp_mst_topology.c
776
memcpy(&msg->initial_hdr, hdr,
sys/dev/pci/drm/display/drm_dp_mst_topology.c
780
if (hdr->eomt)
sys/dev/pci/drm/drm_linux.c
1423
struct acpi_table_header **hdr)
sys/dev/pci/drm/drm_linux.c
1435
*hdr = entry->q_table;
sys/dev/pci/drm/drm_linux.c
1444
acpi_put_table(struct acpi_table_header *hdr)
sys/dev/pci/drm/i915/display/intel_display_debugfs.c
435
const char *hdr)
sys/dev/pci/drm/i915/display/intel_display_debugfs.c
443
seq_printf(m, "%sUpdates: %llu\n", hdr, count);
sys/dev/pci/drm/i915/display/intel_display_debugfs.c
472
seq_printf(m, "%s%s\n", hdr, columns);
sys/dev/pci/drm/i915/display/intel_display_debugfs.c
476
hdr, crtc->debug.vbl.min);
sys/dev/pci/drm/i915/display/intel_display_debugfs.c
478
hdr, crtc->debug.vbl.max);
sys/dev/pci/drm/i915/display/intel_display_debugfs.c
480
hdr, div64_u64(crtc->debug.vbl.sum, count));
sys/dev/pci/drm/i915/display/intel_display_debugfs.c
482
hdr, VBLANK_EVASION_TIME_US, crtc->debug.vbl.over);
sys/dev/pci/drm/i915/display/intel_display_debugfs.c
527
const char *hdr)
sys/dev/pci/drm/i915/gt/intel_engine_cs.c
2186
char hdr[160];
sys/dev/pci/drm/i915/gt/intel_engine_cs.c
2189
len = scnprintf(hdr, sizeof(hdr),
sys/dev/pci/drm/i915/gt/intel_engine_cs.c
2195
len += print_ring(hdr + len, sizeof(hdr) - len, rq);
sys/dev/pci/drm/i915/gt/intel_engine_cs.c
2196
scnprintf(hdr + len, sizeof(hdr) - len, "rq: ");
sys/dev/pci/drm/i915/gt/intel_engine_cs.c
2197
i915_request_show(m, rq, hdr, 0);
sys/dev/pci/drm/i915/gt/intel_engine_cs.c
2200
char hdr[160];
sys/dev/pci/drm/i915/gt/intel_engine_cs.c
2203
len = scnprintf(hdr, sizeof(hdr),
sys/dev/pci/drm/i915/gt/intel_engine_cs.c
2209
len += print_ring(hdr + len, sizeof(hdr) - len, rq);
sys/dev/pci/drm/i915/gt/intel_engine_cs.c
2210
scnprintf(hdr + len, sizeof(hdr) - len, "rq: ");
sys/dev/pci/drm/i915/gt/intel_engine_cs.c
2211
i915_request_show(m, rq, hdr, 0);
sys/dev/pci/drm/i915/gt/intel_migrate.c
376
u32 *hdr, *cs;
sys/dev/pci/drm/i915/gt/intel_migrate.c
410
hdr = cs;
sys/dev/pci/drm/i915/gt/intel_migrate.c
416
if (cs - hdr >= pkt) {
sys/dev/pci/drm/i915/gt/intel_migrate.c
419
*hdr += cs - hdr - 2;
sys/dev/pci/drm/i915/gt/intel_migrate.c
443
hdr = cs;
sys/dev/pci/drm/i915/gt/intel_migrate.c
468
*hdr += cs - hdr - 2;
sys/dev/pci/drm/i915/gt/uc/intel_gsc_proxy.c
101
in_size = hdr->message_size - sizeof(struct intel_gsc_mtl_header);
sys/dev/pci/drm/i915/gt/uc/intel_gsc_proxy.c
163
u32 type = FIELD_GET(GSC_PROXY_TYPE, header->hdr);
sys/dev/pci/drm/i915/gt/uc/intel_gsc_proxy.c
164
u32 length = FIELD_GET(GSC_PROXY_PAYLOAD_LENGTH, header->hdr);
sys/dev/pci/drm/i915/gt/uc/intel_gsc_proxy.c
200
to_gsc->proxy_header.hdr =
sys/dev/pci/drm/i915/gt/uc/intel_gsc_proxy.c
220
if (FIELD_GET(GSC_PROXY_TYPE, to_csme->proxy_header.hdr) ==
sys/dev/pci/drm/i915/gt/uc/intel_gsc_proxy.c
59
u32 hdr;
sys/dev/pci/drm/i915/gt/uc/intel_gsc_proxy.c
90
struct intel_gsc_mtl_header *hdr;
sys/dev/pci/drm/i915/gt/uc/intel_gsc_proxy.c
97
hdr = in;
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
1101
struct guc_state_capture_header_t hdr = {};
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
1179
if (guc_capture_log_get_data_hdr(guc, buf, &hdr)) {
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
1184
datatype = FIELD_GET(CAP_HDR_CAPTURE_TYPE, hdr.info);
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
1187
numregs = FIELD_GET(CAP_HDR_NUM_MMIOS, hdr.num_mmios);
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
1235
node->reginfo[datatype].vfid = FIELD_GET(CAP_HDR_CAPTURE_VFID, hdr.owner);
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
1238
node->eng_class = FIELD_GET(CAP_HDR_ENGINE_CLASS, hdr.info);
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
1239
node->eng_inst = FIELD_GET(CAP_HDR_ENGINE_INSTANCE, hdr.info);
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
1240
node->lrca = hdr.lrca;
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
1241
node->guc_id = hdr.guc_id;
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
1244
node->eng_class = FIELD_GET(CAP_HDR_ENGINE_CLASS, hdr.info);
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
1250
numregs = FIELD_GET(CAP_HDR_NUM_MMIOS, hdr.num_mmios);
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
839
struct guc_state_capture_header_t *hdr)
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
847
if (guc_capture_data_extracted(buf, fullsize, (void *)hdr))
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
850
read += guc_capture_log_remove_dw(guc, buf, &hdr->owner);
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
851
read += guc_capture_log_remove_dw(guc, buf, &hdr->info);
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
852
read += guc_capture_log_remove_dw(guc, buf, &hdr->lrca);
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
853
read += guc_capture_log_remove_dw(guc, buf, &hdr->guc_id);
sys/dev/pci/drm/i915/gt/uc/intel_guc_capture.c
854
read += guc_capture_log_remove_dw(guc, buf, &hdr->num_mmios);
sys/dev/pci/drm/i915/gvt/kvmgt.c
1354
struct vfio_irq_set hdr;
sys/dev/pci/drm/i915/gvt/kvmgt.c
1361
if (copy_from_user(&hdr, (void __user *)arg, minsz))
sys/dev/pci/drm/i915/gvt/kvmgt.c
1364
if (!(hdr.flags & VFIO_IRQ_SET_DATA_NONE)) {
sys/dev/pci/drm/i915/gvt/kvmgt.c
1365
int max = intel_vgpu_get_irq_count(vgpu, hdr.index);
sys/dev/pci/drm/i915/gvt/kvmgt.c
1367
ret = vfio_set_irqs_validate_and_prepare(&hdr, max,
sys/dev/pci/drm/i915/gvt/kvmgt.c
1381
ret = intel_vgpu_set_irqs(vgpu, hdr.flags, hdr.index,
sys/dev/pci/drm/i915/gvt/kvmgt.c
1382
hdr.start, hdr.count, data);
sys/dev/pci/drm/radeon/ci_smc.c
198
const struct smc_firmware_header_v1_0 *hdr =
sys/dev/pci/drm/radeon/ci_smc.c
201
radeon_ucode_print_smc_hdr(&hdr->header);
sys/dev/pci/drm/radeon/ci_smc.c
203
ucode_start_address = le32_to_cpu(hdr->ucode_start_addr);
sys/dev/pci/drm/radeon/ci_smc.c
204
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
sys/dev/pci/drm/radeon/ci_smc.c
206
(rdev->smc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/radeon/cik.c
1873
const struct mc_firmware_header_v1_0 *hdr =
sys/dev/pci/drm/radeon/cik.c
1876
radeon_ucode_print_mc_hdr(&hdr->header);
sys/dev/pci/drm/radeon/cik.c
1878
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
sys/dev/pci/drm/radeon/cik.c
1880
(rdev->mc_fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
sys/dev/pci/drm/radeon/cik.c
1881
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/radeon/cik.c
1883
(rdev->mc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/radeon/cik.c
5940
const struct rlc_firmware_header_v1_0 *hdr =
sys/dev/pci/drm/radeon/cik.c
5943
(rdev->rlc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/radeon/cik.c
5945
radeon_ucode_print_rlc_hdr(&hdr->header);
sys/dev/pci/drm/radeon/cik.c
5947
size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/radeon/cik.c
5951
WREG32(RLC_GPM_UCODE_ADDR, le32_to_cpu(hdr->header.ucode_version));
sys/dev/pci/drm/radeon/cik.c
6428
const struct gfx_firmware_header_v1_0 *hdr;
sys/dev/pci/drm/radeon/cik.c
6431
hdr = (const struct gfx_firmware_header_v1_0 *)rdev->ce_fw->data;
sys/dev/pci/drm/radeon/cik.c
6433
(rdev->ce_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/radeon/cik.c
6434
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/pci/drm/radeon/cik.c
6435
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/pci/drm/radeon/cik.c
6437
hdr = (const struct gfx_firmware_header_v1_0 *)rdev->pfp_fw->data;
sys/dev/pci/drm/radeon/cik.c
6439
(rdev->pfp_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/radeon/cik.c
6440
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/pci/drm/radeon/cik.c
6441
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/pci/drm/radeon/cik.c
6443
hdr = (const struct gfx_firmware_header_v1_0 *)rdev->me_fw->data;
sys/dev/pci/drm/radeon/cik.c
6445
(rdev->me_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/radeon/cik.c
6446
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/pci/drm/radeon/cik.c
6447
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/pci/drm/radeon/cik.c
6449
hdr = (const struct gfx_firmware_header_v1_0 *)rdev->mec_fw->data;
sys/dev/pci/drm/radeon/cik.c
6451
(rdev->mec_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/radeon/cik.c
6452
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/pci/drm/radeon/cik.c
6453
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/pci/drm/radeon/cik.c
6455
hdr = (const struct gfx_firmware_header_v1_0 *)rdev->mec2_fw->data;
sys/dev/pci/drm/radeon/cik.c
6457
(rdev->mec2_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/radeon/cik.c
6458
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/pci/drm/radeon/cik.c
6459
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/pci/drm/radeon/cik_sdma.c
472
const struct sdma_firmware_header_v1_0 *hdr =
sys/dev/pci/drm/radeon/cik_sdma.c
477
radeon_ucode_print_sdma_hdr(&hdr->header);
sys/dev/pci/drm/radeon/cik_sdma.c
481
(rdev->sdma_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/radeon/cik_sdma.c
482
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/radeon/cik_sdma.c
490
(rdev->sdma_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/radeon/cik_sdma.c
491
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/radeon/radeon_bios.c
752
struct acpi_table_header *hdr;
sys/dev/pci/drm/radeon/radeon_bios.c
758
if (!ACPI_SUCCESS(acpi_get_table("VFCT", 1, &hdr)))
sys/dev/pci/drm/radeon/radeon_bios.c
760
tbl_size = hdr->length;
sys/dev/pci/drm/radeon/radeon_bios.c
766
vfct = (UEFI_ACPI_VFCT *)hdr;
sys/dev/pci/drm/radeon/radeon_bios.c
770
GOP_VBIOS_CONTENT *vbios = (GOP_VBIOS_CONTENT *)((char *)hdr + offset);
sys/dev/pci/drm/radeon/radeon_bios.c
804
acpi_put_table(hdr);
sys/dev/pci/drm/radeon/radeon_ucode.c
106
void radeon_ucode_print_rlc_hdr(const struct common_firmware_header *hdr)
sys/dev/pci/drm/radeon/radeon_ucode.c
108
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/pci/drm/radeon/radeon_ucode.c
109
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/pci/drm/radeon/radeon_ucode.c
112
radeon_ucode_print_common_hdr(hdr);
sys/dev/pci/drm/radeon/radeon_ucode.c
116
container_of(hdr, struct rlc_firmware_header_v1_0, header);
sys/dev/pci/drm/radeon/radeon_ucode.c
133
void radeon_ucode_print_sdma_hdr(const struct common_firmware_header *hdr)
sys/dev/pci/drm/radeon/radeon_ucode.c
135
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/pci/drm/radeon/radeon_ucode.c
136
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/pci/drm/radeon/radeon_ucode.c
139
radeon_ucode_print_common_hdr(hdr);
sys/dev/pci/drm/radeon/radeon_ucode.c
143
container_of(hdr, struct sdma_firmware_header_v1_0, header);
sys/dev/pci/drm/radeon/radeon_ucode.c
159
const struct common_firmware_header *hdr =
sys/dev/pci/drm/radeon/radeon_ucode.c
162
if (fw->size == le32_to_cpu(hdr->size_bytes))
sys/dev/pci/drm/radeon/radeon_ucode.c
31
static void radeon_ucode_print_common_hdr(const struct common_firmware_header *hdr)
sys/dev/pci/drm/radeon/radeon_ucode.c
33
DRM_DEBUG("size_bytes: %u\n", le32_to_cpu(hdr->size_bytes));
sys/dev/pci/drm/radeon/radeon_ucode.c
34
DRM_DEBUG("header_size_bytes: %u\n", le32_to_cpu(hdr->header_size_bytes));
sys/dev/pci/drm/radeon/radeon_ucode.c
35
DRM_DEBUG("header_version_major: %u\n", le16_to_cpu(hdr->header_version_major));
sys/dev/pci/drm/radeon/radeon_ucode.c
36
DRM_DEBUG("header_version_minor: %u\n", le16_to_cpu(hdr->header_version_minor));
sys/dev/pci/drm/radeon/radeon_ucode.c
37
DRM_DEBUG("ip_version_major: %u\n", le16_to_cpu(hdr->ip_version_major));
sys/dev/pci/drm/radeon/radeon_ucode.c
38
DRM_DEBUG("ip_version_minor: %u\n", le16_to_cpu(hdr->ip_version_minor));
sys/dev/pci/drm/radeon/radeon_ucode.c
39
DRM_DEBUG("ucode_version: 0x%08x\n", le32_to_cpu(hdr->ucode_version));
sys/dev/pci/drm/radeon/radeon_ucode.c
40
DRM_DEBUG("ucode_size_bytes: %u\n", le32_to_cpu(hdr->ucode_size_bytes));
sys/dev/pci/drm/radeon/radeon_ucode.c
42
le32_to_cpu(hdr->ucode_array_offset_bytes));
sys/dev/pci/drm/radeon/radeon_ucode.c
43
DRM_DEBUG("crc32: 0x%08x\n", le32_to_cpu(hdr->crc32));
sys/dev/pci/drm/radeon/radeon_ucode.c
46
void radeon_ucode_print_mc_hdr(const struct common_firmware_header *hdr)
sys/dev/pci/drm/radeon/radeon_ucode.c
48
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/pci/drm/radeon/radeon_ucode.c
49
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/pci/drm/radeon/radeon_ucode.c
52
radeon_ucode_print_common_hdr(hdr);
sys/dev/pci/drm/radeon/radeon_ucode.c
56
container_of(hdr, struct mc_firmware_header_v1_0, header);
sys/dev/pci/drm/radeon/radeon_ucode.c
67
void radeon_ucode_print_smc_hdr(const struct common_firmware_header *hdr)
sys/dev/pci/drm/radeon/radeon_ucode.c
69
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/pci/drm/radeon/radeon_ucode.c
70
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/pci/drm/radeon/radeon_ucode.c
73
radeon_ucode_print_common_hdr(hdr);
sys/dev/pci/drm/radeon/radeon_ucode.c
77
container_of(hdr, struct smc_firmware_header_v1_0, header);
sys/dev/pci/drm/radeon/radeon_ucode.c
85
void radeon_ucode_print_gfx_hdr(const struct common_firmware_header *hdr)
sys/dev/pci/drm/radeon/radeon_ucode.c
87
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/pci/drm/radeon/radeon_ucode.c
88
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/pci/drm/radeon/radeon_ucode.c
91
radeon_ucode_print_common_hdr(hdr);
sys/dev/pci/drm/radeon/radeon_ucode.c
95
container_of(hdr, struct gfx_firmware_header_v1_0, header);
sys/dev/pci/drm/radeon/radeon_ucode.h
220
void radeon_ucode_print_mc_hdr(const struct common_firmware_header *hdr);
sys/dev/pci/drm/radeon/radeon_ucode.h
221
void radeon_ucode_print_smc_hdr(const struct common_firmware_header *hdr);
sys/dev/pci/drm/radeon/radeon_ucode.h
222
void radeon_ucode_print_gfx_hdr(const struct common_firmware_header *hdr);
sys/dev/pci/drm/radeon/radeon_ucode.h
223
void radeon_ucode_print_rlc_hdr(const struct common_firmware_header *hdr);
sys/dev/pci/drm/radeon/radeon_ucode.h
224
void radeon_ucode_print_sdma_hdr(const struct common_firmware_header *hdr);
sys/dev/pci/drm/radeon/radeon_uvd.c
146
struct common_firmware_header *hdr = (void *)rdev->uvd_fw->data;
sys/dev/pci/drm/radeon/radeon_uvd.c
155
family_id = (__force u32)(hdr->ucode_version) & 0xff;
sys/dev/pci/drm/radeon/radeon_uvd.c
156
version_major = (le32_to_cpu((__force __le32)(hdr->ucode_version))
sys/dev/pci/drm/radeon/radeon_uvd.c
158
version_minor = (le32_to_cpu((__force __le32)(hdr->ucode_version))
sys/dev/pci/drm/radeon/si.c
1564
const struct mc_firmware_header_v1_0 *hdr =
sys/dev/pci/drm/radeon/si.c
1567
radeon_ucode_print_mc_hdr(&hdr->header);
sys/dev/pci/drm/radeon/si.c
1568
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
sys/dev/pci/drm/radeon/si.c
1570
(rdev->mc_fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
sys/dev/pci/drm/radeon/si.c
1571
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/radeon/si.c
1573
(rdev->mc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/radeon/si.c
5871
const struct rlc_firmware_header_v1_0 *hdr =
sys/dev/pci/drm/radeon/si.c
5873
u32 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/pci/drm/radeon/si.c
5875
(rdev->rlc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/drm/radeon/si.c
5877
radeon_ucode_print_rlc_hdr(&hdr->header);
sys/dev/pci/drm/radeon/si_smc.c
223
const struct smc_firmware_header_v1_0 *hdr =
sys/dev/pci/drm/radeon/si_smc.c
226
radeon_ucode_print_smc_hdr(&hdr->header);
sys/dev/pci/drm/radeon/si_smc.c
228
ucode_start_address = le32_to_cpu(hdr->ucode_start_addr);
sys/dev/pci/drm/radeon/si_smc.c
229
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
sys/dev/pci/drm/radeon/si_smc.c
231
(rdev->smc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/pci/if_bnx.c
431
struct bnx_firmware_header *hdr = bfw->fw;
sys/dev/pci/if_bnx.c
436
if (hdr != NULL)
sys/dev/pci/if_bnx.c
447
hdr = (struct bnx_firmware_header *)p;
sys/dev/pci/if_bnx.c
449
hdr->bnx_COM_FwReleaseMajor = ntohl(hdr->bnx_COM_FwReleaseMajor);
sys/dev/pci/if_bnx.c
450
hdr->bnx_COM_FwReleaseMinor = ntohl(hdr->bnx_COM_FwReleaseMinor);
sys/dev/pci/if_bnx.c
451
hdr->bnx_COM_FwReleaseFix = ntohl(hdr->bnx_COM_FwReleaseFix);
sys/dev/pci/if_bnx.c
452
hdr->bnx_COM_FwStartAddr = ntohl(hdr->bnx_COM_FwStartAddr);
sys/dev/pci/if_bnx.c
453
hdr->bnx_COM_FwTextAddr = ntohl(hdr->bnx_COM_FwTextAddr);
sys/dev/pci/if_bnx.c
454
hdr->bnx_COM_FwTextLen = ntohl(hdr->bnx_COM_FwTextLen);
sys/dev/pci/if_bnx.c
455
hdr->bnx_COM_FwDataAddr = ntohl(hdr->bnx_COM_FwDataAddr);
sys/dev/pci/if_bnx.c
456
hdr->bnx_COM_FwDataLen = ntohl(hdr->bnx_COM_FwDataLen);
sys/dev/pci/if_bnx.c
457
hdr->bnx_COM_FwRodataAddr = ntohl(hdr->bnx_COM_FwRodataAddr);
sys/dev/pci/if_bnx.c
458
hdr->bnx_COM_FwRodataLen = ntohl(hdr->bnx_COM_FwRodataLen);
sys/dev/pci/if_bnx.c
459
hdr->bnx_COM_FwBssAddr = ntohl(hdr->bnx_COM_FwBssAddr);
sys/dev/pci/if_bnx.c
460
hdr->bnx_COM_FwBssLen = ntohl(hdr->bnx_COM_FwBssLen);
sys/dev/pci/if_bnx.c
461
hdr->bnx_COM_FwSbssAddr = ntohl(hdr->bnx_COM_FwSbssAddr);
sys/dev/pci/if_bnx.c
462
hdr->bnx_COM_FwSbssLen = ntohl(hdr->bnx_COM_FwSbssLen);
sys/dev/pci/if_bnx.c
464
hdr->bnx_RXP_FwReleaseMajor = ntohl(hdr->bnx_RXP_FwReleaseMajor);
sys/dev/pci/if_bnx.c
465
hdr->bnx_RXP_FwReleaseMinor = ntohl(hdr->bnx_RXP_FwReleaseMinor);
sys/dev/pci/if_bnx.c
466
hdr->bnx_RXP_FwReleaseFix = ntohl(hdr->bnx_RXP_FwReleaseFix);
sys/dev/pci/if_bnx.c
467
hdr->bnx_RXP_FwStartAddr = ntohl(hdr->bnx_RXP_FwStartAddr);
sys/dev/pci/if_bnx.c
468
hdr->bnx_RXP_FwTextAddr = ntohl(hdr->bnx_RXP_FwTextAddr);
sys/dev/pci/if_bnx.c
469
hdr->bnx_RXP_FwTextLen = ntohl(hdr->bnx_RXP_FwTextLen);
sys/dev/pci/if_bnx.c
470
hdr->bnx_RXP_FwDataAddr = ntohl(hdr->bnx_RXP_FwDataAddr);
sys/dev/pci/if_bnx.c
471
hdr->bnx_RXP_FwDataLen = ntohl(hdr->bnx_RXP_FwDataLen);
sys/dev/pci/if_bnx.c
472
hdr->bnx_RXP_FwRodataAddr = ntohl(hdr->bnx_RXP_FwRodataAddr);
sys/dev/pci/if_bnx.c
473
hdr->bnx_RXP_FwRodataLen = ntohl(hdr->bnx_RXP_FwRodataLen);
sys/dev/pci/if_bnx.c
474
hdr->bnx_RXP_FwBssAddr = ntohl(hdr->bnx_RXP_FwBssAddr);
sys/dev/pci/if_bnx.c
475
hdr->bnx_RXP_FwBssLen = ntohl(hdr->bnx_RXP_FwBssLen);
sys/dev/pci/if_bnx.c
476
hdr->bnx_RXP_FwSbssAddr = ntohl(hdr->bnx_RXP_FwSbssAddr);
sys/dev/pci/if_bnx.c
477
hdr->bnx_RXP_FwSbssLen = ntohl(hdr->bnx_RXP_FwSbssLen);
sys/dev/pci/if_bnx.c
479
hdr->bnx_TPAT_FwReleaseMajor = ntohl(hdr->bnx_TPAT_FwReleaseMajor);
sys/dev/pci/if_bnx.c
480
hdr->bnx_TPAT_FwReleaseMinor = ntohl(hdr->bnx_TPAT_FwReleaseMinor);
sys/dev/pci/if_bnx.c
481
hdr->bnx_TPAT_FwReleaseFix = ntohl(hdr->bnx_TPAT_FwReleaseFix);
sys/dev/pci/if_bnx.c
482
hdr->bnx_TPAT_FwStartAddr = ntohl(hdr->bnx_TPAT_FwStartAddr);
sys/dev/pci/if_bnx.c
483
hdr->bnx_TPAT_FwTextAddr = ntohl(hdr->bnx_TPAT_FwTextAddr);
sys/dev/pci/if_bnx.c
484
hdr->bnx_TPAT_FwTextLen = ntohl(hdr->bnx_TPAT_FwTextLen);
sys/dev/pci/if_bnx.c
485
hdr->bnx_TPAT_FwDataAddr = ntohl(hdr->bnx_TPAT_FwDataAddr);
sys/dev/pci/if_bnx.c
486
hdr->bnx_TPAT_FwDataLen = ntohl(hdr->bnx_TPAT_FwDataLen);
sys/dev/pci/if_bnx.c
487
hdr->bnx_TPAT_FwRodataAddr = ntohl(hdr->bnx_TPAT_FwRodataAddr);
sys/dev/pci/if_bnx.c
488
hdr->bnx_TPAT_FwRodataLen = ntohl(hdr->bnx_TPAT_FwRodataLen);
sys/dev/pci/if_bnx.c
489
hdr->bnx_TPAT_FwBssAddr = ntohl(hdr->bnx_TPAT_FwBssAddr);
sys/dev/pci/if_bnx.c
490
hdr->bnx_TPAT_FwBssLen = ntohl(hdr->bnx_TPAT_FwBssLen);
sys/dev/pci/if_bnx.c
491
hdr->bnx_TPAT_FwSbssAddr = ntohl(hdr->bnx_TPAT_FwSbssAddr);
sys/dev/pci/if_bnx.c
492
hdr->bnx_TPAT_FwSbssLen = ntohl(hdr->bnx_TPAT_FwSbssLen);
sys/dev/pci/if_bnx.c
494
hdr->bnx_TXP_FwReleaseMajor = ntohl(hdr->bnx_TXP_FwReleaseMajor);
sys/dev/pci/if_bnx.c
495
hdr->bnx_TXP_FwReleaseMinor = ntohl(hdr->bnx_TXP_FwReleaseMinor);
sys/dev/pci/if_bnx.c
496
hdr->bnx_TXP_FwReleaseFix = ntohl(hdr->bnx_TXP_FwReleaseFix);
sys/dev/pci/if_bnx.c
497
hdr->bnx_TXP_FwStartAddr = ntohl(hdr->bnx_TXP_FwStartAddr);
sys/dev/pci/if_bnx.c
498
hdr->bnx_TXP_FwTextAddr = ntohl(hdr->bnx_TXP_FwTextAddr);
sys/dev/pci/if_bnx.c
499
hdr->bnx_TXP_FwTextLen = ntohl(hdr->bnx_TXP_FwTextLen);
sys/dev/pci/if_bnx.c
500
hdr->bnx_TXP_FwDataAddr = ntohl(hdr->bnx_TXP_FwDataAddr);
sys/dev/pci/if_bnx.c
501
hdr->bnx_TXP_FwDataLen = ntohl(hdr->bnx_TXP_FwDataLen);
sys/dev/pci/if_bnx.c
502
hdr->bnx_TXP_FwRodataAddr = ntohl(hdr->bnx_TXP_FwRodataAddr);
sys/dev/pci/if_bnx.c
503
hdr->bnx_TXP_FwRodataLen = ntohl(hdr->bnx_TXP_FwRodataLen);
sys/dev/pci/if_bnx.c
504
hdr->bnx_TXP_FwBssAddr = ntohl(hdr->bnx_TXP_FwBssAddr);
sys/dev/pci/if_bnx.c
505
hdr->bnx_TXP_FwBssLen = ntohl(hdr->bnx_TXP_FwBssLen);
sys/dev/pci/if_bnx.c
506
hdr->bnx_TXP_FwSbssAddr = ntohl(hdr->bnx_TXP_FwSbssAddr);
sys/dev/pci/if_bnx.c
507
hdr->bnx_TXP_FwSbssLen = ntohl(hdr->bnx_TXP_FwSbssLen);
sys/dev/pci/if_bnx.c
509
q = p + sizeof(*hdr);
sys/dev/pci/if_bnx.c
512
q += hdr->bnx_COM_FwTextLen;
sys/dev/pci/if_bnx.c
513
nswaph(bfw->bnx_COM_FwText, hdr->bnx_COM_FwTextLen);
sys/dev/pci/if_bnx.c
515
q += hdr->bnx_COM_FwDataLen;
sys/dev/pci/if_bnx.c
516
nswaph(bfw->bnx_COM_FwData, hdr->bnx_COM_FwDataLen);
sys/dev/pci/if_bnx.c
518
q += hdr->bnx_COM_FwRodataLen;
sys/dev/pci/if_bnx.c
519
nswaph(bfw->bnx_COM_FwRodata, hdr->bnx_COM_FwRodataLen);
sys/dev/pci/if_bnx.c
521
q += hdr->bnx_COM_FwBssLen;
sys/dev/pci/if_bnx.c
522
nswaph(bfw->bnx_COM_FwBss, hdr->bnx_COM_FwBssLen);
sys/dev/pci/if_bnx.c
524
q += hdr->bnx_COM_FwSbssLen;
sys/dev/pci/if_bnx.c
525
nswaph(bfw->bnx_COM_FwSbss, hdr->bnx_COM_FwSbssLen);
sys/dev/pci/if_bnx.c
528
q += hdr->bnx_RXP_FwTextLen;
sys/dev/pci/if_bnx.c
529
nswaph(bfw->bnx_RXP_FwText, hdr->bnx_RXP_FwTextLen);
sys/dev/pci/if_bnx.c
531
q += hdr->bnx_RXP_FwDataLen;
sys/dev/pci/if_bnx.c
532
nswaph(bfw->bnx_RXP_FwData, hdr->bnx_RXP_FwDataLen);
sys/dev/pci/if_bnx.c
534
q += hdr->bnx_RXP_FwRodataLen;
sys/dev/pci/if_bnx.c
535
nswaph(bfw->bnx_RXP_FwRodata, hdr->bnx_RXP_FwRodataLen);
sys/dev/pci/if_bnx.c
537
q += hdr->bnx_RXP_FwBssLen;
sys/dev/pci/if_bnx.c
538
nswaph(bfw->bnx_RXP_FwBss, hdr->bnx_RXP_FwBssLen);
sys/dev/pci/if_bnx.c
540
q += hdr->bnx_RXP_FwSbssLen;
sys/dev/pci/if_bnx.c
541
nswaph(bfw->bnx_RXP_FwSbss, hdr->bnx_RXP_FwSbssLen);
sys/dev/pci/if_bnx.c
544
q += hdr->bnx_TPAT_FwTextLen;
sys/dev/pci/if_bnx.c
545
nswaph(bfw->bnx_TPAT_FwText, hdr->bnx_TPAT_FwTextLen);
sys/dev/pci/if_bnx.c
547
q += hdr->bnx_TPAT_FwDataLen;
sys/dev/pci/if_bnx.c
548
nswaph(bfw->bnx_TPAT_FwData, hdr->bnx_TPAT_FwDataLen);
sys/dev/pci/if_bnx.c
550
q += hdr->bnx_TPAT_FwRodataLen;
sys/dev/pci/if_bnx.c
551
nswaph(bfw->bnx_TPAT_FwRodata, hdr->bnx_TPAT_FwRodataLen);
sys/dev/pci/if_bnx.c
553
q += hdr->bnx_TPAT_FwBssLen;
sys/dev/pci/if_bnx.c
554
nswaph(bfw->bnx_TPAT_FwBss, hdr->bnx_TPAT_FwBssLen);
sys/dev/pci/if_bnx.c
556
q += hdr->bnx_TPAT_FwSbssLen;
sys/dev/pci/if_bnx.c
557
nswaph(bfw->bnx_TPAT_FwSbss, hdr->bnx_TPAT_FwSbssLen);
sys/dev/pci/if_bnx.c
560
q += hdr->bnx_TXP_FwTextLen;
sys/dev/pci/if_bnx.c
561
nswaph(bfw->bnx_TXP_FwText, hdr->bnx_TXP_FwTextLen);
sys/dev/pci/if_bnx.c
563
q += hdr->bnx_TXP_FwDataLen;
sys/dev/pci/if_bnx.c
564
nswaph(bfw->bnx_TXP_FwData, hdr->bnx_TXP_FwDataLen);
sys/dev/pci/if_bnx.c
566
q += hdr->bnx_TXP_FwRodataLen;
sys/dev/pci/if_bnx.c
567
nswaph(bfw->bnx_TXP_FwRodata, hdr->bnx_TXP_FwRodataLen);
sys/dev/pci/if_bnx.c
569
q += hdr->bnx_TXP_FwBssLen;
sys/dev/pci/if_bnx.c
570
nswaph(bfw->bnx_TXP_FwBss, hdr->bnx_TXP_FwBssLen);
sys/dev/pci/if_bnx.c
572
q += hdr->bnx_TXP_FwSbssLen;
sys/dev/pci/if_bnx.c
573
nswaph(bfw->bnx_TXP_FwSbss, hdr->bnx_TXP_FwSbssLen);
sys/dev/pci/if_bnx.c
577
hdr = NULL;
sys/dev/pci/if_bnx.c
581
bfw->fw = hdr;
sys/dev/pci/if_bnx.c
590
struct bnx_rv2p_header *hdr = rv2p->fw;
sys/dev/pci/if_bnx.c
595
if (hdr != NULL)
sys/dev/pci/if_bnx.c
606
hdr = (struct bnx_rv2p_header *)p;
sys/dev/pci/if_bnx.c
608
hdr->bnx_rv2p_proc1len = ntohl(hdr->bnx_rv2p_proc1len);
sys/dev/pci/if_bnx.c
609
hdr->bnx_rv2p_proc2len = ntohl(hdr->bnx_rv2p_proc2len);
sys/dev/pci/if_bnx.c
611
q = p + sizeof(*hdr);
sys/dev/pci/if_bnx.c
614
q += hdr->bnx_rv2p_proc1len;
sys/dev/pci/if_bnx.c
615
nswaph(rv2p->bnx_rv2p_proc1, hdr->bnx_rv2p_proc1len);
sys/dev/pci/if_bnx.c
617
q += hdr->bnx_rv2p_proc2len;
sys/dev/pci/if_bnx.c
618
nswaph(rv2p->bnx_rv2p_proc2, hdr->bnx_rv2p_proc2len);
sys/dev/pci/if_bnx.c
625
rv2p->fw = hdr;
sys/dev/pci/if_em_hw.c
9415
struct em_host_mng_dhcp_cookie *hdr = &(hw->mng_cookie);
sys/dev/pci/if_em_hw.c
9422
checksum = hdr->checksum;
sys/dev/pci/if_em_hw.c
9423
hdr->checksum = 0;
sys/dev/pci/if_em_hw.c
9424
if ((hdr->signature == E1000_IAMT_SIGNATURE) &&
sys/dev/pci/if_em_hw.c
9428
if (hdr->status &
sys/dev/pci/if_ice.c
14901
struct ice_buf_hdr *hdr;
sys/dev/pci/if_ice.c
14905
hdr = (struct ice_buf_hdr *)buf->buf;
sys/dev/pci/if_ice.c
14907
section_count = le16toh(hdr->section_count);
sys/dev/pci/if_ice.c
14911
data_end = le16toh(hdr->data_end);
sys/dev/pci/if_ice.c
14915
return hdr;
sys/dev/pci/if_ice.c
15819
if ((*seg)->hdr.seg_format_ver.major !=
sys/dev/pci/if_ice.c
15821
(*seg)->hdr.seg_format_ver.minor >
sys/dev/pci/if_ice.c
16800
ice_seg->hdr.seg_format_ver.major,
sys/dev/pci/if_ice.c
16801
ice_seg->hdr.seg_format_ver.minor,
sys/dev/pci/if_ice.c
16802
ice_seg->hdr.seg_format_ver.update,
sys/dev/pci/if_ice.c
16803
ice_seg->hdr.seg_format_ver.draft);
sys/dev/pci/if_ice.c
16806
le32toh(ice_seg->hdr.seg_type),
sys/dev/pci/if_ice.c
16807
le32toh(ice_seg->hdr.seg_size), ice_seg->hdr.seg_id);
sys/dev/pci/if_ice.c
21822
buf->hdr.parent_teid = parent->info.node_teid;
sys/dev/pci/if_ice.c
21823
buf->hdr.num_elems = htole16(num_nodes);
sys/dev/pci/if_ice.c
24328
#define ICE_FLOW_GEN_PROFID(hash, hdr, encap) \
sys/dev/pci/if_ice.c
24330
(((uint64_t)(hdr) << ICE_FLOW_PROF_HDR_S) & \
sys/dev/pci/if_ice.c
24403
enum ice_flow_seg_hdr hdr;
sys/dev/pci/if_ice.c
24409
.hdr = _hdr, \
sys/dev/pci/if_ice.c
25766
ICE_FLOW_SET_HDRS(seg, ice_flds_info[fld].hdr);
sys/dev/pci/if_ice.c
27464
typelen = NTOHS(tlv->hdr.typelen);
sys/dev/pci/if_ice.c
27538
typelen = ntohs(sub_tlv->hdr.typelen);
sys/dev/pci/if_ice.c
27558
((char *)sub_tlv + sizeof(sub_tlv->hdr.typelen) +
sys/dev/pci/if_ice.c
5954
buf->hdr.parent_teid = parent->info.node_teid;
sys/dev/pci/if_ice.c
5955
buf->hdr.num_elems = htole16(num_nodes);
sys/dev/pci/if_ice.c
6154
num_elems = le16toh(buf[0].hdr.num_elems);
sys/dev/pci/if_ice.c
6181
num_elems = le16toh(buf[i].hdr.num_elems);
sys/dev/pci/if_ice.c
8274
s_rule->hdr.type = (f_info->flag & ICE_FLTR_RX) ?
sys/dev/pci/if_ice.c
8553
s_rule->hdr.type = htole16(rule_type);
sys/dev/pci/if_ice.c
8701
lg_act->hdr.type = htole16(ICE_AQC_SW_RULES_T_LG_ACT);
sys/dev/pci/if_icereg.h
10292
struct ice_aqc_sw_rules_elem_hdr hdr;
sys/dev/pci/if_icereg.h
10380
struct ice_aqc_sw_rules_elem_hdr hdr;
sys/dev/pci/if_icereg.h
10442
struct ice_aqc_sw_rules_elem_hdr hdr;
sys/dev/pci/if_icereg.h
10544
struct ice_aqc_txsched_move_grp_info_hdr hdr;
sys/dev/pci/if_icereg.h
10597
struct ice_aqc_txsched_topo_grp_info_hdr hdr;
sys/dev/pci/if_icereg.h
10602
struct ice_aqc_txsched_topo_grp_info_hdr hdr;
sys/dev/pci/if_icereg.h
10608
struct ice_aqc_txsched_topo_grp_info_hdr hdr;
sys/dev/pci/if_icevar.h
1822
struct ice_cee_tlv_hdr hdr;
sys/dev/pci/if_icevar.h
1828
struct ice_cee_tlv_hdr hdr;
sys/dev/pci/if_icevar.h
3151
struct ice_generic_seg_hdr hdr;
sys/dev/pci/if_icevar.h
3172
struct ice_generic_seg_hdr hdr;
sys/dev/pci/if_icevar.h
3179
struct ice_generic_seg_hdr hdr;
sys/dev/pci/if_icevar.h
3191
struct ice_generic_seg_hdr hdr;
sys/dev/pci/if_ipw.c
1178
shdr->hdr.type = htole32(IPW_HDR_TYPE_SEND);
sys/dev/pci/if_ipw.c
1179
shdr->hdr.subtype = htole32(0);
sys/dev/pci/if_ipw.c
1180
shdr->hdr.encrypted = (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) ? 1 : 0;
sys/dev/pci/if_ipw.c
1181
shdr->hdr.encrypt = 0;
sys/dev/pci/if_ipw.c
1182
shdr->hdr.keyidx = 0;
sys/dev/pci/if_ipw.c
1183
shdr->hdr.keysz = 0;
sys/dev/pci/if_ipw.c
1184
shdr->hdr.fragmentsz = htole16(0);
sys/dev/pci/if_ipw.c
1185
IEEE80211_ADDR_COPY(shdr->hdr.src_addr, wh->i_addr2);
sys/dev/pci/if_ipw.c
1187
IEEE80211_ADDR_COPY(shdr->hdr.dst_addr, wh->i_addr3);
sys/dev/pci/if_ipw.c
1189
IEEE80211_ADDR_COPY(shdr->hdr.dst_addr, wh->i_addr1);
sys/dev/pci/if_ipw.c
1217
error = bus_dmamap_load(sc->sc_dmat, shdr->map, &shdr->hdr,
sys/dev/pci/if_ipw.c
1598
const struct ipw_firmware_hdr *hdr;
sys/dev/pci/if_ipw.c
1621
if (fw->size < sizeof (*hdr)) {
sys/dev/pci/if_ipw.c
1625
hdr = (const struct ipw_firmware_hdr *)fw->data;
sys/dev/pci/if_ipw.c
1626
fw->main_size = letoh32(hdr->main_size);
sys/dev/pci/if_ipw.c
1627
fw->ucode_size = letoh32(hdr->ucode_size);
sys/dev/pci/if_ipw.c
1629
if (fw->size < sizeof (*hdr) + fw->main_size + fw->ucode_size) {
sys/dev/pci/if_ipw.c
1633
fw->main = fw->data + sizeof (*hdr);
sys/dev/pci/if_ipwvar.h
40
struct ipw_hdr hdr;
sys/dev/pci/if_iwi.c
1084
struct iwi_hdr *hdr;
sys/dev/pci/if_iwi.c
1095
hdr = mtod(data->m, struct iwi_hdr *);
sys/dev/pci/if_iwi.c
1097
switch (hdr->type) {
sys/dev/pci/if_iwi.c
1100
(struct iwi_frame *)(hdr + 1), &ml);
sys/dev/pci/if_iwi.c
1105
(struct iwi_notif *)(hdr + 1));
sys/dev/pci/if_iwi.c
1110
sc->sc_dev.dv_xname, hdr->type);
sys/dev/pci/if_iwi.c
1218
desc->hdr.type = IWI_HDR_TYPE_COMMAND;
sys/dev/pci/if_iwi.c
1219
desc->hdr.flags = IWI_HDR_FLAG_IRQ;
sys/dev/pci/if_iwi.c
1333
desc->hdr.type = IWI_HDR_TYPE_DATA;
sys/dev/pci/if_iwi.c
1334
desc->hdr.flags = IWI_HDR_FLAG_IRQ;
sys/dev/pci/if_iwi.c
2157
struct iwi_firmware_hdr *hdr;
sys/dev/pci/if_iwi.c
2200
hdr = (struct iwi_firmware_hdr *)data;
sys/dev/pci/if_iwi.c
2202
if (hdr->vermaj < 3 || hdr->bootsz == 0 || hdr->ucodesz == 0 ||
sys/dev/pci/if_iwi.c
2203
hdr->mainsz == 0) {
sys/dev/pci/if_iwi.c
2210
if (size < sizeof (struct iwi_firmware_hdr) + letoh32(hdr->bootsz) +
sys/dev/pci/if_iwi.c
2211
letoh32(hdr->ucodesz) + letoh32(hdr->mainsz)) {
sys/dev/pci/if_iwi.c
2219
if ((error = iwi_load_firmware(sc, fw, letoh32(hdr->bootsz))) != 0) {
sys/dev/pci/if_iwi.c
2226
letoh32(hdr->bootsz);
sys/dev/pci/if_iwi.c
2227
if ((error = iwi_load_ucode(sc, fw, letoh32(hdr->ucodesz))) != 0) {
sys/dev/pci/if_iwi.c
2253
letoh32(hdr->bootsz) + letoh32(hdr->ucodesz);
sys/dev/pci/if_iwi.c
2254
if ((error = iwi_load_firmware(sc, fw, letoh32(hdr->mainsz))) != 0) {
sys/dev/pci/if_iwireg.h
193
struct iwi_hdr hdr;
sys/dev/pci/if_iwireg.h
235
struct iwi_hdr hdr;
sys/dev/pci/if_iwm.c
11004
qid = pkt->hdr.qid & ~0x80;
sys/dev/pci/if_iwm.c
11005
idx = pkt->hdr.idx;
sys/dev/pci/if_iwm.c
11006
code = IWM_WIDE_ID(pkt->hdr.flags, pkt->hdr.code);
sys/dev/pci/if_iwm.c
11019
const size_t minsz = sizeof(pkt->len_n_flags) + sizeof(pkt->hdr);
sys/dev/pci/if_iwm.c
11028
qid = pkt->hdr.qid;
sys/dev/pci/if_iwm.c
11029
idx = pkt->hdr.idx;
sys/dev/pci/if_iwm.c
11031
code = IWM_WIDE_ID(pkt->hdr.flags, pkt->hdr.code);
sys/dev/pci/if_iwm.c
11246
if ((pkt->hdr.flags & IWM_CMD_FAILED_MSK) ||
sys/dev/pci/if_iwm.c
2819
if (!pkt || (pkt->hdr.flags & IWM_CMD_FAILED_MSK)) {
sys/dev/pci/if_iwm.c
2951
if (pkt->hdr.flags & IWM_CMD_FAILED_MSK) {
sys/dev/pci/if_iwm.c
5840
struct iwm_cmd_header *cmd_hdr = &pkt->hdr;
sys/dev/pci/if_iwm.c
6324
hdrlen = sizeof(cmd->hdr);
sys/dev/pci/if_iwm.c
6369
cmd->hdr.code = code;
sys/dev/pci/if_iwm.c
6370
cmd->hdr.flags = 0;
sys/dev/pci/if_iwm.c
6371
cmd->hdr.qid = ring->qid;
sys/dev/pci/if_iwm.c
6372
cmd->hdr.idx = idx;
sys/dev/pci/if_iwm.c
6477
if (pkt == NULL || (pkt->hdr.flags & IWM_CMD_FAILED_MSK))
sys/dev/pci/if_iwm.c
6779
cmd->hdr.code = IWM_TX_CMD;
sys/dev/pci/if_iwm.c
6780
cmd->hdr.flags = 0;
sys/dev/pci/if_iwm.c
6781
cmd->hdr.qid = ring->qid;
sys/dev/pci/if_iwm.c
6782
cmd->hdr.idx = ring->cur;
sys/dev/pci/if_iwm.c
9867
if (!pkt || (pkt->hdr.flags & IWM_CMD_FAILED_MSK)) {
sys/dev/pci/if_iwmreg.h
4938
struct ieee80211_frame hdr[0];
sys/dev/pci/if_iwmreg.h
6761
struct iwm_cmd_header hdr;
sys/dev/pci/if_iwmreg.h
6791
struct iwm_cmd_header hdr;
sys/dev/pci/if_iwmreg.h
6814
return iwm_rx_packet_len(pkt) - sizeof(pkt->hdr);
sys/dev/pci/if_iwn.c
1557
struct iwn5000_eeprom_calib_hdr hdr;
sys/dev/pci/if_iwn.c
1581
iwn_read_prom_data(sc, base, &hdr, sizeof hdr);
sys/dev/pci/if_iwn.c
1583
hdr.version, hdr.pa_type, letoh16(hdr.volt)));
sys/dev/pci/if_iwn.c
1584
sc->calib_ver = hdr.version;
sys/dev/pci/if_iwn.c
1590
sc->eeprom_voltage = letoh16(hdr.volt);
sys/dev/pci/if_iwn.c
5147
struct iwn_scan_hdr *hdr;
sys/dev/pci/if_iwn.c
5165
hdr = (struct iwn_scan_hdr *)buf;
sys/dev/pci/if_iwn.c
5170
hdr->quiet_time = htole16(10); /* timeout in milliseconds */
sys/dev/pci/if_iwn.c
5171
hdr->quiet_threshold = htole16(1); /* min # of packets */
sys/dev/pci/if_iwn.c
5177
hdr->max_out = htole32(200 * 1024);
sys/dev/pci/if_iwn.c
5181
hdr->pause_scan = htole32(((100 / bintval) << 22) |
sys/dev/pci/if_iwn.c
5199
hdr->rxchain = htole16(rxchain);
sys/dev/pci/if_iwn.c
5200
hdr->filter = htole32(IWN_FILTER_MULTICAST | IWN_FILTER_BEACON);
sys/dev/pci/if_iwn.c
5202
tx = (struct iwn_cmd_data *)(hdr + 1);
sys/dev/pci/if_iwn.c
5212
hdr->flags = htole32(IWN_RXON_24GHZ | IWN_RXON_AUTO);
sys/dev/pci/if_iwn.c
5303
hdr->crc_threshold = is_active ?
sys/dev/pci/if_iwn.c
5306
hdr->crc_threshold = is_active ?
sys/dev/pci/if_iwn.c
5346
hdr->nchan++;
sys/dev/pci/if_iwn.c
5351
hdr->len = htole16(buflen);
sys/dev/pci/if_iwn.c
6627
const struct iwn_fw_tlv_hdr *hdr;
sys/dev/pci/if_iwn.c
6633
if (fw->size < sizeof (*hdr)) {
sys/dev/pci/if_iwn.c
6638
hdr = (const struct iwn_fw_tlv_hdr *)fw->data;
sys/dev/pci/if_iwn.c
6639
if (hdr->signature != htole32(IWN_FW_SIGNATURE)) {
sys/dev/pci/if_iwn.c
6641
sc->sc_dev.dv_xname, letoh32(hdr->signature));
sys/dev/pci/if_iwn.c
6644
DPRINTF(("FW: \"%.64s\", build 0x%x\n", hdr->descr,
sys/dev/pci/if_iwn.c
6645
letoh32(hdr->build)));
sys/dev/pci/if_iwn.c
6651
altmask = letoh64(hdr->altmask);
sys/dev/pci/if_iwn.c
6656
ptr = (const uint8_t *)(hdr + 1);
sys/dev/pci/if_iwx.c
10765
qid = pkt->hdr.qid & ~0x80;
sys/dev/pci/if_iwx.c
10766
idx = pkt->hdr.idx;
sys/dev/pci/if_iwx.c
10767
code = IWX_WIDE_ID(pkt->hdr.flags, pkt->hdr.code);
sys/dev/pci/if_iwx.c
10780
const size_t minsz = sizeof(pkt->len_n_flags) + sizeof(pkt->hdr);
sys/dev/pci/if_iwx.c
10789
qid = pkt->hdr.qid;
sys/dev/pci/if_iwx.c
10790
idx = pkt->hdr.idx;
sys/dev/pci/if_iwx.c
10792
code = IWX_WIDE_ID(pkt->hdr.flags, pkt->hdr.code);
sys/dev/pci/if_iwx.c
11044
if ((pkt->hdr.flags & IWX_CMD_FAILED_MSK) ||
sys/dev/pci/if_iwx.c
2969
if (!pkt || (pkt->hdr.flags & IWX_CMD_FAILED_MSK)) {
sys/dev/pci/if_iwx.c
3049
if (!pkt || (pkt->hdr.flags & IWX_CMD_FAILED_MSK)) {
sys/dev/pci/if_iwx.c
5406
struct iwx_cmd_header *cmd_hdr = &pkt->hdr;
sys/dev/pci/if_iwx.c
6006
if (pkt == NULL || (pkt->hdr.flags & IWX_CMD_FAILED_MSK))
sys/dev/pci/if_iwx.c
6268
cmd->hdr.code = IWX_TX_CMD;
sys/dev/pci/if_iwx.c
6269
cmd->hdr.flags = 0;
sys/dev/pci/if_iwx.c
6270
cmd->hdr.qid = ring->qid;
sys/dev/pci/if_iwx.c
6271
cmd->hdr.idx = ring->cur;
sys/dev/pci/if_iwx.c
6353
memcpy(tx->hdr, wh, hdrlen);
sys/dev/pci/if_iwx.c
6362
memcpy(tx->hdr, wh, hdrlen);
sys/dev/pci/if_iwx.c
6475
if (!pkt || (pkt->hdr.flags & IWX_CMD_FAILED_MSK)) {
sys/dev/pci/if_iwx.c
9895
if (!pkt || (pkt->hdr.flags & IWX_CMD_FAILED_MSK)) {
sys/dev/pci/if_iwxreg.h
6729
struct ieee80211_frame hdr[0];
sys/dev/pci/if_iwxreg.h
6752
struct ieee80211_frame hdr[];
sys/dev/pci/if_iwxreg.h
8876
struct iwx_cmd_header hdr;
sys/dev/pci/if_iwxreg.h
8906
struct iwx_cmd_header hdr;
sys/dev/pci/if_iwxreg.h
8929
return iwx_rx_packet_len(pkt) - sizeof(pkt->hdr);
sys/dev/pci/if_ixl.c
3930
struct ixl_aq_switch_config *hdr;
sys/dev/pci/if_ixl.c
3967
hdr = IXL_DMA_KVA(&idm);
sys/dev/pci/if_ixl.c
3968
elms = (struct ixl_aq_switch_config_element *)(hdr + 1);
sys/dev/pci/if_ixl.c
3970
nelm = lemtoh16(&hdr->num_reported);
sys/dev/pci/if_mwx.c
2861
struct mt7921_patch_hdr *hdr;
sys/dev/pci/if_mwx.c
2895
if (buflen < sizeof(*hdr)) {
sys/dev/pci/if_mwx.c
2900
hdr = (struct mt7921_patch_hdr *)buf;
sys/dev/pci/if_mwx.c
2902
DEVNAME(sc), be32toh(hdr->hw_sw_ver), hdr->build_date);
sys/dev/pci/if_mwx.c
2904
for (i = 0; i < be32toh(hdr->desc.n_region); i++) {
sys/dev/pci/if_mwx.c
2908
sec = (struct mt7921_patch_sec *)(buf + sizeof(*hdr) +
sys/dev/pci/if_mwx.c
3196
} __packed *hdr;
sys/dev/pci/if_mwx.c
3227
if (m->m_len < sizeof(*hdr)) {
sys/dev/pci/if_mwx.c
3232
hdr = mtod(m, struct mt76_connac_cap_hdr *);
sys/dev/pci/if_mwx.c
3233
count = le16toh(hdr->n_elements);
sys/dev/pci/if_mwx.c
3234
m_adj(m, sizeof(*hdr));
sys/dev/pci/if_mwx.c
3571
} __packed *hdr;
sys/dev/pci/if_mwx.c
3583
len = sizeof(*hdr) + IEEE80211_CHAN_MAX * sizeof(channel);
sys/dev/pci/if_mwx.c
3587
hdr = mtod(m, void *);
sys/dev/pci/if_mwx.c
3589
hdr->alpha2[0] = '0';
sys/dev/pci/if_mwx.c
3590
hdr->alpha2[1] = '0';
sys/dev/pci/if_mwx.c
3592
channel = (void *)(hdr + 1);
sys/dev/pci/if_mwx.c
3594
hdr->bw_2g = 0; /* BW_20_40M */
sys/dev/pci/if_mwx.c
3606
hdr->bw_5g = 3; /* BW_20_40_80_160M */
sys/dev/pci/if_mwx.c
3620
hdr->bw_6g = 3; /* BW_20_40_80_160M */
sys/dev/pci/if_mwx.c
3634
memcpy(hdr->alpha2, sc->sc_alpha2, sizeof(sc->sc_alpha2));
sys/dev/pci/if_mwx.c
3635
hdr->n_2ch = n_2ch;
sys/dev/pci/if_mwx.c
3636
hdr->n_5ch = n_5ch;
sys/dev/pci/if_mwx.c
3637
hdr->n_6ch = n_6ch;
sys/dev/pci/if_mwx.c
3937
} __packed hdr;
sys/dev/pci/if_mwx.c
3946
.hdr = {
sys/dev/pci/if_mwx.c
3960
} __packed hdr;
sys/dev/pci/if_mwx.c
3963
.hdr = {
sys/dev/pci/if_mwx.c
4512
struct ieee80211_hdr *hdr;
sys/dev/pci/if_mwx.c
4520
hdr = mt76_skb_get_hdr(skb);
sys/dev/pci/if_mwx.c
4521
fc = hdr->frame_control;
sys/dev/pci/if_mwx.c
4523
seq_ctrl = le16_to_cpu(hdr->seq_ctrl);
sys/dev/pci/if_mwx.c
4524
qos_ctl = *ieee80211_get_qos_ctl(hdr);
sys/dev/pci/if_mwx.c
4606
} else if (ieee80211_is_back_req(hdr->frame_control)) {
sys/dev/pci/if_mwx.c
4607
struct ieee80211_bar *bar = (struct ieee80211_bar *)hdr;
sys/dev/pci/if_mwx.c
4655
u16 seqno = le16_to_cpu(hdr->seq_ctrl);
sys/dev/pci/if_mwx.c
4657
if (ieee80211_is_back_req(hdr->frame_control)) {
sys/dev/pci/if_mwx.c
5129
struct sta_req_hdr *hdr;
sys/dev/pci/if_mwx.c
5135
m = mt7921_alloc_sta_tlv(sizeof(*hdr));
sys/dev/pci/if_mwx.c
5162
KASSERT(m_leadingspace(m) >= sizeof(*hdr));
sys/dev/pci/if_mwx.c
5163
m = m_prepend(m, sizeof(*hdr), M_DONTWAIT);
sys/dev/pci/if_mwx.c
5164
hdr = mtod(m, struct sta_req_hdr *);
sys/dev/pci/if_mwx.c
5165
memset(hdr, 0, sizeof(*hdr));
sys/dev/pci/if_mwx.c
5166
hdr->bss_idx = mvif->idx,
sys/dev/pci/if_mwx.c
5167
hdr->wlan_idx_lo = mw ? mw->wcid & 0xff : 0,
sys/dev/pci/if_mwx.c
5168
hdr->wlan_idx_hi = mw ? mw->wcid >> 8 : 0,
sys/dev/pci/if_mwx.c
5169
hdr->muar_idx = ni ? mvif->omac_idx : 0,
sys/dev/pci/if_mwx.c
5170
hdr->is_tlv_append = 1,
sys/dev/pci/if_mwx.c
5171
hdr->tlv_num = htole16(tlvnum);
sys/dev/pci/if_myx.c
374
struct myx_gen_hdr hdr;
sys/dev/pci/if_myx.c
381
if (offset + sizeof(hdr) > sc->sc_mems) {
sys/dev/pci/if_myx.c
386
myx_read(sc, offset, &hdr, sizeof(hdr));
sys/dev/pci/if_myx.c
387
offset = betoh32(hdr.fw_specs);
sys/dev/pci/if_myx.c
388
len = min(betoh32(hdr.fw_specs_len), sizeof(strings));
sys/dev/pci/if_myx.c
416
struct myx_gen_hdr hdr;
sys/dev/pci/if_myx.c
434
if ((offset + sizeof(hdr)) > fwlen) {
sys/dev/pci/if_myx.c
439
memcpy(&hdr, fw + offset, sizeof(hdr));
sys/dev/pci/if_myx.c
442
DEVNAME(sc), offset, betoh32(hdr.fw_hdrlength),
sys/dev/pci/if_myx.c
443
betoh32(hdr.fw_type), hdr.fw_version);
sys/dev/pci/if_myx.c
445
if (betoh32(hdr.fw_type) != MYXFW_TYPE_ETH ||
sys/dev/pci/if_myx.c
446
memcmp(MYXFW_VER, hdr.fw_version, strlen(MYXFW_VER)) != 0) {
sys/dev/pci/if_myx.c
448
DEVNAME(sc), betoh32(hdr.fw_type), hdr.fw_version);
sys/dev/pci/if_ngbe.c
2514
buffer.hdr.req.cmd = FW_EEPROM_CHECK_STATUS;
sys/dev/pci/if_ngbe.c
2515
buffer.hdr.req.buf_lenh = 0;
sys/dev/pci/if_ngbe.c
2516
buffer.hdr.req.buf_lenl = 0;
sys/dev/pci/if_ngbe.c
2517
buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/pci/if_ngbe.c
3343
buffer.hdr.req.cmd = FW_PHY_LED_CONF;
sys/dev/pci/if_ngbe.c
3344
buffer.hdr.req.buf_lenh = 0;
sys/dev/pci/if_ngbe.c
3345
buffer.hdr.req.buf_lenl = 0;
sys/dev/pci/if_ngbe.c
3346
buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/pci/if_ngbe.c
3818
fw_cmd.hdr.cmd = FW_CEM_CMD_DRIVER_INFO;
sys/dev/pci/if_ngbe.c
3819
fw_cmd.hdr.buf_len = FW_CEM_CMD_DRIVER_INFO_LEN;
sys/dev/pci/if_ngbe.c
3820
fw_cmd.hdr.cmd_or_resp.cmd_resv = FW_CEM_CMD_RESERVED;
sys/dev/pci/if_ngbe.c
3826
fw_cmd.hdr.checksum = 0;
sys/dev/pci/if_ngbe.c
3827
fw_cmd.hdr.checksum = ngbe_calculate_checksum((uint8_t *)&fw_cmd,
sys/dev/pci/if_ngbe.c
3828
(FW_CEM_HDR_LEN + fw_cmd.hdr.buf_len));
sys/dev/pci/if_ngbe.c
3839
if (fw_cmd.hdr.cmd_or_resp.ret_status ==
sys/dev/pci/if_ngbereg.h
701
struct ngbe_hic_hdr hdr;
sys/dev/pci/if_ngbereg.h
712
union ngbe_hic_hdr2 hdr;
sys/dev/pci/if_oce.c
2802
struct mbx_hdr *hdr;
sys/dev/pci/if_oce.c
2823
hdr = (struct mbx_hdr *)epayload;
sys/dev/pci/if_oce.c
2827
hdr = (struct mbx_hdr *)&mbx->pld.data;
sys/dev/pci/if_oce.c
2830
hdr->subsys = subsys;
sys/dev/pci/if_oce.c
2831
hdr->opcode = opcode;
sys/dev/pci/if_oce.c
2832
hdr->version = version;
sys/dev/pci/if_oce.c
2833
hdr->length = length - sizeof(*hdr);
sys/dev/pci/if_oce.c
2835
hdr->timeout = 2 * OCE_MBX_TIMEOUT;
sys/dev/pci/if_oce.c
2837
hdr->timeout = OCE_MBX_TIMEOUT;
sys/dev/pci/if_oce.c
2869
struct mbx_hdr *hdr;
sys/dev/pci/if_oce.c
2877
hdr = &cmd->hdr;
sys/dev/pci/if_oce.c
2878
hdr->subsys = SUBSYS_COMMON;
sys/dev/pci/if_oce.c
2879
hdr->opcode = OPCODE_COMMON_GET_FW_VERSION;
sys/dev/pci/if_oce.c
2880
hdr->version = OCE_MBX_VER_V0;
sys/dev/pci/if_oce.c
2881
hdr->timeout = OCE_MBX_TIMEOUT;
sys/dev/pci/if_oce.c
2882
hdr->length = sizeof(*cmd) - sizeof(*hdr);
sys/dev/pci/if_ocereg.h
1002
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1017
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1039
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1055
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1089
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1198
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1239
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1248
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1267
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1282
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1296
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1304
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1309
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1325
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1340
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1361
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1884
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
1997
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
2026
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
2046
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
2070
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
2267
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
2280
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
2392
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
2455
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
2491
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
484
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
507
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
538
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
561
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
589
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
634
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
656
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
722
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
738
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
855
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
871
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
936
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
951
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
967
struct mbx_hdr hdr;
sys/dev/pci/if_ocereg.h
987
struct mbx_hdr hdr;
sys/dev/pci/if_wpi.c
2488
struct wpi_scan_hdr *hdr;
sys/dev/pci/if_wpi.c
2504
hdr = (struct wpi_scan_hdr *)buf;
sys/dev/pci/if_wpi.c
2509
hdr->quiet_time = htole16(10); /* timeout in milliseconds */
sys/dev/pci/if_wpi.c
2510
hdr->quiet_threshold = htole16(1); /* min # of packets */
sys/dev/pci/if_wpi.c
2512
tx = (struct wpi_cmd_data *)(hdr + 1);
sys/dev/pci/if_wpi.c
2518
hdr->crc_threshold = htole16(1);
sys/dev/pci/if_wpi.c
2523
hdr->flags = htole32(WPI_RXON_24GHZ | WPI_RXON_AUTO);
sys/dev/pci/if_wpi.c
2581
hdr->nchan++;
sys/dev/pci/if_wpi.c
2586
hdr->len = htole16(buflen);
sys/dev/pci/if_wpi.c
2588
DPRINTF(("sending scan command nchan=%d\n", hdr->nchan));
sys/dev/pci/if_wpi.c
2934
const struct wpi_firmware_hdr *hdr;
sys/dev/pci/if_wpi.c
2943
if (fw->datalen < sizeof (*hdr)) {
sys/dev/pci/if_wpi.c
2950
hdr = (struct wpi_firmware_hdr *)fw->data;
sys/dev/pci/if_wpi.c
2951
fw->main.textsz = letoh32(hdr->main_textsz);
sys/dev/pci/if_wpi.c
2952
fw->main.datasz = letoh32(hdr->main_datasz);
sys/dev/pci/if_wpi.c
2953
fw->init.textsz = letoh32(hdr->init_textsz);
sys/dev/pci/if_wpi.c
2954
fw->init.datasz = letoh32(hdr->init_datasz);
sys/dev/pci/if_wpi.c
2955
fw->boot.textsz = letoh32(hdr->boot_textsz);
sys/dev/pci/if_wpi.c
2971
if (fw->datalen < sizeof (*hdr) + fw->main.textsz + fw->main.datasz +
sys/dev/pci/if_wpi.c
2980
fw->main.text = (const uint8_t *)(hdr + 1);
sys/dev/pci/ixgbe_type.h
3167
struct ixgbe_hic_hdr hdr;
sys/dev/pci/ixgbe_type.h
3178
struct ixgbe_hic_hdr hdr;
sys/dev/pci/ixgbe_type.h
3189
union ixgbe_hic_hdr2 hdr;
sys/dev/pci/ixgbe_type.h
3198
union ixgbe_hic_hdr2 hdr;
sys/dev/pci/ixgbe_type.h
3207
struct ixgbe_hic_hdr hdr;
sys/dev/pci/ixgbe_type.h
3214
struct ixgbe_hic_hdr hdr;
sys/dev/pci/ixgbe_type.h
3221
struct ixgbe_hic_hdr hdr;
sys/dev/pci/ixgbe_type.h
3231
struct ixgbe_hic_hdr hdr;
sys/dev/pci/ixgbe_type.h
3236
struct ixgbe_hic_hdr hdr;
sys/dev/pci/ixgbe_type.h
3244
struct ixgbe_hic_hdr hdr;
sys/dev/pci/ixgbe_x550.c
1194
token_cmd.hdr.cmd = FW_PHY_TOKEN_REQ_CMD;
sys/dev/pci/ixgbe_x550.c
1195
token_cmd.hdr.buf_len = FW_PHY_TOKEN_REQ_LEN;
sys/dev/pci/ixgbe_x550.c
1196
token_cmd.hdr.cmd_or_resp.cmd_resv = 0;
sys/dev/pci/ixgbe_x550.c
1197
token_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/pci/ixgbe_x550.c
1210
if (token_cmd.hdr.cmd_or_resp.ret_status == FW_PHY_TOKEN_OK)
sys/dev/pci/ixgbe_x550.c
1212
if (token_cmd.hdr.cmd_or_resp.ret_status != FW_PHY_TOKEN_RETRY) {
sys/dev/pci/ixgbe_x550.c
1214
token_cmd.hdr.cmd_or_resp.ret_status);
sys/dev/pci/ixgbe_x550.c
1232
token_cmd.hdr.cmd = FW_PHY_TOKEN_REQ_CMD;
sys/dev/pci/ixgbe_x550.c
1233
token_cmd.hdr.buf_len = FW_PHY_TOKEN_REQ_LEN;
sys/dev/pci/ixgbe_x550.c
1234
token_cmd.hdr.cmd_or_resp.cmd_resv = 0;
sys/dev/pci/ixgbe_x550.c
1235
token_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/pci/ixgbe_x550.c
1245
if (token_cmd.hdr.cmd_or_resp.ret_status == FW_PHY_TOKEN_OK)
sys/dev/pci/ixgbe_x550.c
1267
write_cmd.hdr.cmd = FW_INT_PHY_REQ_CMD;
sys/dev/pci/ixgbe_x550.c
1268
write_cmd.hdr.buf_len = FW_INT_PHY_REQ_LEN;
sys/dev/pci/ixgbe_x550.c
1269
write_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/pci/ixgbe_x550.c
1299
hic.cmd.hdr.cmd = FW_INT_PHY_REQ_CMD;
sys/dev/pci/ixgbe_x550.c
1300
hic.cmd.hdr.buf_len = FW_INT_PHY_REQ_LEN;
sys/dev/pci/ixgbe_x550.c
1301
hic.cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/pci/ixgbe_x550.c
2942
buffer.hdr.req.cmd = FW_READ_SHADOW_RAM_CMD;
sys/dev/pci/ixgbe_x550.c
2943
buffer.hdr.req.buf_lenh = 0;
sys/dev/pci/ixgbe_x550.c
2944
buffer.hdr.req.buf_lenl = FW_READ_SHADOW_RAM_LEN;
sys/dev/pci/ixgbe_x550.c
2945
buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/pci/ixgbe_x550.c
3004
buffer.hdr.req.cmd = FW_READ_SHADOW_RAM_CMD;
sys/dev/pci/ixgbe_x550.c
3005
buffer.hdr.req.buf_lenh = 0;
sys/dev/pci/ixgbe_x550.c
3006
buffer.hdr.req.buf_lenl = FW_READ_SHADOW_RAM_LEN;
sys/dev/pci/ixgbe_x550.c
3007
buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/pci/ixgbe_x550.c
3061
buffer.hdr.req.cmd = FW_WRITE_SHADOW_RAM_CMD;
sys/dev/pci/ixgbe_x550.c
3062
buffer.hdr.req.buf_lenh = 0;
sys/dev/pci/ixgbe_x550.c
3063
buffer.hdr.req.buf_lenl = FW_WRITE_SHADOW_RAM_LEN;
sys/dev/pci/ixgbe_x550.c
3064
buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/pci/ixgbe_x550.c
3508
fw_cmd.hdr.cmd = FW_DISABLE_RXEN_CMD;
sys/dev/pci/ixgbe_x550.c
3509
fw_cmd.hdr.buf_len = FW_DISABLE_RXEN_LEN;
sys/dev/pci/ixgbe_x550.c
3510
fw_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/pci/ixgbe_x550.c
489
hic.cmd.hdr.cmd = FW_PHY_ACT_REQ_CMD;
sys/dev/pci/ixgbe_x550.c
490
hic.cmd.hdr.buf_len = FW_PHY_ACT_REQ_LEN;
sys/dev/pci/ixgbe_x550.c
491
hic.cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/pci/ixgbe_x550.c
503
if (hic.rsp.hdr.cmd_or_resp.ret_status ==
sys/dev/pci/mfii.c
1185
struct mfi_frame_header *hdr = &dcmd->mdf_header;
sys/dev/pci/mfii.c
1201
hdr->mfh_cmd = MFI_CMD_DCMD;
sys/dev/pci/mfii.c
1202
hdr->mfh_sg_count = 1;
sys/dev/pci/mfii.c
1203
hdr->mfh_flags = htole16(MFI_FRAME_DIR_READ | MFI_FRAME_SGL64);
sys/dev/pci/mfii.c
1204
htolem32(&hdr->mfh_data_len, MFII_DMA_LEN(mdm));
sys/dev/pci/mfii.c
1684
struct mfi_frame_header *hdr = ccb->ccb_request;
sys/dev/pci/mfii.c
1693
hdr->mfh_context = ccb->ccb_smid;
sys/dev/pci/mfii.c
1694
hdr->mfh_cmd_status = MFI_STAT_INVALID_STATUS;
sys/dev/pci/mfii.c
1695
hdr->mfh_flags |= htole16(MFI_FRAME_DONT_POST_IN_REPLY_QUEUE);
sys/dev/pci/mfii.c
1707
if (hdr->mfh_cmd_status != MFI_STAT_INVALID_STATUS)
sys/dev/pci/mfii.c
1833
struct mfi_frame_header *hdr = &dcmd->mdf_header;
sys/dev/pci/mfii.c
1851
hdr->mfh_flags = htole16(MFI_FRAME_DIR_READ);
sys/dev/pci/mfii.c
1855
hdr->mfh_flags = htole16(MFI_FRAME_DIR_WRITE);
sys/dev/pci/mfii.c
1860
hdr->mfh_flags = htole16(MFI_FRAME_DIR_NONE);
sys/dev/pci/mfii.c
1870
hdr->mfh_cmd = MFI_CMD_DCMD;
sys/dev/pci/mfii.c
1871
hdr->mfh_context = ccb->ccb_smid;
sys/dev/pci/mfii.c
1872
hdr->mfh_data_len = htole32(len);
sys/dev/pci/mfii.c
1873
hdr->mfh_sg_count = len ? ccb->ccb_dmamap->dm_nsegs : 0;
sys/dev/pci/mfii.c
1900
if (hdr->mfh_cmd_status == MFI_STAT_OK) {
sys/dev/pci/mpii.c
1697
struct mpii_cfg_hdr hdr;
sys/dev/pci/mpii.c
1700
hdr.page_version = 0;
sys/dev/pci/mpii.c
1701
hdr.page_length = sizeof(ipg) / 4;
sys/dev/pci/mpii.c
1702
hdr.page_number = 1;
sys/dev/pci/mpii.c
1703
hdr.page_type = MPII_CONFIG_REQ_PAGE_TYPE_IOC;
sys/dev/pci/mpii.c
1705
if (mpii_req_cfg_page(sc, 0, MPII_PG_POLL, &hdr, 1, &ipg,
sys/dev/pci/mpii.c
1717
if (mpii_req_cfg_page(sc, 0, MPII_PG_POLL, &hdr, 0, &ipg,
sys/dev/pci/mpii.c
2161
struct mpii_cfg_hdr hdr;
sys/dev/pci/mpii.c
2180
hdr.page_version = 0;
sys/dev/pci/mpii.c
2181
hdr.page_length = sizeof(mpg) / 4;
sys/dev/pci/mpii.c
2182
hdr.page_number = 0;
sys/dev/pci/mpii.c
2183
hdr.page_type = MPII_CONFIG_REQ_PAGE_TYPE_MANUFACTURING;
sys/dev/pci/mpii.c
2185
if (mpii_req_cfg_page(sc, 0, MPII_PG_POLL, &hdr, 1, &mpg,
sys/dev/pci/mpii.c
2204
struct mpii_cfg_hdr hdr;
sys/dev/pci/mpii.c
2208
hdr.page_version = 0;
sys/dev/pci/mpii.c
2209
hdr.page_length = sizeof(ipg) / 4;
sys/dev/pci/mpii.c
2210
hdr.page_number = 8;
sys/dev/pci/mpii.c
2211
hdr.page_type = MPII_CONFIG_REQ_PAGE_TYPE_IOC;
sys/dev/pci/mpii.c
2213
if (mpii_req_cfg_page(sc, 0, MPII_PG_POLL, &hdr, 1, &ipg,
sys/dev/pci/mpii.c
2246
struct mpii_cfg_hdr *hdr = p;
sys/dev/pci/mpii.c
2327
*hdr = cp->config_header;
sys/dev/pci/mpii.c
2342
struct mpii_cfg_hdr *hdr = p;
sys/dev/pci/mpii.c
2349
"type: %x\n", DEVNAME(sc), address, read, hdr->page_type);
sys/dev/pci/mpii.c
2352
lemtoh16(&ehdr->ext_page_length) : hdr->page_length;
sys/dev/pci/mpii.c
2379
cq->config_header = *hdr;
sys/dev/pci/mpii.c
3262
struct mpii_cfg_hdr hdr;
sys/dev/pci/mpii.c
3270
addr, MPII_PG_POLL, &hdr) != 0)
sys/dev/pci/mpii.c
3273
pagelen = hdr.page_length * 4;
sys/dev/pci/mpii.c
3278
if (mpii_req_cfg_page(sc, addr, MPII_PG_POLL, &hdr, 1,
sys/dev/pci/mpii.c
3391
struct mpii_cfg_hdr hdr;
sys/dev/pci/mpii.c
3407
MPII_CFG_RAID_VOL_ADDR_HANDLE | volh, 0, &hdr) != 0) {
sys/dev/pci/mpii.c
3413
pagelen = hdr.page_length * 4;
sys/dev/pci/mpii.c
3422
&hdr, 1, vpg, pagelen) != 0) {
sys/dev/pci/mpii.c
3495
struct mpii_cfg_hdr hdr;
sys/dev/pci/mpii.c
3509
MPII_CFG_RAID_VOL_ADDR_HANDLE | volh, 0, &hdr) != 0) {
sys/dev/pci/mpii.c
3515
pagelen = hdr.page_length * 4;
sys/dev/pci/mpii.c
3524
&hdr, 1, vpg, pagelen) != 0) {
sys/dev/pci/mpii.c
3620
struct mpii_cfg_hdr hdr;
sys/dev/pci/mpii.c
3634
hdr.page_version = 0;
sys/dev/pci/mpii.c
3635
hdr.page_length = sizeof(*ppg) / 4;
sys/dev/pci/mpii.c
3636
hdr.page_number = 0;
sys/dev/pci/mpii.c
3637
hdr.page_type = MPII_CONFIG_REQ_PAGE_TYPE_RAID_PD;
sys/dev/pci/mpii.c
3640
&hdr, 1, ppg, sizeof(*ppg)) != 0) {
sys/dev/pci/mpii.c
3721
struct mpii_cfg_hdr hdr;
sys/dev/pci/mpii.c
3731
MPII_CFG_RAID_VOL_ADDR_HANDLE | volh, MPII_PG_POLL, &hdr) != 0) {
sys/dev/pci/mpii.c
3737
pagelen = hdr.page_length * 4;
sys/dev/pci/mpii.c
3746
MPII_PG_POLL, &hdr, 1, vpg, pagelen) != 0) {
sys/dev/pci/mpii.c
925
struct mpii_cfg_hdr hdr;
sys/dev/pci/mpii.c
932
1, address, MPII_PG_POLL, &hdr) != 0)
sys/dev/pci/mpii.c
937
pagelen = min(sizeof(vpg), hdr.page_length * 4);
sys/dev/pci/mpii.c
939
if (mpii_req_cfg_page(sc, address, MPII_PG_POLL, &hdr, 1,
sys/dev/pci/vmwpvs.c
638
struct vmwpvs_cfg_pg_header *hdr;
sys/dev/pci/vmwpvs.c
652
hdr = &pg->header;
sys/dev/pci/vmwpvs.c
653
hdr->host_status = VMWPVS_HOST_STATUS_INVPARAM;
sys/dev/pci/vmwpvs.c
654
hdr->scsi_status = VMWPVS_SCSI_STATUS_CHECK;
sys/dev/pci/vmwpvs.c
662
if (hdr->host_status != VMWPVS_HOST_STATUS_SUCCESS ||
sys/dev/pci/vmwpvs.c
663
hdr->scsi_status != VMWPVS_SCSI_STATUS_OK) {
sys/dev/pcmcia/if_malo.c
1219
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1224
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1226
hdr->cmd = htole16(MALO_CMD_HWSPEC);
sys/dev/pcmcia/if_malo.c
1227
hdr->size = htole16(sizeof(*body));
sys/dev/pcmcia/if_malo.c
1228
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1229
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1230
body = (struct malo_cmd_body_spec *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1249
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1253
body = (struct malo_cmd_body_spec *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1265
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1269
psize = sizeof(*hdr);
sys/dev/pcmcia/if_malo.c
1271
hdr->cmd = htole16(MALO_CMD_RESET);
sys/dev/pcmcia/if_malo.c
1272
hdr->size = 0;
sys/dev/pcmcia/if_malo.c
1273
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1274
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1290
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1300
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1302
hdr->cmd = htole16(MALO_CMD_SCAN);
sys/dev/pcmcia/if_malo.c
1303
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1304
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1305
body = (struct malo_cmd_body_scan *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1341
hdr->size = htole16(psize - sizeof(*hdr));
sys/dev/pcmcia/if_malo.c
1356
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1363
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1365
body = (struct malo_cmd_body_rsp_scan *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1443
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1448
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1450
hdr->cmd = htole16(MALO_CMD_AUTH);
sys/dev/pcmcia/if_malo.c
1451
hdr->size = htole16(sizeof(*body));
sys/dev/pcmcia/if_malo.c
1452
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1453
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1454
body = (struct malo_cmd_body_auth *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1473
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1478
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1480
hdr->cmd = htole16(MALO_CMD_WEP);
sys/dev/pcmcia/if_malo.c
1481
hdr->size = htole16(sizeof(*body));
sys/dev/pcmcia/if_malo.c
1482
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1483
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1484
body = (struct malo_cmd_body_wep *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1531
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1536
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1538
hdr->cmd = htole16(MALO_CMD_SNMP);
sys/dev/pcmcia/if_malo.c
1539
hdr->size = htole16(sizeof(*body));
sys/dev/pcmcia/if_malo.c
1540
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1541
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1542
body = (struct malo_cmd_body_snmp *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1584
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1589
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1591
hdr->cmd = htole16(MALO_CMD_RADIO);
sys/dev/pcmcia/if_malo.c
1592
hdr->size = htole16(sizeof(*body));
sys/dev/pcmcia/if_malo.c
1593
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1594
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1595
body = (struct malo_cmd_body_radio *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1617
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1622
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1624
hdr->cmd = htole16(MALO_CMD_CHANNEL);
sys/dev/pcmcia/if_malo.c
1625
hdr->size = htole16(sizeof(*body));
sys/dev/pcmcia/if_malo.c
1626
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1627
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1628
body = (struct malo_cmd_body_channel *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1647
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1652
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1654
hdr->cmd = htole16(MALO_CMD_TXPOWER);
sys/dev/pcmcia/if_malo.c
1655
hdr->size = htole16(sizeof(*body));
sys/dev/pcmcia/if_malo.c
1656
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1657
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1658
body = (struct malo_cmd_body_txpower *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1676
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1681
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1683
hdr->cmd = htole16(MALO_CMD_ANTENNA);
sys/dev/pcmcia/if_malo.c
1684
hdr->size = htole16(sizeof(*body));
sys/dev/pcmcia/if_malo.c
1685
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1686
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1687
body = (struct malo_cmd_body_antenna *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1713
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1718
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1720
hdr->cmd = htole16(MALO_CMD_MACCTRL);
sys/dev/pcmcia/if_malo.c
1721
hdr->size = htole16(sizeof(*body));
sys/dev/pcmcia/if_malo.c
1722
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1723
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1724
body = (struct malo_cmd_body_macctrl *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1744
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1749
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1751
hdr->cmd = htole16(MALO_CMD_MACADDR);
sys/dev/pcmcia/if_malo.c
1752
hdr->size = htole16(sizeof(*body));
sys/dev/pcmcia/if_malo.c
1753
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1754
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1755
body = (struct malo_cmd_body_macaddr *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1773
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1783
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1785
hdr->cmd = htole16(MALO_CMD_ASSOC);
sys/dev/pcmcia/if_malo.c
1786
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1787
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1788
body = (struct malo_cmd_body_assoc *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1826
hdr->size = htole16(psize - sizeof(*hdr));
sys/dev/pcmcia/if_malo.c
1846
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1849
body = (struct malo_cmd_body_rsp_assoc *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1865
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1872
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1874
hdr->cmd = htole16(MALO_CMD_80211D);
sys/dev/pcmcia/if_malo.c
1875
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1876
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1877
body = (struct malo_cmd_body_80211d *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1894
hdr->size = htole16(psize - sizeof(*hdr));
sys/dev/pcmcia/if_malo.c
1909
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1914
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1916
hdr->cmd = htole16(MALO_CMD_BGSCAN_CONFIG);
sys/dev/pcmcia/if_malo.c
1917
hdr->size = htole16(sizeof(*body));
sys/dev/pcmcia/if_malo.c
1918
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1919
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1920
body = (struct malo_cmd_body_bgscan_config *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1942
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1947
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1949
hdr->cmd = htole16(MALO_CMD_BGSCAN_QUERY);
sys/dev/pcmcia/if_malo.c
1950
hdr->size = htole16(sizeof(*body));
sys/dev/pcmcia/if_malo.c
1951
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1952
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1953
body = (struct malo_cmd_body_bgscan_query *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
1970
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
1975
psize = sizeof(*hdr) + sizeof(*body);
sys/dev/pcmcia/if_malo.c
1977
hdr->cmd = htole16(MALO_CMD_RATE);
sys/dev/pcmcia/if_malo.c
1978
hdr->size = htole16(sizeof(*body));
sys/dev/pcmcia/if_malo.c
1979
hdr->seqnum = htole16(1);
sys/dev/pcmcia/if_malo.c
1980
hdr->result = 0;
sys/dev/pcmcia/if_malo.c
1981
body = (struct malo_cmd_body_rate *)(hdr + 1);
sys/dev/pcmcia/if_malo.c
2038
struct malo_cmd_header *hdr = sc->sc_cmd;
sys/dev/pcmcia/if_malo.c
2065
hdr->cmd = letoh16(hdr->cmd);
sys/dev/pcmcia/if_malo.c
2066
hdr->size = letoh16(hdr->size);
sys/dev/pcmcia/if_malo.c
2067
hdr->seqnum = letoh16(hdr->seqnum);
sys/dev/pcmcia/if_malo.c
2068
hdr->result = letoh16(hdr->result);
sys/dev/pcmcia/if_malo.c
2071
if (!(hdr->cmd & MALO_CMD_RESP)) {
sys/dev/pcmcia/if_malo.c
2073
sc->sc_dev.dv_xname, hdr->cmd);
sys/dev/pcmcia/if_malo.c
2077
hdr->cmd &= ~MALO_CMD_RESP;
sys/dev/pcmcia/if_malo.c
2080
if (hdr->cmd == 0x0012)
sys/dev/pcmcia/if_malo.c
2081
hdr->cmd = MALO_CMD_ASSOC;
sys/dev/pcmcia/if_malo.c
2084
switch (hdr->cmd) {
sys/dev/pcmcia/if_malo.c
2171
sc->sc_dev.dv_xname, hdr->cmd);
sys/dev/pv/hyperv.c
1000
hdr.chm_type = VMBUS_CHANMSG_CHREQUEST;
sys/dev/pv/hyperv.c
1002
if (hv_cmd(sc, &hdr, sizeof(hdr), &rsp, sizeof(rsp),
sys/dev/pv/hyperv.c
1008
hv_wait(sc, hv_channel_scan_done, (struct hv_msg *)&hdr,
sys/dev/pv/hyperv.c
1641
struct vmbus_chanmsg_gpadl_conn *hdr;
sys/dev/pv/hyperv.c
1679
hdr = (struct vmbus_chanmsg_gpadl_conn *)msg->msg_req.hc_data;
sys/dev/pv/hyperv.c
1701
hdr->chm_hdr.chm_type = VMBUS_CHANMSG_GPADL_CONN;
sys/dev/pv/hyperv.c
1702
hdr->chm_chanid = ch->ch_id;
sys/dev/pv/hyperv.c
1703
hdr->chm_gpadl = *handle;
sys/dev/pv/hyperv.c
1706
hdr->chm_range_cnt = 1;
sys/dev/pv/hyperv.c
1707
hdr->chm_range_len = sizeof(struct vmbus_gpa_range) + total *
sys/dev/pv/hyperv.c
1709
hdr->chm_range.gpa_ofs = 0;
sys/dev/pv/hyperv.c
1710
hdr->chm_range.gpa_len = buflen;
sys/dev/pv/hyperv.c
1714
hdr->chm_range.gpa_page[i] = frames[pfn++];
sys/dev/pv/hyperv.c
725
struct vmbus_chanmsg_hdr *hdr;
sys/dev/pv/hyperv.c
735
hdr = (struct vmbus_chanmsg_hdr *)msg->msg_data;
sys/dev/pv/hyperv.c
736
if (hdr->chm_type >= VMBUS_CHANMSG_COUNT) {
sys/dev/pv/hyperv.c
738
sc->sc_dev.dv_xname, hdr->chm_type,
sys/dev/pv/hyperv.c
742
if (hv_msg_dispatch[hdr->chm_type].hmd_handler)
sys/dev/pv/hyperv.c
743
hv_msg_dispatch[hdr->chm_type].hmd_handler(sc, hdr);
sys/dev/pv/hyperv.c
746
sc->sc_dev.dv_xname, hdr->chm_type);
sys/dev/pv/hyperv.c
782
hv_channel_offer(struct hv_softc *sc, struct vmbus_chanmsg_hdr *hdr)
sys/dev/pv/hyperv.c
793
memcpy(&co->co_chan, hdr, sizeof(co->co_chan));
sys/dev/pv/hyperv.c
801
hv_channel_rescind(struct hv_softc *sc, struct vmbus_chanmsg_hdr *hdr)
sys/dev/pv/hyperv.c
805
cmd = (const struct vmbus_chanmsg_chrescind *)hdr;
sys/dev/pv/hyperv.c
811
hv_channel_delivered(struct hv_softc *sc, struct vmbus_chanmsg_hdr *hdr)
sys/dev/pv/hyperv.c
992
struct vmbus_chanmsg_hdr hdr;
sys/dev/pv/hyperv.c
999
memset(&hdr, 0, sizeof(hdr));
sys/dev/pv/hypervic.c
1048
struct vmbus_icmsg_hdr *hdr;
sys/dev/pv/hypervic.c
1067
hdr = (struct vmbus_icmsg_hdr *)dv->dv_buf;
sys/dev/pv/hypervic.c
1068
switch (hdr->ic_type) {
sys/dev/pv/hypervic.c
1083
hv_ic_negotiate(hdr, &rlen, fwver, msgver);
sys/dev/pv/hypervic.c
1086
if (hdr->ic_dsize >= sizeof(union hv_kvp_hdr))
sys/dev/pv/hypervic.c
1088
(struct vmbus_icmsg_kvp *)hdr);
sys/dev/pv/hypervic.c
1091
sc->sc_dev.dv_xname, hdr->ic_dsize);
sys/dev/pv/hypervic.c
1095
sc->sc_dev.dv_xname, hdr->ic_type);
sys/dev/pv/hypervic.c
1098
hdr->ic_flags = VMBUS_ICMSG_FLAG_TRANSACTION |
sys/dev/pv/hypervic.c
225
hv_ic_negotiate(struct vmbus_icmsg_hdr *hdr, uint32_t *rlen, uint32_t fwver,
sys/dev/pv/hypervic.c
232
msg = (struct vmbus_icmsg_negotiate *)hdr;
sys/dev/pv/hypervic.c
266
hdr->ic_dsize = sizeof(*msg) + 2 * sizeof(uint32_t) -
sys/dev/pv/hypervic.c
294
struct vmbus_icmsg_hdr *hdr;
sys/dev/pv/hypervic.c
312
hdr = (struct vmbus_icmsg_hdr *)dv->dv_buf;
sys/dev/pv/hypervic.c
313
switch (hdr->ic_type) {
sys/dev/pv/hypervic.c
315
hv_ic_negotiate(hdr, &rlen, VMBUS_IC_VERSION(3, 0),
sys/dev/pv/hypervic.c
319
msg = (struct vmbus_icmsg_heartbeat *)hdr;
sys/dev/pv/hypervic.c
324
sc->sc_dev.dv_xname, hdr->ic_type);
sys/dev/pv/hypervic.c
327
hdr->ic_flags = VMBUS_ICMSG_FLAG_TRANSACTION | VMBUS_ICMSG_FLAG_RESPONSE;
sys/dev/pv/hypervic.c
363
struct vmbus_icmsg_hdr *hdr;
sys/dev/pv/hypervic.c
381
hdr = (struct vmbus_icmsg_hdr *)dv->dv_buf;
sys/dev/pv/hypervic.c
382
switch (hdr->ic_type) {
sys/dev/pv/hypervic.c
384
hv_ic_negotiate(hdr, &rlen, VMBUS_IC_VERSION(3, 0),
sys/dev/pv/hypervic.c
388
msg = (struct vmbus_icmsg_shutdown *)hdr;
sys/dev/pv/hypervic.c
391
hdr->ic_status = VMBUS_ICMSG_STATUS_OK;
sys/dev/pv/hypervic.c
393
hdr->ic_status = VMBUS_ICMSG_STATUS_FAIL;
sys/dev/pv/hypervic.c
397
sc->sc_dev.dv_xname, hdr->ic_type);
sys/dev/pv/hypervic.c
401
hdr->ic_flags = VMBUS_ICMSG_FLAG_TRANSACTION | VMBUS_ICMSG_FLAG_RESPONSE;
sys/dev/pv/hypervic.c
440
struct vmbus_icmsg_hdr *hdr;
sys/dev/pv/hypervic.c
460
hdr = (struct vmbus_icmsg_hdr *)dv->dv_buf;
sys/dev/pv/hypervic.c
461
switch (hdr->ic_type) {
sys/dev/pv/hypervic.c
463
hv_ic_negotiate(hdr, &rlen, VMBUS_IC_VERSION(3, 0),
sys/dev/pv/hypervic.c
467
msg = (struct vmbus_icmsg_timesync *)hdr;
sys/dev/pv/hypervic.c
482
sc->sc_dev.dv_xname, hdr->ic_type);
sys/dev/pv/hypervic.c
486
hdr->ic_flags = VMBUS_ICMSG_FLAG_TRANSACTION | VMBUS_ICMSG_FLAG_RESPONSE;
sys/dev/pv/if_hvn.c
1034
struct hvn_nvs_hdr *hdr = cmd;
sys/dev/pv/if_hvn.c
1055
sc->sc_dev.dv_xname, hdr->nvs_type, rv);
sys/dev/pv/if_hvn.c
1062
sc->sc_dev.dv_xname, hdr->nvs_type, rv);
sys/dev/pv/if_hvn.c
1083
sc->sc_dev.dv_xname, hdr->nvs_type);
sys/dev/pv/if_hvn.c
1344
struct rndis_msghdr *hdr = rc->rc_req;
sys/dev/pv/if_hvn.c
1358
sgl[0].gpa_len = hdr->rm_len;
sys/dev/pv/if_hvn.c
1377
sc->sc_dev.dv_xname, hdr->rm_type, rv);
sys/dev/pv/if_hvn.c
1385
sc->sc_dev.dv_xname, hdr->rm_type, rv);
sys/dev/pv/if_hvn.c
1414
sc->sc_dev.dv_xname, hdr->rm_type);
sys/dev/pv/if_vio.c
1132
vio_tx_offload(struct virtio_net_hdr *hdr, struct mbuf *m)
sys/dev/pv/if_vio.c
1154
hdr->csum_start = sizeof(*ext.eh);
sys/dev/pv/if_vio.c
1157
hdr->csum_start = sizeof(*ext.evh);
sys/dev/pv/if_vio.c
1159
hdr->csum_start += ext.iphlen;
sys/dev/pv/if_vio.c
1162
hdr->csum_offset = offsetof(struct tcphdr, th_sum);
sys/dev/pv/if_vio.c
1164
hdr->csum_offset = offsetof(struct udphdr, uh_sum);
sys/dev/pv/if_vio.c
1166
hdr->flags = VIRTIO_NET_HDR_F_NEEDS_CSUM;
sys/dev/pv/if_vio.c
1180
hdr->hdr_len = hdr->csum_start + ext.tcphlen;
sys/dev/pv/if_vio.c
1181
hdr->gso_size = m->m_pkthdr.ph_mss;
sys/dev/pv/if_vio.c
1184
hdr->gso_type = VIRTIO_NET_HDR_GSO_TCPV4;
sys/dev/pv/if_vio.c
1187
hdr->gso_type = VIRTIO_NET_HDR_GSO_TCPV6;
sys/dev/pv/if_vio.c
1222
struct virtio_net_hdr *hdr;
sys/dev/pv/if_vio.c
1244
hdr = &vioq->viq_txhdrs[slot];
sys/dev/pv/if_vio.c
1245
memset(hdr, 0, sc->sc_hdr_size);
sys/dev/pv/if_vio.c
1246
vio_tx_offload(hdr, m);
sys/dev/pv/if_vio.c
1276
vio_dmamem_enqueue(vsc, sc, vq, slot, hdr, sc->sc_hdr_size, 1);
sys/dev/pv/if_vio.c
1525
vio_rx_offload(struct mbuf *m, struct virtio_net_hdr *hdr)
sys/dev/pv/if_vio.c
1529
if (!ISSET(hdr->flags, VIRTIO_NET_HDR_F_DATA_VALID) &&
sys/dev/pv/if_vio.c
1530
!ISSET(hdr->flags, VIRTIO_NET_HDR_F_NEEDS_CSUM))
sys/dev/pv/if_vio.c
1537
if (ISSET(hdr->flags, VIRTIO_NET_HDR_F_NEEDS_CSUM))
sys/dev/pv/if_vio.c
1541
if (ISSET(hdr->flags, VIRTIO_NET_HDR_F_NEEDS_CSUM))
sys/dev/pv/if_vio.c
1545
if (hdr->gso_type == VIRTIO_NET_HDR_GSO_TCPV4 ||
sys/dev/pv/if_vio.c
1546
hdr->gso_type == VIRTIO_NET_HDR_GSO_TCPV6) {
sys/dev/pv/if_vio.c
1547
uint16_t mss = hdr->gso_size;
sys/dev/pv/if_vio.c
1575
struct virtio_net_hdr *hdr;
sys/dev/pv/if_vio.c
1592
hdr = mtod(m, struct virtio_net_hdr *);
sys/dev/pv/if_vio.c
1601
bufs_left = hdr->num_buffers - 1;
sys/dev/pv/if_vio.c
1614
vio_rx_offload(m0, hdr);
sys/dev/pv/if_vio.c
1621
hdr->num_buffers, hdr->num_buffers - bufs_left);
sys/dev/pv/if_vio.c
1733
struct virtio_net_hdr *hdr = &vioq->viq_txhdrs[slot];
sys/dev/pv/if_vio.c
1735
VIO_DMAMEM_SYNC(vsc, sc, hdr, sc->sc_hdr_size,
sys/dev/pv/viogpu.c
369
struct virtio_gpu_ctrl_hdr *hdr =
sys/dev/pv/viogpu.c
385
hdr->flags |= VIRTIO_GPU_FLAG_FENCE;
sys/dev/pv/viogpu.c
386
hdr->fence_id = ++sc->sc_fence_id;
sys/dev/pv/viogpu.c
428
struct virtio_gpu_ctrl_hdr hdr = { 0 };
sys/dev/pv/viogpu.c
431
hdr.type = VIRTIO_GPU_CMD_GET_DISPLAY_INFO;
sys/dev/pv/viogpu.c
433
viogpu_send_cmd(sc, &hdr, sizeof(hdr), &info, sizeof(info));
sys/dev/pv/viogpu.c
435
if (info.hdr.type != VIRTIO_GPU_RESP_OK_DISPLAY_INFO) {
sys/dev/pv/viogpu.c
459
res.hdr.type = VIRTIO_GPU_CMD_RESOURCE_CREATE_2D;
sys/dev/pv/viogpu.c
483
ss.hdr.type = VIRTIO_GPU_CMD_SET_SCANOUT;
sys/dev/pv/viogpu.c
505
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.c
512
backing.hdr.type = VIRTIO_GPU_CMD_RESOURCE_ATTACH_BACKING;
sys/dev/pv/viogpu.c
546
tth.hdr.type = VIRTIO_GPU_CMD_TRANSFER_TO_HOST_2D;
sys/dev/pv/viogpu.c
575
flush.hdr.type = VIRTIO_GPU_CMD_RESOURCE_FLUSH;
sys/dev/pv/viogpu.h
152
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
171
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
178
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
187
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
195
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
203
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
218
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
225
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
233
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
250
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
262
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
279
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
287
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
292
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
299
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
309
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
316
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
325
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
332
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
338
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
345
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
376
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
383
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
389
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
411
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
425
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
438
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/pv/viogpu.h
445
struct virtio_gpu_ctrl_hdr hdr;
sys/dev/usb/if_athn_usb.c
1738
struct ar_stream_hdr *hdr;
sys/dev/usb/if_athn_usb.c
1764
hdr = (struct ar_stream_hdr *)data->buf;
sys/dev/usb/if_athn_usb.c
1765
hdr->tag = htole16(AR_USB_TX_STREAM_TAG);
sys/dev/usb/if_athn_usb.c
1766
hdr->len = htole16(sizeof(*htc) + sizeof(*bcn) + m->m_pkthdr.len);
sys/dev/usb/if_athn_usb.c
1768
htc = (struct ar_htc_frame_hdr *)&hdr[1];
sys/dev/usb/if_athn_usb.c
1780
sizeof(*hdr) + sizeof(*htc) + sizeof(*bcn) + m->m_pkthdr.len,
sys/dev/usb/if_athn_usb.c
2135
struct ar_stream_hdr *hdr;
sys/dev/usb/if_athn_usb.c
2176
while (len >= sizeof(*hdr)) {
sys/dev/usb/if_athn_usb.c
2177
hdr = (struct ar_stream_hdr *)buf;
sys/dev/usb/if_athn_usb.c
2178
if (hdr->tag != htole16(AR_USB_RX_STREAM_TAG)) {
sys/dev/usb/if_athn_usb.c
2179
DPRINTF(("invalid tag 0x%x\n", hdr->tag));
sys/dev/usb/if_athn_usb.c
2182
pktlen = letoh16(hdr->len);
sys/dev/usb/if_athn_usb.c
2183
buf += sizeof(*hdr);
sys/dev/usb/if_athn_usb.c
2184
len -= sizeof(*hdr);
sys/dev/usb/if_athn_usb.c
2282
struct ar_stream_hdr *hdr;
sys/dev/usb/if_athn_usb.c
2336
hdr = (struct ar_stream_hdr *)data->buf;
sys/dev/usb/if_athn_usb.c
2337
hdr->tag = htole16(AR_USB_TX_STREAM_TAG);
sys/dev/usb/if_athn_usb.c
2339
htc = (struct ar_htc_frame_hdr *)&hdr[1];
sys/dev/usb/if_athn_usb.c
2394
hdr->len = htole16(frm - (uint8_t *)&hdr[1]);
sys/dev/usb/if_axe.c
1012
if (total_len < sizeof(hdr)) {
sys/dev/usb/if_axe.c
1019
memcpy(&hdr, buf, sizeof(hdr));
sys/dev/usb/if_axe.c
1020
total_len -= sizeof(hdr);
sys/dev/usb/if_axe.c
1022
if (((letoh16(hdr.len) & AXE_RH1M_RXLEN_MASK) ^
sys/dev/usb/if_axe.c
1023
(letoh16(hdr.ilen) & AXE_RH1M_RXLEN_MASK)) !=
sys/dev/usb/if_axe.c
1028
pktlen = letoh16(hdr.len) & AXE_RH1M_RXLEN_MASK;
sys/dev/usb/if_axe.c
1034
buf += sizeof(hdr);
sys/dev/usb/if_axe.c
1186
struct axe_sframe_hdr hdr;
sys/dev/usb/if_axe.c
1194
hdr.len = htole16(m->m_pkthdr.len);
sys/dev/usb/if_axe.c
1195
hdr.ilen = ~hdr.len;
sys/dev/usb/if_axe.c
1197
memcpy(c->axe_buf, &hdr, sizeof(hdr));
sys/dev/usb/if_axe.c
1198
length = sizeof(hdr);
sys/dev/usb/if_axe.c
1204
hdr.len = 0x0000;
sys/dev/usb/if_axe.c
1205
hdr.ilen = 0xffff;
sys/dev/usb/if_axe.c
1206
memcpy(c->axe_buf + length, &hdr, sizeof(hdr));
sys/dev/usb/if_axe.c
1207
length += sizeof(hdr);
sys/dev/usb/if_axe.c
985
struct axe_sframe_hdr hdr;
sys/dev/usb/if_axen.c
1175
struct axen_sframe_hdr hdr;
sys/dev/usb/if_axen.c
1195
hdr.plen = htole32(m->m_pkthdr.len);
sys/dev/usb/if_axen.c
1196
hdr.gso = 0; /* disable segmentation offloading */
sys/dev/usb/if_axen.c
1198
memcpy(c->axen_buf, &hdr, sizeof(hdr));
sys/dev/usb/if_axen.c
1199
length = sizeof(hdr);
sys/dev/usb/if_axen.c
1205
hdr.plen = 0x0;
sys/dev/usb/if_axen.c
1206
hdr.gso |= 0x80008000; /* enable padding */
sys/dev/usb/if_axen.c
1207
memcpy(c->axen_buf + length, &hdr, sizeof(hdr));
sys/dev/usb/if_axen.c
1208
length += sizeof(hdr);
sys/dev/usb/if_bwfm_usb.c
753
struct bwfm_proto_bcdc_hdr *hdr;
sys/dev/usb/if_bwfm_usb.c
767
hdr = (void *)&data->buf[len];
sys/dev/usb/if_bwfm_usb.c
768
hdr->data_offset = 0;
sys/dev/usb/if_bwfm_usb.c
769
hdr->priority = ieee80211_classify(&sc->sc_sc.sc_ic, m);
sys/dev/usb/if_bwfm_usb.c
770
hdr->flags = BWFM_BCDC_FLAG_VER(BWFM_BCDC_FLAG_PROTO_VER);
sys/dev/usb/if_bwfm_usb.c
771
hdr->flags2 = 0;
sys/dev/usb/if_bwfm_usb.c
772
len += sizeof(*hdr);
sys/dev/usb/if_mtw.c
735
const struct mtw_ucode_hdr *hdr;
sys/dev/usb/if_mtw.c
794
hdr = (const struct mtw_ucode_hdr *) &fw->hdr;
sys/dev/usb/if_mtw.c
796
if (size < sizeof(struct mtw_ucode_hdr) + letoh32(hdr->ilm_len) +
sys/dev/usb/if_mtw.c
797
letoh32(hdr->dlm_len)) {
sys/dev/usb/if_mtw.c
803
ilen = le32toh(hdr->ilm_len) - MTW_MCU_IVB_LEN;
sys/dev/usb/if_mtw.c
804
dlen = le32toh(hdr->dlm_len);
sys/dev/usb/if_mtw.c
857
le16toh(hdr->build_ver), le16toh(hdr->fw_ver)));
sys/dev/usb/if_mtwvar.h
155
struct mtw_ucode_hdr hdr;
sys/dev/usb/if_mue.c
1058
struct mue_rxbuf_hdr hdr;
sys/dev/usb/if_mue.c
1085
if (total_len < sizeof(hdr)) {
sys/dev/usb/if_mue.c
1092
memcpy(&hdr, buf, sizeof(hdr));
sys/dev/usb/if_mue.c
1093
total_len -= sizeof(hdr);
sys/dev/usb/if_mue.c
1095
if (letoh32(hdr.rx_cmd_a) & MUE_RX_CMD_A_RED) {
sys/dev/usb/if_mue.c
1100
pktlen = letoh32(hdr.rx_cmd_a) & MUE_RX_CMD_A_LEN_MASK;
sys/dev/usb/if_mue.c
1109
buf += sizeof(hdr);
sys/dev/usb/if_mue.c
971
struct mue_txbuf_hdr hdr;
sys/dev/usb/if_mue.c
976
hdr.tx_cmd_a = htole32((m->m_pkthdr.len & MUE_TX_CMD_A_LEN_MASK) |
sys/dev/usb/if_mue.c
979
hdr.tx_cmd_b = htole32(0);
sys/dev/usb/if_mue.c
980
memcpy(c->mue_buf, &hdr, sizeof(hdr));
sys/dev/usb/if_mue.c
981
length = sizeof(hdr);
sys/dev/usb/if_otus.c
1000
if (__predict_false(sizeof (*hdr) + hdr->len > len ||
sys/dev/usb/if_otus.c
1001
sizeof (*hdr) + hdr->len > 64)) {
sys/dev/usb/if_otus.c
1002
DPRINTF(("cmd too large %d\n", hdr->len));
sys/dev/usb/if_otus.c
1006
if ((hdr->code & 0xc0) != 0xc0) {
sys/dev/usb/if_otus.c
1008
hdr->code, hdr->len, hdr->token));
sys/dev/usb/if_otus.c
1010
if (__predict_false(hdr->token != cmd->token))
sys/dev/usb/if_otus.c
1014
memcpy(cmd->odata, &hdr[1], hdr->len);
sys/dev/usb/if_otus.c
1022
hdr->code, hdr->len));
sys/dev/usb/if_otus.c
1023
switch (hdr->code & 0x3f) {
sys/dev/usb/if_otus.c
1028
struct ar_evt_tx_comp *tx = (struct ar_evt_tx_comp *)&hdr[1];
sys/dev/usb/if_otus.c
817
struct ar_cmd_hdr *hdr;
sys/dev/usb/if_otus.c
821
xferlen = (sizeof (*hdr) + ilen + 3) & ~3;
sys/dev/usb/if_otus.c
823
hdr = (struct ar_cmd_hdr *)cmd->buf;
sys/dev/usb/if_otus.c
824
hdr->code = code;
sys/dev/usb/if_otus.c
825
hdr->len = ilen;
sys/dev/usb/if_otus.c
826
hdr->token = ++cmd->token; /* Don't care about endianness. */
sys/dev/usb/if_otus.c
827
memcpy((uint8_t *)&hdr[1], idata, ilen);
sys/dev/usb/if_otus.c
830
code, ilen, hdr->token));
sys/dev/usb/if_otus.c
992
struct ar_cmd_hdr *hdr;
sys/dev/usb/if_otus.c
995
if (__predict_false(len < sizeof (*hdr))) {
sys/dev/usb/if_otus.c
999
hdr = (struct ar_cmd_hdr *)buf;
sys/dev/usb/if_rsu.c
2006
struct r92s_fw_hdr *hdr;
sys/dev/usb/if_rsu.c
2021
if (size < sizeof(*hdr)) {
sys/dev/usb/if_rsu.c
2026
hdr = (struct r92s_fw_hdr *)fw;
sys/dev/usb/if_rsu.c
2027
if (hdr->signature != htole16(0x8712) &&
sys/dev/usb/if_rsu.c
2028
hdr->signature != htole16(0x8192)) {
sys/dev/usb/if_rsu.c
2030
sc->sc_dev.dv_xname, letoh16(hdr->signature));
sys/dev/usb/if_rsu.c
2034
DPRINTF(("FW V%d %02x-%02x %02x:%02x\n", letoh16(hdr->version),
sys/dev/usb/if_rsu.c
2035
hdr->month, hdr->day, hdr->hour, hdr->minute));
sys/dev/usb/if_rsu.c
2038
if (hdr->privsz != htole32(sizeof(*dmem))) {
sys/dev/usb/if_rsu.c
2045
imemsz = letoh32(hdr->imemsz);
sys/dev/usb/if_rsu.c
2046
ememsz = letoh32(hdr->sramsz);
sys/dev/usb/if_rsu.c
2048
if (size < sizeof(*hdr) + imemsz + ememsz) {
sys/dev/usb/if_rsu.c
2053
imem = (uint8_t *)&hdr[1];
sys/dev/usb/if_rsu.c
2129
dmem = &hdr->priv;
sys/dev/usb/if_uath.c
1089
struct uath_cmd_hdr *hdr;
sys/dev/usb/if_uath.c
1097
hdr = (struct uath_cmd_hdr *)cmd->buf;
sys/dev/usb/if_uath.c
1102
betoh32(hdr->code), hdr->priv, betoh32(hdr->len));
sys/dev/usb/if_uath.c
1103
uath_dump_cmd(cmd->buf, betoh32(hdr->len), '-');
sys/dev/usb/if_uath.c
1107
switch (betoh32(hdr->code) & 0xff) {
sys/dev/usb/if_uath.c
1111
struct uath_tx_cmd *txcmd = &sc->tx_cmd[hdr->priv];
sys/dev/usb/if_uath.c
1115
bcopy((uint8_t *)(hdr + 1), txcmd->odata,
sys/dev/usb/if_uath.c
1116
betoh32(hdr->len) - sizeof (struct uath_cmd_hdr));
sys/dev/usb/if_uath.c
1158
uint32_t hdr;
sys/dev/usb/if_uath.c
1179
hdr = betoh32(*(uint32_t *)data->buf);
sys/dev/usb/if_uath.c
929
struct uath_cmd_hdr *hdr;
sys/dev/usb/if_uath.c
940
hdr = (struct uath_cmd_hdr *)cmd->buf;
sys/dev/usb/if_uath.c
941
bzero(hdr, sizeof (struct uath_cmd_hdr));
sys/dev/usb/if_uath.c
942
hdr->len = htobe32(xferlen);
sys/dev/usb/if_uath.c
943
hdr->code = htobe32(code);
sys/dev/usb/if_uath.c
944
hdr->priv = sc->cmd_idx; /* don't care about endianness */
sys/dev/usb/if_uath.c
945
hdr->magic = htobe32((flags & UATH_CMD_FLAG_MAGIC) ? 1 << 24 : 0);
sys/dev/usb/if_uath.c
946
bcopy(idata, (uint8_t *)(hdr + 1), ilen);
sys/dev/usb/if_umb.c
1295
struct mbim_msghdr *hdr = response;
sys/dev/usb/if_umb.c
1303
if (len < sizeof (*hdr) || letoh32(hdr->len) != len) {
sys/dev/usb/if_umb.c
1319
type = letoh32(hdr->type);
sys/dev/usb/if_umb.c
1320
tid = letoh32(hdr->tid);
sys/dev/usb/if_umb.c
1384
umb_request2str(letoh32(m->hdr.type)));
sys/dev/usb/if_umb.c
1389
DEVNAM(sc), umb_request2str(letoh32(m->hdr.type)),
sys/dev/usb/if_umb.c
1396
DEVNAM(sc), umb_request2str(letoh32(m->hdr.type)),
sys/dev/usb/if_umb.c
2634
struct mbim_msghdr *hdr = data;
sys/dev/usb/if_umb.c
2641
if (len < sizeof (*hdr))
sys/dev/usb/if_umb.c
2645
hdr->type = htole32(req);
sys/dev/usb/if_umb.c
2646
hdr->len = htole32(len);
sys/dev/usb/if_umb.c
2647
hdr->tid = htole32(tid);
sys/dev/usb/if_umb.c
2926
umb_request2str(letoh32(cmd->hdr.type)));
sys/dev/usb/if_umb.c
2934
DEVNAM(sc), umb_request2str(letoh32(cmd->hdr.type)),
sys/dev/usb/if_urndis.c
166
struct rndis_comp_hdr *hdr;
sys/dev/usb/if_urndis.c
185
hdr = (struct rndis_comp_hdr *)buf;
sys/dev/usb/if_urndis.c
188
letoh32(hdr->rm_type),
sys/dev/usb/if_urndis.c
189
letoh32(hdr->rm_len)));
sys/dev/usb/if_urndis.c
191
if (letoh32(hdr->rm_len) > RNDIS_RESPONSE_LEN) {
sys/dev/usb/if_urndis.c
194
letoh32(hdr->rm_len),
sys/dev/usb/if_urndis.c
200
return hdr;
sys/dev/usb/if_urndis.c
204
urndis_ctrl_handle(struct urndis_softc *sc, struct rndis_comp_hdr *hdr,
sys/dev/usb/if_urndis.c
216
switch (letoh32(hdr->rm_type)) {
sys/dev/usb/if_urndis.c
218
rval = urndis_ctrl_handle_init(sc, hdr);
sys/dev/usb/if_urndis.c
222
rval = urndis_ctrl_handle_query(sc, hdr, buf, bufsz);
sys/dev/usb/if_urndis.c
226
rval = urndis_ctrl_handle_reset(sc, hdr);
sys/dev/usb/if_urndis.c
231
rval = letoh32(hdr->rm_status);
sys/dev/usb/if_urndis.c
235
rval = urndis_ctrl_handle_status(sc, hdr);
sys/dev/usb/if_urndis.c
240
DEVNAME(sc), letoh32(hdr->rm_type));
sys/dev/usb/if_urndis.c
244
free(hdr, M_TEMP, RNDIS_RESPONSE_LEN);
sys/dev/usb/if_urndis.c
251
const struct rndis_comp_hdr *hdr)
sys/dev/usb/if_urndis.c
255
msg = (struct rndis_init_comp *) hdr;
sys/dev/usb/if_urndis.c
304
const struct rndis_comp_hdr *hdr, void **buf, size_t *bufsz)
sys/dev/usb/if_urndis.c
308
msg = (struct rndis_query_comp *) hdr;
sys/dev/usb/if_urndis.c
367
const struct rndis_comp_hdr *hdr)
sys/dev/usb/if_urndis.c
372
msg = (struct rndis_reset_comp *) hdr;
sys/dev/usb/if_urndis.c
406
const struct rndis_comp_hdr *hdr)
sys/dev/usb/if_urndis.c
411
msg = (struct rndis_status_msg *)hdr;
sys/dev/usb/if_urndis.c
441
struct rndis_comp_hdr *hdr;
sys/dev/usb/if_urndis.c
474
if ((hdr = urndis_ctrl_recv(sc)) == NULL) {
sys/dev/usb/if_urndis.c
478
rval = urndis_ctrl_handle(sc, hdr, NULL, NULL);
sys/dev/usb/if_urndis.c
521
struct rndis_comp_hdr *hdr;
sys/dev/usb/if_urndis.c
560
if ((hdr = urndis_ctrl_recv(sc)) == NULL) {
sys/dev/usb/if_urndis.c
564
rval = urndis_ctrl_handle(sc, hdr, rbuf, rbufsz);
sys/dev/usb/if_urndis.c
574
struct rndis_comp_hdr *hdr;
sys/dev/usb/if_urndis.c
613
if ((hdr = urndis_ctrl_recv(sc)) == NULL) {
sys/dev/usb/if_urndis.c
617
rval = urndis_ctrl_handle(sc, hdr, NULL, NULL);
sys/dev/usb/if_urndis.c
684
struct rndis_comp_hdr *hdr;
sys/dev/usb/if_urndis.c
710
if ((hdr = urndis_ctrl_recv(sc)) == NULL) {
sys/dev/usb/if_urndis.c
714
rval = urndis_ctrl_handle(sc, hdr, NULL, NULL);
sys/dev/usb/if_urndis.c
724
struct rndis_comp_hdr *hdr;
sys/dev/usb/if_urndis.c
750
if ((hdr = urndis_ctrl_recv(sc)) == NULL) {
sys/dev/usb/if_urndis.c
754
rval = urndis_ctrl_handle(sc, hdr, NULL, NULL);
sys/dev/usb/mbim.h
178
struct mbim_msghdr hdr;
sys/dev/usb/mbim.h
183
struct mbim_msghdr hdr;
sys/dev/usb/mbim.h
188
struct mbim_msghdr hdr;
sys/dev/usb/mbim.h
192
struct mbim_msghdr hdr;
sys/dev/usb/mbim.h
204
struct mbim_msghdr hdr;
sys/dev/usb/mbim.h
213
struct mbim_msghdr hdr;
sys/dev/usb/mbim.h
227
struct mbim_msghdr hdr;
sys/dev/usb/mbim.h
232
struct mbim_msghdr hdr;
sys/dev/usb/utvfu.c
390
uint32_t hdr;
sys/dev/usb/utvfu.c
392
memcpy(&hdr, chunk, sizeof(hdr));
sys/dev/usb/utvfu.c
393
chunk += sizeof(hdr);
sys/dev/usb/utvfu.c
394
hdr = be32toh(hdr);
sys/dev/usb/utvfu.c
397
if (!UTVFU_MAGIC_OK(hdr)) {
sys/dev/usb/utvfu.c
399
DEVNAME(sc), UTVFU_MAGIC(hdr));
sys/dev/usb/utvfu.c
403
frame_id = UTVFU_FRAME_ID(hdr);
sys/dev/usb/utvfu.c
404
odd = UTVFU_ODD(hdr);
sys/dev/usb/utvfu.c
405
chunk_no = UTVFU_CHUNK_NO(hdr);
sys/dev/usb/utvfu.h
74
#define UTVFU_MAGIC(hdr) (hdr & 0xff000000U)
sys/dev/usb/utvfu.h
75
#define UTVFU_MAGIC_OK(hdr) ((hdr & 0xff000000U) == 0x88000000U)
sys/dev/usb/utvfu.h
76
#define UTVFU_FRAME_ID(hdr) ((hdr & 0x00ff0000U) >> 16)
sys/dev/usb/utvfu.h
77
#define UTVFU_ODD(hdr) ((hdr & 0x0000f000U) >> 15)
sys/dev/usb/utvfu.h
78
#define UTVFU_CHUNK_NO(hdr) (hdr & 0x00000fffU)
sys/isofs/udf/ecma167-udf.h
662
struct extattr_entry hdr;
sys/isofs/udf/ecma167-udf.h
671
struct extattr_entry hdr;
sys/isofs/udf/ecma167-udf.h
680
struct extattr_entry hdr;
sys/isofs/udf/ecma167-udf.h
695
struct extattr_entry hdr;
sys/kern/subr_prof.c
389
struct gmonhdr hdr;
sys/kern/subr_prof.c
403
error = copyin(upp->pr_buf, &hdr, sizeof hdr);
sys/kern/subr_prof.c
406
if (hdr.totarc <= 0)
sys/kern/subr_prof.c
408
size = sizeof(hdr) + upp->pr_size + hdr.totarc;
sys/lib/libsa/loadfile.c
116
} hdr;
sys/lib/libsa/loadfile.c
127
if ((nr = read(fd, &hdr, sizeof(hdr))) != sizeof(hdr)) {
sys/lib/libsa/loadfile.c
133
if (memcmp(hdr.elf32.e_ident, ELFMAG, SELFMAG) == 0 &&
sys/lib/libsa/loadfile.c
134
hdr.elf32.e_ident[EI_CLASS] == ELFCLASS32) {
sys/lib/libsa/loadfile.c
135
rval = elf32_exec(fd, &hdr.elf32, marks, flags);
sys/lib/libsa/loadfile.c
139
if (memcmp(hdr.elf64.e_ident, ELFMAG, SELFMAG) == 0 &&
sys/lib/libsa/loadfile.c
140
hdr.elf64.e_ident[EI_CLASS] == ELFCLASS64) {
sys/lib/libsa/loadfile.c
141
rval = elf64_exec(fd, &hdr.elf64, marks, flags);
sys/miscfs/fuse/fuse_device.c
306
struct fb_hdr hdr;
sys/miscfs/fuse/fuse_device.c
352
memcpy(&hdr.fh_next, &fbuf->fb_next, sizeof(fbuf->fb_next));
sys/miscfs/fuse/fuse_device.c
371
memcpy(&fbuf->fb_next, &hdr.fh_next, sizeof(fbuf->fb_next));
sys/miscfs/fuse/fuse_device.c
394
struct fb_hdr hdr;
sys/miscfs/fuse/fuse_device.c
402
if (uio->uio_resid <= sizeof(hdr)) {
sys/miscfs/fuse/fuse_device.c
407
if ((error = uiomove(&hdr, sizeof(hdr), uio)) != 0)
sys/miscfs/fuse/fuse_device.c
411
if (hdr.fh_len > FUSEBUFMAXSIZE) {
sys/miscfs/fuse/fuse_device.c
417
if (uio->uio_resid != sizeof(fbuf->FD) + hdr.fh_len) {
sys/miscfs/fuse/fuse_device.c
424
if (fbuf->fb_uuid == hdr.fh_uuid)
sys/miscfs/fuse/fuse_device.c
435
fbuf->fb_len = hdr.fh_len;
sys/miscfs/fuse/fuse_device.c
436
fbuf->fb_err = hdr.fh_err;
sys/miscfs/fuse/fuse_device.c
437
fbuf->fb_ino = hdr.fh_ino;
sys/net/bpf.c
1421
bpf_tap_hdr(caddr_t arg, const void *hdr, unsigned int hdrlen,
sys/net/bpf.c
1428
if (hdr != NULL) {
sys/net/bpf.c
1432
mh.mh_data = (void *)hdr;
sys/net/if_gre.c
4899
uint32_t hdr;
sys/net/if_gre.c
4913
hdr = session_id << ERSPAN_II_SESSION_ID_SHIFT;
sys/net/if_gre.c
4914
hdr |= m->m_pkthdr.pf.prio << ERSPAN_II_COS_SHIFT;
sys/net/if_gre.c
4917
hdr |= ERSPAN_II_EN_VLAN << ERSPAN_II_EN_SHIFT;
sys/net/if_gre.c
4918
hdr |= (m->m_pkthdr.ether_vlan & ERSPAN_II_VLAN_MASK) <<
sys/net/if_gre.c
4923
hdr |= ERSPAN_II_VER << ERSPAN_II_VER_SHIFT;
sys/net/if_gre.c
4926
htobem32(&erspanh->hdr, hdr);
sys/net/if_gre.c
4941
uint32_t hdr;
sys/net/if_gre.c
4967
hdr = bemtoh32(&erspanh->hdr);
sys/net/if_gre.c
4969
key->t_key = (hdr >> ERSPAN_II_SESSION_ID_SHIFT) &
sys/net/if_gre.c
5019
switch ((hdr >> ERSPAN_II_EN_SHIFT) & ERSPAN_II_EN_MASK) {
sys/net/if_gre.c
5023
m->m_pkthdr.ether_vtag = (hdr >> ERSPAN_II_VLAN_SHIFT) &
sys/net/if_gre.c
5025
m->m_pkthdr.ether_vtag |= ((hdr >> ERSPAN_II_COS_SHIFT) &
sys/net/if_gre.c
5046
m->m_pkthdr.pf.prio = (hdr >> ERSPAN_II_COS_SHIFT) &
sys/net/if_gre.c
5054
if (hdr & ERSPAN_II_T)
sys/net/if_gre.c
543
uint32_t hdr;
sys/net/if_pflog.c
187
struct pfloghdr hdr;
sys/net/if_pflog.c
201
bzero(&hdr, sizeof(hdr));
sys/net/if_pflog.c
202
hdr.length = PFLOG_REAL_HDRLEN;
sys/net/if_pflog.c
204
hdr.action = (rm->nr == (u_int32_t)-1 && reason != PFRES_MATCH) ?
sys/net/if_pflog.c
206
hdr.reason = reason;
sys/net/if_pflog.c
207
memcpy(hdr.ifname, pd->kif->pfik_name, sizeof(hdr.ifname));
sys/net/if_pflog.c
210
hdr.rulenr = htonl(rm->nr);
sys/net/if_pflog.c
211
hdr.subrulenr = -1;
sys/net/if_pflog.c
213
hdr.rulenr = htonl(am->nr);
sys/net/if_pflog.c
214
hdr.subrulenr = htonl(rm->nr);
sys/net/if_pflog.c
216
strlcpy(hdr.ruleset, ruleset->anchor->name,
sys/net/if_pflog.c
217
sizeof(hdr.ruleset));
sys/net/if_pflog.c
222
hdr.uid = pd->lookup.uid;
sys/net/if_pflog.c
223
hdr.pid = pd->lookup.pid;
sys/net/if_pflog.c
225
hdr.uid = -1;
sys/net/if_pflog.c
226
hdr.pid = NO_PID;
sys/net/if_pflog.c
228
hdr.rule_uid = rm->cuid;
sys/net/if_pflog.c
229
hdr.rule_pid = rm->cpid;
sys/net/if_pflog.c
230
hdr.dir = pd->dir;
sys/net/if_pflog.c
231
hdr.af = pd->af;
sys/net/if_pflog.c
239
hdr.rewritten = 1;
sys/net/if_pflog.c
242
hdr.naf = pd->naf;
sys/net/if_pflog.c
243
pf_addrcpy(&hdr.saddr, &pd->nsaddr, pd->naf);
sys/net/if_pflog.c
244
pf_addrcpy(&hdr.daddr, &pd->ndaddr, pd->naf);
sys/net/if_pflog.c
245
hdr.sport = pd->nsport;
sys/net/if_pflog.c
246
hdr.dport = pd->ndport;
sys/net/if_pflog.c
251
bpf_mtap_hdr(if_bpf, &hdr, sizeof(hdr), pd->m, BPF_DIRECTION_OUT);
sys/net/pf.c
1171
switch (pd->hdr.icmp6.icmp6_type) {
sys/net/pf.c
1175
target = (struct pf_addr *)&pd->hdr.nd_ns.nd_ns_target;
sys/net/pf.c
1181
target = (struct pf_addr *)&pd->hdr.nd_ns.nd_ns_target;
sys/net/pf.c
2921
*virtual_id = pd->hdr.icmp.icmp_id;
sys/net/pf.c
2929
*virtual_id = pd->hdr.icmp.icmp_id;
sys/net/pf.c
2937
*virtual_id = pd->hdr.icmp.icmp_id;
sys/net/pf.c
2945
*virtual_id = pd->hdr.icmp.icmp_id;
sys/net/pf.c
3003
*virtual_id = pd->hdr.icmp6.icmp6_id;
sys/net/pf.c
3008
struct mld_hdr *mld = &pd->hdr.mld;
sys/net/pf.c
3053
struct nd_neighbor_solicit *nd = &pd->hdr.nd_ns;
sys/net/pf.c
3268
m_copyback(pd->m, pd->off, pd->hdrlen, &pd->hdr, M_NOWAIT);
sys/net/pf.c
3590
olen = (pd->hdr.tcp.th_off << 2) - sizeof(struct tcphdr);
sys/net/pf.c
3777
pd->hdr.tcp.th_dport, pd->hdr.tcp.th_sport, dst->seqlo,
sys/net/pf.c
4158
sport = pd->hdr.tcp.th_sport;
sys/net/pf.c
4159
dport = pd->hdr.tcp.th_dport;
sys/net/pf.c
4165
sport = pd->hdr.udp.uh_sport;
sys/net/pf.c
4166
dport = pd->hdr.udp.uh_dport;
sys/net/pf.c
4269
olen = (pd->hdr.tcp.th_off << 2) - sizeof(struct tcphdr);
sys/net/pf.c
4294
olen = (pd->hdr.tcp.th_off << 2) - sizeof(struct tcphdr);
sys/net/pf.c
4396
SHA512Update(&ctx, &pd->hdr.tcp.th_sport, sizeof(u_short));
sys/net/pf.c
4397
SHA512Update(&ctx, &pd->hdr.tcp.th_dport, sizeof(u_short));
sys/net/pf.c
4907
ctx.th = &pd->hdr.tcp;
sys/net/pf.c
4919
ctx.icmptype = pd->hdr.icmp.icmp_type;
sys/net/pf.c
4920
ctx.icmpcode = pd->hdr.icmp.icmp_code;
sys/net/pf.c
4933
ctx.icmptype = pd->hdr.icmp6.icmp6_type;
sys/net/pf.c
4934
ctx.icmpcode = pd->hdr.icmp6.icmp6_code;
sys/net/pf.c
5095
m_copyback(pd->m, pd->off, pd->hdrlen, &pd->hdr, M_NOWAIT);
sys/net/pf.c
5135
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf.c
5497
if (pf_translate_icmp_af(pd, AF_INET6, &pd->hdr.icmp))
sys/net/pf.c
5506
&pd->hdr.icmp.icmp_id, icmpid);
sys/net/pf.c
5516
if (pf_translate_icmp_af(pd, AF_INET, &pd->hdr.icmp6))
sys/net/pf.c
5524
&pd->hdr.icmp6.icmp6_id, icmpid);
sys/net/pf.c
5542
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf.c
5885
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf.c
5973
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf.c
6005
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf.c
6066
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf.c
6120
if ((pd->hdr.tcp.th_flags & (TH_SYN|TH_ACK)) == TH_SYN) {
sys/net/pf.c
6127
pf_print_flags(pd->hdr.tcp.th_flags);
sys/net/pf.c
6236
m_copyback(pd->m, pd->off, pd->hdrlen, &pd->hdr, M_NOWAIT);
sys/net/pf.c
6309
icmptype = pd->hdr.icmp.icmp_type;
sys/net/pf.c
6310
icmpcode = pd->hdr.icmp.icmp_code;
sys/net/pf.c
6314
icmptype = pd->hdr.icmp6.icmp6_type;
sys/net/pf.c
6315
icmpcode = pd->hdr.icmp6.icmp6_code;
sys/net/pf.c
6381
&pd->hdr.icmp))
sys/net/pf.c
6387
&pd->hdr.icmp.icmp_id, nk->port[iidx]);
sys/net/pf.c
6390
&pd->hdr.icmp, M_NOWAIT);
sys/net/pf.c
6397
&pd->hdr.icmp6))
sys/net/pf.c
6403
&pd->hdr.icmp6.icmp6_id, nk->port[iidx]);
sys/net/pf.c
6406
sizeof(struct icmp6_hdr), &pd->hdr.icmp6,
sys/net/pf.c
6515
struct tcphdr *th = &pd2.hdr.tcp;
sys/net/pf.c
6625
&pd->hdr.icmp))
sys/net/pf.c
6629
&pd->hdr.icmp6, M_NOWAIT);
sys/net/pf.c
6694
&pd->hdr.icmp, M_NOWAIT);
sys/net/pf.c
6702
&pd->hdr.icmp6, M_NOWAIT);
sys/net/pf.c
6713
struct udphdr *uh = &pd2.hdr.udp;
sys/net/pf.c
6755
&pd->hdr.icmp))
sys/net/pf.c
6759
&pd->hdr.icmp6, M_NOWAIT);
sys/net/pf.c
6822
&pd->hdr.icmp, M_NOWAIT);
sys/net/pf.c
6830
&pd->hdr.icmp6, M_NOWAIT);
sys/net/pf.c
6847
struct icmp *iih = &pd2.hdr.icmp;
sys/net/pf.c
6890
&pd->hdr.icmp))
sys/net/pf.c
6894
&pd->hdr.icmp6, M_NOWAIT);
sys/net/pf.c
6950
&pd->hdr.icmp, M_NOWAIT);
sys/net/pf.c
6961
struct icmp6_hdr *iih = &pd2.hdr.icmp6;
sys/net/pf.c
7008
&pd->hdr.icmp))
sys/net/pf.c
7012
&pd->hdr.icmp6, M_NOWAIT);
sys/net/pf.c
7064
sizeof(struct icmp6_hdr), &pd->hdr.icmp6,
sys/net/pf.c
7115
&pd->hdr.icmp, M_NOWAIT);
sys/net/pf.c
7123
&pd->hdr.icmp6, M_NOWAIT);
sys/net/pf.c
7136
m_copyback(pd->m, pd->off, pd->hdrlen, &pd->hdr, M_NOWAIT);
sys/net/pf.c
8114
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf.c
8133
struct udphdr *uh = &pd->hdr.udp;
sys/net/pf.c
8151
if (!pf_pull_hdr(pd->m, pd->off, &pd->hdr.icmp, ICMP_MINLEN,
sys/net/pf.c
8159
pd->pcksum = &pd->hdr.icmp.icmp_cksum;
sys/net/pf.c
8166
if (!pf_pull_hdr(pd->m, pd->off, &pd->hdr.icmp6, icmp_hlen,
sys/net/pf.c
8170
switch (pd->hdr.icmp6.icmp6_type) {
sys/net/pf.c
8189
!pf_pull_hdr(pd->m, pd->off, &pd->hdr.icmp6, icmp_hlen,
sys/net/pf.c
8197
pd->pcksum = &pd->hdr.icmp6.icmp6_cksum;
sys/net/pf.c
8467
(pd.hdr.tcp.th_flags & (TH_SYN|TH_ACK)) == TH_SYN &&
sys/net/pf.c
8475
if ((pd.hdr.tcp.th_flags & TH_ACK) && pd.p_len == 0)
sys/net/pf.c
8501
(pd.hdr.tcp.th_flags & (TH_SYN|TH_ACK|TH_RST)) == TH_ACK &&
sys/net/pf.c
8517
ntohl(pd.hdr.tcp.th_ack) - 1;
sys/net/pf.c
8519
ntohl(pd.hdr.tcp.th_seq) - 1;
sys/net/pf_norm.c
1122
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf_norm.c
1178
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf_norm.c
1254
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf_norm.c
1629
olen = (pd->hdr.tcp.th_off << 2) - sizeof(struct tcphdr);
sys/net/pf_norm.c
1648
sizeof(struct tcphdr), &pd->hdr.tcp, M_NOWAIT);
sys/net/pf_norm.c
968
struct ip6_hdr *hdr;
sys/net/pf_norm.c
970
hdr = mtod(m, struct ip6_hdr *);
sys/net/pf_norm.c
971
proto = hdr->ip6_nxt;
sys/net/pf_norm.c
972
hdr->ip6_nxt = IPPROTO_FRAGMENT;
sys/net/pf_osfp.c
101
char hdr[60];
sys/net/pf_osfp.c
114
if (!pf_pull_hdr(pd->m, pd->off, hdr, th->th_off << 2, NULL, pd->af))
sys/net/pf_osfp.c
117
return (pf_osfp_fingerprint_hdr(ip, ip6, (struct tcphdr *)hdr));
sys/net/pf_osfp.c
98
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf_syncookies.c
190
iss, ntohl(pd->hdr.tcp.th_seq) + 1, TH_SYN|TH_ACK, 0, mss,
sys/net/pf_syncookies.c
204
seq = ntohl(pd->hdr.tcp.th_seq) - 1;
sys/net/pf_syncookies.c
205
ack = ntohl(pd->hdr.tcp.th_ack) - 1;
sys/net/pf_syncookies.c
337
hash = pf_syncookie_mac(pd, cookie, ntohl(pd->hdr.tcp.th_seq));
sys/net/pf_syncookies.c
359
seq = ntohl(pd->hdr.tcp.th_seq) - 1;
sys/net/pf_syncookies.c
360
ack = ntohl(pd->hdr.tcp.th_ack) - 1;
sys/net/pfvar_priv.h
570
} hdr;
sys/net/pipex.c
2631
} __packed *hdr;
sys/net/pipex.c
2656
hdr = mtod(m0, struct mppe_header *);
sys/net/pipex.c
2657
hdr->protocol = protocol;
sys/net/pipex.c
2686
hdr->coher_cnt = (mppe->coher_cnt++) & PIPEX_COHERENCY_CNT_MASK;
sys/net/pipex.c
2687
hdr->coher_cnt &= PIPEX_COHERENCY_CNT_MASK;
sys/net/pipex.c
2689
hdr->coher_cnt |= 0x8000;
sys/net/pipex.c
2691
hdr->coher_cnt |= 0x1000;
sys/net/pipex.c
2693
hdr->protocol = htons(hdr->protocol);
sys/net/pipex.c
2694
hdr->coher_cnt = htons(hdr->coher_cnt);
sys/net/pipex.c
838
u_char *cp, hdr[16];
sys/net/pipex.c
851
cp = hdr;
sys/net/pipex.c
859
M_PREPEND(m0, cp - hdr, M_NOWAIT);
sys/net/pipex.c
862
memcpy(mtod(m0, u_char *), hdr, cp - hdr);
sys/net/ppp-deflate.c
465
u_char hdr[PPP_HDRLEN + DEFLATE_OVHD];
sys/net/ppp-deflate.c
478
hdr[i] = *rptr++;
sys/net/ppp-deflate.c
483
seq = (hdr[PPP_HDRLEN] << 8) + hdr[PPP_HDRLEN+1];
sys/net/ppp-deflate.c
511
wptr[0] = PPP_ADDRESS(hdr);
sys/net/ppp-deflate.c
512
wptr[1] = PPP_CONTROL(hdr);
sys/net/slcompress.c
421
u_char *hdr, *cp;
sys/net/slcompress.c
425
vjlen = sl_uncompress_tcp_core(cp, len, len, type, comp, &hdr, &hlen);
sys/net/slcompress.c
449
BCOPY(hdr, cp, hlen);
sys/netinet/ip_ah.c
881
struct enchdr hdr = {
sys/netinet/ip_ah.c
887
bpf_mtap_hdr(encif->if_bpf, (char *)&hdr,
sys/netinet/ip_esp.c
710
struct enchdr hdr = {
sys/netinet/ip_esp.c
716
hdr.flags |= M_CONF;
sys/netinet/ip_esp.c
718
hdr.flags |= M_AUTH;
sys/netinet/ip_esp.c
720
bpf_mtap_hdr(encif->if_bpf, (char *)&hdr,
sys/netinet/ip_icmp.c
1150
} hdr;
sys/netinet/ip_icmp.c
1171
memset(&hdr, 0, sizeof(hdr));
sys/netinet/ip_icmp.c
1172
hdr.ieh.ieh_version = ICMP_EXT_HDR_VERSION;
sys/netinet/ip_icmp.c
1173
hdr.ieo.ieo_length = htons(sizeof(struct icmp_ext_obj_hdr) + len);
sys/netinet/ip_icmp.c
1174
hdr.ieo.ieo_cnum = class;
sys/netinet/ip_icmp.c
1175
hdr.ieo.ieo_ctype = ctype;
sys/netinet/ip_icmp.c
1177
if (m_copyback(m, hlen + off, sizeof(hdr), &hdr, M_NOWAIT) ||
sys/netinet/ip_icmp.c
1178
m_copyback(m, hlen + off + sizeof(hdr), len, buf, M_NOWAIT)) {
sys/netinet/ip_icmp.c
1188
ieh->ieh_cksum = in4_cksum(n, 0, off, sizeof(hdr) + len);
sys/netinet/ip_ipcomp.c
328
struct enchdr hdr = {
sys/netinet/ip_ipcomp.c
333
bpf_mtap_hdr(encif->if_bpf, (char *)&hdr,
sys/netinet/ipsec_input.c
567
struct enchdr hdr = {
sys/netinet/ipsec_input.c
573
bpf_mtap_hdr(encif->if_bpf, (char *)&hdr,
sys/netinet6/ip6_output.c
861
ip6_copyexthdr(struct mbuf **mp, caddr_t hdr, int hlen)
sys/netinet6/ip6_output.c
880
if (hdr)
sys/netinet6/ip6_output.c
881
memcpy(mtod(m, caddr_t), hdr, hlen);
sys/scsi/cd.c
1188
&data->hdr, flags, 20000);
sys/scsi/cd.c
1268
&data->hdr, flags, 20000);
sys/scsi/cd.c
1328
&data->hdr, flags, 20000);
sys/scsi/mpath_emc.c
39
struct scsi_vpd_hdr hdr; /* EMC_VPD_SP_INFO */
sys/scsi/mpath_hds.c
246
_2btol(vpd->hdr.page_length) >= sizeof(vpd->state) &&
sys/scsi/mpath_hds.c
46
struct scsi_vpd_hdr hdr; /* HDS_VPD */
sys/scsi/mpath_rdac.c
105
struct scsi_vpd_hdr hdr; /* RDAC_VPD_VOLACCESSCTL */
sys/scsi/mpath_rdac.c
60
struct scsi_vpd_hdr hdr; /* RDAC_VPD_HDWVER */
sys/scsi/mpath_rdac.c
79
struct scsi_vpd_hdr hdr; /* RDAC_VPD_SUBSYS */
sys/scsi/mpath_rdac.c
89
struct scsi_vpd_hdr hdr; /* RDAC_VPD_EXTDEVID */
sys/scsi/scsi_all.h
304
struct scsi_vpd_hdr hdr;
sys/scsi/scsi_all.h
347
struct scsi_vpd_hdr hdr;
sys/scsi/scsi_all.h
523
struct scsi_mode_header hdr;
sys/scsi/scsi_base.c
1117
if (error == 0 && !VALID_MODE_HDR(&data->hdr))
sys/scsi/scsi_base.c
1123
bytes = sizeof(data->hdr.data_length) + data->hdr.data_length;
sys/scsi/scsi_base.c
1197
scsi_mode_sense_page(struct scsi_mode_header *hdr, int pg_code, int pg_length)
sys/scsi/scsi_base.c
1202
total_length = hdr->data_length + sizeof(hdr->data_length);
sys/scsi/scsi_base.c
1203
header_length = sizeof(*hdr) + hdr->blk_desc_len;
sys/scsi/scsi_base.c
1204
page = (u_int8_t *)hdr + header_length;
sys/scsi/scsi_base.c
1216
scsi_mode_sense_big_page(struct scsi_mode_header_big *hdr, int pg_code,
sys/scsi/scsi_base.c
1222
total_length = _2btol(hdr->data_length) + sizeof(hdr->data_length);
sys/scsi/scsi_base.c
1223
header_length = sizeof(*hdr) + _2btol(hdr->blk_desc_len);
sys/scsi/scsi_base.c
1224
page = (u_int8_t *)hdr + header_length;
sys/scsi/scsi_base.c
1246
blk_desc_len = buf->hdr.blk_desc_len;
sys/scsi/scsi_base.c
1311
*page_data = scsi_mode_sense_page(&buf->hdr, pg_code,
sys/scsi/scsi_disk.h
437
struct scsi_vpd_hdr hdr;
sys/scsi/scsi_disk.h
464
struct scsi_vpd_hdr hdr;
sys/scsi/scsi_disk.h
481
struct scsi_vpd_hdr hdr;
sys/scsi/scsiconf.c
1137
struct scsi_vpd_hdr hdr;
sys/scsi/scsiconf.c
1153
len = MIN(sizeof(pg->list), _2btol(pg->hdr.page_length));
sys/scsi/scsiconf.c
1181
struct scsi_vpd_hdr *hdr = NULL;
sys/scsi/scsiconf.c
1187
hdr = dma_alloc(sizeof(*hdr), PR_WAITOK | PR_ZERO);
sys/scsi/scsiconf.c
1189
rv = scsi_inquire_vpd(link, hdr, sizeof(*hdr), SI_PG_DEVID,
sys/scsi/scsiconf.c
1194
len = sizeof(*hdr) + _2btol(hdr->page_length);
sys/scsi/scsiconf.c
1201
pos = sizeof(*hdr);
sys/scsi/scsiconf.c
1266
if (hdr)
sys/scsi/scsiconf.c
1267
dma_free(hdr, sizeof(*hdr));
sys/scsi/scsiconf.c
1274
struct scsi_vpd_hdr *hdr = NULL;
sys/scsi/scsiconf.c
1280
hdr = dma_alloc(sizeof(*hdr), PR_WAITOK | PR_ZERO);
sys/scsi/scsiconf.c
1282
rv = scsi_inquire_vpd(link, hdr, sizeof(*hdr), SI_PG_SERIAL,
sys/scsi/scsiconf.c
1287
len = _2btol(hdr->page_length);
sys/scsi/scsiconf.c
1293
pglen = sizeof(*hdr) + len;
sys/scsi/scsiconf.c
1307
sizeof(link->inqdata.product), pg + sizeof(*hdr), len);
sys/scsi/scsiconf.c
1318
dma_free(hdr, sizeof(*hdr));
sys/scsi/sd.c
1086
&buf->hdr, scsi_autoconf | SCSI_SILENT, 20000);
sys/scsi/sd.c
1569
if (_2btol(pg->hdr.page_length) == SI_PG_DISK_LIMITS_LEN_THIN) {
sys/scsi/sd.c
1688
else if (!big && buf->hdr.dev_spec & SMH_DSP_WRITE_PROT)
sys/scsi/st.c
1388
dev_spec = data->hdr.dev_spec;
sys/scsi/st.c
1473
page0_size = inbuf->hdr.data_length +
sys/scsi/st.c
1474
sizeof(inbuf->hdr.data_length) - sizeof(inbuf->hdr) -
sys/scsi/st.c
1475
inbuf->hdr.blk_desc_len;
sys/scsi/st.c
1476
memcpy(&outbuf->buf[sizeof(outbuf->hdr)+ sizeof(general)],
sys/scsi/st.c
1491
outbuf->hdr.data_length = sizeof(outbuf->hdr) +
sys/scsi/st.c
1493
sizeof(outbuf->hdr.data_length);
sys/scsi/st.c
1495
outbuf->hdr.dev_spec = SMH_DSP_BUFF_MODE_ON;
sys/scsi/st.c
1496
outbuf->hdr.blk_desc_len = sizeof(general);
sys/scsi/st.c
1497
memcpy(&outbuf->buf[sizeof(outbuf->hdr)],
sys/scsi/st.c
1499
error = scsi_mode_select(st->sc_link, 0, &outbuf->hdr,
sys/sys/videoio.h
2034
#define V4L2_VP8_FRAME_IS_KEY_FRAME(hdr) \
sys/sys/videoio.h
2035
(!!((hdr)->flags & V4L2_VP8_FRAME_FLAG_KEY_FRAME))
usr.bin/aucat/afile.c
399
struct wav_hdr hdr;
usr.bin/aucat/afile.c
401
memset(&hdr, 0, sizeof(struct wav_hdr));
usr.bin/aucat/afile.c
402
memcpy(hdr.riff.id, wav_id_riff, 4);
usr.bin/aucat/afile.c
403
memcpy(hdr.riff.type, wav_id_wave, 4);
usr.bin/aucat/afile.c
404
le32_set(&hdr.riff.size, f->endpos - sizeof(hdr.riff));
usr.bin/aucat/afile.c
405
memcpy(hdr.fmt_hdr.id, wav_id_fmt, 4);
usr.bin/aucat/afile.c
406
le32_set(&hdr.fmt_hdr.size, sizeof(hdr.fmt));
usr.bin/aucat/afile.c
407
le16_set(&hdr.fmt.fmt, WAV_FMT_EXT);
usr.bin/aucat/afile.c
408
le16_set(&hdr.fmt.nch, f->nch);
usr.bin/aucat/afile.c
409
le32_set(&hdr.fmt.rate, f->rate);
usr.bin/aucat/afile.c
410
le32_set(&hdr.fmt.byterate, f->rate * f->par.bps * f->nch);
usr.bin/aucat/afile.c
411
le16_set(&hdr.fmt.blkalign, f->par.bps * f->nch);
usr.bin/aucat/afile.c
412
le16_set(&hdr.fmt.bits, f->par.bits);
usr.bin/aucat/afile.c
413
le16_set(&hdr.fmt.extsize,
usr.bin/aucat/afile.c
414
WAV_FMT_EXT_SIZE - WAV_FMT_SIZE - sizeof(hdr.fmt.extsize));
usr.bin/aucat/afile.c
415
le16_set(&hdr.fmt.valbits, f->par.bits);
usr.bin/aucat/afile.c
416
le16_set(&hdr.fmt.extfmt, 1);
usr.bin/aucat/afile.c
417
memcpy(&hdr.fmt.guid, wav_guid, sizeof(hdr.fmt.guid));
usr.bin/aucat/afile.c
418
memcpy(hdr.data_hdr.id, wav_id_data, 4);
usr.bin/aucat/afile.c
419
le32_set(&hdr.data_hdr.size, f->endpos - f->startpos);
usr.bin/aucat/afile.c
420
return afile_writehdr(f, &hdr, sizeof(struct wav_hdr));
usr.bin/aucat/afile.c
575
struct aiff_hdr hdr;
usr.bin/aucat/afile.c
590
memset(&hdr, 0, sizeof(struct aiff_hdr));
usr.bin/aucat/afile.c
591
memcpy(hdr.form.id, aiff_id_form, 4);
usr.bin/aucat/afile.c
592
memcpy(hdr.form.type, aiff_id_aiff, 4);
usr.bin/aucat/afile.c
593
be32_set(&hdr.form.size, f->endpos - sizeof(hdr.form));
usr.bin/aucat/afile.c
595
memcpy(hdr.comm_hdr.id, aiff_id_comm, 4);
usr.bin/aucat/afile.c
596
be32_set(&hdr.comm_hdr.size, sizeof(hdr.comm));
usr.bin/aucat/afile.c
597
be16_set(&hdr.comm.nch, f->nch);
usr.bin/aucat/afile.c
598
be16_set(&hdr.comm.bits, f->par.bits);
usr.bin/aucat/afile.c
599
be16_set(&hdr.comm.rate_ex, e);
usr.bin/aucat/afile.c
600
be32_set(&hdr.comm.rate_hi, m);
usr.bin/aucat/afile.c
601
be32_set(&hdr.comm.rate_lo, 0);
usr.bin/aucat/afile.c
602
be32_set(&hdr.comm.nfr, (f->endpos - f->startpos) / bpf);
usr.bin/aucat/afile.c
604
memcpy(hdr.data_hdr.id, aiff_id_data, 4);
usr.bin/aucat/afile.c
605
be32_set(&hdr.data_hdr.size, f->endpos - f->startpos);
usr.bin/aucat/afile.c
606
be32_set(&hdr.data.offs, 0);
usr.bin/aucat/afile.c
607
be32_set(&hdr.data.blksz, 0);
usr.bin/aucat/afile.c
608
return afile_writehdr(f, &hdr, sizeof(struct aiff_hdr));
usr.bin/aucat/afile.c
614
struct au_hdr hdr;
usr.bin/aucat/afile.c
617
if (!afile_readhdr(f, &hdr, sizeof(struct au_hdr)))
usr.bin/aucat/afile.c
619
if (memcmp(&hdr.id, &au_id, 4) != 0) {
usr.bin/aucat/afile.c
623
f->startpos = be32_get(&hdr.offs);
usr.bin/aucat/afile.c
624
f->endpos = f->startpos + be32_get(&hdr.size);
usr.bin/aucat/afile.c
625
fmt = be32_get(&hdr.fmt);
usr.bin/aucat/afile.c
663
f->rate = be32_get(&hdr.rate);
usr.bin/aucat/afile.c
664
f->nch = be32_get(&hdr.nch);
usr.bin/aucat/afile.c
678
struct au_hdr hdr;
usr.bin/aucat/afile.c
681
memset(&hdr, 0, sizeof(struct au_hdr));
usr.bin/aucat/afile.c
682
memcpy(hdr.id, au_id, 4);
usr.bin/aucat/afile.c
683
be32_set(&hdr.offs, f->startpos);
usr.bin/aucat/afile.c
684
be32_set(&hdr.size, f->endpos - f->startpos);
usr.bin/aucat/afile.c
705
be32_set(&hdr.fmt, fmt);
usr.bin/aucat/afile.c
706
be32_set(&hdr.rate, f->rate);
usr.bin/aucat/afile.c
707
be32_set(&hdr.nch, f->nch);
usr.bin/aucat/afile.c
708
return afile_writehdr(f, &hdr, sizeof(struct au_hdr));
usr.bin/aucat/afile.c
791
if (f->hdr == AFILE_HDR_WAV)
usr.bin/aucat/afile.c
793
else if (f->hdr == AFILE_HDR_AIFF)
usr.bin/aucat/afile.c
795
else if (f->hdr == AFILE_HDR_AU)
usr.bin/aucat/afile.c
802
afile_open(struct afile *f, char *path, int hdr, int flags,
usr.bin/aucat/afile.c
816
f->hdr = hdr;
usr.bin/aucat/afile.c
817
if (hdr == AFILE_HDR_AUTO) {
usr.bin/aucat/afile.c
818
f->hdr = AFILE_HDR_RAW;
usr.bin/aucat/afile.c
825
f->hdr = AFILE_HDR_AIFF;
usr.bin/aucat/afile.c
828
f->hdr = AFILE_HDR_AU;
usr.bin/aucat/afile.c
830
f->hdr = AFILE_HDR_WAV;
usr.bin/aucat/afile.c
845
if (f->hdr == AFILE_HDR_WAV) {
usr.bin/aucat/afile.c
848
} else if (f->hdr == AFILE_HDR_AIFF) {
usr.bin/aucat/afile.c
851
} else if (f->hdr == AFILE_HDR_AU) {
usr.bin/aucat/afile.c
873
if (f->hdr == AFILE_HDR_WAV) {
usr.bin/aucat/afile.c
886
} else if (f->hdr == AFILE_HDR_AIFF) {
usr.bin/aucat/afile.c
898
} else if (f->hdr == AFILE_HDR_AU) {
usr.bin/aucat/afile.h
37
int hdr; /* header type */
usr.bin/aucat/aucat.c
1195
opt_hdr(char *s, int *hdr)
usr.bin/aucat/aucat.c
1198
*hdr = AFILE_HDR_AUTO;
usr.bin/aucat/aucat.c
1202
*hdr = AFILE_HDR_RAW;
usr.bin/aucat/aucat.c
1206
*hdr = AFILE_HDR_WAV;
usr.bin/aucat/aucat.c
1210
*hdr = AFILE_HDR_AIFF;
usr.bin/aucat/aucat.c
1214
*hdr = AFILE_HDR_AU;
usr.bin/aucat/aucat.c
1324
int dup, imin, imax, omin, omax, nch, off, rate, vol, bufsz, hdr, mode;
usr.bin/aucat/aucat.c
1345
hdr = AFILE_HDR_AUTO;
usr.bin/aucat/aucat.c
1378
if (!opt_hdr(optarg, &hdr))
usr.bin/aucat/aucat.c
1388
&par, hdr, imin, imax, omin, omax,
usr.bin/aucat/aucat.c
1413
&par, hdr, imin, imax, omin, omax,
usr.bin/aucat/aucat.c
266
slot_new(char *path, int mode, struct aparams *par, int hdr,
usr.bin/aucat/aucat.c
274
if (!afile_open(&s->afile, path, hdr,
usr.bin/file/file.c
306
if ((pid_t)imsg->hdr.pid != from)
usr.bin/lex/main.c
373
struct yytbl_hdr hdr;
usr.bin/lex/main.c
394
yytbl_hdr_init(&hdr, flex_version, tablesname);
usr.bin/lex/main.c
396
if (yytbl_hdr_fwrite(&tableswr, &hdr) <= 0)
usr.bin/make/arch.c
168
new_arch_member(struct ar_hdr *hdr, const char *name)
usr.bin/make/arch.c
175
memcpy(n->date, &(hdr->ar_date), AR_DATE_SIZE);
usr.bin/nc/netcat.c
1360
struct cmsghdr hdr;
usr.bin/nm/nm.c
102
int show_file(int, int, const char *, FILE *fp, off_t, union hdr *);
usr.bin/nm/nm.c
251
union hdr exec_head;
usr.bin/nm/nm.c
487
union hdr exec_head;
usr.bin/nm/nm.c
634
show_file(int count, int warn_fmt, const char *name, FILE *fp, off_t foff, union hdr *head)
usr.bin/openssl/ocsp.c
1503
CONF_VALUE *hdr = sk_CONF_VALUE_value(headers, i);
usr.bin/openssl/ocsp.c
1504
if (strcasecmp("host", hdr->name) == 0)
usr.bin/openssl/ocsp.c
1506
if (!OCSP_REQ_CTX_add1_header(ctx, hdr->name, hdr->value))
usr.bin/rdist/isexec.c
45
Elf32_Ehdr hdr;
usr.bin/rdist/isexec.c
58
r = read(fd, &hdr, sizeof(hdr)) == sizeof(hdr) &&
usr.bin/rdist/isexec.c
59
IS_ELF(hdr) && hdr.e_type == ET_EXEC;
usr.bin/sndiod/fdpass.c
129
struct cmsghdr hdr;
usr.bin/sndiod/fdpass.c
79
struct cmsghdr hdr;
usr.bin/ssh/monitor_fdpass.c
45
struct cmsghdr hdr;
usr.bin/ssh/monitor_fdpass.c
93
struct cmsghdr hdr;
usr.bin/tmux/client.c
643
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/client.c
645
switch (imsg->hdr.type) {
usr.bin/tmux/client.c
665
imsg->hdr.peerid & 0xff);
usr.bin/tmux/client.c
727
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/client.c
729
switch (imsg->hdr.type) {
usr.bin/tmux/client.c
744
client_exittype = imsg->hdr.type;
usr.bin/tmux/client.c
745
if (imsg->hdr.type == MSG_DETACHKILL)
usr.bin/tmux/client.c
758
client_exittype = imsg->hdr.type;
usr.bin/tmux/file.c
573
size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/file.c
635
size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/file.c
655
size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/file.c
734
size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/file.c
796
size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/file.c
814
size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/file.c
834
size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/file.c
860
size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/layout.c
115
log_debug("%s:%*s%p type %s [parent %p] wp=%p [%u,%u %ux%u]", hdr, n,
usr.bin/tmux/layout.c
122
layout_print_cell(lcchild, hdr, n + 1);
usr.bin/tmux/layout.c
96
layout_print_cell(struct layout_cell *lc, const char *hdr, u_int n)
usr.bin/tmux/proc.c
134
version = imsg->hdr.peerid & 0xff;
usr.bin/tmux/proc.c
135
if (imsg->hdr.type != MSG_VERSION && version != PROTOCOL_VERSION) {
usr.bin/tmux/proc.c
91
log_debug("peer %p message %d", peer, imsg.hdr.type);
usr.bin/tmux/server-client.c
2145
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/server-client.c
2147
switch (imsg->hdr.type) {
usr.bin/tmux/server-client.c
2236
log_debug("client %p invalid message type %d", c, imsg->hdr.type);
usr.bin/tmux/server-client.c
2298
if (imsg->hdr.len - IMSG_HEADER_SIZE < sizeof data)
usr.bin/tmux/server-client.c
2303
len = imsg->hdr.len - IMSG_HEADER_SIZE - sizeof data;
usr.bin/tmux/server-client.c
2366
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.bin/tmux/server-client.c
2368
switch (imsg->hdr.type) {
usr.bin/tmux/server-client.c
2452
if (imsg->hdr.type != MSG_IDENTIFY_DONE)
usr.sbin/acpidump/acpidump.c
361
aml_dump(struct ACPIsdt *hdr)
usr.sbin/acpidump/acpidump.c
370
hdr->signature[0], hdr->signature[1],
usr.sbin/acpidump/acpidump.c
371
hdr->signature[2], hdr->signature[3],
usr.sbin/acpidump/acpidump.c
379
write(fd, hdr, SIZEOF_SDT_HDR);
usr.sbin/acpidump/acpidump.c
380
write(fd, hdr->body, hdr->len - SIZEOF_SDT_HDR);
usr.sbin/amd/amd/mapc.c
124
qelem hdr;
usr.sbin/amd/amd/mapc.c
502
ins_que(&m->hdr, &map_list_head);
usr.sbin/amd/amd/mapc.c
521
rem_que(&m->hdr);
usr.sbin/amd/amd/sched.c
146
rem_que(&p->hdr);
usr.sbin/amd/amd/sched.c
147
ins_que(&p->hdr, &proc_list_head);
usr.sbin/amd/amd/sched.c
248
rem_que(&p->hdr);
usr.sbin/amd/amd/sched.c
53
qelem hdr; /* Linked list */
usr.sbin/amd/amd/sched.c
98
ins_que(&p->hdr, &proc_wait_list);
usr.sbin/arp/arp.c
898
struct ether_header hdr;
usr.sbin/arp/arp.c
906
(void)memset(&pkt.hdr.ether_dhost, 0xff, sizeof(pkt.hdr.ether_dhost));
usr.sbin/arp/arp.c
907
pkt.hdr.ether_type = htons(0);
usr.sbin/bgpctl/bgpctl.c
477
switch (imsg->hdr.type) {
usr.sbin/bgpctl/bgpctl.c
583
warnx("unknown imsg %d received", imsg->hdr.type);
usr.sbin/bgpctl/mrtparser.c
265
mrt_parse_v2_peer(struct mrt_hdr *hdr, struct ibuf *msg)
usr.sbin/bgpctl/mrtparser.c
340
mrt_parse_v2_rib(struct mrt_hdr *hdr, struct ibuf *msg, int verbose)
usr.sbin/bgpctl/mrtparser.c
355
switch (ntohs(hdr->subtype)) {
usr.sbin/bgpctl/mrtparser.c
401
errx(1, "unknown subtype %hd", ntohs(hdr->subtype));
usr.sbin/bgpctl/mrtparser.c
450
mrt_parse_dump(struct mrt_hdr *hdr, struct ibuf *msg, struct mrt_peer **pp,
usr.sbin/bgpctl/mrtparser.c
485
switch (ntohs(hdr->subtype)) {
usr.sbin/bgpctl/mrtparser.c
501
switch (ntohs(hdr->subtype)) {
usr.sbin/bgpctl/mrtparser.c
529
mrt_parse_dump_mp(struct mrt_hdr *hdr, struct ibuf *msg, struct mrt_peer **pp,
usr.sbin/bgpctl/mrtparser.c
561
if (ntohs(hdr->type) == MSG_PROTOCOL_BGP4MP_ET) {
usr.sbin/bgpctl/mrtparser.c
75
mrt_read_msg(int fd, struct mrt_hdr *hdr)
usr.sbin/bgpctl/mrtparser.c
80
memset(hdr, 0, sizeof(*hdr));
usr.sbin/bgpctl/mrtparser.c
81
if (mrt_read_buf(fd, hdr, sizeof(*hdr)) != sizeof(*hdr))
usr.sbin/bgpctl/mrtparser.c
84
len = ntohl(hdr->length);
usr.sbin/bgpctl/mrtparser.c
897
mrt_parse_state(struct mrt_bgp_state *s, struct mrt_hdr *hdr, struct ibuf *msg,
usr.sbin/bgpctl/mrtparser.c
905
t.tv_sec = ntohl(hdr->timestamp);
usr.sbin/bgpctl/mrtparser.c
909
if (ntohs(hdr->type) == MSG_PROTOCOL_BGP4MP_ET) {
usr.sbin/bgpctl/mrtparser.c
915
switch (ntohs(hdr->subtype)) {
usr.sbin/bgpctl/mrtparser.c
959
mrt_parse_msg(struct mrt_bgp_msg *m, struct mrt_hdr *hdr, struct ibuf *msg,
usr.sbin/bgpctl/mrtparser.c
968
t.tv_sec = ntohl(hdr->timestamp);
usr.sbin/bgpctl/mrtparser.c
972
if (ntohs(hdr->type) == MSG_PROTOCOL_BGP4MP_ET) {
usr.sbin/bgpctl/mrtparser.c
978
switch (ntohs(hdr->subtype)) {
usr.sbin/bgpd/kroute.c
2689
struct rt_msghdr hdr;
usr.sbin/bgpd/kroute.c
2703
memset(&hdr, 0, sizeof(hdr));
usr.sbin/bgpd/kroute.c
2704
hdr.rtm_version = RTM_VERSION;
usr.sbin/bgpd/kroute.c
2705
hdr.rtm_type = action;
usr.sbin/bgpd/kroute.c
2706
hdr.rtm_tableid = kt->rtableid;
usr.sbin/bgpd/kroute.c
2707
hdr.rtm_priority = kr_state.fib_prio;
usr.sbin/bgpd/kroute.c
2709
hdr.rtm_flags |= RTF_BLACKHOLE;
usr.sbin/bgpd/kroute.c
2711
hdr.rtm_flags |= RTF_REJECT;
usr.sbin/bgpd/kroute.c
2713
hdr.rtm_fmask = RTF_REJECT|RTF_BLACKHOLE;
usr.sbin/bgpd/kroute.c
2714
hdr.rtm_seq = kr_state.rtseq++; /* overflow doesn't matter */
usr.sbin/bgpd/kroute.c
2715
hdr.rtm_msglen = sizeof(hdr);
usr.sbin/bgpd/kroute.c
2717
iov[iovcnt].iov_base = &hdr;
usr.sbin/bgpd/kroute.c
2718
iov[iovcnt++].iov_len = sizeof(hdr);
usr.sbin/bgpd/kroute.c
2736
hdr.rtm_addrs |= RTA_DST;
usr.sbin/bgpd/kroute.c
2737
hdr.rtm_msglen += ROUNDUP(salen);
usr.sbin/bgpd/kroute.c
2760
hdr.rtm_flags |= RTF_GATEWAY;
usr.sbin/bgpd/kroute.c
2761
hdr.rtm_addrs |= RTA_GATEWAY;
usr.sbin/bgpd/kroute.c
2762
hdr.rtm_msglen += ROUNDUP(salen);
usr.sbin/bgpd/kroute.c
2777
hdr.rtm_addrs |= RTA_NETMASK;
usr.sbin/bgpd/kroute.c
2778
hdr.rtm_msglen += ROUNDUP(salen);
usr.sbin/bgpd/kroute.c
2792
hdr.rtm_addrs |= RTA_IFP;
usr.sbin/bgpd/kroute.c
2793
hdr.rtm_msglen += ROUNDUP(salen);
usr.sbin/bgpd/kroute.c
2805
hdr.rtm_flags |= RTF_MPLS;
usr.sbin/bgpd/kroute.c
2806
hdr.rtm_mpls = MPLS_OP_PUSH;
usr.sbin/bgpd/kroute.c
2807
hdr.rtm_addrs |= RTA_SRC;
usr.sbin/bgpd/kroute.c
2808
hdr.rtm_msglen += ROUNDUP(salen);
usr.sbin/bgpd/kroute.c
2810
hdr.rtm_flags &= ~RTF_GATEWAY;
usr.sbin/bgpd/kroute.c
2823
hdr.rtm_addrs |= RTA_LABEL;
usr.sbin/bgpd/kroute.c
2824
hdr.rtm_msglen += ROUNDUP(salen);
usr.sbin/bgpd/kroute.c
2833
if (hdr.rtm_type == RTM_CHANGE) {
usr.sbin/bgpd/kroute.c
2834
hdr.rtm_type = RTM_ADD;
usr.sbin/bgpd/kroute.c
2836
} else if (hdr.rtm_type == RTM_DELETE) {
usr.sbin/bgpd/kroute.c
2842
log_warn("%s: action %u, prefix %s/%u", __func__, hdr.rtm_type,
usr.sbin/bgpd/pfkey.c
410
struct sadb_msg hdr;
usr.sbin/bgpd/pfkey.c
412
if (recv(sd, &hdr, sizeof(hdr), MSG_PEEK) != sizeof(hdr)) {
usr.sbin/bgpd/pfkey.c
420
if (hdr.sadb_msg_seq == sadb_msg_seq &&
usr.sbin/bgpd/pfkey.c
421
hdr.sadb_msg_pid == pid) {
usr.sbin/bgpd/pfkey.c
423
memcpy(h, &hdr, sizeof(hdr));
usr.sbin/bgpd/pfkey.c
428
if (read(sd, &hdr, sizeof(hdr)) == -1) {
usr.sbin/bgpd/pfkey.c
441
struct sadb_msg hdr, *msg;
usr.sbin/bgpd/pfkey.c
449
rv = pfkey_read(sd, &hdr);
usr.sbin/bgpd/pfkey.c
454
if (hdr.sadb_msg_errno != 0) {
usr.sbin/bgpd/pfkey.c
455
errno = hdr.sadb_msg_errno;
usr.sbin/bgpd/pfkey.c
458
if (read(sd, &hdr, sizeof(hdr)) == -1)
usr.sbin/bgpd/pfkey.c
468
if ((data = reallocarray(NULL, hdr.sadb_msg_len, PFKEY2_CHUNK))
usr.sbin/bgpd/pfkey.c
473
len = hdr.sadb_msg_len * PFKEY2_CHUNK;
usr.sbin/bgpd/pfkey.c
480
if (hdr.sadb_msg_type == SADB_GETSPI) {
usr.sbin/bgpd/rde_attr.c
38
u_char hdr[4];
usr.sbin/bgpd/rde_attr.c
43
hdr[2] = (data_len >> 8) & 0xff;
usr.sbin/bgpd/rde_attr.c
44
hdr[3] = data_len & 0xff;
usr.sbin/bgpd/rde_attr.c
46
hdr[2] = data_len & 0xff;
usr.sbin/bgpd/rde_attr.c
49
hdr[0] = flags;
usr.sbin/bgpd/rde_attr.c
50
hdr[1] = type;
usr.sbin/bgpd/rde_attr.c
52
if (ibuf_add(buf, hdr, flags & ATTR_EXTLEN ? 4 : 3) == -1)
usr.sbin/bgpd/rtr_proto.c
107
struct rtr_header hdr;
usr.sbin/bgpd/rtr_proto.c
114
struct rtr_header hdr;
usr.sbin/bgpd/rtr_proto.c
120
struct rtr_header hdr;
usr.sbin/bgpd/rtr_proto.c
128
struct rtr_header hdr;
usr.sbin/bgpd/rtr_proto.c
429
rtr_reader_callback(struct ibuf *hdr, void *arg, int *fd)
usr.sbin/bgpd/rtr_proto.c
436
if (ibuf_get(hdr, &rh, sizeof(rh)) == -1)
usr.sbin/bgpd/rtr_proto.c
442
rtr_send_error(rs, hdr, CORRUPT_DATA, "%s: too big: %zu bytes",
usr.sbin/bgpd/rtr_proto.c
464
struct ibuf hdr;
usr.sbin/bgpd/rtr_proto.c
470
ibuf_from_ibuf(&hdr, msg);
usr.sbin/bgpd/rtr_proto.c
471
if (ibuf_get(&hdr, &rh, sizeof(rh)) == -1)
usr.sbin/bgpd/rtr_proto.c
588
rs->session_id = ntohs(notify.hdr.session_id);
usr.sbin/bgpd/rtr_proto.c
590
if (rtr_check_session_id(rs, rs->session_id, &notify.hdr, pdu) == -1)
usr.sbin/bgpd/rtr_proto.c
619
rs->session_id = ntohs(resp.hdr.session_id);
usr.sbin/bgpd/rtr_proto.c
621
if (rtr_check_session_id(rs, rs->session_id, &resp.hdr, pdu) == -1)
usr.sbin/bgpd/rtr_proto.c
648
if (rtr_check_session_id(rs, 0, &ip4.hdr, pdu) == -1)
usr.sbin/bgpd/rtr_proto.c
67
struct rtr_header hdr;
usr.sbin/bgpd/rtr_proto.c
713
if (rtr_check_session_id(rs, 0, &ip6.hdr, pdu) == -1)
usr.sbin/bgpd/rtr_proto.c
72
struct rtr_header hdr;
usr.sbin/bgpd/rtr_proto.c
77
struct rtr_header hdr;
usr.sbin/bgpd/rtr_proto.c
779
flags = rtr_aspa.hdr.flags;
usr.sbin/bgpd/rtr_proto.c
81
struct rtr_header hdr;
usr.sbin/bgpd/rtr_proto.c
87
struct rtr_header hdr;
usr.sbin/bgpd/rtr_proto.c
879
if (rtr_check_session_id(rs, rs->session_id, &eod.hdr, pdu) == -1)
usr.sbin/bgpd/rtr_proto.c
912
if (rtr_check_session_id(rs, rs->session_id, &eod.hdr, pdu) == -1)
usr.sbin/bgpd/rtr_proto.c
960
if (rtr_check_session_id(rs, 0, &reset.hdr, pdu) == -1)
usr.sbin/bgpd/rtr_proto.c
97
struct rtr_header hdr;
usr.sbin/bgpd/session_bgp.c
239
uint16_t hdr = 0;
usr.sbin/bgpd/session_bgp.c
248
hdr |= CAPA_GR_R_FLAG;
usr.sbin/bgpd/session_bgp.c
250
hdr |= CAPA_GR_N_FLAG;
usr.sbin/bgpd/session_bgp.c
251
errs += session_capa_add(opb, CAPA_RESTART, sizeof(hdr));
usr.sbin/bgpd/session_bgp.c
252
errs += ibuf_add_n16(opb, hdr);
usr.sbin/dhcp6leasectl/dhcp6leasectl.c
153
if (imsg.hdr.type == IMSG_CTL_END) {
usr.sbin/dhcpd/bpf.c
268
struct bpf_hdr hdr;
usr.sbin/dhcpd/bpf.c
297
sizeof(hdr)) {
usr.sbin/dhcpd/bpf.c
303
memcpy(&hdr, &interface->rbuf[interface->rbuf_offset],
usr.sbin/dhcpd/bpf.c
304
sizeof(hdr));
usr.sbin/dhcpd/bpf.c
310
if (interface->rbuf_offset + hdr.bh_hdrlen + hdr.bh_caplen >
usr.sbin/dhcpd/bpf.c
321
if (hdr.bh_caplen != hdr.bh_datalen) {
usr.sbin/dhcpd/bpf.c
323
interface->rbuf_offset + hdr.bh_hdrlen +
usr.sbin/dhcpd/bpf.c
324
hdr.bh_caplen);
usr.sbin/dhcpd/bpf.c
329
interface->rbuf_offset += hdr.bh_hdrlen;
usr.sbin/dhcpd/bpf.c
333
interface->rbuf_offset, hdr.bh_caplen, hfrom);
usr.sbin/dhcpd/bpf.c
342
interface->rbuf_offset + hdr.bh_caplen);
usr.sbin/dhcpd/bpf.c
346
hdr.bh_caplen -= offset;
usr.sbin/dhcpd/bpf.c
350
interface->rbuf_offset, hdr.bh_caplen, from,
usr.sbin/dhcpd/bpf.c
351
hdr.bh_csumflags);
usr.sbin/dhcpd/bpf.c
356
interface->rbuf_offset + hdr.bh_caplen);
usr.sbin/dhcpd/bpf.c
360
hdr.bh_caplen -= offset;
usr.sbin/dhcpd/bpf.c
367
if (hdr.bh_caplen > len) {
usr.sbin/dhcpd/bpf.c
369
interface->rbuf_offset + hdr.bh_caplen);
usr.sbin/dhcpd/bpf.c
375
hdr.bh_caplen);
usr.sbin/dhcpd/bpf.c
377
hdr.bh_caplen);
usr.sbin/dhcpd/bpf.c
378
return (hdr.bh_caplen);
usr.sbin/dhcpd/sync.c
239
struct dhcp_synchdr *hdr;
usr.sbin/dhcpd/sync.c
265
hdr = (struct dhcp_synchdr *)buf;
usr.sbin/dhcpd/sync.c
267
hdr->sh_version != DHCP_SYNC_VERSION ||
usr.sbin/dhcpd/sync.c
268
hdr->sh_af != AF_INET ||
usr.sbin/dhcpd/sync.c
269
len < ntohs(hdr->sh_length))
usr.sbin/dhcpd/sync.c
271
len = ntohs(hdr->sh_length);
usr.sbin/dhcpd/sync.c
274
memcpy(hmac[0], hdr->sh_hmac, DHCP_SYNC_HMAC_LEN);
usr.sbin/dhcpd/sync.c
275
explicit_bzero(hdr->sh_hmac, DHCP_SYNC_HMAC_LEN);
usr.sbin/dhcpd/sync.c
285
p = (u_int8_t *)(hdr + 1);
usr.sbin/dhcpd/sync.c
393
struct dhcp_synchdr hdr;
usr.sbin/dhcpd/sync.c
405
memset(&hdr, 0, sizeof(hdr));
usr.sbin/dhcpd/sync.c
418
hdr.sh_version = DHCP_SYNC_VERSION;
usr.sbin/dhcpd/sync.c
419
hdr.sh_af = AF_INET;
usr.sbin/dhcpd/sync.c
420
hdr.sh_counter = sync_counter++;
usr.sbin/dhcpd/sync.c
421
hdr.sh_length = htons(sizeof(hdr) + sizeof(lv) + padlen + sizeof(end));
usr.sbin/dhcpd/sync.c
422
iov[i].iov_base = &hdr;
usr.sbin/dhcpd/sync.c
423
iov[i].iov_len = sizeof(hdr);
usr.sbin/dhcpd/sync.c
462
if (!HMAC_Final(ctx, hdr.sh_hmac, &hmac_len))
usr.sbin/dhcpleasectl/dhcpleasectl.c
187
if (imsg.hdr.type == IMSG_CTL_END) {
usr.sbin/dhcrelay/bpf.c
377
struct bpf_hdr hdr;
usr.sbin/dhcrelay/bpf.c
406
sizeof(hdr)) {
usr.sbin/dhcrelay/bpf.c
412
memcpy(&hdr, &interface->rbuf[interface->rbuf_offset],
usr.sbin/dhcrelay/bpf.c
413
sizeof(hdr));
usr.sbin/dhcrelay/bpf.c
419
if (interface->rbuf_offset + hdr.bh_hdrlen + hdr.bh_caplen >
usr.sbin/dhcrelay/bpf.c
430
if (hdr.bh_caplen != hdr.bh_datalen) {
usr.sbin/dhcrelay/bpf.c
431
interface->rbuf_offset += hdr.bh_hdrlen =
usr.sbin/dhcrelay/bpf.c
432
hdr.bh_caplen;
usr.sbin/dhcrelay/bpf.c
437
interface->rbuf_offset += hdr.bh_hdrlen;
usr.sbin/dhcrelay/bpf.c
450
interface->rbuf_offset += hdr.bh_caplen;
usr.sbin/dhcrelay/bpf.c
456
interface->rbuf_len, offset, pc, hdr.bh_csumflags);
usr.sbin/dhcrelay/bpf.c
460
interface->rbuf_offset += hdr.bh_caplen;
usr.sbin/dhcrelay/bpf.c
464
hdr.bh_caplen -= offset - interface->rbuf_offset;
usr.sbin/dhcrelay/bpf.c
472
if (hdr.bh_caplen > len) {
usr.sbin/dhcrelay/bpf.c
473
interface->rbuf_offset += hdr.bh_caplen;
usr.sbin/dhcrelay/bpf.c
479
hdr.bh_caplen);
usr.sbin/dhcrelay/bpf.c
480
interface->rbuf_offset += hdr.bh_caplen;
usr.sbin/dhcrelay/bpf.c
481
return (hdr.bh_caplen);
usr.sbin/dhcrelay6/bpf.c
304
struct bpf_hdr hdr;
usr.sbin/dhcrelay6/bpf.c
333
sizeof(hdr)) {
usr.sbin/dhcrelay6/bpf.c
339
memcpy(&hdr, &interface->rbuf[interface->rbuf_offset],
usr.sbin/dhcrelay6/bpf.c
340
sizeof(hdr));
usr.sbin/dhcrelay6/bpf.c
346
if (interface->rbuf_offset + hdr.bh_hdrlen + hdr.bh_caplen >
usr.sbin/dhcrelay6/bpf.c
357
if (hdr.bh_caplen != hdr.bh_datalen) {
usr.sbin/dhcrelay6/bpf.c
358
interface->rbuf_offset += hdr.bh_hdrlen =
usr.sbin/dhcrelay6/bpf.c
359
hdr.bh_caplen;
usr.sbin/dhcrelay6/bpf.c
364
interface->rbuf_offset += hdr.bh_hdrlen;
usr.sbin/dhcrelay6/bpf.c
376
interface->rbuf_offset += hdr.bh_caplen;
usr.sbin/dhcrelay6/bpf.c
380
hdr.bh_caplen -= offset;
usr.sbin/dhcrelay6/bpf.c
384
interface->rbuf_offset, pc, hdr.bh_caplen,
usr.sbin/dhcrelay6/bpf.c
385
hdr.bh_csumflags);
usr.sbin/dhcrelay6/bpf.c
389
interface->rbuf_offset += hdr.bh_caplen;
usr.sbin/dhcrelay6/bpf.c
393
hdr.bh_caplen -= offset;
usr.sbin/dhcrelay6/bpf.c
400
if (hdr.bh_caplen > len) {
usr.sbin/dhcrelay6/bpf.c
401
interface->rbuf_offset += hdr.bh_caplen;
usr.sbin/dhcrelay6/bpf.c
407
hdr.bh_caplen);
usr.sbin/dhcrelay6/bpf.c
408
interface->rbuf_offset += hdr.bh_caplen;
usr.sbin/dhcrelay6/bpf.c
409
return (hdr.bh_caplen);
usr.sbin/dvmrpctl/dvmrpctl.c
243
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
265
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
296
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
348
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
481
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
518
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
537
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
567
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
589
switch (imsg->hdr.type) {
usr.sbin/dvmrpctl/dvmrpctl.c
633
switch (imsg->hdr.type) {
usr.sbin/dvmrpd/control.c
258
switch (imsg.hdr.type) {
usr.sbin/dvmrpd/control.c
262
dvmrpe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
usr.sbin/dvmrpd/control.c
265
if (imsg.hdr.len == IMSG_HEADER_SIZE +
usr.sbin/dvmrpd/control.c
274
if (imsg.hdr.len == IMSG_HEADER_SIZE +
usr.sbin/dvmrpd/control.c
288
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/dvmrpd/control.c
289
dvmrpe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/dvmrpd/control.c
290
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/dvmrpd/control.c
293
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/dvmrpd/control.c
298
dvmrpe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/dvmrpd/control.c
299
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/dvmrpd/control.c
300
dvmrpe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/dvmrpd/control.c
301
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/dvmrpd/control.c
308
"error handling imsg %d", imsg.hdr.type);
usr.sbin/dvmrpd/control.c
322
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
usr.sbin/dvmrpd/control.c
325
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
usr.sbin/dvmrpd/control.c
326
-1, imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE));
usr.sbin/dvmrpd/dvmrpd.c
342
switch (imsg.hdr.type) {
usr.sbin/dvmrpd/dvmrpd.c
360
"imsg %d", imsg.hdr.type);
usr.sbin/dvmrpd/dvmrpd.c
406
switch (imsg.hdr.type) {
usr.sbin/dvmrpd/dvmrpd.c
408
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(mfc))
usr.sbin/dvmrpd/dvmrpd.c
416
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(mfc))
usr.sbin/dvmrpd/dvmrpd.c
425
imsg.hdr.type);
usr.sbin/dvmrpd/dvmrpe.c
266
switch (imsg.hdr.type) {
usr.sbin/dvmrpd/dvmrpe.c
268
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/dvmrpd/dvmrpe.c
294
"imsg %d", imsg.hdr.type);
usr.sbin/dvmrpd/dvmrpe.c
342
switch (imsg.hdr.type) {
usr.sbin/dvmrpd/dvmrpe.c
351
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(*rr))
usr.sbin/dvmrpd/dvmrpe.c
360
if (imsg.hdr.peerid == 0) {
usr.sbin/dvmrpd/dvmrpe.c
372
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/dvmrpd/dvmrpe.c
377
if (imsg.hdr.peerid == 0) {
usr.sbin/dvmrpd/dvmrpe.c
390
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/dvmrpd/dvmrpe.c
394
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(p))
usr.sbin/dvmrpd/dvmrpe.c
414
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(*rr))
usr.sbin/dvmrpd/dvmrpe.c
431
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(*rr))
usr.sbin/dvmrpd/dvmrpe.c
451
imsg.hdr.type);
usr.sbin/dvmrpd/rde.c
231
switch (imsg.hdr.type) {
usr.sbin/dvmrpd/rde.c
233
rt_dump(imsg.hdr.pid);
usr.sbin/dvmrpd/rde.c
235
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/dvmrpd/rde.c
238
mfc_dump(imsg.hdr.pid);
usr.sbin/dvmrpd/rde.c
240
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/dvmrpd/rde.c
243
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rr))
usr.sbin/dvmrpd/rde.c
248
if (imsg.hdr.peerid == 0)
usr.sbin/dvmrpd/rde.c
256
rt_snap(imsg.hdr.peerid);
usr.sbin/dvmrpd/rde.c
258
imsg.hdr.peerid, 0, NULL, 0);
usr.sbin/dvmrpd/rde.c
261
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(mfc))
usr.sbin/dvmrpd/rde.c
277
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(mfc))
usr.sbin/dvmrpd/rde.c
285
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(mfc))
usr.sbin/dvmrpd/rde.c
298
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(mfc))
usr.sbin/dvmrpd/rde.c
311
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(nm))
usr.sbin/dvmrpd/rde.c
319
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(p))
usr.sbin/dvmrpd/rde.c
332
imsg.hdr.type);
usr.sbin/eigrpctl/eigrpctl.c
304
switch (imsg->hdr.type) {
usr.sbin/eigrpctl/eigrpctl.c
306
if (imsg->hdr.len < IMSG_HEADER_SIZE +
usr.sbin/eigrpctl/eigrpctl.c
344
switch (imsg->hdr.type) {
usr.sbin/eigrpctl/eigrpctl.c
346
if (imsg->hdr.len < IMSG_HEADER_SIZE +
usr.sbin/eigrpctl/eigrpctl.c
444
switch (imsg->hdr.type) {
usr.sbin/eigrpctl/eigrpctl.c
446
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct ctl_nbr))
usr.sbin/eigrpctl/eigrpctl.c
499
switch (imsg->hdr.type) {
usr.sbin/eigrpctl/eigrpctl.c
501
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct ctl_rt))
usr.sbin/eigrpctl/eigrpctl.c
565
switch (imsg->hdr.type) {
usr.sbin/eigrpctl/eigrpctl.c
567
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct ctl_rt))
usr.sbin/eigrpctl/eigrpctl.c
673
switch (imsg->hdr.type) {
usr.sbin/eigrpctl/eigrpctl.c
675
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct kroute))
usr.sbin/eigrpctl/eigrpctl.c
791
switch (imsg->hdr.type) {
usr.sbin/eigrpctl/eigrpctl.c
793
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct kif))
usr.sbin/eigrpctl/eigrpctl.c
825
switch (imsg->hdr.type) {
usr.sbin/eigrpctl/eigrpctl.c
827
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct ctl_stats))
usr.sbin/eigrpd/control.c
249
switch (imsg.hdr.type) {
usr.sbin/eigrpd/control.c
253
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/eigrpd/control.c
254
eigrpe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
usr.sbin/eigrpd/control.c
258
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/eigrpd/control.c
259
eigrpe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/eigrpd/control.c
260
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/eigrpd/control.c
263
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/control.c
273
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/control.c
277
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/eigrpd/control.c
278
eigrpe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/eigrpd/control.c
279
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/eigrpd/control.c
288
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/control.c
295
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/control.c
300
eigrpe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/eigrpd/control.c
301
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/eigrpd/control.c
302
eigrpe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/eigrpd/control.c
303
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/eigrpd/control.c
310
imsg.hdr.type);
usr.sbin/eigrpd/control.c
324
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
usr.sbin/eigrpd/control.c
327
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
usr.sbin/eigrpd/control.c
328
-1, imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE));
usr.sbin/eigrpd/eigrpd.c
401
switch (imsg.hdr.type) {
usr.sbin/eigrpd/eigrpd.c
418
if (imsg.hdr.len == IMSG_HEADER_SIZE)
usr.sbin/eigrpd/eigrpd.c
419
kr_ifinfo(NULL, imsg.hdr.pid);
usr.sbin/eigrpd/eigrpd.c
420
else if (imsg.hdr.len == IMSG_HEADER_SIZE + IFNAMSIZ)
usr.sbin/eigrpd/eigrpd.c
421
kr_ifinfo(imsg.data, imsg.hdr.pid);
usr.sbin/eigrpd/eigrpd.c
432
imsg.hdr.type);
usr.sbin/eigrpd/eigrpd.c
479
switch (imsg.hdr.type) {
usr.sbin/eigrpd/eigrpd.c
481
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/eigrpd/eigrpd.c
488
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/eigrpd/eigrpd.c
497
imsg.hdr.type);
usr.sbin/eigrpd/eigrpe.c
251
switch (imsg.hdr.type) {
usr.sbin/eigrpd/eigrpe.c
253
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/eigrpe.c
267
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/eigrpe.c
279
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/eigrpe.c
378
imsg.hdr.type);
usr.sbin/eigrpd/eigrpe.c
424
switch (imsg.hdr.type) {
usr.sbin/eigrpd/eigrpe.c
428
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rinfo))
usr.sbin/eigrpd/eigrpe.c
432
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/eigrpd/eigrpe.c
439
switch (imsg.hdr.type) {
usr.sbin/eigrpd/eigrpe.c
453
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rinfo))
usr.sbin/eigrpd/eigrpe.c
457
ei = eigrp_if_lookup_id(imsg.hdr.peerid);
usr.sbin/eigrpd/eigrpe.c
464
switch (imsg.hdr.type) {
usr.sbin/eigrpd/eigrpe.c
477
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/eigrpd/eigrpe.c
484
switch (imsg.hdr.type) {
usr.sbin/eigrpd/eigrpe.c
505
ei = eigrp_if_lookup_id(imsg.hdr.peerid);
usr.sbin/eigrpd/eigrpe.c
512
switch (imsg.hdr.type) {
usr.sbin/eigrpd/eigrpe.c
524
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/eigrpd/eigrpe.c
540
imsg.hdr.type);
usr.sbin/eigrpd/kroute.c
1041
struct rt_msghdr hdr;
usr.sbin/eigrpd/kroute.c
1051
memset(&hdr, 0, sizeof(hdr));
usr.sbin/eigrpd/kroute.c
1052
hdr.rtm_version = RTM_VERSION;
usr.sbin/eigrpd/kroute.c
1053
hdr.rtm_type = action;
usr.sbin/eigrpd/kroute.c
1054
hdr.rtm_priority = kr->priority;
usr.sbin/eigrpd/kroute.c
1055
hdr.rtm_tableid = kr_state.rdomain; /* rtableid */
usr.sbin/eigrpd/kroute.c
1057
hdr.rtm_fmask = RTF_REJECT|RTF_BLACKHOLE;
usr.sbin/eigrpd/kroute.c
1059
hdr.rtm_flags = RTF_MPATH;
usr.sbin/eigrpd/kroute.c
1061
hdr.rtm_flags |= RTF_BLACKHOLE;
usr.sbin/eigrpd/kroute.c
1062
hdr.rtm_seq = kr_state.rtseq++; /* overflow doesn't matter */
usr.sbin/eigrpd/kroute.c
1063
hdr.rtm_msglen = sizeof(hdr);
usr.sbin/eigrpd/kroute.c
1065
iov[iovcnt].iov_base = &hdr;
usr.sbin/eigrpd/kroute.c
1066
iov[iovcnt++].iov_len = sizeof(hdr);
usr.sbin/eigrpd/kroute.c
1073
hdr.rtm_addrs |= RTA_DST;
usr.sbin/eigrpd/kroute.c
1074
hdr.rtm_msglen += sizeof(prefix);
usr.sbin/eigrpd/kroute.c
1085
hdr.rtm_flags |= RTF_GATEWAY;
usr.sbin/eigrpd/kroute.c
1086
hdr.rtm_addrs |= RTA_GATEWAY;
usr.sbin/eigrpd/kroute.c
1087
hdr.rtm_msglen += sizeof(nexthop);
usr.sbin/eigrpd/kroute.c
1098
hdr.rtm_addrs |= RTA_NETMASK;
usr.sbin/eigrpd/kroute.c
1099
hdr.rtm_msglen += sizeof(mask);
usr.sbin/eigrpd/kroute.c
1107
if (hdr.rtm_type == RTM_CHANGE) {
usr.sbin/eigrpd/kroute.c
1108
hdr.rtm_type = RTM_ADD;
usr.sbin/eigrpd/kroute.c
1110
} else if (hdr.rtm_type == RTM_DELETE) {
usr.sbin/eigrpd/kroute.c
1117
log_warn("%s: action %u, prefix %s/%u", __func__, hdr.rtm_type,
usr.sbin/eigrpd/kroute.c
1129
struct rt_msghdr hdr;
usr.sbin/eigrpd/kroute.c
1140
memset(&hdr, 0, sizeof(hdr));
usr.sbin/eigrpd/kroute.c
1141
hdr.rtm_version = RTM_VERSION;
usr.sbin/eigrpd/kroute.c
1142
hdr.rtm_type = action;
usr.sbin/eigrpd/kroute.c
1143
hdr.rtm_priority = kr->priority;
usr.sbin/eigrpd/kroute.c
1144
hdr.rtm_tableid = kr_state.rdomain; /* rtableid */
usr.sbin/eigrpd/kroute.c
1146
hdr.rtm_fmask = RTF_REJECT|RTF_BLACKHOLE;
usr.sbin/eigrpd/kroute.c
1148
hdr.rtm_flags = RTF_MPATH;
usr.sbin/eigrpd/kroute.c
1149
hdr.rtm_seq = kr_state.rtseq++; /* overflow doesn't matter */
usr.sbin/eigrpd/kroute.c
1150
hdr.rtm_msglen = sizeof(hdr);
usr.sbin/eigrpd/kroute.c
1152
iov[iovcnt].iov_base = &hdr;
usr.sbin/eigrpd/kroute.c
1153
iov[iovcnt++].iov_len = sizeof(hdr);
usr.sbin/eigrpd/kroute.c
1160
hdr.rtm_addrs |= RTA_DST;
usr.sbin/eigrpd/kroute.c
1161
hdr.rtm_msglen += ROUNDUP(sizeof(struct sockaddr_in6));
usr.sbin/eigrpd/kroute.c
1175
hdr.rtm_flags |= RTF_GATEWAY;
usr.sbin/eigrpd/kroute.c
1176
hdr.rtm_addrs |= RTA_GATEWAY;
usr.sbin/eigrpd/kroute.c
1177
hdr.rtm_msglen += ROUNDUP(sizeof(struct sockaddr_in6));
usr.sbin/eigrpd/kroute.c
1189
hdr.rtm_flags |= RTF_HOST;
usr.sbin/eigrpd/kroute.c
1190
hdr.rtm_addrs |= RTA_NETMASK;
usr.sbin/eigrpd/kroute.c
1191
hdr.rtm_msglen += ROUNDUP(sizeof(struct sockaddr_in6));
usr.sbin/eigrpd/kroute.c
1199
if (hdr.rtm_type == RTM_CHANGE) {
usr.sbin/eigrpd/kroute.c
1200
hdr.rtm_type = RTM_ADD;
usr.sbin/eigrpd/kroute.c
1202
} else if (hdr.rtm_type == RTM_DELETE) {
usr.sbin/eigrpd/kroute.c
1209
log_warn("%s: action %u, prefix %s/%u", __func__, hdr.rtm_type,
usr.sbin/eigrpd/kroute.c
337
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(flags)) {
usr.sbin/eigrpd/kroute.c
353
imsg->hdr.pid, &kr, sizeof(kr));
usr.sbin/eigrpd/kroute.c
356
main_imsg_compose_eigrpe(IMSG_CTL_END, imsg->hdr.pid, NULL, 0);
usr.sbin/eigrpd/packet.c
484
struct cmsghdr hdr;
usr.sbin/eigrpd/rde.c
200
switch (imsg.hdr.type) {
usr.sbin/eigrpd/rde.c
202
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/eigrpd/rde.c
207
if (rde_nbr_find(imsg.hdr.peerid))
usr.sbin/eigrpd/rde.c
210
rde_nbr_new(imsg.hdr.peerid, &new);
usr.sbin/eigrpd/rde.c
213
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/eigrpd/rde.c
222
rde_nbr_del(rde_nbr_find(imsg.hdr.peerid), 0);
usr.sbin/eigrpd/rde.c
225
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/eigrpd/rde.c
239
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/eigrpd/rde.c
246
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rinfo))
usr.sbin/eigrpd/rde.c
250
switch (imsg.hdr.type) {
usr.sbin/eigrpd/rde.c
269
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/rde.c
275
rt_dump(imsg.data, imsg.hdr.pid);
usr.sbin/eigrpd/rde.c
276
rde_imsg_compose_eigrpe(IMSG_CTL_END, 0, imsg.hdr.pid,
usr.sbin/eigrpd/rde.c
286
imsg.hdr.type);
usr.sbin/eigrpd/rde.c
337
switch (imsg.hdr.type) {
usr.sbin/eigrpd/rde.c
339
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/rde.c
346
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/rde.c
352
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/eigrpd/rde.c
441
imsg.hdr.type);
usr.sbin/hostapd/iapp.c
102
frame.hdr.i_version = IEEE80211_IAPP_VERSION;
usr.sbin/hostapd/iapp.c
103
frame.hdr.i_command = IEEE80211_IAPP_FRAME_ADD_NOTIFY;
usr.sbin/hostapd/iapp.c
104
frame.hdr.i_identifier = htons(iapp->i_cnt++);
usr.sbin/hostapd/iapp.c
105
frame.hdr.i_length = sizeof(struct ieee80211_iapp_add_notify);
usr.sbin/hostapd/iapp.c
139
struct ieee80211_iapp_frame hdr;
usr.sbin/hostapd/iapp.c
148
bzero(&hdr, sizeof(hdr));
usr.sbin/hostapd/iapp.c
150
hdr.i_version = IEEE80211_IAPP_VERSION;
usr.sbin/hostapd/iapp.c
152
hdr.i_command = IEEE80211_IAPP_FRAME_HOSTAPD_RADIOTAP;
usr.sbin/hostapd/iapp.c
154
hdr.i_command = IEEE80211_IAPP_FRAME_HOSTAPD_PCAP;
usr.sbin/hostapd/iapp.c
157
hdr.i_identifier = htons(iapp->i_cnt++);
usr.sbin/hostapd/iapp.c
158
hdr.i_length = len;
usr.sbin/hostapd/iapp.c
165
iov[0].iov_base = &hdr;
usr.sbin/hostapd/iapp.c
166
iov[0].iov_len = sizeof(hdr);
usr.sbin/hostapd/iapp.c
201
struct ieee80211_iapp_frame hdr;
usr.sbin/hostapd/iapp.c
231
frame->hdr.i_version != IEEE80211_IAPP_VERSION ||
usr.sbin/hostapd/iapp.c
240
switch (frame->hdr.i_command) {
usr.sbin/hostapd/iapp.c
289
frame->hdr.i_length < sizeof(struct ieee80211_frame))
usr.sbin/hostapd/iapp.c
292
dlt = frame->hdr.i_command ==
usr.sbin/hostapd/iapp.c
313
iapp->i_iface, frame->hdr.i_command);
usr.sbin/hostapd/iapp.c
89
struct ieee80211_iapp_frame hdr;
usr.sbin/httpd/control.c
262
__func__, imsg.hdr.type);
usr.sbin/httpd/control.c
268
switch (imsg.hdr.type) {
usr.sbin/httpd/control.c
300
__func__, imsg.hdr.type);
usr.sbin/httpd/control.c
316
imsg_compose_event(&c->iev, imsg->hdr.type,
usr.sbin/httpd/control.c
318
imsg->hdr.len - IMSG_HEADER_SIZE);
usr.sbin/httpd/httpd.c
416
switch (imsg->hdr.type) {
usr.sbin/httpd/httpd.c
435
switch (imsg->hdr.type) {
usr.sbin/httpd/httpd.h
181
#define IMSG_DATA_SIZE(imsg) ((imsg)->hdr.len - IMSG_HEADER_SIZE)
usr.sbin/httpd/logger.c
257
if (imsg->hdr.type == IMSG_LOG_ACCESS)
usr.sbin/httpd/logger.c
284
switch (imsg->hdr.type) {
usr.sbin/httpd/logger.c
310
switch (imsg->hdr.type) {
usr.sbin/httpd/proc.c
640
imsg.hdr.type, imsg.hdr.peerid, p->p_title, imsg.hdr.pid);
usr.sbin/httpd/proc.c
655
switch (imsg.hdr.type) {
usr.sbin/httpd/proc.c
671
imsg.hdr.type, imsg.hdr.peerid,
usr.sbin/httpd/proc.c
672
p->p_title, imsg.hdr.pid);
usr.sbin/httpd/proc.c
794
return (proc_compose_imsg(ps, id, n, imsg->hdr.type,
usr.sbin/httpd/proc.c
795
imsg->hdr.peerid, -1, imsg->data, IMSG_DATA_SIZE(imsg)));
usr.sbin/httpd/server.c
1353
switch (imsg->hdr.type) {
usr.sbin/httpd/server.c
1398
switch (imsg->hdr.type) {
usr.sbin/httpd/server_fcgi.c
744
server_fcgi_writeheader(struct client *clt, struct kv *hdr, void *arg)
usr.sbin/httpd/server_fcgi.c
752
if (hdr->kv_parent != NULL && hdr->kv_parent->kv_key != NULL)
usr.sbin/httpd/server_fcgi.c
753
key = hdr->kv_parent->kv_key;
usr.sbin/httpd/server_fcgi.c
755
key = hdr->kv_key;
usr.sbin/httpd/server_fcgi.c
757
val = hdr->kv_value;
usr.sbin/httpd/server_http.c
1674
server_writeheader_http(struct client *clt, struct kv *hdr, void *arg)
usr.sbin/httpd/server_http.c
1680
if (hdr->kv_parent != NULL && hdr->kv_parent->kv_key != NULL)
usr.sbin/httpd/server_http.c
1681
key = hdr->kv_parent->kv_key;
usr.sbin/httpd/server_http.c
1683
key = hdr->kv_key;
usr.sbin/httpd/server_http.c
1685
ptr = hdr->kv_value;
usr.sbin/httpd/server_http.c
1693
hdr->kv_value == NULL ? "" : hdr->kv_value);
usr.sbin/httpd/server_http.c
1702
struct kv *hdr, *kv;
usr.sbin/httpd/server_http.c
1705
RB_FOREACH(hdr, kvtree, &desc->http_headers) {
usr.sbin/httpd/server_http.c
1706
if ((hdr_cb)(clt, hdr, arg) == -1)
usr.sbin/httpd/server_http.c
1708
TAILQ_FOREACH(kv, &hdr->kv_children, kv_entry) {
usr.sbin/httpd/server_http.c
229
struct kv *hdr = NULL;
usr.sbin/httpd/server_http.c
403
if ((hdr = kv_add(&desc->http_headers, key,
usr.sbin/httpd/server_http.c
407
desc->http_lastheader = hdr;
usr.sbin/ikectl/ikectl.c
400
imn = monitor_lookup(imsg->hdr.type);
usr.sbin/ikectl/ikectl.c
402
imsg->hdr.type, imsg->hdr.len, imsg->hdr.peerid, imsg->hdr.pid);
usr.sbin/ikectl/ikectl.c
417
switch (imsg->hdr.type) {
usr.sbin/iscsid/pdu.c
44
void *hdr;
usr.sbin/iscsid/pdu.c
46
if (!(hdr = calloc(1, sizeof(struct iscsi_pdu))))
usr.sbin/iscsid/pdu.c
48
if (pdu_addbuf(p, hdr, sizeof(struct iscsi_pdu), PDU_HEADER)) {
usr.sbin/iscsid/pdu.c
49
free(hdr);
usr.sbin/iscsid/pdu.c
52
return hdr;
usr.sbin/ldapctl/ldapctl.c
373
switch (imsg.hdr.type) {
usr.sbin/ldapd/control.c
247
log_debug("%s: got imsg %d on fd %d", __func__, imsg->hdr.type, fd);
usr.sbin/ldapd/control.c
248
switch (imsg->hdr.type) {
usr.sbin/ldapd/control.c
256
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(verbose))
usr.sbin/ldapd/control.c
266
log_warnx("%s: unexpected imsg %d", __func__, imsg->hdr.type);
usr.sbin/ldapd/imsgev.h
25
#define IMSG_LEN(m) ((m)->hdr.len - IMSG_HEADER_SIZE)
usr.sbin/ldapd/ldapd.c
270
__func__, imsg->hdr.type, iev->ibuf.fd);
usr.sbin/ldapd/ldapd.c
271
switch (imsg->hdr.type) {
usr.sbin/ldapd/ldapd.c
283
__func__, imsg->hdr.type);
usr.sbin/ldapd/ldapd.c
349
if (imsg->hdr.len != sizeof(*areq) + IMSG_HEADER_SIZE)
usr.sbin/ldapd/ldapd.c
370
if (imsg->hdr.len != sizeof(verbose) + IMSG_HEADER_SIZE)
usr.sbin/ldapd/ldapd.c
383
if (imsg->hdr.len != sizeof(*oreq) + IMSG_HEADER_SIZE)
usr.sbin/ldapd/ldape.c
488
__func__, imsg->hdr.type, iev->ibuf.fd);
usr.sbin/ldapd/ldape.c
489
switch (imsg->hdr.type) {
usr.sbin/ldapd/ldape.c
498
__func__, imsg->hdr.type);
usr.sbin/ldapd/ldape.c
552
if (imsg->hdr.len != sizeof(*oreq) + IMSG_HEADER_SIZE)
usr.sbin/ldomctl/ldomctl.c
199
struct md_header hdr;
usr.sbin/ldomctl/ldomctl.c
225
hv_read(guest->mdpa, &hdr, sizeof(hdr));
usr.sbin/ldomctl/ldomctl.c
226
md_len = sizeof(hdr) + hdr.node_blk_sz + hdr.name_blk_sz +
usr.sbin/ldomctl/ldomctl.c
227
hdr.data_blk_sz;
usr.sbin/ldomctl/ldomctl.c
458
msg.hdr.op = HVCTL_OP_GUEST_START;
usr.sbin/ldomctl/ldomctl.c
459
msg.hdr.seq = hvctl_seq++;
usr.sbin/ldomctl/ldomctl.c
489
msg.hdr.op = HVCTL_OP_GUEST_STOP;
usr.sbin/ldomctl/ldomctl.c
490
msg.hdr.seq = hvctl_seq++;
usr.sbin/ldomctl/ldomctl.c
533
msg.hdr.op = HVCTL_OP_GUEST_PANIC;
usr.sbin/ldomctl/ldomctl.c
534
msg.hdr.seq = hvctl_seq++;
usr.sbin/ldomctl/ldomctl.c
581
msg.hdr.op = HVCTL_OP_GET_RES_STAT;
usr.sbin/ldomctl/ldomctl.c
582
msg.hdr.seq = hvctl_seq++;
usr.sbin/ldomctl/ldomctl.c
609
msg.hdr.op = HVCTL_OP_GET_RES_STAT;
usr.sbin/ldomctl/ldomctl.c
610
msg.hdr.seq = hvctl_seq++;
usr.sbin/ldomctl/ldomctl.c
627
msg.hdr.op = HVCTL_OP_GET_RES_STAT;
usr.sbin/ldomctl/ldomctl.c
628
msg.hdr.seq = hvctl_seq++;
usr.sbin/ldomctl/ldomctl.c
709
msg.hdr.op = HVCTL_OP_HELLO;
usr.sbin/ldomctl/ldomctl.c
710
msg.hdr.seq = hvctl_seq++;
usr.sbin/ldomctl/ldomctl.c
727
msg.hdr.op = HVCTL_OP_RESPONSE;
usr.sbin/ldomctl/ldomctl.c
728
msg.hdr.seq = hvctl_seq++;
usr.sbin/ldomctl/ldomctl.c
752
struct md_header hdr;
usr.sbin/ldomctl/ldomctl.c
762
msg.hdr.op = HVCTL_OP_GET_HVCONFIG;
usr.sbin/ldomctl/ldomctl.c
763
msg.hdr.seq = hvctl_seq++;
usr.sbin/ldomctl/ldomctl.c
777
hv_read(hv_mdpa, &hdr, sizeof(hdr));
usr.sbin/ldomctl/ldomctl.c
778
hvmd_len = sizeof(hdr) + hdr.node_blk_sz + hdr.name_blk_sz +
usr.sbin/ldomctl/ldomctl.c
779
hdr.data_blk_sz;
usr.sbin/ldomd/hvctl.h
101
struct hvctl_header hdr;
usr.sbin/ldomd/ldomd.c
127
struct md_header hdr;
usr.sbin/ldomd/ldomd.c
165
msg.hdr.op = HVCTL_OP_GET_HVCONFIG;
usr.sbin/ldomd/ldomd.c
166
msg.hdr.seq = hvctl_seq++;
usr.sbin/ldomd/ldomd.c
177
hv_read(hv_mdpa, &hdr, sizeof(hdr));
usr.sbin/ldomd/ldomd.c
178
hvmd_len = sizeof(hdr) + hdr.node_blk_sz + hdr.name_blk_sz +
usr.sbin/ldomd/ldomd.c
179
hdr.data_blk_sz;
usr.sbin/ldomd/ldomd.c
241
struct md_header hdr;
usr.sbin/ldomd/ldomd.c
254
hv_read(guest->mdpa, &hdr, sizeof(hdr));
usr.sbin/ldomd/ldomd.c
255
len = sizeof(hdr) + hdr.node_blk_sz + hdr.name_blk_sz +
usr.sbin/ldomd/ldomd.c
256
hdr.data_blk_sz;
usr.sbin/ldomd/ldomd.c
413
msg.hdr.op = HVCTL_OP_RECONFIGURE;
usr.sbin/ldomd/ldomd.c
414
msg.hdr.seq = hvctl_seq++;
usr.sbin/ldomd/ldomd.c
428
if (msg.hdr.status != HVCTL_ST_OK)
usr.sbin/ldomd/ldomd.c
429
logit(LOG_CRIT, "reconfigure failed: %d", msg.hdr.status);
usr.sbin/ldomd/ldomd.c
447
msg.hdr.op = HVCTL_OP_HELLO;
usr.sbin/ldomd/ldomd.c
448
msg.hdr.seq = hvctl_seq++;
usr.sbin/ldomd/ldomd.c
465
msg.hdr.op = HVCTL_OP_RESPONSE;
usr.sbin/ldomd/ldomd.c
466
msg.hdr.seq = hvctl_seq++;
usr.sbin/ldpctl/ldpctl.c
333
switch (imsg->hdr.type) {
usr.sbin/ldpctl/ldpctl.c
367
switch (imsg->hdr.type) {
usr.sbin/ldpctl/ldpctl.c
405
switch (imsg->hdr.type) {
usr.sbin/ldpctl/ldpctl.c
441
switch (imsg->hdr.type) {
usr.sbin/ldpctl/ldpctl.c
483
switch (imsg->hdr.type) {
usr.sbin/ldpctl/ldpctl.c
485
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct kroute))
usr.sbin/ldpctl/ldpctl.c
554
switch (imsg->hdr.type) {
usr.sbin/ldpctl/ldpctl.c
586
switch (imsg->hdr.type) {
usr.sbin/ldpctl/ldpctl.c
609
switch (imsg->hdr.type) {
usr.sbin/ldpd/control.c
233
switch (imsg.hdr.type) {
usr.sbin/ldpd/control.c
237
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ldpd/control.c
238
ldpe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
usr.sbin/ldpd/control.c
243
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ldpd/control.c
244
ldpe_imsg_compose_parent(imsg.hdr.type,
usr.sbin/ldpd/control.c
245
imsg.hdr.pid, imsg.data,
usr.sbin/ldpd/control.c
246
imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ldpd/control.c
249
if (imsg.hdr.len == IMSG_HEADER_SIZE +
usr.sbin/ldpd/control.c
263
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ldpd/control.c
264
ldpe_imsg_compose_lde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/ldpd/control.c
265
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ldpd/control.c
271
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ldpd/control.c
278
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ldpd/control.c
283
ldpe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/ldpd/control.c
284
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ldpd/control.c
285
ldpe_imsg_compose_lde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/ldpd/control.c
286
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ldpd/control.c
293
imsg.hdr.type);
usr.sbin/ldpd/control.c
307
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
usr.sbin/ldpd/control.c
310
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
usr.sbin/ldpd/control.c
311
-1, imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE));
usr.sbin/ldpd/kroute.c
1179
struct rt_msghdr hdr;
usr.sbin/ldpd/kroute.c
1195
memset(&hdr, 0, sizeof(hdr));
usr.sbin/ldpd/kroute.c
1196
hdr.rtm_version = RTM_VERSION;
usr.sbin/ldpd/kroute.c
1198
hdr.rtm_type = action;
usr.sbin/ldpd/kroute.c
1199
hdr.rtm_flags = RTF_UP;
usr.sbin/ldpd/kroute.c
1200
hdr.rtm_fmask = RTF_MPLS;
usr.sbin/ldpd/kroute.c
1201
hdr.rtm_seq = kr_state.rtseq++; /* overflow doesn't matter */
usr.sbin/ldpd/kroute.c
1202
hdr.rtm_msglen = sizeof(hdr);
usr.sbin/ldpd/kroute.c
1203
hdr.rtm_hdrlen = sizeof(struct rt_msghdr);
usr.sbin/ldpd/kroute.c
1204
hdr.rtm_priority = kr->priority;
usr.sbin/ldpd/kroute.c
1205
hdr.rtm_tableid = kr_state.rdomain; /* rtableid */
usr.sbin/ldpd/kroute.c
1207
iov[iovcnt].iov_base = &hdr;
usr.sbin/ldpd/kroute.c
1208
iov[iovcnt++].iov_len = sizeof(hdr);
usr.sbin/ldpd/kroute.c
1217
hdr.rtm_flags |= RTF_MPLS | RTF_MPATH;
usr.sbin/ldpd/kroute.c
1218
hdr.rtm_addrs |= RTA_DST;
usr.sbin/ldpd/kroute.c
1219
hdr.rtm_msglen += sizeof(label_in);
usr.sbin/ldpd/kroute.c
1229
hdr.rtm_addrs |= RTA_DST;
usr.sbin/ldpd/kroute.c
1230
hdr.rtm_msglen += sizeof(dst);
usr.sbin/ldpd/kroute.c
1241
hdr.rtm_flags |= RTF_GATEWAY;
usr.sbin/ldpd/kroute.c
1242
hdr.rtm_addrs |= RTA_GATEWAY;
usr.sbin/ldpd/kroute.c
1243
hdr.rtm_msglen += sizeof(nexthop);
usr.sbin/ldpd/kroute.c
1254
hdr.rtm_addrs |= RTA_NETMASK;
usr.sbin/ldpd/kroute.c
1255
hdr.rtm_msglen += sizeof(mask);
usr.sbin/ldpd/kroute.c
1269
hdr.rtm_addrs |= RTA_SRC;
usr.sbin/ldpd/kroute.c
1270
hdr.rtm_flags |= RTF_MPLS;
usr.sbin/ldpd/kroute.c
1271
hdr.rtm_msglen += sizeof(label_out);
usr.sbin/ldpd/kroute.c
1278
hdr.rtm_mpls = MPLS_OP_POP;
usr.sbin/ldpd/kroute.c
1283
hdr.rtm_mpls = MPLS_OP_SWAP;
usr.sbin/ldpd/kroute.c
1285
hdr.rtm_mpls = MPLS_OP_PUSH;
usr.sbin/ldpd/kroute.c
1292
if (hdr.rtm_type == RTM_CHANGE && family == AF_MPLS) {
usr.sbin/ldpd/kroute.c
1293
hdr.rtm_type = RTM_ADD;
usr.sbin/ldpd/kroute.c
1295
} else if (hdr.rtm_type == RTM_DELETE) {
usr.sbin/ldpd/kroute.c
1302
hdr.rtm_type, af_name(family), inet_ntoa(kr->prefix.v4),
usr.sbin/ldpd/kroute.c
1314
struct rt_msghdr hdr;
usr.sbin/ldpd/kroute.c
1330
memset(&hdr, 0, sizeof(hdr));
usr.sbin/ldpd/kroute.c
1331
hdr.rtm_version = RTM_VERSION;
usr.sbin/ldpd/kroute.c
1333
hdr.rtm_type = action;
usr.sbin/ldpd/kroute.c
1334
hdr.rtm_flags = RTF_UP;
usr.sbin/ldpd/kroute.c
1335
hdr.rtm_fmask = RTF_MPLS;
usr.sbin/ldpd/kroute.c
1336
hdr.rtm_seq = kr_state.rtseq++; /* overflow doesn't matter */
usr.sbin/ldpd/kroute.c
1337
hdr.rtm_msglen = sizeof(hdr);
usr.sbin/ldpd/kroute.c
1338
hdr.rtm_hdrlen = sizeof(struct rt_msghdr);
usr.sbin/ldpd/kroute.c
1339
hdr.rtm_priority = kr->priority;
usr.sbin/ldpd/kroute.c
1340
hdr.rtm_tableid = kr_state.rdomain; /* rtableid */
usr.sbin/ldpd/kroute.c
1342
iov[iovcnt].iov_base = &hdr;
usr.sbin/ldpd/kroute.c
1343
iov[iovcnt++].iov_len = sizeof(hdr);
usr.sbin/ldpd/kroute.c
1352
hdr.rtm_flags |= RTF_MPLS | RTF_MPATH;
usr.sbin/ldpd/kroute.c
1353
hdr.rtm_addrs |= RTA_DST;
usr.sbin/ldpd/kroute.c
1354
hdr.rtm_msglen += sizeof(label_in);
usr.sbin/ldpd/kroute.c
1364
hdr.rtm_addrs |= RTA_DST;
usr.sbin/ldpd/kroute.c
1365
hdr.rtm_msglen += ROUNDUP(sizeof(dst));
usr.sbin/ldpd/kroute.c
1385
hdr.rtm_flags |= RTF_GATEWAY;
usr.sbin/ldpd/kroute.c
1386
hdr.rtm_addrs |= RTA_GATEWAY;
usr.sbin/ldpd/kroute.c
1387
hdr.rtm_msglen += ROUNDUP(sizeof(nexthop));
usr.sbin/ldpd/kroute.c
1399
hdr.rtm_flags |= RTF_HOST;
usr.sbin/ldpd/kroute.c
1400
hdr.rtm_addrs |= RTA_NETMASK;
usr.sbin/ldpd/kroute.c
1401
hdr.rtm_msglen += ROUNDUP(sizeof(mask));
usr.sbin/ldpd/kroute.c
1415
hdr.rtm_addrs |= RTA_SRC;
usr.sbin/ldpd/kroute.c
1416
hdr.rtm_flags |= RTF_MPLS;
usr.sbin/ldpd/kroute.c
1417
hdr.rtm_msglen += sizeof(label_out);
usr.sbin/ldpd/kroute.c
1424
hdr.rtm_mpls = MPLS_OP_POP;
usr.sbin/ldpd/kroute.c
1429
hdr.rtm_mpls = MPLS_OP_SWAP;
usr.sbin/ldpd/kroute.c
1431
hdr.rtm_mpls = MPLS_OP_PUSH;
usr.sbin/ldpd/kroute.c
1438
if (hdr.rtm_type == RTM_CHANGE && family == AF_MPLS) {
usr.sbin/ldpd/kroute.c
1439
hdr.rtm_type = RTM_ADD;
usr.sbin/ldpd/kroute.c
1441
} else if (hdr.rtm_type == RTM_DELETE) {
usr.sbin/ldpd/kroute.c
1449
hdr.rtm_type, af_name(family), log_addr(kr->af,
usr.sbin/ldpd/kroute.c
456
switch (imsg->hdr.type) {
usr.sbin/ldpd/kroute.c
458
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(flags)) {
usr.sbin/ldpd/kroute.c
471
imsg->hdr.pid, &kn->r,
usr.sbin/ldpd/kroute.c
476
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(kr)) {
usr.sbin/ldpd/kroute.c
487
main_imsg_compose_ldpe(IMSG_CTL_KROUTE, imsg->hdr.pid,
usr.sbin/ldpd/kroute.c
494
main_imsg_compose_ldpe(IMSG_CTL_END, imsg->hdr.pid, NULL, 0);
usr.sbin/ldpd/lde.c
223
switch (imsg.hdr.type) {
usr.sbin/ldpd/lde.c
225
ln = lde_nbr_find(imsg.hdr.peerid);
usr.sbin/ldpd/lde.c
239
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(map))
usr.sbin/ldpd/lde.c
243
ln = lde_nbr_find(imsg.hdr.peerid);
usr.sbin/ldpd/lde.c
250
switch (imsg.hdr.type) {
usr.sbin/ldpd/lde.c
269
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(lde_addr))
usr.sbin/ldpd/lde.c
273
ln = lde_nbr_find(imsg.hdr.peerid);
usr.sbin/ldpd/lde.c
286
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(lde_addr))
usr.sbin/ldpd/lde.c
290
ln = lde_nbr_find(imsg.hdr.peerid);
usr.sbin/ldpd/lde.c
303
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(nm))
usr.sbin/ldpd/lde.c
307
ln = lde_nbr_find(imsg.hdr.peerid);
usr.sbin/ldpd/lde.c
330
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/ldpd/lde.c
334
if (lde_nbr_find(imsg.hdr.peerid))
usr.sbin/ldpd/lde.c
337
lde_nbr_new(imsg.hdr.peerid, imsg.data);
usr.sbin/ldpd/lde.c
340
lde_nbr_del(lde_nbr_find(imsg.hdr.peerid));
usr.sbin/ldpd/lde.c
343
rt_dump(imsg.hdr.pid);
usr.sbin/ldpd/lde.c
346
imsg.hdr.pid, NULL, 0);
usr.sbin/ldpd/lde.c
349
l2vpn_pw_ctl(imsg.hdr.pid);
usr.sbin/ldpd/lde.c
352
imsg.hdr.pid, NULL, 0);
usr.sbin/ldpd/lde.c
355
l2vpn_binding_ctl(imsg.hdr.pid);
usr.sbin/ldpd/lde.c
358
imsg.hdr.pid, NULL, 0);
usr.sbin/ldpd/lde.c
367
imsg.hdr.type);
usr.sbin/ldpd/lde.c
420
switch (imsg.hdr.type) {
usr.sbin/ldpd/lde.c
423
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(kr)) {
usr.sbin/ldpd/lde.c
444
switch (imsg.hdr.type) {
usr.sbin/ldpd/lde.c
560
imsg.hdr.type);
usr.sbin/ldpd/ldpd.c
407
switch (imsg.hdr.type) {
usr.sbin/ldpd/ldpd.c
409
af = imsg.hdr.pid;
usr.sbin/ldpd/ldpd.c
429
if (imsg.hdr.len == IMSG_HEADER_SIZE)
usr.sbin/ldpd/ldpd.c
430
kr_ifinfo(NULL, imsg.hdr.pid);
usr.sbin/ldpd/ldpd.c
431
else if (imsg.hdr.len == IMSG_HEADER_SIZE + IFNAMSIZ)
usr.sbin/ldpd/ldpd.c
432
kr_ifinfo(imsg.data, imsg.hdr.pid);
usr.sbin/ldpd/ldpd.c
443
imsg.hdr.type);
usr.sbin/ldpd/ldpd.c
488
switch (imsg.hdr.type) {
usr.sbin/ldpd/ldpd.c
490
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/ldpd/ldpd.c
497
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/ldpd/ldpd.c
504
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/ldpd/ldpd.c
512
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/ldpd/ldpd.c
521
imsg.hdr.type);
usr.sbin/ldpd/ldpe.c
256
switch (imsg.hdr.type) {
usr.sbin/ldpd/ldpe.c
258
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ldpd/ldpe.c
284
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ldpd/ldpe.c
291
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ldpd/ldpe.c
320
af = imsg.hdr.peerid;
usr.sbin/ldpd/ldpe.c
341
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ldpd/ldpe.c
359
af = imsg.hdr.peerid;
usr.sbin/ldpd/ldpe.c
477
imsg.hdr.type);
usr.sbin/ldpd/ldpe.c
523
switch (imsg.hdr.type) {
usr.sbin/ldpd/ldpe.c
528
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(map))
usr.sbin/ldpd/ldpe.c
532
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ldpd/ldpe.c
541
switch (imsg.hdr.type) {
usr.sbin/ldpd/ldpe.c
560
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ldpd/ldpe.c
569
switch (imsg.hdr.type) {
usr.sbin/ldpd/ldpe.c
589
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(nm))
usr.sbin/ldpd/ldpe.c
593
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ldpd/ldpe.c
612
imsg.hdr.type);
usr.sbin/ldpd/packet.c
124
struct cmsghdr hdr;
usr.sbin/ldpd/pfkey.c
252
struct sadb_msg hdr;
usr.sbin/ldpd/pfkey.c
254
if (recv(sd, &hdr, sizeof(hdr), MSG_PEEK) != sizeof(hdr)) {
usr.sbin/ldpd/pfkey.c
262
if (hdr.sadb_msg_seq == sadb_msg_seq &&
usr.sbin/ldpd/pfkey.c
263
hdr.sadb_msg_pid == pid) {
usr.sbin/ldpd/pfkey.c
265
*h = hdr;
usr.sbin/ldpd/pfkey.c
270
if (read(sd, &hdr, sizeof(hdr)) == -1) {
usr.sbin/ldpd/pfkey.c
283
struct sadb_msg hdr, *msg;
usr.sbin/ldpd/pfkey.c
291
rv = pfkey_read(sd, &hdr);
usr.sbin/ldpd/pfkey.c
296
if (hdr.sadb_msg_errno != 0) {
usr.sbin/ldpd/pfkey.c
297
errno = hdr.sadb_msg_errno;
usr.sbin/ldpd/pfkey.c
305
if ((data = reallocarray(NULL, hdr.sadb_msg_len, PFKEY2_CHUNK)) == NULL) {
usr.sbin/ldpd/pfkey.c
309
len = hdr.sadb_msg_len * PFKEY2_CHUNK;
usr.sbin/ldpd/pfkey.c
316
if (hdr.sadb_msg_type == SADB_GETSPI) {
usr.sbin/lldpd/lldpd.c
571
struct cmsghdr hdr;
usr.sbin/lldpd/pdu.c
51
unsigned int hdr;
usr.sbin/lldpd/pdu.c
61
hdr = pdu_u16(buf);
usr.sbin/lldpd/pdu.c
64
if (hdr == 0)
usr.sbin/lldpd/pdu.c
67
plen = hdr & 0x1ff;
usr.sbin/lldpd/pdu.c
74
tlv->tlv_type = hdr >> 9;
usr.sbin/lpd/control.c
222
switch (imsg->hdr.type) {
usr.sbin/lpd/control.c
234
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/control.c
249
switch (imsg->hdr.type) {
usr.sbin/lpd/control.c
252
imsg->hdr.type);
usr.sbin/lpd/engine.c
107
switch (imsg->hdr.type) {
usr.sbin/lpd/engine.c
135
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/engine.c
151
switch (imsg->hdr.type) {
usr.sbin/lpd/engine.c
172
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/engine_lpr.c
170
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/engine_lpr.c
83
connid = imsg->hdr.peerid;
usr.sbin/lpd/engine_lpr.c
85
switch (imsg->hdr.type) {
usr.sbin/lpd/frontend.c
262
switch (imsg->hdr.type) {
usr.sbin/lpd/frontend.c
300
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/frontend.c
316
switch (imsg->hdr.type) {
usr.sbin/lpd/frontend.c
334
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/frontend_lpr.c
146
key.id = imsg->hdr.peerid;
usr.sbin/lpd/frontend_lpr.c
155
switch (imsg->hdr.type) {
usr.sbin/lpd/frontend_lpr.c
188
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/logmsg.c
152
log_fmt_imsgtype(imsg->hdr.type),
usr.sbin/lpd/logmsg.c
153
imsg->hdr.len);
usr.sbin/lpd/lpd.c
360
switch (imsg->hdr.type) {
usr.sbin/lpd/lpd.c
363
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/lpd.c
378
switch (imsg->hdr.type) {
usr.sbin/lpd/lpd.c
386
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/lpd.c
399
switch (imsg->hdr.type) {
usr.sbin/lpd/lpd.c
402
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/lpd.c
419
switch (imsg->hdr.type) {
usr.sbin/lpd/lpd.c
422
log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/proc.c
265
p->m_in.end = p->m_in.pos + (imsg->hdr.len - sizeof(imsg->hdr));
usr.sbin/lpd/resolver.c
141
reqid = imsg->hdr.peerid;
usr.sbin/lpd/resolver.c
143
switch (imsg->hdr.type) {
usr.sbin/lpd/resolver.c
215
fatalx("%s: %s", __func__, log_fmt_imsgtype(imsg->hdr.type));
usr.sbin/lpd/resolver.c
228
key.id = imsg->hdr.peerid;
usr.sbin/lpd/resolver.c
231
fatalx("%s: unknown request %08x", __func__, imsg->hdr.peerid);
usr.sbin/lpd/resolver.c
233
switch (imsg->hdr.type) {
usr.sbin/lpr/lpr/lpr.c
162
hdr++;
usr.sbin/lpr/lpr/lpr.c
167
hdr++;
usr.sbin/lpr/lpr/lpr.c
180
hdr++;
usr.sbin/lpr/lpr/lpr.c
200
hdr = !hdr;
usr.sbin/lpr/lpr/lpr.c
290
if (hdr) {
usr.sbin/lpr/lpr/lpr.c
72
static int hdr = 1; /* print header or not (default is yes) */
usr.sbin/npppctl/npppctl.c
150
if (ctl_imsg.hdr.type != IMSG_CTL_OK)
usr.sbin/npppctl/npppctl.c
155
if (ctl_imsg.hdr.len - IMSG_HEADER_SIZE <
usr.sbin/npppctl/npppctl.c
160
(int)(ctl_imsg.hdr.len - IMSG_HEADER_SIZE),
usr.sbin/npppctl/npppctl.c
215
if (ctl_imsg.hdr.type != IMSG_CTL_OK)
usr.sbin/npppctl/npppctl.c
221
if (ctl_imsg.hdr.type == IMSG_PPP_START ||
usr.sbin/npppctl/npppctl.c
222
ctl_imsg.hdr.type == IMSG_PPP_STOP) {
usr.sbin/npppctl/npppctl.c
229
(ctl_imsg.hdr.type ==
usr.sbin/npppctl/npppctl.c
239
ctl_imsg.hdr.type);
usr.sbin/npppctl/npppctl.c
360
if (ctl_imsg.hdr.type != IMSG_CTL_OK)
usr.sbin/npppctl/npppctl.c
363
ctl_imsg.hdr.type);
usr.sbin/npppctl/npppctl.c
364
if (ctl_imsg.hdr.len - IMSG_HEADER_SIZE <
usr.sbin/npppctl/npppctl.c
524
return (ctl_imsg.hdr.type);
usr.sbin/npppd/common/recvfromto.c
199
struct cmsghdr hdr;
usr.sbin/npppd/l2tp/l2tp_call.c
435
struct l2tp_header *hdr;
usr.sbin/npppd/l2tp/l2tp_call.c
438
hdr = (struct l2tp_header *)bytebuffer_pointer(buffer);
usr.sbin/npppd/l2tp/l2tp_call.c
439
memset(hdr, 0, sizeof(*hdr) - 4); /* Nr, NS are option */
usr.sbin/npppd/l2tp/l2tp_call.c
441
hdr->t = 0;
usr.sbin/npppd/l2tp/l2tp_call.c
442
hdr->ver = L2TP_HEADER_VERSION_RFC2661;
usr.sbin/npppd/l2tp/l2tp_call.c
443
hdr->l = 1;
usr.sbin/npppd/l2tp/l2tp_call.c
444
hdr->length = htons(bytebuffer_remaining(buffer));
usr.sbin/npppd/l2tp/l2tp_call.c
445
hdr->tunnel_id = htons(_this->ctrl->peer_tunnel_id);
usr.sbin/npppd/l2tp/l2tp_call.c
446
hdr->session_id = htons(_this->peer_session_id);
usr.sbin/npppd/l2tp/l2tp_call.c
448
hdr->s = 1;
usr.sbin/npppd/l2tp/l2tp_call.c
449
hdr->ns = htons(_this->snd_nxt++);
usr.sbin/npppd/l2tp/l2tp_call.c
450
hdr->nr = htons(_this->rcv_nxt);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1077
struct l2tp_header *hdr;
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1085
hdr = (struct l2tp_header *)bytebuffer_pointer(bytebuf);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1086
memset(hdr, 0, sizeof(*hdr));
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1088
hdr->t = 1;
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1089
hdr->ver = L2TP_HEADER_VERSION_RFC2661;
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1090
hdr->l = 1;
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1091
hdr->length = htons(bytebuffer_remaining(bytebuf));
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1092
hdr->tunnel_id = htons(_this->peer_tunnel_id);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1093
hdr->session_id = htons(call_id);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1095
hdr->s = 1;
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1097
hdr->ns = htons(seq);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1098
hdr->nr = htons(_this->rcv_nxt);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1109
ntohs(hdr->ns), htons(hdr->nr),
usr.sbin/npppd/l2tp/l2tp_ctrl.c
640
struct l2tp_header hdr;
usr.sbin/npppd/l2tp/l2tp_ctrl.c
653
memset(&hdr, 0, sizeof(hdr));
usr.sbin/npppd/l2tp/l2tp_ctrl.c
659
memcpy(&hdr, pkt, 2);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
661
if (hdr.ver != L2TP_HEADER_VERSION_RFC2661) {
usr.sbin/npppd/l2tp/l2tp_ctrl.c
664
"Unsupported version at header = %d", hdr.ver);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
667
is_ctrl = (hdr.t != 0)? 1 : 0;
usr.sbin/npppd/l2tp/l2tp_ctrl.c
671
if (hdr.l) reqlen += 2; /* for Length field (opt) */
usr.sbin/npppd/l2tp/l2tp_ctrl.c
672
if (hdr.s) reqlen += 4; /* for Ns, Nr field (opt) */
usr.sbin/npppd/l2tp/l2tp_ctrl.c
673
if (hdr.o) reqlen += 2; /* for Offset Size field (opt) */
usr.sbin/npppd/l2tp/l2tp_ctrl.c
680
if (hdr.l != 0) {
usr.sbin/npppd/l2tp/l2tp_ctrl.c
681
GETSHORT(hdr.length, pkt);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
682
if (hdr.length > pktlen) {
usr.sbin/npppd/l2tp/l2tp_ctrl.c
685
"field %d < %d", pktlen, hdr.length);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
688
pktlen = hdr.length; /* remove trailing trash */
usr.sbin/npppd/l2tp/l2tp_ctrl.c
690
GETSHORT(hdr.tunnel_id, pkt);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
691
GETSHORT(hdr.session_id, pkt);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
692
if (hdr.s != 0) {
usr.sbin/npppd/l2tp/l2tp_ctrl.c
693
GETSHORT(hdr.ns, pkt);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
694
GETSHORT(hdr.nr, pkt);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
696
if (hdr.o != 0) {
usr.sbin/npppd/l2tp/l2tp_ctrl.c
720
ctrl = l2tpd_get_ctrl(_this, hdr.tunnel_id);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
727
"found.", hdr.tunnel_id);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
733
"found. mestype=%s", hdr.tunnel_id,
usr.sbin/npppd/l2tp/l2tp_ctrl.c
776
hdr.tunnel_id, addrport_tostring(
usr.sbin/npppd/l2tp/l2tp_ctrl.c
784
if (hdr.session_id != 0) {
usr.sbin/npppd/l2tp/l2tp_ctrl.c
790
if (call->session_id == hdr.session_id)
usr.sbin/npppd/l2tp/l2tp_ctrl.c
808
"session_id=%u", hdr.session_id);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
813
call->id, hdr.ns, hdr.nr, call->snd_nxt, call->rcv_nxt,
usr.sbin/npppd/l2tp/l2tp_ctrl.c
822
if (hdr.s != 0) {
usr.sbin/npppd/l2tp/l2tp_ctrl.c
823
if (SEQ_LT(hdr.ns, call->rcv_nxt)) {
usr.sbin/npppd/l2tp/l2tp_ctrl.c
824
if (SEQ_LT(hdr.ns,
usr.sbin/npppd/l2tp/l2tp_ctrl.c
831
hdr.ns, call->rcv_nxt));
usr.sbin/npppd/l2tp/l2tp_ctrl.c
836
call->rcv_nxt = hdr.ns + 1;
usr.sbin/npppd/l2tp/l2tp_ctrl.c
844
if (hdr.s != 0) {
usr.sbin/npppd/l2tp/l2tp_ctrl.c
847
"len=%d", (is_ctrl)? "C" : "", hdr.ns, hdr.nr,
usr.sbin/npppd/l2tp/l2tp_ctrl.c
853
if (SEQ_GT(hdr.nr, ctrl->snd_una)) {
usr.sbin/npppd/l2tp/l2tp_ctrl.c
855
if (SEQ_GT(hdr.nr, ctrl->snd_nxt)) {
usr.sbin/npppd/l2tp/l2tp_ctrl.c
859
"%u < %u", ctrl->snd_nxt, hdr.nr);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
862
ctrl->snd_una = hdr.nr;
usr.sbin/npppd/l2tp/l2tp_ctrl.c
882
if (hdr.ns != ctrl->rcv_nxt) {
usr.sbin/npppd/l2tp/l2tp_ctrl.c
892
"mestype=%s", hdr.ns, ctrl->rcv_nxt,
usr.sbin/npppd/l2tp/l2tp_ctrl.c
901
if (!l2tp_ctrl_in_our_window(ctrl, hdr.ns)) {
usr.sbin/npppd/l2tp/l2tp_ctrl.c
905
hdr.ns, ctrl->snd_lastnr,
usr.sbin/npppd/npppd/control.c
289
switch (imsg.hdr.type) {
usr.sbin/npppd/npppd/control.c
299
switch (imsg.hdr.type) {
usr.sbin/npppd/npppd/control.c
308
if (imsg.hdr.type == IMSG_CTL_WHO)
usr.sbin/npppd/npppd/control.c
310
else if (imsg.hdr.type == IMSG_CTL_MONITOR)
usr.sbin/npppd/npppd/control.c
351
imsg_compose(&c->iev.ibuf, imsg->hdr.type, 0,
usr.sbin/npppd/npppd/control.c
352
imsg->hdr.pid, -1, imsg->data,
usr.sbin/npppd/npppd/control.c
353
imsg->hdr.len - IMSG_HEADER_SIZE);
usr.sbin/npppd/npppd/privsep.c
367
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*r)) {
usr.sbin/npppd/npppd/privsep.c
427
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*r))
usr.sbin/npppd/npppd/privsep.c
486
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*r))
usr.sbin/npppd/npppd/privsep.c
524
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*r))
usr.sbin/npppd/npppd/privsep.c
550
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*r))
usr.sbin/npppd/npppd/privsep.c
590
switch (imsg.hdr.type) {
usr.sbin/npppd/npppd/privsep.c
596
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a))
usr.sbin/npppd/npppd/privsep.c
617
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a))
usr.sbin/npppd/npppd/privsep.c
637
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a))
usr.sbin/npppd/npppd/privsep.c
656
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a) ||
usr.sbin/npppd/npppd/privsep.c
685
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a)) {
usr.sbin/npppd/npppd/privsep.c
755
if (imsg.hdr.len < IMSG_HEADER_SIZE + sizeof(*a) ||
usr.sbin/npppd/npppd/privsep.c
756
imsg.hdr.len < IMSG_HEADER_SIZE +
usr.sbin/npppd/npppd/privsep.c
790
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a))
usr.sbin/npppd/npppd/privsep.c
822
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a))
usr.sbin/npppd/npppd/privsep.c
867
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a))
usr.sbin/npppd/npppd/privsep.c
898
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a))
usr.sbin/npppd/npppd/privsep.c
928
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(*a))
usr.sbin/npppd/pptp/pptp_ctrl.c
1008
switch (hdr->control_message_type) {
usr.sbin/npppd/pptp/pptp_ctrl.c
1021
pptp_ctrl_mes_type_string(hdr->control_message_type),
usr.sbin/npppd/pptp/pptp_ctrl.c
1022
hdr->control_message_type);
usr.sbin/npppd/pptp/pptp_ctrl.c
904
struct pptp_ctrl_header *hdr;
usr.sbin/npppd/pptp/pptp_ctrl.c
909
hdr = (struct pptp_ctrl_header *)pkt;
usr.sbin/npppd/pptp/pptp_ctrl.c
911
hdr->length = ntohs(hdr->length);
usr.sbin/npppd/pptp/pptp_ctrl.c
912
hdr->pptp_message_type = ntohs(hdr->pptp_message_type);
usr.sbin/npppd/pptp/pptp_ctrl.c
913
hdr->magic_cookie = ntohl(hdr->magic_cookie);
usr.sbin/npppd/pptp/pptp_ctrl.c
914
hdr->control_message_type = ntohs(hdr->control_message_type);
usr.sbin/npppd/pptp/pptp_ctrl.c
915
hdr->reserved0 = ntohs(hdr->reserved0);
usr.sbin/npppd/pptp/pptp_ctrl.c
918
PPTP_CTRL_ASSERT(hdr->length <= lpkt);
usr.sbin/npppd/pptp/pptp_ctrl.c
925
pptp_ctrl_mes_type_string(hdr->control_message_type),
usr.sbin/npppd/pptp/pptp_ctrl.c
926
hdr->control_message_type);
usr.sbin/npppd/pptp/pptp_ctrl.c
932
if (hdr->pptp_message_type != PPTP_MES_TYPE_CTRL) {
usr.sbin/npppd/pptp/pptp_ctrl.c
934
hdr->pptp_message_type);
usr.sbin/npppd/pptp/pptp_ctrl.c
938
if (hdr->magic_cookie != PPTP_MAGIC_COOKIE) {
usr.sbin/npppd/pptp/pptp_ctrl.c
940
hdr->magic_cookie, PPTP_MAGIC_COOKIE);
usr.sbin/npppd/pptp/pptp_ctrl.c
947
switch (hdr->control_message_type) {
usr.sbin/npppd/pptp/pptp_ctrl.c
961
switch (hdr->control_message_type) {
usr.sbin/npppd/pptp/pptp_ctrl.c
977
switch (hdr->control_message_type) {
usr.sbin/npppd/pptp/pptp_ctrl.c
991
hdr->control_message_type, pkt, lpkt);
usr.sbin/nsd/options.c
538
char hdr[64];
usr.sbin/nsd/options.c
557
hdr[strlen(ZONELIST_HEADER)] = 0;
usr.sbin/nsd/options.c
558
if(fread(hdr, 1, strlen(ZONELIST_HEADER), opt->zonelist) !=
usr.sbin/nsd/options.c
559
strlen(ZONELIST_HEADER) || strncmp(hdr, ZONELIST_HEADER,
usr.sbin/ntpd/client.c
281
struct cmsghdr hdr;
usr.sbin/ntpd/constraint.c
327
if (imsg.hdr.type != IMSG_CONSTRAINT_QUERY)
usr.sbin/ntpd/constraint.c
334
mlen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ntpd/constraint.c
350
cstr->id = imsg.hdr.peerid;
usr.sbin/ntpd/constraint.c
656
switch (imsg.hdr.type) {
usr.sbin/ntpd/constraint.c
658
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(tv))
usr.sbin/ntpd/constraint.c
665
imsg_compose(ibuf, imsg.hdr.type,
usr.sbin/ntpd/control.c
236
switch (imsg.hdr.type) {
usr.sbin/ntpd/ntp.c
492
switch (imsg.hdr.type) {
usr.sbin/ntpd/ntp.c
507
constraint_msg_result(imsg.hdr.peerid,
usr.sbin/ntpd/ntp.c
508
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ntpd/ntp.c
511
constraint_msg_close(imsg.hdr.peerid,
usr.sbin/ntpd/ntp.c
512
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ntpd/ntp.c
566
switch (imsg.hdr.type) {
usr.sbin/ntpd/ntp.c
569
if (peer->id == imsg.hdr.peerid)
usr.sbin/ntpd/ntp.c
597
dlen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ntpd/ntp.c
663
constraint_msg_dns(imsg.hdr.peerid,
usr.sbin/ntpd/ntp.c
664
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ntpd/ntp.c
667
dlen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ntpd/ntp_dns.c
159
switch (imsg.hdr.type) {
usr.sbin/ntpd/ntp_dns.c
162
if (imsg.hdr.type == IMSG_HOST_DNS)
usr.sbin/ntpd/ntp_dns.c
167
if (imsg.hdr.len < 1 + IMSG_HEADER_SIZE)
usr.sbin/ntpd/ntp_dns.c
169
len = imsg.hdr.len - 1 - IMSG_HEADER_SIZE;
usr.sbin/ntpd/ntp_dns.c
176
buf = imsg_create(ibuf_dns, imsg.hdr.type,
usr.sbin/ntpd/ntp_dns.c
177
imsg.hdr.peerid, 0,
usr.sbin/ntpd/ntpd.c
407
switch (imsg.hdr.type) {
usr.sbin/ntpd/ntpd.c
409
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(d))
usr.sbin/ntpd/ntpd.c
419
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(d))
usr.sbin/ntpd/ntpd.c
425
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(d))
usr.sbin/ntpd/ntpd.c
441
priv_constraint_msg(imsg.hdr.peerid,
usr.sbin/ntpd/ntpd.c
442
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE,
usr.sbin/ntpd/ntpd.c
446
priv_constraint_kill(imsg.hdr.peerid);
usr.sbin/ntpd/ntpd.c
728
if (imsg.hdr.type ==
usr.sbin/ntpd/ntpd.c
734
if (imsg.hdr.type ==
usr.sbin/ntpd/ntpd.c
739
switch (imsg.hdr.type) {
usr.sbin/ntpd/ntpd.c
794
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(struct ctl_show_status))
usr.sbin/ntpd/ntpd.c
845
if (imsg->hdr.type == IMSG_CTL_SHOW_PEERS_END) {
usr.sbin/ntpd/ntpd.c
846
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(cnt))
usr.sbin/ntpd/ntpd.c
854
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(struct ctl_show_peer))
usr.sbin/ntpd/ntpd.c
895
if (imsg->hdr.type == IMSG_CTL_SHOW_SENSORS_END) {
usr.sbin/ntpd/ntpd.c
896
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(cnt))
usr.sbin/ntpd/ntpd.c
904
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(struct ctl_show_sensor))
usr.sbin/ospf6ctl/ospf6ctl.c
1016
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
1057
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
1095
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
1193
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
1283
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
1285
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct kroute))
usr.sbin/ospf6ctl/ospf6ctl.c
333
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
389
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
418
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
623
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
789
switch (imsg->hdr.type) {
usr.sbin/ospf6ctl/ospf6ctl.c
792
if (lsa->hdr.type != lasttype)
usr.sbin/ospf6ctl/ospf6ctl.c
793
show_database_head(area_id, ifname, lsa->hdr.type);
usr.sbin/ospf6ctl/ospf6ctl.c
794
show_db_hdr_msg_detail(&lsa->hdr);
usr.sbin/ospf6ctl/ospf6ctl.c
796
asext = (struct lsa_asext *)((char *)lsa + sizeof(lsa->hdr));
usr.sbin/ospf6ctl/ospf6ctl.c
825
lasttype = lsa->hdr.type;
usr.sbin/ospf6ctl/ospf6ctl.c
829
if (lsa->hdr.type != lasttype)
usr.sbin/ospf6ctl/ospf6ctl.c
830
show_database_head(area_id, ifname, lsa->hdr.type);
usr.sbin/ospf6ctl/ospf6ctl.c
831
show_db_hdr_msg_detail(&lsa->hdr);
usr.sbin/ospf6ctl/ospf6ctl.c
839
off = sizeof(lsa->hdr) + sizeof(struct lsa_link);
usr.sbin/ospf6ctl/ospf6ctl.c
856
lasttype = lsa->hdr.type;
usr.sbin/ospf6ctl/ospf6ctl.c
860
if (lsa->hdr.type != lasttype)
usr.sbin/ospf6ctl/ospf6ctl.c
861
show_database_head(area_id, ifname, lsa->hdr.type);
usr.sbin/ospf6ctl/ospf6ctl.c
862
show_db_hdr_msg_detail(&lsa->hdr);
usr.sbin/ospf6ctl/ospf6ctl.c
866
nlinks = (ntohs(lsa->hdr.len) - sizeof(struct lsa_hdr) -
usr.sbin/ospf6ctl/ospf6ctl.c
869
sizeof(lsa->hdr) + sizeof(lsa->data.net));
usr.sbin/ospf6ctl/ospf6ctl.c
879
lasttype = lsa->hdr.type;
usr.sbin/ospf6ctl/ospf6ctl.c
883
if (lsa->hdr.type != lasttype)
usr.sbin/ospf6ctl/ospf6ctl.c
884
show_database_head(area_id, ifname, lsa->hdr.type);
usr.sbin/ospf6ctl/ospf6ctl.c
885
show_db_hdr_msg_detail(&lsa->hdr);
usr.sbin/ospf6ctl/ospf6ctl.c
891
nlinks = (ntohs(lsa->hdr.len) - sizeof(struct lsa_hdr)
usr.sbin/ospf6ctl/ospf6ctl.c
895
off = sizeof(lsa->hdr) + sizeof(struct lsa_rtr);
usr.sbin/ospf6ctl/ospf6ctl.c
933
lasttype = lsa->hdr.type;
usr.sbin/ospf6ctl/ospf6ctl.c
937
if (lsa->hdr.type != lasttype)
usr.sbin/ospf6ctl/ospf6ctl.c
938
show_database_head(area_id, ifname, lsa->hdr.type);
usr.sbin/ospf6ctl/ospf6ctl.c
939
show_db_hdr_msg_detail(&lsa->hdr);
usr.sbin/ospf6ctl/ospf6ctl.c
949
off = sizeof(lsa->hdr) + sizeof(struct lsa_intra_prefix);
usr.sbin/ospf6ctl/ospf6ctl.c
967
lasttype = lsa->hdr.type;
usr.sbin/ospf6ctl/ospf6ctl.c
971
if (lsa->hdr.type != lasttype)
usr.sbin/ospf6ctl/ospf6ctl.c
972
show_database_head(area_id, ifname, lsa->hdr.type);
usr.sbin/ospf6ctl/ospf6ctl.c
973
show_db_hdr_msg_detail(&lsa->hdr);
usr.sbin/ospf6ctl/ospf6ctl.c
977
lasttype = lsa->hdr.type;
usr.sbin/ospf6ctl/ospf6ctl.c
981
if (lsa->hdr.type != lasttype)
usr.sbin/ospf6ctl/ospf6ctl.c
982
show_database_head(area_id, ifname, lsa->hdr.type);
usr.sbin/ospf6ctl/ospf6ctl.c
983
show_db_hdr_msg_detail(&lsa->hdr);
usr.sbin/ospf6d/control.c
281
switch (imsg.hdr.type) {
usr.sbin/ospf6d/control.c
284
ospfe_fib_update(imsg.hdr.type);
usr.sbin/ospf6d/control.c
288
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ospf6d/control.c
289
ospfe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
usr.sbin/ospf6d/control.c
293
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ospf6d/control.c
294
ospfe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/ospf6d/control.c
295
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospf6d/control.c
298
if (imsg.hdr.len == IMSG_HEADER_SIZE +
usr.sbin/ospf6d/control.c
317
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ospf6d/control.c
318
ospfe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/ospf6d/control.c
319
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospf6d/control.c
325
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/control.c
330
ospfe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/ospf6d/control.c
331
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospf6d/control.c
332
ospfe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/ospf6d/control.c
333
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospf6d/control.c
340
"error handling imsg %d", imsg.hdr.type);
usr.sbin/ospf6d/control.c
354
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
usr.sbin/ospf6d/control.c
357
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
usr.sbin/ospf6d/control.c
358
-1, imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE));
usr.sbin/ospf6d/kroute.c
1113
struct rt_msghdr hdr;
usr.sbin/ospf6d/kroute.c
1130
bzero(&hdr, sizeof(hdr));
usr.sbin/ospf6d/kroute.c
1131
hdr.rtm_version = RTM_VERSION;
usr.sbin/ospf6d/kroute.c
1132
hdr.rtm_type = action;
usr.sbin/ospf6d/kroute.c
1133
hdr.rtm_priority = kr_state.fib_prio;
usr.sbin/ospf6d/kroute.c
1134
hdr.rtm_tableid = kr_state.rdomain; /* rtableid */
usr.sbin/ospf6d/kroute.c
1136
hdr.rtm_fmask = RTF_REJECT|RTF_BLACKHOLE;
usr.sbin/ospf6d/kroute.c
1138
hdr.rtm_flags = RTF_MPATH;
usr.sbin/ospf6d/kroute.c
1139
hdr.rtm_seq = kr_state.rtseq++; /* overflow doesn't matter */
usr.sbin/ospf6d/kroute.c
1140
hdr.rtm_hdrlen = sizeof(hdr);
usr.sbin/ospf6d/kroute.c
1141
hdr.rtm_msglen = sizeof(hdr);
usr.sbin/ospf6d/kroute.c
1143
iov[iovcnt].iov_base = &hdr;
usr.sbin/ospf6d/kroute.c
1144
iov[iovcnt++].iov_len = sizeof(hdr);
usr.sbin/ospf6d/kroute.c
1151
hdr.rtm_addrs |= RTA_DST;
usr.sbin/ospf6d/kroute.c
1152
hdr.rtm_msglen += ROUNDUP(sizeof(struct sockaddr_in6));
usr.sbin/ospf6d/kroute.c
1172
hdr.rtm_flags |= RTF_GATEWAY;
usr.sbin/ospf6d/kroute.c
1173
hdr.rtm_addrs |= RTA_GATEWAY;
usr.sbin/ospf6d/kroute.c
1174
hdr.rtm_msglen += ROUNDUP(sizeof(struct sockaddr_in6));
usr.sbin/ospf6d/kroute.c
1190
hdr.rtm_flags |= RTF_CLONING;
usr.sbin/ospf6d/kroute.c
1191
hdr.rtm_addrs |= RTA_GATEWAY;
usr.sbin/ospf6d/kroute.c
1192
hdr.rtm_msglen += ROUNDUP(sizeof(struct sockaddr_dl));
usr.sbin/ospf6d/kroute.c
1204
hdr.rtm_flags |= RTF_HOST;
usr.sbin/ospf6d/kroute.c
1205
hdr.rtm_addrs |= RTA_NETMASK;
usr.sbin/ospf6d/kroute.c
1206
hdr.rtm_msglen += ROUNDUP(sizeof(struct sockaddr_in6));
usr.sbin/ospf6d/kroute.c
1221
hdr.rtm_addrs |= RTA_LABEL;
usr.sbin/ospf6d/kroute.c
1222
hdr.rtm_msglen += sizeof(sa_rl);
usr.sbin/ospf6d/kroute.c
1231
if (hdr.rtm_type == RTM_CHANGE) {
usr.sbin/ospf6d/kroute.c
1232
hdr.rtm_type = RTM_ADD;
usr.sbin/ospf6d/kroute.c
1234
} else if (hdr.rtm_type == RTM_DELETE) {
usr.sbin/ospf6d/kroute.c
1240
log_warn("send_rtmsg: action %u, prefix %s/%u", hdr.rtm_type,
usr.sbin/ospf6d/kroute.c
476
switch (imsg->hdr.type) {
usr.sbin/ospf6d/kroute.c
478
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(flags)) {
usr.sbin/ospf6d/kroute.c
488
imsg->hdr.pid,
usr.sbin/ospf6d/kroute.c
494
if (imsg->hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/kroute.c
502
main_imsg_compose_ospfe(IMSG_CTL_KROUTE, imsg->hdr.pid,
usr.sbin/ospf6d/kroute.c
510
main_imsg_compose_ospfe(IMSG_CTL_END, imsg->hdr.pid, NULL, 0);
usr.sbin/ospf6d/lsupdate.c
345
if (lsa_hdr->seq_num == le->le_ref->hdr.seq_num &&
usr.sbin/ospf6d/lsupdate.c
346
lsa_hdr->ls_chksum == le->le_ref->hdr.ls_chksum &&
usr.sbin/ospf6d/lsupdate.c
347
ntohs(lsa_hdr->age) >= ntohs(le->le_ref->hdr.age)) {
usr.sbin/ospf6d/lsupdate.c
361
if ((lsa_hdr->type == le->le_ref->hdr.type) &&
usr.sbin/ospf6d/lsupdate.c
362
(lsa_hdr->ls_id == le->le_ref->hdr.ls_id) &&
usr.sbin/ospf6d/lsupdate.c
363
(lsa_hdr->adv_rtr == le->le_ref->hdr.adv_rtr))
usr.sbin/ospf6d/lsupdate.c
473
lsa_flood(nbr->iface, nbr, &le->le_ref->hdr,
usr.sbin/ospf6d/lsupdate.c
507
ntohs(le->le_ref->hdr.type),
usr.sbin/ospf6d/lsupdate.c
571
lsa_hash_hdr(const struct lsa_hdr *hdr)
usr.sbin/ospf6d/lsupdate.c
573
return SipHash24(&lsacachekey, hdr, sizeof(*hdr));
usr.sbin/ospf6d/lsupdate.c
585
memcpy(&ref->hdr, data, sizeof(ref->hdr));
usr.sbin/ospf6d/lsupdate.c
587
if ((old = lsa_cache_look(&ref->hdr))) {
usr.sbin/ospf6d/lsupdate.c
602
head = &lsacache.hashtbl[lsa_hash_hdr(&ref->hdr) & lsacache.hashmask];
usr.sbin/ospf6d/lsupdate.c
625
if (ntohs(ref->hdr.age) >= MAX_AGE)
usr.sbin/ospf6d/lsupdate.c
643
if (memcmp(&ref->hdr, lsa_hdr, sizeof(*lsa_hdr)) == 0)
usr.sbin/ospf6d/ospf6.h
292
struct lsa_hdr hdr;
usr.sbin/ospf6d/ospf6d.c
367
switch (imsg.hdr.type) {
usr.sbin/ospf6d/ospf6d.c
388
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(dmsg))
usr.sbin/ospf6d/ospf6d.c
400
imsg.hdr.type);
usr.sbin/ospf6d/ospf6d.c
445
switch (imsg.hdr.type) {
usr.sbin/ospf6d/ospf6d.c
447
count = (imsg.hdr.len - IMSG_HEADER_SIZE) /
usr.sbin/ospf6d/ospf6d.c
460
imsg.hdr.type);
usr.sbin/ospf6d/ospfe.c
284
switch (imsg.hdr.type) {
usr.sbin/ospf6d/ospfe.c
286
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/ospfe.c
334
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/ospfe.c
354
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/ospfe.c
424
imsg.hdr.type);
usr.sbin/ospf6d/ospfe.c
477
switch (imsg.hdr.type) {
usr.sbin/ospf6d/ospfe.c
479
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospf6d/ospfe.c
489
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospf6d/ospfe.c
502
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospf6d/ospfe.c
514
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospf6d/ospfe.c
526
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospf6d/ospfe.c
530
l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospf6d/ospfe.c
618
l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospf6d/ospfe.c
623
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospf6d/ospfe.c
630
if (imsg.hdr.type == IMSG_LS_SNAP &&
usr.sbin/ospf6d/ospfe.c
652
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospf6d/ospfe.c
659
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(lsa_hdr))
usr.sbin/ospf6d/ospfe.c
673
imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospf6d/ospfe.c
677
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospf6d/ospfe.c
726
imsg.hdr.type);
usr.sbin/ospf6d/ospfe.h
43
struct lsa_hdr hdr;
usr.sbin/ospf6d/packet.c
119
struct cmsghdr hdr;
usr.sbin/ospf6d/rde.c
1216
v = lsa_find(NULL, lsa->hdr.type, lsa->hdr.ls_id,
usr.sbin/ospf6d/rde.c
1217
lsa->hdr.adv_rtr);
usr.sbin/ospf6d/rde.c
1234
v = lsa_find(NULL, lsa->hdr.type, lsa->hdr.ls_id,
usr.sbin/ospf6d/rde.c
1235
lsa->hdr.adv_rtr);
usr.sbin/ospf6d/rde.c
1468
lsa->hdr.age = numprefix == 0 ? htons(MAX_AGE) : htons(DEFAULT_AGE);
usr.sbin/ospf6d/rde.c
1469
lsa->hdr.type = htons(LSA_TYPE_INTRA_A_PREFIX);
usr.sbin/ospf6d/rde.c
1470
lsa->hdr.ls_id = htonl(iface->ifindex);
usr.sbin/ospf6d/rde.c
1471
lsa->hdr.adv_rtr = rde_router_id();
usr.sbin/ospf6d/rde.c
1472
lsa->hdr.seq_num = htonl(INIT_SEQ_NUM);
usr.sbin/ospf6d/rde.c
1473
lsa->hdr.len = htons(len);
usr.sbin/ospf6d/rde.c
1474
lsa->hdr.ls_chksum = htons(iso_cksum(lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospf6d/rde.c
1594
lsa->hdr.age = numprefix == 0 ? htons(MAX_AGE) : htons(DEFAULT_AGE);
usr.sbin/ospf6d/rde.c
1595
lsa->hdr.type = htons(LSA_TYPE_INTRA_A_PREFIX);
usr.sbin/ospf6d/rde.c
1596
lsa->hdr.ls_id = htonl(LS_ID_INTRA_RTR);
usr.sbin/ospf6d/rde.c
1597
lsa->hdr.adv_rtr = rde_router_id();
usr.sbin/ospf6d/rde.c
1598
lsa->hdr.seq_num = htonl(INIT_SEQ_NUM);
usr.sbin/ospf6d/rde.c
1599
lsa->hdr.len = htons(len);
usr.sbin/ospf6d/rde.c
1600
lsa->hdr.ls_chksum = htons(iso_cksum(lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospf6d/rde.c
1670
lsa->hdr.age = htons(age);
usr.sbin/ospf6d/rde.c
1671
lsa->hdr.type = htons(LSA_TYPE_EXTERNAL);
usr.sbin/ospf6d/rde.c
1672
lsa->hdr.adv_rtr = rdeconf->rtr_id.s_addr;
usr.sbin/ospf6d/rde.c
1673
lsa->hdr.seq_num = htonl(INIT_SEQ_NUM);
usr.sbin/ospf6d/rde.c
1674
lsa->hdr.len = htons(len);
usr.sbin/ospf6d/rde.c
1680
lsa->hdr.ls_id = lsa_find_lsid(&asext_tree, comp_asext, lsa);
usr.sbin/ospf6d/rde.c
1688
v = lsa_find(NULL, lsa->hdr.type, lsa->hdr.ls_id,
usr.sbin/ospf6d/rde.c
1689
lsa->hdr.adv_rtr);
usr.sbin/ospf6d/rde.c
1709
lsa->hdr.ls_chksum = 0;
usr.sbin/ospf6d/rde.c
1710
lsa->hdr.ls_chksum = htons(iso_cksum(lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospf6d/rde.c
1727
lsa->hdr.age = htons(invalid ? MAX_AGE : DEFAULT_AGE);
usr.sbin/ospf6d/rde.c
1728
lsa->hdr.type = type;
usr.sbin/ospf6d/rde.c
1729
lsa->hdr.adv_rtr = rdeconf->rtr_id.s_addr;
usr.sbin/ospf6d/rde.c
1730
lsa->hdr.seq_num = htonl(INIT_SEQ_NUM);
usr.sbin/ospf6d/rde.c
1731
lsa->hdr.len = htons(len);
usr.sbin/ospf6d/rde.c
1739
lsa->hdr.ls_id = rte->prefix.s_addr;
usr.sbin/ospf6d/rde.c
1747
lsa->hdr.ls_chksum = 0;
usr.sbin/ospf6d/rde.c
1748
lsa->hdr.ls_chksum =
usr.sbin/ospf6d/rde.c
304
switch (imsg.hdr.type) {
usr.sbin/ospf6d/rde.c
306
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rn))
usr.sbin/ospf6d/rde.c
310
if (rde_nbr_new(imsg.hdr.peerid, &rn) == NULL)
usr.sbin/ospf6d/rde.c
315
rde_nbr_del(rde_nbr_find(imsg.hdr.peerid));
usr.sbin/ospf6d/rde.c
318
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(state))
usr.sbin/ospf6d/rde.c
322
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
339
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(state))
usr.sbin/ospf6d/rde.c
343
if (area->id.s_addr == imsg.hdr.peerid)
usr.sbin/ospf6d/rde.c
352
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
358
imsg_compose_event(iev_ospfe, IMSG_DB_END, imsg.hdr.peerid,
usr.sbin/ospf6d/rde.c
362
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
367
for (l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospf6d/rde.c
377
db_hdr = &v->lsa->hdr;
usr.sbin/ospf6d/rde.c
386
imsg.hdr.peerid, 0, -1, &lsa_hdr,
usr.sbin/ospf6d/rde.c
393
"packet", imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
396
imsg.hdr.peerid, 0, -1, NULL, 0);
usr.sbin/ospf6d/rde.c
399
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
404
for (l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospf6d/rde.c
413
IMSG_LS_BADREQ, imsg.hdr.peerid,
usr.sbin/ospf6d/rde.c
418
imsg.hdr.peerid, 0, -1, v->lsa,
usr.sbin/ospf6d/rde.c
419
ntohs(v->lsa->hdr.len));
usr.sbin/ospf6d/rde.c
424
"packet", imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
427
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
431
lsa = malloc(imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospf6d/rde.c
434
memcpy(lsa, imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospf6d/rde.c
437
imsg.hdr.len - IMSG_HEADER_SIZE)) {
usr.sbin/ospf6d/rde.c
442
v = lsa_find(nbr->iface, lsa->hdr.type, lsa->hdr.ls_id,
usr.sbin/ospf6d/rde.c
443
lsa->hdr.adv_rtr);
usr.sbin/ospf6d/rde.c
447
db_hdr = &v->lsa->hdr;
usr.sbin/ospf6d/rde.c
455
r = lsa_newer(&lsa->hdr, db_hdr);
usr.sbin/ospf6d/rde.c
464
rde_req_list_del(nbr, &lsa->hdr);
usr.sbin/ospf6d/rde.c
473
imsg.hdr.peerid, 0, -1, lsa,
usr.sbin/ospf6d/rde.c
474
ntohs(lsa->hdr.len));
usr.sbin/ospf6d/rde.c
480
v->lsa, ntohs(v->lsa->hdr.len));
usr.sbin/ospf6d/rde.c
493
if (rde_req_list_exists(nbr, &lsa->hdr)) {
usr.sbin/ospf6d/rde.c
495
IMSG_LS_BADREQ, imsg.hdr.peerid,
usr.sbin/ospf6d/rde.c
515
imsg.hdr.peerid, 0, -1, v->lsa,
usr.sbin/ospf6d/rde.c
516
ntohs(v->lsa->hdr.len));
usr.sbin/ospf6d/rde.c
520
imsg.hdr.peerid, 0, -1, &lsa->hdr,
usr.sbin/ospf6d/rde.c
521
sizeof(lsa->hdr));
usr.sbin/ospf6d/rde.c
526
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
530
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/rde.c
543
db_hdr = &v->lsa->hdr;
usr.sbin/ospf6d/rde.c
560
if (imsg.hdr.len != IMSG_HEADER_SIZE &&
usr.sbin/ospf6d/rde.c
561
imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(aid)) {
usr.sbin/ospf6d/rde.c
565
if (imsg.hdr.len == IMSG_HEADER_SIZE) {
usr.sbin/ospf6d/rde.c
567
rde_dump_area(area, imsg.hdr.type,
usr.sbin/ospf6d/rde.c
568
imsg.hdr.pid);
usr.sbin/ospf6d/rde.c
570
lsa_dump(&asext_tree, imsg.hdr.type,
usr.sbin/ospf6d/rde.c
571
imsg.hdr.pid);
usr.sbin/ospf6d/rde.c
575
rde_dump_area(area, imsg.hdr.type,
usr.sbin/ospf6d/rde.c
576
imsg.hdr.pid);
usr.sbin/ospf6d/rde.c
579
imsg.hdr.type,
usr.sbin/ospf6d/rde.c
580
imsg.hdr.pid);
usr.sbin/ospf6d/rde.c
584
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/ospf6d/rde.c
589
0, imsg.hdr.pid, -1, area, sizeof(*area));
usr.sbin/ospf6d/rde.c
591
rt_dump(area->id, imsg.hdr.pid, RIB_RTR);
usr.sbin/ospf6d/rde.c
592
rt_dump(area->id, imsg.hdr.pid, RIB_NET);
usr.sbin/ospf6d/rde.c
595
rt_dump(aid, imsg.hdr.pid, RIB_EXT);
usr.sbin/ospf6d/rde.c
598
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/ospf6d/rde.c
601
rde_send_summary(imsg.hdr.pid);
usr.sbin/ospf6d/rde.c
603
rde_send_summary_area(area, imsg.hdr.pid);
usr.sbin/ospf6d/rde.c
605
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/ospf6d/rde.c
608
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/rde.c
612
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospf6d/rde.c
627
imsg.hdr.type);
usr.sbin/ospf6d/rde.c
677
switch (imsg.hdr.type) {
usr.sbin/ospf6d/rde.c
679
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(kr)) {
usr.sbin/ospf6d/rde.c
688
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(kr)) {
usr.sbin/ospf6d/rde.c
697
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/rde.c
740
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/rde.c
761
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospf6d/rde.c
811
imsg.hdr.type);
usr.sbin/ospf6d/rde_lsdb.c
190
if (len < sizeof(lsa->hdr)) {
usr.sbin/ospf6d/rde_lsdb.c
194
if (ntohs(lsa->hdr.len) != len) {
usr.sbin/ospf6d/rde_lsdb.c
205
if ((ntohs(lsa->hdr.age) < 1 && !nbr->self) ||
usr.sbin/ospf6d/rde_lsdb.c
206
ntohs(lsa->hdr.age) > MAX_AGE) {
usr.sbin/ospf6d/rde_lsdb.c
212
if (ntohl(lsa->hdr.seq_num) == RESV_SEQ_NUM) {
usr.sbin/ospf6d/rde_lsdb.c
217
switch (ntohs(lsa->hdr.type)) {
usr.sbin/ospf6d/rde_lsdb.c
223
if (len < sizeof(lsa->hdr) + sizeof(struct lsa_rtr)) {
usr.sbin/ospf6d/rde_lsdb.c
227
len -= sizeof(lsa->hdr) + sizeof(struct lsa_rtr);
usr.sbin/ospf6d/rde_lsdb.c
235
len < sizeof(lsa->hdr) + sizeof(u_int32_t)) {
usr.sbin/ospf6d/rde_lsdb.c
241
if (len < sizeof(lsa->hdr) + sizeof(lsa->data.pref_sum)) {
usr.sbin/ospf6d/rde_lsdb.c
250
if (lsa_get_prefix(((char *)lsa) + sizeof(lsa->hdr) +
usr.sbin/ospf6d/rde_lsdb.c
252
len - sizeof(lsa->hdr) + sizeof(lsa->data.pref_sum),
usr.sbin/ospf6d/rde_lsdb.c
260
if (len < sizeof(lsa->hdr) + sizeof(lsa->data.rtr_sum)) {
usr.sbin/ospf6d/rde_lsdb.c
282
log_warnx("lsa_check: unknown type %x", ntohs(lsa->hdr.type));
usr.sbin/ospf6d/rde_lsdb.c
287
if (lsa->hdr.age == htons(MAX_AGE) && !nbr->self && lsa_find(nbr->iface,
usr.sbin/ospf6d/rde_lsdb.c
288
lsa->hdr.type, lsa->hdr.ls_id, lsa->hdr.adv_rtr) == NULL &&
usr.sbin/ospf6d/rde_lsdb.c
294
rde_imsg_compose_ospfe(IMSG_LS_ACK, nbr->peerid, 0, &lsa->hdr,
usr.sbin/ospf6d/rde_lsdb.c
310
llink = (struct lsa_link *)(buf + sizeof(lsa->hdr));
usr.sbin/ospf6d/rde_lsdb.c
311
off = sizeof(lsa->hdr) + sizeof(struct lsa_link);
usr.sbin/ospf6d/rde_lsdb.c
342
iap = (struct lsa_intra_prefix *)(buf + sizeof(lsa->hdr));
usr.sbin/ospf6d/rde_lsdb.c
343
off = sizeof(lsa->hdr) + sizeof(struct lsa_intra_prefix);
usr.sbin/ospf6d/rde_lsdb.c
378
asext = (struct lsa_asext *)(buf + sizeof(lsa->hdr));
usr.sbin/ospf6d/rde_lsdb.c
381
len < sizeof(lsa->hdr) + sizeof(*asext)) {
usr.sbin/ospf6d/rde_lsdb.c
386
total_len = sizeof(lsa->hdr) + sizeof(*asext);
usr.sbin/ospf6d/rde_lsdb.c
431
if (rde_router_id() != lsa->hdr.adv_rtr)
usr.sbin/ospf6d/rde_lsdb.c
440
if ((dummy = malloc(ntohs(lsa->hdr.len))) == NULL)
usr.sbin/ospf6d/rde_lsdb.c
442
memcpy(dummy, lsa, ntohs(lsa->hdr.len));
usr.sbin/ospf6d/rde_lsdb.c
443
dummy->hdr.age = htons(MAX_AGE);
usr.sbin/ospf6d/rde_lsdb.c
459
v->lsa->hdr.seq_num = lsa->hdr.seq_num;
usr.sbin/ospf6d/rde_lsdb.c
472
if (LSA_IS_SCOPE_AS(ntohs(lsa->hdr.type)))
usr.sbin/ospf6d/rde_lsdb.c
474
else if (LSA_IS_SCOPE_AREA(ntohs(lsa->hdr.type)))
usr.sbin/ospf6d/rde_lsdb.c
476
else if (LSA_IS_SCOPE_LLOCAL(ntohs(lsa->hdr.type)))
usr.sbin/ospf6d/rde_lsdb.c
506
if (ntohs(lsa->hdr.type) == LSA_TYPE_LINK)
usr.sbin/ospf6d/rde_lsdb.c
508
if (ntohs(lsa->hdr.type) != LSA_TYPE_EXTERNAL)
usr.sbin/ospf6d/rde_lsdb.c
516
if (nbr->self && ntohs(new->lsa->hdr.age) == DEFAULT_AGE)
usr.sbin/ospf6d/rde_lsdb.c
519
tv.tv_sec = MAX_AGE - ntohs(new->lsa->hdr.age);
usr.sbin/ospf6d/rde_lsdb.c
564
age = ntohs(v->lsa->hdr.age);
usr.sbin/ospf6d/rde_lsdb.c
570
v->lsa->hdr.age = htons(age);
usr.sbin/ospf6d/rde_lsdb.c
669
key.adv_rtr = ntohl(lsa->hdr.adv_rtr);
usr.sbin/ospf6d/rde_lsdb.c
670
key.type = ntohs(lsa->hdr.type);
usr.sbin/ospf6d/rde_lsdb.c
707
nlinks += ((ntohs(v->lsa->hdr.len) -
usr.sbin/ospf6d/rde_lsdb.c
714
return ((ntohs(v->lsa->hdr.len) - sizeof(struct lsa_hdr) -
usr.sbin/ospf6d/rde_lsdb.c
734
if (ntohs(v->lsa->hdr.age) >= MAX_AGE) {
usr.sbin/ospf6d/rde_lsdb.c
736
nbr->peerid, 0, &v->lsa->hdr,
usr.sbin/ospf6d/rde_lsdb.c
737
ntohs(v->lsa->hdr.len));
usr.sbin/ospf6d/rde_lsdb.c
740
nbr->peerid, 0, &v->lsa->hdr,
usr.sbin/ospf6d/rde_lsdb.c
766
if (v->lsa->hdr.adv_rtr == rde_router_id())
usr.sbin/ospf6d/rde_lsdb.c
801
rde_imsg_compose_ospfe(imsg_type, 0, pid, &v->lsa->hdr,
usr.sbin/ospf6d/rde_lsdb.c
802
ntohs(v->lsa->hdr.len));
usr.sbin/ospf6d/rde_lsdb.c
815
if (ntohs(v->lsa->hdr.age) >= MAX_AGE) {
usr.sbin/ospf6d/rde_lsdb.c
82
v->ls_id = ntohl(lsa->hdr.ls_id);
usr.sbin/ospf6d/rde_lsdb.c
821
if (ntohs(v->lsa->hdr.type) == LSA_TYPE_LINK)
usr.sbin/ospf6d/rde_lsdb.c
823
if (ntohs(v->lsa->hdr.type) != LSA_TYPE_EXTERNAL)
usr.sbin/ospf6d/rde_lsdb.c
828
v->lsa, ntohs(v->lsa->hdr.len));
usr.sbin/ospf6d/rde_lsdb.c
83
v->adv_rtr = ntohl(lsa->hdr.adv_rtr);
usr.sbin/ospf6d/rde_lsdb.c
835
tv.tv_sec = MAX_AGE - ntohs(v->lsa->hdr.age);
usr.sbin/ospf6d/rde_lsdb.c
84
v->type = ntohs(lsa->hdr.type);
usr.sbin/ospf6d/rde_lsdb.c
843
if (v->self && ntohs(v->lsa->hdr.age) < MAX_AGE)
usr.sbin/ospf6d/rde_lsdb.c
847
v->lsa, ntohs(v->lsa->hdr.len));
usr.sbin/ospf6d/rde_lsdb.c
859
if (v->self && ntohs(v->lsa->hdr.age) >= MAX_AGE)
usr.sbin/ospf6d/rde_lsdb.c
861
v->lsa->hdr.age = htons(MAX_AGE);
usr.sbin/ospf6d/rde_lsdb.c
863
v->lsa->hdr.age = htons(DEFAULT_AGE);
usr.sbin/ospf6d/rde_lsdb.c
864
seqnum = ntohl(v->lsa->hdr.seq_num);
usr.sbin/ospf6d/rde_lsdb.c
868
v->lsa->hdr.seq_num = htonl(seqnum);
usr.sbin/ospf6d/rde_lsdb.c
871
len = ntohs(v->lsa->hdr.len);
usr.sbin/ospf6d/rde_lsdb.c
872
v->lsa->hdr.ls_chksum = 0;
usr.sbin/ospf6d/rde_lsdb.c
873
v->lsa->hdr.ls_chksum = htons(iso_cksum(v->lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospf6d/rde_lsdb.c
897
lsa, ntohs(lsa->hdr.len));
usr.sbin/ospf6d/rde_lsdb.c
902
lsa->hdr.seq_num = v->lsa->hdr.seq_num;
usr.sbin/ospf6d/rde_lsdb.c
904
len = ntohs(lsa->hdr.len);
usr.sbin/ospf6d/rde_lsdb.c
905
lsa->hdr.ls_chksum = 0;
usr.sbin/ospf6d/rde_lsdb.c
906
lsa->hdr.ls_chksum = htons(iso_cksum(lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospf6d/rde_lsdb.c
950
v->lsa->hdr.age = htons(MAX_AGE);
usr.sbin/ospf6d/rde_lsdb.c
965
if (a->hdr.len != b->hdr.len)
usr.sbin/ospf6d/rde_lsdb.c
968
if (a->hdr.age == htons(MAX_AGE) || b->hdr.age == htons(MAX_AGE))
usr.sbin/ospf6d/rde_lsdb.c
970
if (memcmp(&a->data, &b->data, ntohs(a->hdr.len) -
usr.sbin/ospf6d/rde_spf.c
1111
sizeof(v->lsa->hdr) + sizeof(struct lsa_rtr));
usr.sbin/ospf6d/rde_spf.c
1112
frag_nlinks = ((ntohs(v->lsa->hdr.len) -
usr.sbin/ospf6d/rde_spf.c
1140
net_link = (struct lsa_net_link *)(buf + sizeof(v->lsa->hdr) +
usr.sbin/ospf6d/rde_spf.c
115
if (ntohs(w->lsa->hdr.age) == MAX_AGE)
usr.sbin/ospf6d/rde_spf.c
212
if (ntohs(v->lsa->hdr.age) == MAX_AGE)
usr.sbin/ospf6d/rde_spf.c
272
off = sizeof(v->lsa->hdr) + sizeof(struct lsa_intra_prefix);
usr.sbin/ospf6d/rde_spf.c
311
off = sizeof(v->lsa->hdr) + sizeof(struct lsa_prefix_sum);
usr.sbin/ospf6d/rde_spf.c
370
if (ntohs(v->lsa->hdr.age) == MAX_AGE ||
usr.sbin/ospf6d/rde_spf.c
511
rtr_link->nbr_rtr_id == parent->lsa->hdr.adv_rtr &&
usr.sbin/ospf6d/rde_spf.c
512
rtr_link->nbr_iface_id == parent->lsa->hdr.ls_id) {
usr.sbin/ospfctl/ospfctl.c
268
switch (imsg->hdr.type) {
usr.sbin/ospfctl/ospfctl.c
299
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct kroute))
usr.sbin/ospfctl/ospfctl.c
316
lasttype = lsa->hdr.type;
usr.sbin/ospfctl/ospfctl.c
337
warnx("unknown imsg %d received", imsg->hdr.type);
usr.sbin/ospfctl/output.c
541
if (lsa->hdr.type != lasttype)
usr.sbin/ospfctl/output.c
542
show_database_head(area_id, ifname, lsa->hdr.type);
usr.sbin/ospfctl/output.c
543
show_db_hdr_msg_detail(&lsa->hdr);
usr.sbin/ospfctl/output.c
545
switch (lsa->hdr.type) {
usr.sbin/ospfctl/output.c
550
asext = (struct lsa_asext *)((char *)lsa + sizeof(lsa->hdr));
usr.sbin/ospfctl/output.c
567
nlinks = (ntohs(lsa->hdr.len) - sizeof(struct lsa_hdr)
usr.sbin/ospfctl/output.c
569
off = sizeof(lsa->hdr) + sizeof(u_int32_t);
usr.sbin/ospfctl/output.c
584
off = sizeof(lsa->hdr) + sizeof(struct lsa_rtr);
usr.sbin/ospfctl/output.c
630
if (lsa->hdr.type != lasttype)
usr.sbin/ospfctl/output.c
631
show_database_head(area_id, ifname, lsa->hdr.type);
usr.sbin/ospfctl/output.c
633
show_db_hdr_msg_detail(&lsa->hdr);
usr.sbin/ospfctl/output.c
642
if (lsa->hdr.type != lasttype)
usr.sbin/ospfctl/output.c
643
show_database_head(area_id, ifname, lsa->hdr.type);
usr.sbin/ospfctl/output.c
645
show_db_hdr_msg_detail(&lsa->hdr);
usr.sbin/ospfd/control.c
281
switch (imsg.hdr.type) {
usr.sbin/ospfd/control.c
284
ospfe_fib_update(imsg.hdr.type);
usr.sbin/ospfd/control.c
288
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ospfd/control.c
289
ospfe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
usr.sbin/ospfd/control.c
294
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ospfd/control.c
295
ospfe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/ospfd/control.c
296
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospfd/control.c
299
if (imsg.hdr.len == IMSG_HEADER_SIZE +
usr.sbin/ospfd/control.c
317
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ospfd/control.c
318
ospfe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/ospfd/control.c
319
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospfd/control.c
325
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospfd/control.c
330
ospfe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/ospfd/control.c
331
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospfd/control.c
332
ospfe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/ospfd/control.c
333
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospfd/control.c
340
"error handling imsg %d", imsg.hdr.type);
usr.sbin/ospfd/control.c
354
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
usr.sbin/ospfd/control.c
357
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
usr.sbin/ospfd/control.c
358
-1, imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE));
usr.sbin/ospfd/kroute.c
1184
struct rt_msghdr hdr;
usr.sbin/ospfd/kroute.c
1196
bzero(&hdr, sizeof(hdr));
usr.sbin/ospfd/kroute.c
1197
hdr.rtm_version = RTM_VERSION;
usr.sbin/ospfd/kroute.c
1198
hdr.rtm_type = action;
usr.sbin/ospfd/kroute.c
1199
hdr.rtm_priority = kr_state.fib_prio;
usr.sbin/ospfd/kroute.c
1200
hdr.rtm_tableid = kr_state.rdomain; /* rtableid */
usr.sbin/ospfd/kroute.c
1202
hdr.rtm_fmask = RTF_REJECT|RTF_BLACKHOLE;
usr.sbin/ospfd/kroute.c
1204
hdr.rtm_flags = RTF_MPATH;
usr.sbin/ospfd/kroute.c
1205
hdr.rtm_seq = kr_state.rtseq++; /* overflow doesn't matter */
usr.sbin/ospfd/kroute.c
1206
hdr.rtm_msglen = sizeof(hdr);
usr.sbin/ospfd/kroute.c
1208
iov[iovcnt].iov_base = &hdr;
usr.sbin/ospfd/kroute.c
1209
iov[iovcnt++].iov_len = sizeof(hdr);
usr.sbin/ospfd/kroute.c
1216
hdr.rtm_addrs |= RTA_DST;
usr.sbin/ospfd/kroute.c
1217
hdr.rtm_msglen += sizeof(prefix);
usr.sbin/ospfd/kroute.c
1228
hdr.rtm_flags |= RTF_GATEWAY;
usr.sbin/ospfd/kroute.c
1229
hdr.rtm_addrs |= RTA_GATEWAY;
usr.sbin/ospfd/kroute.c
1230
hdr.rtm_msglen += sizeof(nexthop);
usr.sbin/ospfd/kroute.c
1241
hdr.rtm_addrs |= RTA_NETMASK;
usr.sbin/ospfd/kroute.c
1242
hdr.rtm_msglen += sizeof(mask);
usr.sbin/ospfd/kroute.c
1257
hdr.rtm_addrs |= RTA_LABEL;
usr.sbin/ospfd/kroute.c
1258
hdr.rtm_msglen += sizeof(sa_rl);
usr.sbin/ospfd/kroute.c
1267
if (hdr.rtm_type == RTM_CHANGE) {
usr.sbin/ospfd/kroute.c
1268
hdr.rtm_type = RTM_ADD;
usr.sbin/ospfd/kroute.c
1270
} else if (hdr.rtm_type == RTM_DELETE) {
usr.sbin/ospfd/kroute.c
1277
log_warn("send_rtmsg: action %u, prefix %s/%u", hdr.rtm_type,
usr.sbin/ospfd/kroute.c
474
switch (imsg->hdr.type) {
usr.sbin/ospfd/kroute.c
476
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(flags)) {
usr.sbin/ospfd/kroute.c
486
imsg->hdr.pid,
usr.sbin/ospfd/kroute.c
492
if (imsg->hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospfd/kroute.c
501
main_imsg_compose_ospfe(IMSG_CTL_KROUTE, imsg->hdr.pid,
usr.sbin/ospfd/kroute.c
509
main_imsg_compose_ospfe(IMSG_CTL_END, imsg->hdr.pid, NULL, 0);
usr.sbin/ospfd/lsupdate.c
338
if (lsa_hdr->seq_num == le->le_ref->hdr.seq_num &&
usr.sbin/ospfd/lsupdate.c
339
lsa_hdr->ls_chksum == le->le_ref->hdr.ls_chksum &&
usr.sbin/ospfd/lsupdate.c
340
ntohs(lsa_hdr->age) >= ntohs(le->le_ref->hdr.age)) {
usr.sbin/ospfd/lsupdate.c
354
if ((lsa_hdr->type == le->le_ref->hdr.type) &&
usr.sbin/ospfd/lsupdate.c
355
(lsa_hdr->ls_id == le->le_ref->hdr.ls_id) &&
usr.sbin/ospfd/lsupdate.c
356
(lsa_hdr->adv_rtr == le->le_ref->hdr.adv_rtr))
usr.sbin/ospfd/lsupdate.c
466
lsa_flood(nbr->iface, nbr, &le->le_ref->hdr,
usr.sbin/ospfd/lsupdate.c
560
lsa_hash_hdr(const struct lsa_hdr *hdr)
usr.sbin/ospfd/lsupdate.c
562
return SipHash24(&lsacachekey, hdr, sizeof(*hdr));
usr.sbin/ospfd/lsupdate.c
574
memcpy(&ref->hdr, data, sizeof(ref->hdr));
usr.sbin/ospfd/lsupdate.c
576
if ((old = lsa_cache_look(&ref->hdr))) {
usr.sbin/ospfd/lsupdate.c
591
head = &lsacache.hashtbl[lsa_hash_hdr(&ref->hdr) & lsacache.hashmask];
usr.sbin/ospfd/lsupdate.c
614
if (ntohs(ref->hdr.age) >= MAX_AGE)
usr.sbin/ospfd/lsupdate.c
632
if (memcmp(&ref->hdr, lsa_hdr, sizeof(*lsa_hdr)) == 0)
usr.sbin/ospfd/ospf.h
265
struct lsa_hdr hdr;
usr.sbin/ospfd/ospfd.c
385
switch (imsg.hdr.type) {
usr.sbin/ospfd/ospfd.c
406
if (imsg.hdr.len == IMSG_HEADER_SIZE)
usr.sbin/ospfd/ospfd.c
407
kr_ifinfo(NULL, imsg.hdr.pid);
usr.sbin/ospfd/ospfd.c
408
else if (imsg.hdr.len == IMSG_HEADER_SIZE + IFNAMSIZ)
usr.sbin/ospfd/ospfd.c
409
kr_ifinfo(imsg.data, imsg.hdr.pid);
usr.sbin/ospfd/ospfd.c
414
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(dmsg))
usr.sbin/ospfd/ospfd.c
426
imsg.hdr.type);
usr.sbin/ospfd/ospfd.c
473
switch (imsg.hdr.type) {
usr.sbin/ospfd/ospfd.c
475
count = (imsg.hdr.len - IMSG_HEADER_SIZE) /
usr.sbin/ospfd/ospfd.c
488
imsg.hdr.type);
usr.sbin/ospfd/ospfe.c
298
switch (imsg.hdr.type) {
usr.sbin/ospfd/ospfe.c
300
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospfd/ospfe.c
356
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospfd/ospfe.c
385
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospfd/ospfe.c
470
imsg.hdr.type);
usr.sbin/ospfd/ospfe.c
522
switch (imsg.hdr.type) {
usr.sbin/ospfd/ospfe.c
524
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
543
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
560
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
571
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
583
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
595
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
599
l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospfd/ospfe.c
675
l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospfd/ospfe.c
680
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
687
if (imsg.hdr.type == IMSG_LS_SNAP &&
usr.sbin/ospfd/ospfe.c
709
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
716
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(lsa_hdr))
usr.sbin/ospfd/ospfe.c
730
imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospfd/ospfe.c
734
nbr = nbr_find_peerid(imsg.hdr.peerid);
usr.sbin/ospfd/ospfe.c
782
imsg.hdr.type);
usr.sbin/ospfd/ospfe.h
43
struct lsa_hdr hdr;
usr.sbin/ospfd/packet.c
113
struct cmsghdr hdr;
usr.sbin/ospfd/rde.c
1237
oan = asext_find(v->lsa->hdr.ls_id & mask,
usr.sbin/ospfd/rde.c
1339
lsa->hdr.age = htons(age);
usr.sbin/ospfd/rde.c
1340
lsa->hdr.opts = area_ospf_options(NULL);
usr.sbin/ospfd/rde.c
1341
lsa->hdr.type = LSA_TYPE_EXTERNAL;
usr.sbin/ospfd/rde.c
1342
lsa->hdr.adv_rtr = rdeconf->rtr_id.s_addr;
usr.sbin/ospfd/rde.c
1344
lsa->hdr.seq_num = htonl(INIT_SEQ_NUM);
usr.sbin/ospfd/rde.c
1345
lsa->hdr.len = htons(len);
usr.sbin/ospfd/rde.c
1348
lsa->hdr.ls_id = ls_id;
usr.sbin/ospfd/rde.c
1373
lsa->hdr.ls_chksum = 0;
usr.sbin/ospfd/rde.c
1374
lsa->hdr.ls_chksum = htons(iso_cksum(lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospfd/rde.c
1458
lsa->hdr.age = htons(invalid ? MAX_AGE : DEFAULT_AGE);
usr.sbin/ospfd/rde.c
1459
lsa->hdr.opts = area_ospf_options(area);
usr.sbin/ospfd/rde.c
1460
lsa->hdr.type = type;
usr.sbin/ospfd/rde.c
1461
lsa->hdr.adv_rtr = rdeconf->rtr_id.s_addr;
usr.sbin/ospfd/rde.c
1462
lsa->hdr.seq_num = htonl(INIT_SEQ_NUM);
usr.sbin/ospfd/rde.c
1463
lsa->hdr.len = htons(len);
usr.sbin/ospfd/rde.c
1471
lsa->hdr.ls_id = rte->prefix.s_addr;
usr.sbin/ospfd/rde.c
1479
lsa->hdr.ls_chksum = 0;
usr.sbin/ospfd/rde.c
1480
lsa->hdr.ls_chksum =
usr.sbin/ospfd/rde.c
294
switch (imsg.hdr.type) {
usr.sbin/ospfd/rde.c
296
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rn))
usr.sbin/ospfd/rde.c
300
if (rde_nbr_new(imsg.hdr.peerid, &rn) == NULL)
usr.sbin/ospfd/rde.c
305
rde_nbr_del(rde_nbr_find(imsg.hdr.peerid));
usr.sbin/ospfd/rde.c
308
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(addr))
usr.sbin/ospfd/rde.c
312
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
319
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(state))
usr.sbin/ospfd/rde.c
323
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
332
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(u_int8_t))
usr.sbin/ospfd/rde.c
334
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
340
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(state))
usr.sbin/ospfd/rde.c
344
if (area->id.s_addr == imsg.hdr.peerid)
usr.sbin/ospfd/rde.c
353
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
359
imsg_compose_event(iev_ospfe, IMSG_DB_END, imsg.hdr.peerid,
usr.sbin/ospfd/rde.c
363
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
369
for (l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospfd/rde.c
384
db_hdr = &v->lsa->hdr;
usr.sbin/ospfd/rde.c
393
imsg.hdr.peerid, 0, -1, &lsa_hdr,
usr.sbin/ospfd/rde.c
400
"packet", imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
404
imsg.hdr.peerid, 0, -1, NULL, 0);
usr.sbin/ospfd/rde.c
407
imsg.hdr.peerid, 0, -1, NULL, 0);
usr.sbin/ospfd/rde.c
410
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
415
for (l = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ospfd/rde.c
426
IMSG_LS_BADREQ, imsg.hdr.peerid,
usr.sbin/ospfd/rde.c
431
imsg.hdr.peerid, 0, -1, v->lsa,
usr.sbin/ospfd/rde.c
432
ntohs(v->lsa->hdr.len));
usr.sbin/ospfd/rde.c
437
"packet", imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
440
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
444
lsa = malloc(imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospfd/rde.c
447
memcpy(lsa, imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ospfd/rde.c
450
imsg.hdr.len - IMSG_HEADER_SIZE)) {
usr.sbin/ospfd/rde.c
455
v = lsa_find(nbr->iface, lsa->hdr.type, lsa->hdr.ls_id,
usr.sbin/ospfd/rde.c
456
lsa->hdr.adv_rtr);
usr.sbin/ospfd/rde.c
460
db_hdr = &v->lsa->hdr;
usr.sbin/ospfd/rde.c
468
r = lsa_newer(&lsa->hdr, db_hdr);
usr.sbin/ospfd/rde.c
477
rde_req_list_del(nbr, &lsa->hdr);
usr.sbin/ospfd/rde.c
486
imsg.hdr.peerid, 0, -1, lsa,
usr.sbin/ospfd/rde.c
487
ntohs(lsa->hdr.len));
usr.sbin/ospfd/rde.c
493
v->lsa, ntohs(v->lsa->hdr.len));
usr.sbin/ospfd/rde.c
506
if (rde_req_list_exists(nbr, &lsa->hdr)) {
usr.sbin/ospfd/rde.c
508
IMSG_LS_BADREQ, imsg.hdr.peerid,
usr.sbin/ospfd/rde.c
528
imsg.hdr.peerid, 0, -1, v->lsa,
usr.sbin/ospfd/rde.c
529
ntohs(v->lsa->hdr.len));
usr.sbin/ospfd/rde.c
533
imsg.hdr.peerid, 0, -1, &lsa->hdr,
usr.sbin/ospfd/rde.c
534
sizeof(lsa->hdr));
usr.sbin/ospfd/rde.c
539
nbr = rde_nbr_find(imsg.hdr.peerid);
usr.sbin/ospfd/rde.c
543
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ospfd/rde.c
556
db_hdr = &v->lsa->hdr;
usr.sbin/ospfd/rde.c
572
if (imsg.hdr.len != IMSG_HEADER_SIZE &&
usr.sbin/ospfd/rde.c
573
imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(aid)) {
usr.sbin/ospfd/rde.c
577
if (imsg.hdr.len == IMSG_HEADER_SIZE) {
usr.sbin/ospfd/rde.c
579
rde_dump_area(area, imsg.hdr.type,
usr.sbin/ospfd/rde.c
580
imsg.hdr.pid);
usr.sbin/ospfd/rde.c
582
lsa_dump(&asext_tree, imsg.hdr.type,
usr.sbin/ospfd/rde.c
583
imsg.hdr.pid);
usr.sbin/ospfd/rde.c
587
rde_dump_area(area, imsg.hdr.type,
usr.sbin/ospfd/rde.c
588
imsg.hdr.pid);
usr.sbin/ospfd/rde.c
591
imsg.hdr.type,
usr.sbin/ospfd/rde.c
592
imsg.hdr.pid);
usr.sbin/ospfd/rde.c
596
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/ospfd/rde.c
601
0, imsg.hdr.pid, -1, area, sizeof(*area));
usr.sbin/ospfd/rde.c
603
rt_dump(area->id, imsg.hdr.pid, RIB_RTR);
usr.sbin/ospfd/rde.c
604
rt_dump(area->id, imsg.hdr.pid, RIB_NET);
usr.sbin/ospfd/rde.c
607
rt_dump(aid, imsg.hdr.pid, RIB_EXT);
usr.sbin/ospfd/rde.c
610
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/ospfd/rde.c
613
rde_send_summary(imsg.hdr.pid);
usr.sbin/ospfd/rde.c
615
rde_send_summary_area(area, imsg.hdr.pid);
usr.sbin/ospfd/rde.c
617
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/ospfd/rde.c
626
imsg.hdr.type);
usr.sbin/ospfd/rde.c
676
switch (imsg.hdr.type) {
usr.sbin/ospfd/rde.c
678
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(rr)) {
usr.sbin/ospfd/rde.c
687
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(rr)) {
usr.sbin/ospfd/rde.c
743
imsg.hdr.type);
usr.sbin/ospfd/rde.c
863
sumctl.ext_lsa_cksum += ntohs(v->lsa->hdr.ls_chksum);
usr.sbin/ospfd/rde.c
901
sumareactl.lsa_cksum += ntohs(v->lsa->hdr.ls_chksum);
usr.sbin/ospfd/rde_lsdb.c
187
if (len < sizeof(lsa->hdr)) {
usr.sbin/ospfd/rde_lsdb.c
191
if (ntohs(lsa->hdr.len) != len) {
usr.sbin/ospfd/rde_lsdb.c
202
if ((ntohs(lsa->hdr.age) < 1 && !nbr->self) ||
usr.sbin/ospfd/rde_lsdb.c
203
ntohs(lsa->hdr.age) > MAX_AGE) {
usr.sbin/ospfd/rde_lsdb.c
209
if (ntohl(lsa->hdr.seq_num) == RESV_SEQ_NUM) {
usr.sbin/ospfd/rde_lsdb.c
214
switch (lsa->hdr.type) {
usr.sbin/ospfd/rde_lsdb.c
221
len < sizeof(lsa->hdr) + sizeof(u_int32_t)) {
usr.sbin/ospfd/rde_lsdb.c
229
len < sizeof(lsa->hdr) + sizeof(lsa->data.sum)) {
usr.sbin/ospfd/rde_lsdb.c
241
len < sizeof(lsa->hdr) + sizeof(lsa->data.asext)) {
usr.sbin/ospfd/rde_lsdb.c
262
if (lsa->hdr.type == LSA_TYPE_AS_OPAQ && area->stub)
usr.sbin/ospfd/rde_lsdb.c
266
log_warnx("lsa_check: unknown type %u", lsa->hdr.type);
usr.sbin/ospfd/rde_lsdb.c
271
if (lsa->hdr.age == htons(MAX_AGE) && !nbr->self && lsa_find(nbr->iface,
usr.sbin/ospfd/rde_lsdb.c
272
lsa->hdr.type, lsa->hdr.ls_id, lsa->hdr.adv_rtr) == NULL &&
usr.sbin/ospfd/rde_lsdb.c
278
rde_imsg_compose_ospfe(IMSG_LS_ACK, nbr->peerid, 0, &lsa->hdr,
usr.sbin/ospfd/rde_lsdb.c
293
off = sizeof(lsa->hdr) + sizeof(struct lsa_rtr);
usr.sbin/ospfd/rde_lsdb.c
299
if (lsa->hdr.ls_id != lsa->hdr.adv_rtr) {
usr.sbin/ospfd/rde_lsdb.c
339
if (rde_router_id() == new->hdr.adv_rtr)
usr.sbin/ospfd/rde_lsdb.c
342
if (new->hdr.type == LSA_TYPE_NETWORK)
usr.sbin/ospfd/rde_lsdb.c
344
if (iface->addr.s_addr == new->hdr.ls_id)
usr.sbin/ospfd/rde_lsdb.c
356
if ((dummy = malloc(ntohs(new->hdr.len))) == NULL)
usr.sbin/ospfd/rde_lsdb.c
358
memcpy(dummy, new, ntohs(new->hdr.len));
usr.sbin/ospfd/rde_lsdb.c
359
dummy->hdr.age = htons(MAX_AGE);
usr.sbin/ospfd/rde_lsdb.c
375
v->lsa->hdr.seq_num = new->hdr.seq_num;
usr.sbin/ospfd/rde_lsdb.c
388
if (lsa->hdr.type == LSA_TYPE_EXTERNAL ||
usr.sbin/ospfd/rde_lsdb.c
389
lsa->hdr.type == LSA_TYPE_AS_OPAQ)
usr.sbin/ospfd/rde_lsdb.c
391
else if (lsa->hdr.type == LSA_TYPE_LINK_OPAQ)
usr.sbin/ospfd/rde_lsdb.c
421
if (lsa->hdr.type != LSA_TYPE_EXTERNAL &&
usr.sbin/ospfd/rde_lsdb.c
422
lsa->hdr.type != LSA_TYPE_AS_OPAQ)
usr.sbin/ospfd/rde_lsdb.c
430
if (nbr->self && ntohs(new->lsa->hdr.age) == DEFAULT_AGE)
usr.sbin/ospfd/rde_lsdb.c
433
tv.tv_sec = MAX_AGE - ntohs(new->lsa->hdr.age);
usr.sbin/ospfd/rde_lsdb.c
478
age = ntohs(v->lsa->hdr.age);
usr.sbin/ospfd/rde_lsdb.c
484
v->lsa->hdr.age = htons(age);
usr.sbin/ospfd/rde_lsdb.c
541
if (v->lsa->hdr.type == LSA_TYPE_NETWORK &&
usr.sbin/ospfd/rde_lsdb.c
542
v->lsa->hdr.ls_id == ls_id) {
usr.sbin/ospfd/rde_lsdb.c
561
return ((ntohs(v->lsa->hdr.len) - sizeof(struct lsa_hdr)
usr.sbin/ospfd/rde_lsdb.c
587
if (ntohs(v->lsa->hdr.age) >= MAX_AGE)
usr.sbin/ospfd/rde_lsdb.c
589
0, &v->lsa->hdr, ntohs(v->lsa->hdr.len));
usr.sbin/ospfd/rde_lsdb.c
592
nbr->peerid, 0, &v->lsa->hdr,
usr.sbin/ospfd/rde_lsdb.c
619
if (v->lsa->hdr.adv_rtr == rde_router_id())
usr.sbin/ospfd/rde_lsdb.c
652
rde_imsg_compose_ospfe(imsg_type, 0, pid, &v->lsa->hdr,
usr.sbin/ospfd/rde_lsdb.c
653
ntohs(v->lsa->hdr.len));
usr.sbin/ospfd/rde_lsdb.c
666
if (ntohs(v->lsa->hdr.age) >= MAX_AGE) {
usr.sbin/ospfd/rde_lsdb.c
678
v->lsa, ntohs(v->lsa->hdr.len));
usr.sbin/ospfd/rde_lsdb.c
685
tv.tv_sec = MAX_AGE - ntohs(v->lsa->hdr.age);
usr.sbin/ospfd/rde_lsdb.c
693
if (v->self && ntohs(v->lsa->hdr.age) < MAX_AGE)
usr.sbin/ospfd/rde_lsdb.c
697
v->lsa, ntohs(v->lsa->hdr.len));
usr.sbin/ospfd/rde_lsdb.c
709
if (v->self && ntohs(v->lsa->hdr.age) >= MAX_AGE)
usr.sbin/ospfd/rde_lsdb.c
711
v->lsa->hdr.age = htons(MAX_AGE);
usr.sbin/ospfd/rde_lsdb.c
713
v->lsa->hdr.age = htons(DEFAULT_AGE);
usr.sbin/ospfd/rde_lsdb.c
714
seqnum = ntohl(v->lsa->hdr.seq_num);
usr.sbin/ospfd/rde_lsdb.c
718
v->lsa->hdr.seq_num = htonl(seqnum);
usr.sbin/ospfd/rde_lsdb.c
721
len = ntohs(v->lsa->hdr.len);
usr.sbin/ospfd/rde_lsdb.c
722
v->lsa->hdr.ls_chksum = 0;
usr.sbin/ospfd/rde_lsdb.c
723
v->lsa->hdr.ls_chksum = htons(iso_cksum(v->lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospfd/rde_lsdb.c
747
lsa, ntohs(lsa->hdr.len));
usr.sbin/ospfd/rde_lsdb.c
752
lsa->hdr.seq_num = v->lsa->hdr.seq_num;
usr.sbin/ospfd/rde_lsdb.c
754
len = ntohs(lsa->hdr.len);
usr.sbin/ospfd/rde_lsdb.c
755
lsa->hdr.ls_chksum = 0;
usr.sbin/ospfd/rde_lsdb.c
756
lsa->hdr.ls_chksum = htons(iso_cksum(lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospfd/rde_lsdb.c
799
v->lsa->hdr.age = htons(MAX_AGE);
usr.sbin/ospfd/rde_lsdb.c
81
v->ls_id = ntohl(lsa->hdr.ls_id);
usr.sbin/ospfd/rde_lsdb.c
82
v->adv_rtr = ntohl(lsa->hdr.adv_rtr);
usr.sbin/ospfd/rde_lsdb.c
83
v->type = lsa->hdr.type;
usr.sbin/ospfd/rde_lsdb.c
860
if (a->hdr.len != b->hdr.len)
usr.sbin/ospfd/rde_lsdb.c
862
if (a->hdr.opts != b->hdr.opts)
usr.sbin/ospfd/rde_lsdb.c
865
if (a->hdr.age == htons(MAX_AGE) || b->hdr.age == htons(MAX_AGE))
usr.sbin/ospfd/rde_lsdb.c
867
if (memcmp(&a->data, &b->data, ntohs(a->hdr.len) -
usr.sbin/ospfd/rde_spf.c
1007
off = sizeof(v->lsa->hdr) + sizeof(u_int32_t);
usr.sbin/ospfd/rde_spf.c
119
if (w->lsa->hdr.age == MAX_AGE)
usr.sbin/ospfd/rde_spf.c
184
if (ntohs(v->lsa->hdr.age) == MAX_AGE)
usr.sbin/ospfd/rde_spf.c
289
if (ntohs(v->lsa->hdr.age) == MAX_AGE ||
usr.sbin/ospfd/rde_spf.c
980
off = sizeof(v->lsa->hdr) + sizeof(struct lsa_rtr);
usr.sbin/pcidump/pcidump.c
1072
u_int32_t hdr;
usr.sbin/pcidump/pcidump.c
1074
if (pci_read(bus, dev, 0, PCI_BHLC_REG, &hdr) != 0)
usr.sbin/pcidump/pcidump.c
1077
return (PCI_HDRTYPE_MULTIFN(hdr) ? 8 : 1);
usr.sbin/pppd/sys-bsd.c
1077
struct rt_msghdr hdr;
usr.sbin/pppd/sys-bsd.c
1090
rtmsg.hdr.rtm_type = cmd == 's'? RTM_ADD: RTM_DELETE;
usr.sbin/pppd/sys-bsd.c
1091
rtmsg.hdr.rtm_flags = RTF_UP | RTF_GATEWAY;
usr.sbin/pppd/sys-bsd.c
1092
rtmsg.hdr.rtm_version = RTM_VERSION;
usr.sbin/pppd/sys-bsd.c
1093
rtmsg.hdr.rtm_tableid = getrtableid();
usr.sbin/pppd/sys-bsd.c
1094
rtmsg.hdr.rtm_seq = ++rtm_seq;
usr.sbin/pppd/sys-bsd.c
1095
rtmsg.hdr.rtm_addrs = RTA_DST | RTA_GATEWAY | RTA_NETMASK;
usr.sbin/pppd/sys-bsd.c
1104
rtmsg.hdr.rtm_msglen = sizeof(rtmsg);
usr.sbin/pppd/sys-bsd.c
1123
struct rt_msghdr hdr;
usr.sbin/pppd/sys-bsd.c
1151
arpmsg.hdr.rtm_type = RTM_ADD;
usr.sbin/pppd/sys-bsd.c
1152
arpmsg.hdr.rtm_flags = RTF_ANNOUNCE | RTF_HOST | RTF_STATIC;
usr.sbin/pppd/sys-bsd.c
1153
arpmsg.hdr.rtm_version = RTM_VERSION;
usr.sbin/pppd/sys-bsd.c
1154
arpmsg.hdr.rtm_seq = ++rtm_seq;
usr.sbin/pppd/sys-bsd.c
1155
arpmsg.hdr.rtm_addrs = RTA_DST | RTA_GATEWAY;
usr.sbin/pppd/sys-bsd.c
1156
arpmsg.hdr.rtm_inits = RTV_EXPIRE;
usr.sbin/pppd/sys-bsd.c
1162
arpmsg.hdr.rtm_msglen = (char *) &arpmsg.hwa - (char *) &arpmsg
usr.sbin/pppd/sys-bsd.c
1164
if (write(routes, &arpmsg, arpmsg.hdr.rtm_msglen) == -1) {
usr.sbin/pppd/sys-bsd.c
1188
arpmsg.hdr.rtm_type = RTM_DELETE;
usr.sbin/pppd/sys-bsd.c
1189
arpmsg.hdr.rtm_seq = ++rtm_seq;
usr.sbin/pppd/sys-bsd.c
1196
if (write(routes, &arpmsg, arpmsg.hdr.rtm_msglen) == -1) {
usr.sbin/pstat/pstat.c
895
const char hdr[] =
usr.sbin/pstat/pstat.c
926
(void)printf("%s", hdr);
usr.sbin/rad/control.c
258
switch (imsg.hdr.type) {
usr.sbin/rad/control.c
260
frontend_imsg_compose_main(imsg.hdr.type, 0, NULL, 0);
usr.sbin/rad/control.c
267
frontend_imsg_compose_main(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/rad/control.c
269
frontend_imsg_compose_engine(imsg.hdr.type,
usr.sbin/rad/control.c
270
imsg.hdr.pid, imsg.data, IMSG_DATA_SIZE(imsg));
usr.sbin/rad/control.c
277
imsg.hdr.type);
usr.sbin/rad/control.c
291
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
usr.sbin/rad/control.c
294
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
usr.sbin/rad/engine.c
219
switch (imsg.hdr.type) {
usr.sbin/rad/engine.c
250
imsg.hdr.type);
usr.sbin/rad/engine.c
303
switch (imsg.hdr.type) {
usr.sbin/rad/engine.c
447
imsg.hdr.type);
usr.sbin/rad/engine.c
466
struct icmp6_hdr *hdr;
usr.sbin/rad/engine.c
468
hdr = (struct icmp6_hdr *) ra_rs->packet;
usr.sbin/rad/engine.c
470
switch (hdr->icmp6_type) {
usr.sbin/rad/engine.c
479
hdr->icmp6_type, inet_ntop(AF_INET6, &ra_rs->from.sin6_addr,
usr.sbin/rad/frontend.c
345
switch (imsg.hdr.type) {
usr.sbin/rad/frontend.c
523
imsg.hdr.type);
usr.sbin/rad/frontend.c
569
switch (imsg.hdr.type) {
usr.sbin/rad/frontend.c
592
imsg.hdr.type);
usr.sbin/rad/rad.c
408
switch (imsg.hdr.type) {
usr.sbin/rad/rad.c
432
imsg.hdr.type);
usr.sbin/rad/rad.c
478
switch (imsg.hdr.type) {
usr.sbin/rad/rad.c
481
imsg.hdr.type);
usr.sbin/rad/rad.h
38
#define IMSG_DATA_SIZE(imsg) ((imsg).hdr.len - IMSG_HEADER_SIZE)
usr.sbin/radiusctl/radiusctl.c
634
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusctl/radiusctl.c
635
switch (imsg->hdr.type) {
usr.sbin/radiusd/control.c
281
datalen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/control.c
282
switch (imsg.hdr.type) {
usr.sbin/radiusd/control.c
284
if (imsg.hdr.type >= IMSG_RADIUSD_MODULE_MIN) {
usr.sbin/radiusd/control.c
288
imsg.hdr.type);
usr.sbin/radiusd/control.c
295
modulename, imsg.hdr.type, c->id, -1, -1,
usr.sbin/radiusd/control.c
309
"error handling imsg %d", imsg.hdr.type);
usr.sbin/radiusd/control.c
322
if ((c = control_connbyid(imsg->hdr.peerid)) == NULL)
usr.sbin/radiusd/control.c
325
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
usr.sbin/radiusd/control.c
326
-1, imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE));
usr.sbin/radiusd/radiusd.c
1214
if (imsg.hdr.type != IMSG_RADIUSD_MODULE_LOAD) {
usr.sbin/radiusd/radiusd.c
1217
name, imsg.hdr.type);
usr.sbin/radiusd/radiusd.c
1258
datalen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd.c
1259
if (imsg.hdr.type != IMSG_OK) {
usr.sbin/radiusd/radiusd.c
1260
if (imsg.hdr.type == IMSG_NG) {
usr.sbin/radiusd/radiusd.c
1270
imsg.hdr.type);
usr.sbin/radiusd/radiusd.c
1417
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd.c
1418
switch (imsg->hdr.type) {
usr.sbin/radiusd/radiusd.c
1433
msgtypestr = (imsg->hdr.type == IMSG_RADIUSD_MODULE_USERPASS_OK)
usr.sbin/radiusd/radiusd.c
1448
(imsg->hdr.type == IMSG_RADIUSD_MODULE_USERPASS_OK)
usr.sbin/radiusd/radiusd.c
1471
switch (imsg->hdr.type) {
usr.sbin/radiusd/radiusd.c
1500
imsg->hdr.type, typestr)) != NULL) {
usr.sbin/radiusd/radiusd.c
1512
switch (imsg->hdr.type) {
usr.sbin/radiusd/radiusd.c
1586
control_conn_bind(imsg->hdr.peerid, module->name);
usr.sbin/radiusd/radiusd.c
1589
if (imsg->hdr.peerid != 0)
usr.sbin/radiusd/radiusd.c
1593
imsg->hdr.type, module->name));
usr.sbin/radiusd/radiusd.c
1604
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd.c
1712
if (imsg.hdr.type == IMSG_NG) {
usr.sbin/radiusd/radiusd.c
1716
} else if (imsg.hdr.type != IMSG_OK) {
usr.sbin/radiusd/radiusd.c
1719
"unknown imsg type=%d", module->name, imsg.hdr.type);
usr.sbin/radiusd/radiusd_bsdauth.c
130
datalen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd_bsdauth.c
131
switch (imsg.hdr.type) {
usr.sbin/radiusd/radiusd_bsdauth.c
365
if (imsg.hdr.type != IMSG_BSDAUTH_OK) {
usr.sbin/radiusd/radiusd_bsdauth.c
391
if (imsg.hdr.type == IMSG_BSDAUTH_OK)
usr.sbin/radiusd/radiusd_file.c
138
if (imsg.hdr.type != IMSG_RADIUSD_FILE_PARAMS)
usr.sbin/radiusd/radiusd_file.c
140
imsg.hdr.type);
usr.sbin/radiusd/radiusd_file.c
141
datalen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd_file.c
194
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd_file.c
195
switch (imsg->hdr.type) {
usr.sbin/radiusd/radiusd_file.c
374
datalen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd_file.c
375
if (imsg.hdr.type == IMSG_RADIUSD_FILE_USERINFO) {
usr.sbin/radiusd/radiusd_ipcp.c
584
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd_ipcp.c
585
switch (imsg->hdr.type) {
usr.sbin/radiusd/radiusd_ipcp.c
588
if (ctrl->peerid == imsg->hdr.peerid) {
usr.sbin/radiusd/radiusd_ipcp.c
602
ctrl->peerid = imsg->hdr.peerid;
usr.sbin/radiusd/radiusd_ipcp.c
605
imsg->hdr.peerid, 0, -1, NULL, 0);
usr.sbin/radiusd/radiusd_ipcp.c
606
if (imsg->hdr.type == IMSG_RADIUSD_MODULE_IPCP_MONITOR)
usr.sbin/radiusd/radiusd_ipcp.c
628
imsg->hdr.peerid, 0, -1,
usr.sbin/radiusd/radiusd_ipcp.c
636
imsg->hdr.peerid, 0, -1, dump, offsetof(
usr.sbin/radiusd/radiusd_ipcp.c
645
(imsg->hdr.type ==
usr.sbin/radiusd/radiusd_ipcp.c
663
(imsg->hdr.type ==
usr.sbin/radiusd/radiusd_ipcp.c
667
imsg->hdr.peerid, 0, -1, cause, strlen(cause) + 1);
usr.sbin/radiusd/radiusd_ipcp.c
668
} else if (imsg->hdr.type == IMSG_RADIUSD_MODULE_IPCP_DELETE) {
usr.sbin/radiusd/radiusd_ipcp.c
672
imsg->hdr.peerid, 0, -1, NULL, 0);
usr.sbin/radiusd/radiusd_ipcp.c
686
client->peerid = imsg->hdr.peerid;
usr.sbin/radiusd/radiusd_module.c
389
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
usr.sbin/radiusd/radiusd_module.c
390
switch (imsg->hdr.type) {
usr.sbin/radiusd/radiusd_module.c
482
if (imsg->hdr.type == IMSG_RADIUSD_MODULE_ACCSREQ) {
usr.sbin/radiusd/radiusd_module.c
489
} else if (imsg->hdr.type == IMSG_RADIUSD_MODULE_NEXTRES) {
usr.sbin/radiusd/radiusd_module.c
496
} else if (imsg->hdr.type == IMSG_RADIUSD_MODULE_ACCTREQ) {
usr.sbin/radiusd/radiusd_module.c
503
} else if (imsg->hdr.type == IMSG_RADIUSD_MODULE_REQDECO) {
usr.sbin/radiusd/radiusd_module.c
516
if (imsg->hdr.type == IMSG_RADIUSD_MODULE_RESDECO0_REQ)
usr.sbin/radiusd/radiusd_module.c
561
if (imsg->hdr.type == IMSG_RADIUSD_MODULE_ACCSREQ)
usr.sbin/radiusd/radiusd_module.c
564
else if (imsg->hdr.type == IMSG_RADIUSD_MODULE_NEXTRES)
usr.sbin/radiusd/radiusd_module.c
567
else if (imsg->hdr.type == IMSG_RADIUSD_MODULE_REQDECO)
usr.sbin/radiusd/radiusd_module.c
570
else if (imsg->hdr.type == IMSG_RADIUSD_MODULE_RESDECO0_REQ) {
usr.sbin/radiusd/radiusd_module.c
586
} else if (imsg->hdr.type == IMSG_RADIUSD_MODULE_RESDECO) {
usr.sbin/radiusd/radiusd_module.c
602
if (imsg->hdr.type >= IMSG_RADIUSD_MODULE_MIN) {
usr.sbin/radiusd/radiusd_module.c
608
imsg->hdr.peerid, 0, -1, msg, sizeof(msg));
usr.sbin/relayctl/relayctl.c
331
imn = monitor_lookup(imsg->hdr.type);
usr.sbin/relayctl/relayctl.c
333
imsg->hdr.type, imsg->hdr.len, imsg->hdr.peerid, imsg->hdr.pid);
usr.sbin/relayctl/relayctl.c
355
switch (imsg->hdr.type) {
usr.sbin/relayctl/relayctl.c
441
errx(1, "wrong message in summary: %u", imsg->hdr.type);
usr.sbin/relayctl/relayctl.c
454
switch (imsg->hdr.type) {
usr.sbin/relayctl/relayctl.c
461
imsg->hdr.peerid, con->se_id,
usr.sbin/relayctl/relayctl.c
478
errx(1, "wrong message in session: %u", imsg->hdr.type);
usr.sbin/relayctl/relayctl.c
487
switch (imsg->hdr.type) {
usr.sbin/relayctl/relayctl.c
496
errx(1, "wrong message in summary: %u", imsg->hdr.type);
usr.sbin/relayd/ca.c
196
switch (imsg->hdr.type) {
usr.sbin/relayd/ca.c
229
switch (imsg->hdr.type) {
usr.sbin/relayd/ca.c
247
cko.cko_proc, imsg->hdr.type, -1, -1, iov,
usr.sbin/relayd/ca.c
263
switch (imsg->hdr.type) {
usr.sbin/relayd/ca.c
288
imsg->hdr.type, -1, -1, iov, c) == -1)
usr.sbin/relayd/ca.c
404
if (imsg.hdr.type != cmd)
usr.sbin/relayd/control.c
265
__func__, imsg.hdr.type);
usr.sbin/relayd/control.c
271
switch (imsg.hdr.type) {
usr.sbin/relayd/control.c
279
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(id))
usr.sbin/relayd/control.c
293
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(id))
usr.sbin/relayd/control.c
307
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(id))
usr.sbin/relayd/control.c
321
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(id))
usr.sbin/relayd/control.c
335
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(id))
usr.sbin/relayd/control.c
349
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(id))
usr.sbin/relayd/control.c
398
__func__, imsg.hdr.type);
usr.sbin/relayd/control.c
414
imsg_compose_event(&c->iev, imsg->hdr.type,
usr.sbin/relayd/control.c
416
imsg->hdr.len - IMSG_HEADER_SIZE);
usr.sbin/relayd/hce.c
292
switch (imsg->hdr.type) {
usr.sbin/relayd/hce.c
345
switch (imsg->hdr.type) {
usr.sbin/relayd/hce.c
376
switch (imsg->hdr.type) {
usr.sbin/relayd/pfe.c
129
switch (imsg->hdr.type) {
usr.sbin/relayd/pfe.c
202
switch (imsg->hdr.type) {
usr.sbin/relayd/pfe.c
263
switch (imsg->hdr.type) {
usr.sbin/relayd/pfe.c
736
imsg.hdr.type = IMSG_CTL_TABLE_CHANGED;
usr.sbin/relayd/pfe.c
737
imsg.hdr.len = sizeof(id) + IMSG_HEADER_SIZE;
usr.sbin/relayd/pfe.c
749
imsg.hdr.type = IMSG_CTL_PULL_RULESET;
usr.sbin/relayd/pfe.c
750
imsg.hdr.len = sizeof(id) + IMSG_HEADER_SIZE;
usr.sbin/relayd/pfe.c
759
imsg.hdr.type = IMSG_CTL_PUSH_RULESET;
usr.sbin/relayd/pfe.c
760
imsg.hdr.len = sizeof(id) + IMSG_HEADER_SIZE;
usr.sbin/relayd/pfe_route.c
127
struct rt_msghdr hdr;
usr.sbin/relayd/pfe_route.c
133
bzero(&hdr, sizeof(hdr));
usr.sbin/relayd/pfe_route.c
134
hdr.rtm_msglen = sizeof(hdr);
usr.sbin/relayd/pfe_route.c
135
hdr.rtm_version = RTM_VERSION;
usr.sbin/relayd/pfe_route.c
136
hdr.rtm_type = HOST_ISUP(crt->up) ? RTM_ADD : RTM_DELETE;
usr.sbin/relayd/pfe_route.c
137
hdr.rtm_flags = RTF_STATIC | RTF_GATEWAY | RTF_MPATH;
usr.sbin/relayd/pfe_route.c
138
hdr.rtm_seq = env->sc_rtseq++;
usr.sbin/relayd/pfe_route.c
139
hdr.rtm_addrs = RTA_DST | RTA_GATEWAY | RTA_NETMASK;
usr.sbin/relayd/pfe_route.c
140
hdr.rtm_tableid = crt->rt.rtable;
usr.sbin/relayd/pfe_route.c
141
hdr.rtm_priority = crt->host.priority;
usr.sbin/relayd/pfe_route.c
143
iov[iovcnt].iov_base = &hdr;
usr.sbin/relayd/pfe_route.c
144
iov[iovcnt++].iov_len = sizeof(hdr);
usr.sbin/relayd/pfe_route.c
153
hdr.rtm_msglen += ROUNDUP(dst.ss_len);
usr.sbin/relayd/pfe_route.c
157
hdr.rtm_msglen += ROUNDUP(gw.ss_len);
usr.sbin/relayd/pfe_route.c
161
hdr.rtm_msglen += ROUNDUP(mask.ss_len);
usr.sbin/relayd/pfe_route.c
169
hdr.rtm_msglen += ROUNDUP(label.ss_len);
usr.sbin/relayd/pfe_route.c
170
hdr.rtm_addrs |= RTA_LABEL;
usr.sbin/relayd/pfe_route.c
178
if (hdr.rtm_type == RTM_ADD) {
usr.sbin/relayd/pfe_route.c
179
hdr.rtm_type = RTM_CHANGE;
usr.sbin/relayd/pfe_route.c
181
} else if (hdr.rtm_type == RTM_DELETE) {
usr.sbin/relayd/proc.c
641
imsg.hdr.type, imsg.hdr.peerid, p->p_title, imsg.hdr.pid);
usr.sbin/relayd/proc.c
656
switch (imsg.hdr.type) {
usr.sbin/relayd/proc.c
672
imsg.hdr.type, imsg.hdr.peerid,
usr.sbin/relayd/proc.c
673
p->p_title, imsg.hdr.pid);
usr.sbin/relayd/proc.c
795
return (proc_compose_imsg(ps, id, n, imsg->hdr.type,
usr.sbin/relayd/proc.c
796
imsg->hdr.peerid, -1, imsg->data, IMSG_DATA_SIZE(imsg)));
usr.sbin/relayd/proxy_protocol.c
103
bcopy(PROXY_V2_SIG, hdr.sig, sizeof(hdr.sig));
usr.sbin/relayd/proxy_protocol.c
104
hdr.ver_cmd = 0x20 | PROXY_V2_CMD_PROXY;
usr.sbin/relayd/proxy_protocol.c
108
hdr.fam = (conf->flags & F_UDP) ?
usr.sbin/relayd/proxy_protocol.c
119
hdr.fam = (conf->flags & F_UDP) ?
usr.sbin/relayd/proxy_protocol.c
130
hdr.fam = 0x00;
usr.sbin/relayd/proxy_protocol.c
135
hdr.len = htons(len);
usr.sbin/relayd/proxy_protocol.c
137
if ((error = evbuffer_add(dstout, &hdr, sizeof(hdr))) != 0)
usr.sbin/relayd/proxy_protocol.c
94
struct proxy_v2_hdr hdr;
usr.sbin/relayd/relay.c
1871
switch (imsg->hdr.type) {
usr.sbin/relayd/relay.c
1980
switch (imsg->hdr.type) {
usr.sbin/relayd/relay.c
1984
imsg->hdr.type == IMSG_CA_PRIVENC ? "enc" : "dec");
usr.sbin/relayd/relay.c
2000
switch (imsg->hdr.type) {
usr.sbin/relayd/relay.c
2068
switch (imsg->hdr.type) {
usr.sbin/relayd/relay_http.c
1291
relay_writeheader_kv(struct ctl_relay_event *dst, struct kv *hdr)
usr.sbin/relayd/relay_http.c
1296
if (hdr->kv_flags & KV_FLAG_INVALID)
usr.sbin/relayd/relay_http.c
1300
if (hdr->kv_parent != NULL && hdr->kv_parent->kv_key != NULL)
usr.sbin/relayd/relay_http.c
1301
key = hdr->kv_parent->kv_key;
usr.sbin/relayd/relay_http.c
1303
key = hdr->kv_key;
usr.sbin/relayd/relay_http.c
1305
ptr = hdr->kv_value;
usr.sbin/relayd/relay_http.c
1313
hdr->kv_value == NULL ? "" : hdr->kv_value);
usr.sbin/relayd/relay_http.c
1322
struct kv *hdr, *kv;
usr.sbin/relayd/relay_http.c
1325
RB_FOREACH(hdr, kvtree, &desc->http_headers) {
usr.sbin/relayd/relay_http.c
1326
if (relay_writeheader_kv(dst, hdr) == -1)
usr.sbin/relayd/relay_http.c
1328
TAILQ_FOREACH(kv, &hdr->kv_children, kv_entry) {
usr.sbin/relayd/relay_http.c
195
struct kv *hdr = NULL;
usr.sbin/relayd/relay_http.c
409
if ((hdr = kv_add(&desc->http_headers, key,
usr.sbin/relayd/relay_http.c
414
desc->http_lastheader = hdr;
usr.sbin/relayd/relay_udp.c
378
struct relay_dnshdr *hdr = (struct relay_dnshdr *)buf;
usr.sbin/relayd/relay_udp.c
381
if (len < sizeof(*hdr)) {
usr.sbin/relayd/relay_udp.c
390
hdr->dns_flags0 & DNS_F0_QR ? "response" : "request",
usr.sbin/relayd/relay_udp.c
391
ntohs(hdr->dns_id),
usr.sbin/relayd/relay_udp.c
392
hdr->dns_flags0,
usr.sbin/relayd/relay_udp.c
393
hdr->dns_flags1,
usr.sbin/relayd/relay_udp.c
394
ntohs(hdr->dns_qdcount),
usr.sbin/relayd/relay_udp.c
395
ntohs(hdr->dns_ancount),
usr.sbin/relayd/relay_udp.c
396
ntohs(hdr->dns_nscount),
usr.sbin/relayd/relay_udp.c
397
ntohs(hdr->dns_arcount));
usr.sbin/relayd/relay_udp.c
404
struct relay_dnshdr *hdr = (struct relay_dnshdr *)buf;
usr.sbin/relayd/relay_udp.c
410
if (len < sizeof(*hdr))
usr.sbin/relayd/relay_udp.c
413
key = ntohs(hdr->dns_id);
usr.sbin/relayd/relay_udp.c
419
if ((hdr->dns_flags0 & DNS_F0_QR) == 0) {
usr.sbin/relayd/relay_udp.c
462
struct relay_dnshdr *hdr;
usr.sbin/relayd/relay_udp.c
486
hdr = (struct relay_dnshdr *)buf;
usr.sbin/relayd/relay_udp.c
487
hdr->dns_id = htons(priv->dp_inkey);
usr.sbin/relayd/relay_udp.c
516
struct relay_dnshdr *hdr;
usr.sbin/relayd/relay_udp.c
528
hdr = (struct relay_dnshdr *)buf;
usr.sbin/relayd/relay_udp.c
529
hdr->dns_id = htons(priv->dp_outkey);
usr.sbin/relayd/relayd.c
409
switch (imsg->hdr.type) {
usr.sbin/relayd/relayd.c
458
switch (imsg->hdr.type) {
usr.sbin/relayd/relayd.c
485
switch (imsg->hdr.type) {
usr.sbin/relayd/relayd.c
520
switch (imsg->hdr.type) {
usr.sbin/relayd/relayd.h
934
#define IMSG_DATA_SIZE(imsg) ((imsg)->hdr.len - IMSG_HEADER_SIZE)
usr.sbin/ripctl/ripctl.c
315
switch (imsg->hdr.type) {
usr.sbin/ripctl/ripctl.c
345
switch (imsg->hdr.type) {
usr.sbin/ripctl/ripctl.c
374
switch (imsg->hdr.type) {
usr.sbin/ripctl/ripctl.c
410
switch (imsg->hdr.type) {
usr.sbin/ripctl/ripctl.c
412
if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct kroute))
usr.sbin/ripctl/ripctl.c
467
switch (imsg->hdr.type) {
usr.sbin/ripd/control.c
248
switch (imsg.hdr.type) {
usr.sbin/ripd/control.c
250
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(ifidx))
usr.sbin/ripd/control.c
260
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ripd/control.c
261
ripe_imsg_compose_rde(imsg.hdr.type, 0,
usr.sbin/ripd/control.c
262
imsg.hdr.pid, imsg.data, imsg.hdr.len -
usr.sbin/ripd/control.c
271
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ripd/control.c
272
ripe_imsg_compose_parent(imsg.hdr.type,
usr.sbin/ripd/control.c
273
imsg.hdr.pid, imsg.data,
usr.sbin/ripd/control.c
274
imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ripd/control.c
279
c->iev.ibuf.pid = imsg.hdr.pid;
usr.sbin/ripd/control.c
280
ripe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
usr.sbin/ripd/control.c
283
if (imsg.hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ripd/control.c
288
ripe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
usr.sbin/ripd/control.c
289
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ripd/control.c
290
ripe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
usr.sbin/ripd/control.c
291
imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
usr.sbin/ripd/control.c
298
"error handling imsg %d", imsg.hdr.type);
usr.sbin/ripd/control.c
312
if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
usr.sbin/ripd/control.c
315
return (imsg_compose_event(&c->iev, imsg->hdr.type, 0, imsg->hdr.pid,
usr.sbin/ripd/control.c
316
-1, imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE));
usr.sbin/ripd/kroute.c
288
switch (imsg->hdr.type) {
usr.sbin/ripd/kroute.c
290
if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(flags)) {
usr.sbin/ripd/kroute.c
298
imsg->hdr.pid, &kr->r, sizeof(kr->r));
usr.sbin/ripd/kroute.c
302
if (imsg->hdr.len != IMSG_HEADER_SIZE +
usr.sbin/ripd/kroute.c
311
main_imsg_compose_ripe(IMSG_CTL_KROUTE, imsg->hdr.pid,
usr.sbin/ripd/kroute.c
319
main_imsg_compose_ripe(IMSG_CTL_END, imsg->hdr.pid, NULL, 0);
usr.sbin/ripd/kroute.c
724
struct rt_msghdr hdr;
usr.sbin/ripd/kroute.c
734
bzero(&hdr, sizeof(hdr));
usr.sbin/ripd/kroute.c
735
hdr.rtm_version = RTM_VERSION;
usr.sbin/ripd/kroute.c
736
hdr.rtm_type = action;
usr.sbin/ripd/kroute.c
737
hdr.rtm_priority = kr_state.fib_prio;
usr.sbin/ripd/kroute.c
738
hdr.rtm_tableid = kr_state.rdomain;
usr.sbin/ripd/kroute.c
740
hdr.rtm_fmask = RTF_REJECT|RTF_BLACKHOLE;
usr.sbin/ripd/kroute.c
741
hdr.rtm_seq = kr_state.rtseq++; /* overflow doesn't matter */
usr.sbin/ripd/kroute.c
742
hdr.rtm_msglen = sizeof(hdr);
usr.sbin/ripd/kroute.c
744
iov[iovcnt].iov_base = &hdr;
usr.sbin/ripd/kroute.c
745
iov[iovcnt++].iov_len = sizeof(hdr);
usr.sbin/ripd/kroute.c
752
hdr.rtm_addrs |= RTA_DST;
usr.sbin/ripd/kroute.c
753
hdr.rtm_msglen += sizeof(prefix);
usr.sbin/ripd/kroute.c
764
hdr.rtm_flags |= RTF_GATEWAY;
usr.sbin/ripd/kroute.c
765
hdr.rtm_addrs |= RTA_GATEWAY;
usr.sbin/ripd/kroute.c
766
hdr.rtm_msglen += sizeof(nexthop);
usr.sbin/ripd/kroute.c
777
hdr.rtm_addrs |= RTA_NETMASK;
usr.sbin/ripd/kroute.c
778
hdr.rtm_msglen += sizeof(mask);
usr.sbin/ripd/kroute.c
787
if (hdr.rtm_type == RTM_CHANGE) {
usr.sbin/ripd/kroute.c
788
hdr.rtm_type = RTM_ADD;
usr.sbin/ripd/kroute.c
790
} else if (hdr.rtm_type == RTM_DELETE) {
usr.sbin/ripd/kroute.c
798
hdr.rtm_type, inet_ntoa(kroute->prefix),
usr.sbin/ripd/packet.c
84
struct cmsghdr hdr;
usr.sbin/ripd/rde.c
222
switch (imsg.hdr.type) {
usr.sbin/ripd/rde.c
224
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rr))
usr.sbin/ripd/rde.c
246
rt_snap(imsg.hdr.peerid);
usr.sbin/ripd/rde.c
248
imsg.hdr.peerid, 0, NULL, 0);
usr.sbin/ripd/rde.c
251
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rr))
usr.sbin/ripd/rde.c
258
imsg.hdr.peerid, 0, &rr, sizeof(rr));
usr.sbin/ripd/rde.c
263
imsg.hdr.peerid, 0, NULL, 0);
usr.sbin/ripd/rde.c
266
rt_dump(imsg.hdr.pid);
usr.sbin/ripd/rde.c
269
imsg.hdr.pid, -1, NULL, 0);
usr.sbin/ripd/rde.c
279
imsg.hdr.type);
usr.sbin/ripd/rde.c
325
switch (imsg.hdr.type) {
usr.sbin/ripd/rde.c
327
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(kr)) {
usr.sbin/ripd/rde.c
338
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(kr)) {
usr.sbin/ripd/rde.c
350
imsg.hdr.type);
usr.sbin/ripd/ripd.c
340
switch (imsg.hdr.type) {
usr.sbin/ripd/ripd.c
355
if (imsg.hdr.len == IMSG_HEADER_SIZE)
usr.sbin/ripd/ripd.c
356
kr_ifinfo(NULL, imsg.hdr.pid);
usr.sbin/ripd/ripd.c
357
else if (imsg.hdr.len == IMSG_HEADER_SIZE + IFNAMSIZ)
usr.sbin/ripd/ripd.c
358
kr_ifinfo(imsg.data, imsg.hdr.pid);
usr.sbin/ripd/ripd.c
363
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(dmsg))
usr.sbin/ripd/ripd.c
375
imsg.hdr.type);
usr.sbin/ripd/ripd.c
420
switch (imsg.hdr.type) {
usr.sbin/ripd/ripd.c
433
imsg.hdr.type);
usr.sbin/ripd/ripe.c
256
switch (imsg.hdr.type) {
usr.sbin/ripd/ripe.c
258
if (imsg.hdr.len - IMSG_HEADER_SIZE !=
usr.sbin/ripd/ripe.c
290
imsg.hdr.type);
usr.sbin/ripd/ripe.c
337
switch (imsg.hdr.type) {
usr.sbin/ripd/ripe.c
339
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(*rr))
usr.sbin/ripd/ripe.c
347
if (imsg.hdr.peerid != 0) {
usr.sbin/ripd/ripe.c
348
if ((nbr = nbr_find_peerid(imsg.hdr.peerid)) ==
usr.sbin/ripd/ripe.c
351
imsg.hdr.peerid);
usr.sbin/ripd/ripe.c
364
if (imsg.hdr.peerid != 0) {
usr.sbin/ripd/ripe.c
365
if ((nbr = nbr_find_peerid(imsg.hdr.peerid)) ==
usr.sbin/ripd/ripe.c
368
imsg.hdr.peerid);
usr.sbin/ripd/ripe.c
380
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(*rr))
usr.sbin/ripd/ripe.c
388
if (imsg.hdr.peerid == 0) {
usr.sbin/ripd/ripe.c
395
if ((nbr = nbr_find_peerid(imsg.hdr.peerid)) == NULL) {
usr.sbin/ripd/ripe.c
397
imsg.hdr.peerid);
usr.sbin/ripd/ripe.c
405
if (imsg.hdr.peerid == 0) {
usr.sbin/ripd/ripe.c
414
if ((nbr = nbr_find_peerid(imsg.hdr.peerid)) == NULL) {
usr.sbin/ripd/ripe.c
416
imsg.hdr.peerid);
usr.sbin/ripd/ripe.c
423
if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(struct
usr.sbin/ripd/ripe.c
441
imsg.hdr.type);
usr.sbin/route6d/route6d.c
887
struct cmsghdr hdr;
usr.sbin/route6d/route6d.c
958
struct cmsghdr hdr;
usr.sbin/sasyncd/pfkey.c
317
struct sadb_msg hdr, *msg;
usr.sbin/sasyncd/pfkey.c
322
if (recv(fd, &hdr, sizeof hdr, MSG_PEEK) != sizeof hdr) {
usr.sbin/sasyncd/pfkey.c
326
datalen = hdr.sadb_msg_len * CHUNK;
usr.sbin/sasyncd/pfkey.c
327
data = reallocarray(NULL, hdr.sadb_msg_len, CHUNK);
usr.sbin/slaacctl/slaacctl.c
190
switch (imsg->hdr.type) {
usr.sbin/smtpd/ca.c
192
switch (imsg->hdr.type) {
usr.sbin/smtpd/ca.c
233
switch (imsg->hdr.type) {
usr.sbin/smtpd/ca.c
244
m_create(p, imsg->hdr.type, 0, 0, -1);
usr.sbin/smtpd/ca.c
271
m_create(p, imsg->hdr.type, 0, 0, -1);
usr.sbin/smtpd/ca.c
282
fatalx("ca_imsg: unexpected %s imsg", imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/ca.c
339
switch (imsg.hdr.type) {
usr.sbin/smtpd/ca.c
446
switch (imsg.hdr.type) {
usr.sbin/smtpd/control.c
102
imsg->hdr.peerid = 0;
usr.sbin/smtpd/control.c
107
c = tree_get(&ctl_conns, imsg->hdr.peerid);
usr.sbin/smtpd/control.c
154
imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/control.c
431
if (imsg->hdr.peerid != IMSG_VERSION) {
usr.sbin/smtpd/control.c
436
switch (imsg->hdr.type) {
usr.sbin/smtpd/control.c
471
if (imsg->hdr.len - IMSG_HEADER_SIZE != sizeof(v))
usr.sbin/smtpd/control.c
486
if (imsg->hdr.len - IMSG_HEADER_SIZE != sizeof(v))
usr.sbin/smtpd/control.c
502
if (imsg->hdr.len - IMSG_HEADER_SIZE != sizeof(v))
usr.sbin/smtpd/control.c
518
if (imsg->hdr.len - IMSG_HEADER_SIZE != sizeof(v))
usr.sbin/smtpd/control.c
533
if (imsg->hdr.len - IMSG_HEADER_SIZE != sizeof(v))
usr.sbin/smtpd/control.c
548
imsg->hdr.peerid = c->id;
usr.sbin/smtpd/control.c
598
imsg->hdr.peerid = c->id;
usr.sbin/smtpd/control.c
656
imsg->data, imsg->hdr.len - sizeof(imsg->hdr));
usr.sbin/smtpd/control.c
663
imsg->data, imsg->hdr.len - sizeof(imsg->hdr));
usr.sbin/smtpd/control.c
674
imsg->hdr.peerid = c->id;
usr.sbin/smtpd/control.c
691
if (imsg->hdr.len - IMSG_HEADER_SIZE <= sizeof(ss))
usr.sbin/smtpd/control.c
694
m_create(p_dispatcher, imsg->hdr.type, c->id, 0, -1);
usr.sbin/smtpd/control.c
704
imsg->hdr.peerid = c->id;
usr.sbin/smtpd/control.c
712
imsg->hdr.peerid = c->id;
usr.sbin/smtpd/control.c
725
imsg->hdr.peerid = c->id;
usr.sbin/smtpd/control.c
733
if (imsg->hdr.len - IMSG_HEADER_SIZE != sizeof evpid)
usr.sbin/smtpd/control.c
737
m_create(p_queue, imsg->hdr.type, c->id, 0, -1);
usr.sbin/smtpd/control.c
746
if (imsg->hdr.len - IMSG_HEADER_SIZE != sizeof msgid)
usr.sbin/smtpd/control.c
750
m_create(p_queue, imsg->hdr.type, c->id, 0, -1);
usr.sbin/smtpd/control.c
758
imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/control.c
87
switch (imsg->hdr.type) {
usr.sbin/smtpd/control.c
99
c = tree_get(&ctl_conns, imsg->hdr.peerid);
usr.sbin/smtpd/dispatcher.c
120
fatalx("session_imsg: unexpected %s imsg", imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/dispatcher.c
41
switch (imsg->hdr.type) {
usr.sbin/smtpd/dns.c
112
s->type = imsg->hdr.type;
usr.sbin/smtpd/enqueue.c
801
switch (imsg.hdr.type) {
usr.sbin/smtpd/lka.c
313
imsg->hdr.type = IMSG_SMTP_AUTHENTICATE;
usr.sbin/smtpd/lka.c
342
imsg->hdr.peerid, 0, -1, NULL, 0);
usr.sbin/smtpd/lka.c
625
fatalx("lka_imsg: unexpected %s imsg", imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/lka.c
89
switch (imsg->hdr.type) {
usr.sbin/smtpd/mda.c
121
switch (imsg->hdr.type) {
usr.sbin/smtpd/mda.c
373
fatalx("mda_imsg: unexpected %s imsg", imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/mproc.c
208
imsg_compose(&p->imsgbuf, imsg->hdr.type, imsg->hdr.peerid,
usr.sbin/smtpd/mproc.c
209
imsg->hdr.pid, imsg_get_fd(imsg), imsg->data,
usr.sbin/smtpd/mproc.c
210
imsg->hdr.len - sizeof(imsg->hdr));
usr.sbin/smtpd/mproc.c
212
if (imsg->hdr.type != IMSG_STAT_DECREMENT &&
usr.sbin/smtpd/mproc.c
213
imsg->hdr.type != IMSG_STAT_INCREMENT)
usr.sbin/smtpd/mproc.c
217
imsg->hdr.len - sizeof(imsg->hdr),
usr.sbin/smtpd/mproc.c
218
imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/mproc.c
350
imsg_to_str(current->hdr.type),
usr.sbin/smtpd/mproc.c
360
m->end = m->pos + (imsg->hdr.len - sizeof(imsg->hdr));
usr.sbin/smtpd/mta.c
197
switch (imsg->hdr.type) {
usr.sbin/smtpd/mta.c
351
imsg->hdr.peerid, 0, -1,
usr.sbin/smtpd/mta.c
354
m_compose(p, IMSG_CTL_MTA_SHOW_HOSTS, imsg->hdr.peerid,
usr.sbin/smtpd/mta.c
361
mta_relay_show(relay, p, imsg->hdr.peerid, t);
usr.sbin/smtpd/mta.c
362
m_compose(p, IMSG_CTL_MTA_SHOW_RELAYS, imsg->hdr.peerid,
usr.sbin/smtpd/mta.c
382
imsg->hdr.peerid, 0, -1,
usr.sbin/smtpd/mta.c
385
m_compose(p, IMSG_CTL_MTA_SHOW_ROUTES, imsg->hdr.peerid,
usr.sbin/smtpd/mta.c
398
imsg->hdr.peerid, 0, -1,
usr.sbin/smtpd/mta.c
402
imsg->hdr.peerid,
usr.sbin/smtpd/mta.c
420
m_compose(p, IMSG_CTL_OK, imsg->hdr.peerid, 0, -1, NULL, 0);
usr.sbin/smtpd/mta.c
437
m_compose(p, IMSG_CTL_OK, imsg->hdr.peerid, 0, -1, NULL, 0);
usr.sbin/smtpd/mta.c
446
imsg->hdr.peerid, 0, -1, buf, strlen(buf) + 1);
usr.sbin/smtpd/mta.c
448
m_compose(p, IMSG_CTL_MTA_SHOW_BLOCK, imsg->hdr.peerid,
usr.sbin/smtpd/mta.c
453
fatalx("mta_imsg: unexpected %s imsg", imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/mta_session.c
275
switch (imsg->hdr.type) {
usr.sbin/smtpd/mta_session.c
348
imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/proxy.c
157
struct proxy_hdr_v2 *h = &s->hdr;
usr.sbin/smtpd/proxy.c
167
if (s->header_len < sizeof(s->hdr)) {
usr.sbin/smtpd/proxy.c
169
off = sizeof(s->hdr) - s->header_len;
usr.sbin/smtpd/proxy.c
171
memcpy((uint8_t *) &s->hdr + s->header_len, buf, off);
usr.sbin/smtpd/proxy.c
178
if (s->header_len < sizeof(s->hdr)) {
usr.sbin/smtpd/proxy.c
276
struct proxy_hdr_v2 *h = &s->hdr;
usr.sbin/smtpd/proxy.c
334
switch (s->hdr.fam) {
usr.sbin/smtpd/proxy.c
93
struct proxy_hdr_v2 hdr;
usr.sbin/smtpd/queue.c
273
if (imsg->hdr.len == sizeof imsg->hdr) {
usr.sbin/smtpd/queue.c
302
imsg->hdr.peerid, 0, -1);
usr.sbin/smtpd/queue.c
316
m_create(p, imsg->hdr.type, 0, 0, fd);
usr.sbin/smtpd/queue.c
325
if (imsg->hdr.type == IMSG_MTA_DELIVERY_OK)
usr.sbin/smtpd/queue.c
336
if (imsg->hdr.type == IMSG_MDA_DELIVERY_OK)
usr.sbin/smtpd/queue.c
338
else if (imsg->hdr.type == IMSG_MTA_DELIVERY_OK &&
usr.sbin/smtpd/queue.c
428
imsg->hdr.type = IMSG_QUEUE_HOLDQ_HOLD;
usr.sbin/smtpd/queue.c
433
imsg->hdr.type = IMSG_QUEUE_ENVELOPE_SCHEDULE;
usr.sbin/smtpd/queue.c
444
if (imsg->hdr.type == IMSG_MTA_HOLDQ_RELEASE)
usr.sbin/smtpd/queue.c
482
m_compose(p_control, imsg->hdr.type,
usr.sbin/smtpd/queue.c
483
imsg->hdr.peerid, 0, -1,
usr.sbin/smtpd/queue.c
498
m_compose(p_control, imsg->hdr.type, imsg->hdr.peerid,
usr.sbin/smtpd/queue.c
509
wi->peerid = imsg->hdr.peerid;
usr.sbin/smtpd/queue.c
517
fatalx("queue_imsg: unexpected %s imsg", imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/queue.c
61
switch (imsg->hdr.type) {
usr.sbin/smtpd/queue_proc.c
47
rlen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/smtpd/queue_proc.c
50
if (imsg.hdr.type != PROC_QUEUE_OK) {
usr.sbin/smtpd/resolver.c
162
reqid = imsg->hdr.peerid;
usr.sbin/smtpd/resolver.c
165
switch (imsg->hdr.type) {
usr.sbin/smtpd/resolver.c
268
fatalx("%s: %s", __func__, imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/resolver.c
311
key.id = imsg->hdr.peerid;
usr.sbin/smtpd/resolver.c
314
fatalx("%s: unknown request %08x", __func__, imsg->hdr.peerid);
usr.sbin/smtpd/resolver.c
318
switch (imsg->hdr.type) {
usr.sbin/smtpd/rfc5322.c
129
res->hdr = parser->hdr.buf;
usr.sbin/smtpd/rfc5322.c
155
if (buf_grow(&parser->hdr, len + 1) == -1)
usr.sbin/smtpd/rfc5322.c
157
(void)memcpy(parser->hdr.buf, line, len);
usr.sbin/smtpd/rfc5322.c
158
parser->hdr.buf[len] = '\0';
usr.sbin/smtpd/rfc5322.c
159
parser->hdr.buflen = len + 1;
usr.sbin/smtpd/rfc5322.c
163
res->hdr = parser->hdr.buf;
usr.sbin/smtpd/rfc5322.c
43
struct buf hdr;
usr.sbin/smtpd/rfc5322.c
57
parser->hdr.bufmax = 1024;
usr.sbin/smtpd/rfc5322.c
66
free(parser->hdr.buf);
usr.sbin/smtpd/rfc5322.c
77
parser->hdr.buflen = 0;
usr.sbin/smtpd/rfc5322.h
20
const char *hdr;
usr.sbin/smtpd/scheduler.c
304
m_compose(p, IMSG_CTL_LIST_MESSAGES, imsg->hdr.peerid, 0, -1,
usr.sbin/smtpd/scheduler.c
313
imsg->hdr.peerid, 0, -1);
usr.sbin/smtpd/scheduler.c
320
imsg->hdr.peerid, 0, -1, NULL, 0);
usr.sbin/smtpd/scheduler.c
333
m_compose(p, r ? IMSG_CTL_OK : IMSG_CTL_FAIL, imsg->hdr.peerid,
usr.sbin/smtpd/scheduler.c
353
m_compose(p, r ? IMSG_CTL_OK : IMSG_CTL_FAIL, imsg->hdr.peerid,
usr.sbin/smtpd/scheduler.c
367
m_compose(p, r ? IMSG_CTL_OK : IMSG_CTL_FAIL, imsg->hdr.peerid,
usr.sbin/smtpd/scheduler.c
381
m_compose(p, r ? IMSG_CTL_OK : IMSG_CTL_FAIL, imsg->hdr.peerid,
usr.sbin/smtpd/scheduler.c
387
imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/scheduler.c
62
switch (imsg->hdr.type) {
usr.sbin/smtpd/scheduler_proc.c
46
rlen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/smtpd/scheduler_proc.c
49
if (imsg.hdr.type != PROC_SCHEDULER_OK) {
usr.sbin/smtpd/smtp.c
104
fatalx("smtp_imsg: unexpected %s imsg", imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/smtp.c
63
switch (imsg->hdr.type) {
usr.sbin/smtpd/smtp.c
83
imsg->data, imsg->hdr.len - sizeof imsg->hdr);
usr.sbin/smtpd/smtp.c
87
m_compose(p, IMSG_CTL_SMTP_SESSION, imsg->hdr.peerid, 0,
usr.sbin/smtpd/smtp_session.c
1049
imsg_to_str(imsg->hdr.type));
usr.sbin/smtpd/smtp_session.c
2575
if (!strcasecmp("Bcc", res.hdr))
usr.sbin/smtpd/smtp_session.c
2578
if (!strcasecmp("To", res.hdr) ||
usr.sbin/smtpd/smtp_session.c
2579
!strcasecmp("Cc", res.hdr) ||
usr.sbin/smtpd/smtp_session.c
2580
!strcasecmp("From", res.hdr)) {
usr.sbin/smtpd/smtp_session.c
2585
if (!strcasecmp("Received", res.hdr)) {
usr.sbin/smtpd/smtp_session.c
2592
else if (!tx->has_date && !strcasecmp("Date", res.hdr))
usr.sbin/smtpd/smtp_session.c
2595
!strcasecmp("Message-Id", res.hdr))
usr.sbin/smtpd/smtp_session.c
2598
smtp_message_printf(tx, "%s:%s\n", res.hdr, res.value);
usr.sbin/smtpd/smtp_session.c
2603
if (!strcasecmp("Bcc", res.hdr) ||
usr.sbin/smtpd/smtp_session.c
2604
!strcasecmp("To", res.hdr) ||
usr.sbin/smtpd/smtp_session.c
2605
!strcasecmp("Cc", res.hdr) ||
usr.sbin/smtpd/smtp_session.c
2606
!strcasecmp("From", res.hdr))
usr.sbin/smtpd/smtp_session.c
2613
if (!strcasecmp("To", res.hdr) ||
usr.sbin/smtpd/smtp_session.c
2614
!strcasecmp("Cc", res.hdr) ||
usr.sbin/smtpd/smtp_session.c
2615
!strcasecmp("From", res.hdr))
usr.sbin/smtpd/smtp_session.c
2616
header_domain_append_callback(tx, res.hdr,
usr.sbin/smtpd/smtp_session.c
458
header_domain_append_callback(struct smtp_tx *tx, const char *hdr,
usr.sbin/smtpd/smtp_session.c
466
if (smtp_message_printf(tx, "%s:", hdr) == -1)
usr.sbin/smtpd/smtp_session.c
501
!(strcasecmp(hdr, "From")))
usr.sbin/smtpd/smtp_session.c
551
!(strcasecmp(hdr, "From")))
usr.sbin/smtpd/smtp_session.c
707
switch (imsg->hdr.type) {
usr.sbin/smtpd/smtpctl.c
186
if (imsg.hdr.type == IMSG_CTL_FAIL &&
usr.sbin/smtpd/smtpctl.c
187
imsg.hdr.peerid != 0 &&
usr.sbin/smtpd/smtpctl.c
188
imsg.hdr.peerid != IMSG_VERSION)
usr.sbin/smtpd/smtpctl.c
190
if (type != -1 && type != (int)imsg.hdr.type)
usr.sbin/smtpd/smtpctl.c
193
rlen = imsg.hdr.len - sizeof(imsg.hdr);
usr.sbin/smtpd/smtpctl.c
291
switch (imsg.hdr.type) {
usr.sbin/smtpd/smtpctl.c
305
errx(1, "wrong message in response: %u", imsg.hdr.type);
usr.sbin/smtpd/smtpd.c
161
switch (imsg->hdr.type) {
usr.sbin/smtpd/smtpd.c
1851
msg = imsg->hdr.type;
usr.sbin/smtpd/smtpd.c
1862
(int)imsg->hdr.len,
usr.sbin/smtpd/smtpd.c
1887
if (to == PROC_CONTROL && imsg->hdr.type == IMSG_STAT_SET)
usr.sbin/smtpd/smtpd.c
1893
imsg_to_str(imsg->hdr.type),
usr.sbin/smtpd/smtpd.c
1894
imsg->hdr.len - IMSG_HEADER_SIZE);
usr.sbin/smtpd/smtpd.c
270
imsg_to_str(imsg->hdr.type), proc_title(p->proc));
usr.sbin/smtpd/smtpd.c
894
if (imsg.hdr.type != IMSG_SETUP_DONE)
usr.sbin/smtpd/smtpd.c
926
switch (imsg.hdr.type) {
usr.sbin/smtpd/smtpd.c
931
setup_peer(imsg.hdr.peerid, imsg.hdr.pid,
usr.sbin/smtpd/smtpd.c
938
fatal("bad imsg %d", imsg.hdr.type);
usr.sbin/smtpd/smtpd.h
41
if ((imsg)->hdr.len - IMSG_HEADER_SIZE != (expected_sz)) \
usr.sbin/smtpd/smtpd.h
43
(imsg)->hdr.type, \
usr.sbin/smtpd/smtpd.h
44
(expected_sz), (imsg)->hdr.len - IMSG_HEADER_SIZE); \
usr.sbin/snmpd/proc.c
615
imsg.hdr.type, imsg.hdr.peerid, p->p_title, imsg.hdr.pid);
usr.sbin/snmpd/proc.c
630
switch (imsg.hdr.type) {
usr.sbin/snmpd/proc.c
646
imsg.hdr.type, imsg.hdr.peerid,
usr.sbin/snmpd/proc.c
647
p->p_title, imsg.hdr.pid);
usr.sbin/snmpd/snmpd.c
291
switch (imsg->hdr.type) {
usr.sbin/snmpd/snmpd.h
110
#define IMSG_DATA_SIZE(imsg) ((imsg)->hdr.len - IMSG_HEADER_SIZE)
usr.sbin/snmpd/snmpe.c
138
switch (imsg->hdr.type) {
usr.sbin/snmpd/util.c
42
struct cmsghdr hdr;
usr.sbin/snmpd/util.c
95
struct cmsghdr hdr;
usr.sbin/syslogd/privsep_fdpass.c
49
struct cmsghdr hdr;
usr.sbin/syslogd/privsep_fdpass.c
88
struct cmsghdr hdr;
usr.sbin/tcpdump/print-dhcp6.c
737
uint32_t hdr;
usr.sbin/tcpdump/print-dhcp6.c
795
if (l < sizeof(hdr))
usr.sbin/tcpdump/print-dhcp6.c
797
if (length < sizeof(hdr))
usr.sbin/tcpdump/print-dhcp6.c
800
hdr = EXTRACT_32BITS(cp);
usr.sbin/tcpdump/print-dhcp6.c
801
printf(" xid %x", hdr & 0xffffff);
usr.sbin/tcpdump/print-dhcp6.c
804
cp += sizeof(hdr);
usr.sbin/tcpdump/print-dhcp6.c
805
length -= sizeof(hdr);
usr.sbin/tcpdump/print-enc.c
62
const struct enchdr *hdr;
usr.sbin/tcpdump/print-enc.c
80
hdr = (struct enchdr *)p;
usr.sbin/tcpdump/print-enc.c
81
flags = hdr->flags;
usr.sbin/tcpdump/print-enc.c
89
printf("SPI 0x%08x: ", ntohl(hdr->spi));
usr.sbin/tcpdump/print-enc.c
94
switch (hdr->af) {
usr.sbin/tcpdump/print-gre.c
517
uint32_t hdr, ver, vlan, cos, en, sid, index;
usr.sbin/tcpdump/print-gre.c
529
if (l < sizeof(hdr))
usr.sbin/tcpdump/print-gre.c
532
hdr = EXTRACT_32BITS(bp);
usr.sbin/tcpdump/print-gre.c
533
bp += sizeof(hdr);
usr.sbin/tcpdump/print-gre.c
534
l -= sizeof(hdr);
usr.sbin/tcpdump/print-gre.c
535
len -= sizeof(hdr);
usr.sbin/tcpdump/print-gre.c
537
ver = hdr & ERSPAN2_VER_MASK;
usr.sbin/tcpdump/print-gre.c
547
sid = (hdr & ERSPAN2_SID_MASK) >> ERSPAN2_SID_SHIFT;
usr.sbin/tcpdump/print-gre.c
550
en = hdr & ERSPAN2_EN_MASK;
usr.sbin/tcpdump/print-gre.c
551
vlan = (hdr & ERSPAN2_VLAN_MASK) >> ERSPAN2_VLAN_SHIFT;
usr.sbin/tcpdump/print-gre.c
567
cos = (hdr & ERSPAN2_COS_MASK) >> ERSPAN2_COS_SHIFT;
usr.sbin/tcpdump/print-gre.c
570
if (hdr & ERSPAN2_T_MASK)
usr.sbin/tcpdump/print-gre.c
574
if (l < sizeof(hdr))
usr.sbin/tcpdump/print-gre.c
577
hdr = EXTRACT_32BITS(bp);
usr.sbin/tcpdump/print-gre.c
578
bp += sizeof(hdr);
usr.sbin/tcpdump/print-gre.c
579
l -= sizeof(hdr);
usr.sbin/tcpdump/print-gre.c
580
len -= sizeof(hdr);
usr.sbin/tcpdump/print-gre.c
583
index = (hdr & ERSPAN2_INDEX_MASK) >> ERSPAN2_INDEX_SHIFT;
usr.sbin/tcpdump/print-igrp.c
100
tok2str(op2str, "op-#%d", hdr->ig_op),
usr.sbin/tcpdump/print-igrp.c
101
hdr->ig_v,
usr.sbin/tcpdump/print-igrp.c
102
hdr->ig_ed,
usr.sbin/tcpdump/print-igrp.c
103
EXTRACT_16BITS(&hdr->ig_as),
usr.sbin/tcpdump/print-igrp.c
108
length -= sizeof(*hdr);
usr.sbin/tcpdump/print-igrp.c
81
struct igrphdr *hdr;
usr.sbin/tcpdump/print-igrp.c
86
hdr = (struct igrphdr *)bp;
usr.sbin/tcpdump/print-igrp.c
88
cp = (u_char *)(hdr + 1);
usr.sbin/tcpdump/print-igrp.c
94
TCHECK(*hdr);
usr.sbin/tcpdump/print-igrp.c
95
nint = EXTRACT_16BITS(&hdr->ig_ni);
usr.sbin/tcpdump/print-igrp.c
96
nsys = EXTRACT_16BITS(&hdr->ig_ns);
usr.sbin/tcpdump/print-igrp.c
97
next = EXTRACT_16BITS(&hdr->ig_nx);
usr.sbin/tcpdump/print-nhrp.c
100
struct nhrp_header *hdr;
usr.sbin/tcpdump/print-nhrp.c
105
if ((snapend - p) < sizeof(*hdr))
usr.sbin/tcpdump/print-nhrp.c
108
hdr = (struct nhrp_header *)p;
usr.sbin/tcpdump/print-nhrp.c
110
if (hdr->op_version != NHRP_VER_RFC2332) {
usr.sbin/tcpdump/print-nhrp.c
111
printf("unknown-version-%02x", hdr->op_version);
usr.sbin/tcpdump/print-nhrp.c
116
nhrpext = p + EXTRACT_16BITS(&hdr->extoff);
usr.sbin/tcpdump/print-nhrp.c
117
nhrpend = p + EXTRACT_16BITS(&hdr->pktsz);
usr.sbin/tcpdump/print-nhrp.c
119
switch (hdr->op_type) {
usr.sbin/tcpdump/print-nhrp.c
139
printf("error %u", hdr->u.err.code);
usr.sbin/tcpdump/print-nhrp.c
142
printf("unknown-op-type-%04x, ", hdr->op_type);
usr.sbin/tcpdump/print-nhrp.c
146
printf("id %u", EXTRACT_32BITS(&hdr->u.id));
usr.sbin/tcpdump/print-nhrp.c
149
printf(", hopcnt %u", hdr->hopcnt);
usr.sbin/tcpdump/print-nhrp.c
152
if (hdr->shtl & 0x80)
usr.sbin/tcpdump/print-nhrp.c
156
if (hdr->shtl & 0x40)
usr.sbin/tcpdump/print-nhrp.c
160
p += sizeof(*hdr);
usr.sbin/tcpdump/print-nhrp.c
161
if ((snapend - p) < hdr->shtl)
usr.sbin/tcpdump/print-nhrp.c
164
if (hdr->shtl) {
usr.sbin/tcpdump/print-nhrp.c
165
switch (EXTRACT_16BITS(&hdr->afn)) {
usr.sbin/tcpdump/print-nhrp.c
177
EXTRACT_16BITS(&hdr->afn));
usr.sbin/tcpdump/print-nhrp.c
182
p += hdr->shtl;
usr.sbin/tcpdump/print-nhrp.c
183
if ((snapend - p) < (hdr->spl + hdr->dpl))
usr.sbin/tcpdump/print-nhrp.c
186
switch (EXTRACT_16BITS(&hdr->pro_type)) {
usr.sbin/tcpdump/print-nhrp.c
190
ipaddr_string(p + hdr->spl));
usr.sbin/tcpdump/print-nhrp.c
195
ip6addr_string(p + hdr->spl));
usr.sbin/tcpdump/print-nhrp.c
199
EXTRACT_16BITS(&hdr->pro_type));
usr.sbin/tcpdump/print-nhrp.c
203
p += hdr->spl + hdr->dpl;
usr.sbin/tcpdump/print-nhrp.c
206
p = nhrp_print_cie(p, hdr->afn, hdr->pro_type);
usr.sbin/tcpdump/print-nhrp.c
209
} while ((hdr->extoff && (p < nhrpext)) ||
usr.sbin/tcpdump/print-nhrp.c
210
((!hdr->extoff && (p < nhrpend))));
usr.sbin/tcpdump/print-pflog.c
100
printf("%u", ntohl(hdr->rulenr));
usr.sbin/tcpdump/print-pflog.c
101
if (hdr->ruleset[0]) {
usr.sbin/tcpdump/print-pflog.c
102
printf(".%s", hdr->ruleset);
usr.sbin/tcpdump/print-pflog.c
103
if (ntohl(hdr->subrulenr) == (u_int32_t) -1)
usr.sbin/tcpdump/print-pflog.c
106
printf(".%u", ntohl(hdr->subrulenr));
usr.sbin/tcpdump/print-pflog.c
109
if (hdr->reason < PFRES_MAX)
usr.sbin/tcpdump/print-pflog.c
110
printf("/(%s) ", pf_reasons[hdr->reason]);
usr.sbin/tcpdump/print-pflog.c
112
printf("/(unkn %u) ", (unsigned)hdr->reason);
usr.sbin/tcpdump/print-pflog.c
114
printf("[uid %u, pid %u] ", (unsigned)hdr->rule_uid,
usr.sbin/tcpdump/print-pflog.c
115
(unsigned)hdr->rule_pid);
usr.sbin/tcpdump/print-pflog.c
117
switch (hdr->action) {
usr.sbin/tcpdump/print-pflog.c
144
hdr->dir == PF_OUT ? "out" : "in",
usr.sbin/tcpdump/print-pflog.c
145
hdr->ifname);
usr.sbin/tcpdump/print-pflog.c
146
if (vflag && hdr->pid != NO_PID)
usr.sbin/tcpdump/print-pflog.c
147
printf("[uid %u, pid %u] ", (unsigned)hdr->uid,
usr.sbin/tcpdump/print-pflog.c
148
(unsigned)hdr->pid);
usr.sbin/tcpdump/print-pflog.c
149
if (vflag && hdr->rewritten) {
usr.sbin/tcpdump/print-pflog.c
153
if (inet_ntop(hdr->naf, &hdr->saddr, buf,
usr.sbin/tcpdump/print-pflog.c
157
printf("src %s:%u", buf, ntohs(hdr->sport));
usr.sbin/tcpdump/print-pflog.c
159
if (inet_ntop(hdr->naf, &hdr->daddr, buf,
usr.sbin/tcpdump/print-pflog.c
163
printf("dst %s:%u", buf, ntohs(hdr->dport));
usr.sbin/tcpdump/print-pflog.c
168
switch(hdr->af) {
usr.sbin/tcpdump/print-pflog.c
184
printf("unknown-af %d", hdr->af);
usr.sbin/tcpdump/print-pflog.c
63
const struct pfloghdr *hdr;
usr.sbin/tcpdump/print-pflog.c
74
hdr = (struct pfloghdr *)p;
usr.sbin/tcpdump/print-pflog.c
75
if (hdr->length < MIN_PFLOG_HDRLEN) {
usr.sbin/tcpdump/print-pflog.c
79
hdrlen = (hdr->length + 3) & 0xfc;
usr.sbin/tcpdump/print-pflog.c
94
hdr = (struct pfloghdr *)p;
usr.sbin/tcpdump/print-pflog.c
97
if (ntohl(hdr->rulenr) == (u_int32_t) -1)
usr.sbin/tcpdump/print-pfsync.c
139
pfsync_print(struct pfsync_header *hdr, const u_char *bp, int len)
usr.sbin/tcpdump/print-pfsync.c
145
plen = ntohs(hdr->len);
usr.sbin/tcpdump/print-pfsync.c
147
printf("PFSYNCv%d len %d", hdr->version, plen);
usr.sbin/tcpdump/print-pfsync.c
149
if (hdr->version != PFSYNC_VERSION)
usr.sbin/tcpdump/print-pfsync.c
152
plen -= sizeof(*hdr);
usr.sbin/tcpdump/print-pfsync.c
85
struct pfsync_header *hdr = (struct pfsync_header *)bp;
usr.sbin/tcpdump/print-pfsync.c
97
pfsync_print(hdr, bp + sizeof(struct pfsync_header),
usr.sbin/tcpdump/print-snmp.c
390
int i, hdr;
usr.sbin/tcpdump/print-snmp.c
423
p++; len--; hdr = 1;
usr.sbin/tcpdump/print-snmp.c
426
for (id = 0; *p & ASN_BIT8 && len > 0; len--, hdr++, p++) {
usr.sbin/tcpdump/print-snmp.c
440
++hdr;
usr.sbin/tcpdump/print-snmp.c
453
p++; len--; hdr++;
usr.sbin/tcpdump/print-snmp.c
464
for (; noct-- > 0; len--, hdr++) {
usr.sbin/tcpdump/print-snmp.c
642
return elem->asnlen + hdr;
usr.sbin/tcpdump/print-udp.c
112
vat_print(const void *hdr, u_int len, const struct udphdr *up)
usr.sbin/tcpdump/print-udp.c
115
u_int ts = *(u_short *)hdr;
usr.sbin/tcpdump/print-udp.c
123
u_int i0 = ntohl(((u_int *)hdr)[0]);
usr.sbin/tcpdump/print-udp.c
124
u_int i1 = ntohl(((u_int *)hdr)[1]);
usr.sbin/tcpdump/print-udp.c
138
rtp_print(const void *hdr, u_int len, const struct udphdr *up)
usr.sbin/tcpdump/print-udp.c
141
u_int *ip = (u_int *)hdr;
usr.sbin/tcpdump/print-udp.c
143
u_int i0 = ntohl(((u_int *)hdr)[0]);
usr.sbin/tcpdump/print-udp.c
144
u_int i1 = ntohl(((u_int *)hdr)[1]);
usr.sbin/tcpdump/print-udp.c
203
rtcp_print(const u_char *hdr, const u_char *ep)
usr.sbin/tcpdump/print-udp.c
208
struct rtcphdr *rh = (struct rtcphdr *)hdr;
usr.sbin/tcpdump/print-udp.c
280
return (hdr + len);
usr.sbin/tcpdump/print-wb.c
379
wb_print(const void *hdr, u_int len)
usr.sbin/tcpdump/print-wb.c
383
ph = (const struct pkt_hdr *)hdr;
usr.sbin/tcpdump/privsep_fdpass.c
37
struct cmsghdr hdr;
usr.sbin/tcpdump/privsep_fdpass.c
75
struct cmsghdr hdr;
usr.sbin/tcpdump/privsep_pcap.c
346
struct pcap_file_header hdr;
usr.sbin/tcpdump/privsep_pcap.c
383
if (fread((char *)&hdr, sizeof(hdr), 1, fp) != 1) {
usr.sbin/tcpdump/privsep_pcap.c
389
if (hdr.magic != TCPDUMP_MAGIC) {
usr.sbin/tcpdump/privsep_pcap.c
390
if (swap32(hdr.magic) != TCPDUMP_MAGIC) {
usr.sbin/tcpdump/privsep_pcap.c
396
swap_hdr(&hdr);
usr.sbin/tcpdump/privsep_pcap.c
398
if (hdr.version_major < PCAP_VERSION_MAJOR) {
usr.sbin/tcpdump/privsep_pcap.c
403
p->tzoff = hdr.thiszone;
usr.sbin/tcpdump/privsep_pcap.c
404
p->snapshot = hdr.snaplen;
usr.sbin/tcpdump/privsep_pcap.c
405
p->linktype = hdr.linktype;
usr.sbin/tcpdump/privsep_pcap.c
407
p->bufsize = hdr.snaplen;
usr.sbin/tcpdump/privsep_pcap.c
435
p->sf.version_major = hdr.version_major;
usr.sbin/tcpdump/privsep_pcap.c
436
p->sf.version_minor = hdr.version_minor;
usr.sbin/tcpdump/privsep_pcap.c
455
struct pcap_file_header hdr;
usr.sbin/tcpdump/privsep_pcap.c
457
bzero(&hdr, sizeof hdr);
usr.sbin/tcpdump/privsep_pcap.c
458
hdr.magic = TCPDUMP_MAGIC;
usr.sbin/tcpdump/privsep_pcap.c
459
hdr.version_major = PCAP_VERSION_MAJOR;
usr.sbin/tcpdump/privsep_pcap.c
460
hdr.version_minor = PCAP_VERSION_MINOR;
usr.sbin/tcpdump/privsep_pcap.c
462
hdr.thiszone = thiszone;
usr.sbin/tcpdump/privsep_pcap.c
463
hdr.snaplen = snaplen;
usr.sbin/tcpdump/privsep_pcap.c
464
hdr.sigfigs = 0;
usr.sbin/tcpdump/privsep_pcap.c
465
hdr.linktype = linktype;
usr.sbin/tcpdump/privsep_pcap.c
467
if (fwrite((char *)&hdr, sizeof(hdr), 1, fp) != 1)
usr.sbin/tftp-proxy/tftp-proxy.c
491
struct cmsghdr hdr;
usr.sbin/tftp-proxy/tftp-proxy.c
682
struct cmsghdr hdr;
usr.sbin/tftp-proxy/tftp-proxy.c
785
struct cmsghdr hdr;
usr.sbin/tftpd/tftpd.c
671
struct cmsghdr hdr;
usr.sbin/unbound/testcode/doqclient.c
1685
struct cmsghdr hdr;
usr.sbin/unbound/testcode/petal.c
390
char hdr[1024];
usr.sbin/unbound/testcode/petal.c
392
snprintf(hdr, sizeof(hdr), "HTTP/1.1 %s\r\n\r\n", rcode);
usr.sbin/unbound/testcode/petal.c
393
r = strlen(hdr);
usr.sbin/unbound/testcode/petal.c
394
if(SSL_write(ssl, hdr, (int)r) <= 0) {
usr.sbin/unbound/util/netevent.c
1002
struct cmsghdr hdr;
usr.sbin/unbound/util/netevent.c
1355
struct cmsghdr hdr;
usr.sbin/unbound/util/netevent.c
1572
struct cmsghdr hdr;
usr.sbin/unbound/util/netevent.c
633
struct cmsghdr hdr;
usr.sbin/unwindctl/unwindctl.c
258
switch (imsg->hdr.type) {
usr.sbin/unwindctl/unwindctl.c
284
switch (imsg->hdr.type) {
usr.sbin/unwindctl/unwindctl.c
354
switch (imsg->hdr.type) {
usr.sbin/vmd/loadfile_elf.c
110
} hdr;
usr.sbin/vmd/loadfile_elf.c
221
if ((r = gzread(fp, &hdr, sizeof(hdr))) != sizeof(hdr))
usr.sbin/vmd/loadfile_elf.c
225
if (memcmp(hdr.elf32.e_ident, ELFMAG, SELFMAG) == 0 &&
usr.sbin/vmd/loadfile_elf.c
226
hdr.elf32.e_ident[EI_CLASS] == ELFCLASS32) {
usr.sbin/vmd/loadfile_elf.c
227
r = elf32_exec(fp, &hdr.elf32, marks, LOAD_ALL);
usr.sbin/vmd/loadfile_elf.c
228
} else if (memcmp(hdr.elf64.e_ident, ELFMAG, SELFMAG) == 0 &&
usr.sbin/vmd/loadfile_elf.c
229
hdr.elf64.e_ident[EI_CLASS] == ELFCLASS64) {
usr.sbin/vmd/loadfile_elf.c
230
r = elf64_exec(fp, &hdr.elf64, marks, LOAD_ALL);
usr.sbin/vmd/vionet.c
321
struct virtio_net_hdr *hdr = NULL;
usr.sbin/vmd/vionet.c
375
hdr = iov->iov_base;
usr.sbin/vmd/vionet.c
376
memset(hdr, 0, sizeof(struct virtio_net_hdr));
usr.sbin/vmd/vionet.c
421
hdr->num_buffers = iov_cnt;
usr.sbin/vmd/vioqcow2.c
656
struct qcheader hdr, basehdr;
usr.sbin/vmd/vioqcow2.c
680
l1off = ALIGNSZ(sizeof(hdr), clustersz);
usr.sbin/vmd/vioqcow2.c
692
memcpy(hdr.magic, VM_MAGIC_QCOW, strlen(VM_MAGIC_QCOW));
usr.sbin/vmd/vioqcow2.c
693
hdr.version = htobe32(3);
usr.sbin/vmd/vioqcow2.c
694
hdr.backingoff = htobe64(base_path ? sizeof(hdr) : 0);
usr.sbin/vmd/vioqcow2.c
695
hdr.backingsz = htobe32(base_len);
usr.sbin/vmd/vioqcow2.c
696
hdr.clustershift = htobe32(16);
usr.sbin/vmd/vioqcow2.c
697
hdr.disksz = htobe64(disksz);
usr.sbin/vmd/vioqcow2.c
698
hdr.cryptmethod = htobe32(0);
usr.sbin/vmd/vioqcow2.c
699
hdr.l1sz = htobe32(l1sz);
usr.sbin/vmd/vioqcow2.c
700
hdr.l1off = htobe64(l1off);
usr.sbin/vmd/vioqcow2.c
701
hdr.refoff = htobe64(refoff);
usr.sbin/vmd/vioqcow2.c
702
hdr.refsz = htobe32(refsz);
usr.sbin/vmd/vioqcow2.c
703
hdr.snapcount = htobe32(0);
usr.sbin/vmd/vioqcow2.c
704
hdr.snapsz = htobe64(0);
usr.sbin/vmd/vioqcow2.c
705
hdr.incompatfeatures = htobe64(0);
usr.sbin/vmd/vioqcow2.c
706
hdr.compatfeatures = htobe64(0);
usr.sbin/vmd/vioqcow2.c
707
hdr.autoclearfeatures = htobe64(0);
usr.sbin/vmd/vioqcow2.c
708
hdr.reforder = htobe32(4);
usr.sbin/vmd/vioqcow2.c
709
hdr.headersz = htobe32(sizeof(hdr));
usr.sbin/vmd/vioqcow2.c
718
if (write(fd, &hdr, sizeof(hdr)) != sizeof(hdr))
usr.sbin/ypldap/ldapclient.c
164
switch (imsg.hdr.type) {
usr.sbin/ypldap/ldapclient.c
167
if (idm->idm_id == imsg.hdr.peerid)
usr.sbin/ypldap/ldapclient.c
178
dlen = imsg.hdr.len - IMSG_HEADER_SIZE;
usr.sbin/ypldap/ldapclient.c
264
switch (imsg.hdr.type) {
usr.sbin/ypldap/ldapclient.c
300
imsg.hdr.type);
usr.sbin/ypldap/ypldap.c
384
switch (imsg.hdr.type) {
usr.sbin/ypldap/ypldap.c
449
imsg.hdr.type);
usr.sbin/ypldap/ypldap_dns.c
170
switch (imsg.hdr.type) {
usr.sbin/ypldap/ypldap_dns.c
173
if (imsg.hdr.len < 1 + IMSG_HEADER_SIZE)
usr.sbin/ypldap/ypldap_dns.c
175
len = imsg.hdr.len - 1 - IMSG_HEADER_SIZE;
usr.sbin/ypldap/ypldap_dns.c
182
imsg.hdr.peerid, 0,
usr.sbin/ypserv/mkalias/mkalias.c
84
HEADER hdr;