crypto/libressl/apps/nc/netcat.c
1394
struct cmsghdr hdr;
crypto/libressl/apps/openssl/ocsp.c
1453
CONF_VALUE *hdr = sk_CONF_VALUE_value(headers, i);
crypto/libressl/apps/openssl/ocsp.c
1454
if (strcasecmp("host", hdr->name) == 0)
crypto/libressl/apps/openssl/ocsp.c
1456
if (!OCSP_REQ_CTX_add1_header(ctx, hdr->name, hdr->value))
crypto/libressl/crypto/asn1/asn_mime.c
109
static MIME_PARAM *mime_param_find(MIME_HEADER *hdr, char *name);
crypto/libressl/crypto/asn1/asn_mime.c
110
static void mime_hdr_free(MIME_HEADER *hdr);
crypto/libressl/crypto/asn1/asn_mime.c
174
const char *hdr, const ASN1_ITEM *it)
crypto/libressl/crypto/asn1/asn_mime.c
178
BIO_printf(out, "-----BEGIN %s-----\n", hdr);
crypto/libressl/crypto/asn1/asn_mime.c
180
BIO_printf(out, "-----END %s-----\n", hdr);
crypto/libressl/crypto/asn1/asn_mime.c
433
MIME_HEADER *hdr;
crypto/libressl/crypto/asn1/asn_mime.c
446
if (!(hdr = mime_hdr_find(headers, "content-type")) || !hdr->value) {
crypto/libressl/crypto/asn1/asn_mime.c
454
if (!strcmp(hdr->value, "multipart/signed")) {
crypto/libressl/crypto/asn1/asn_mime.c
456
prm = mime_param_find(hdr, "boundary");
crypto/libressl/crypto/asn1/asn_mime.c
481
if (!(hdr = mime_hdr_find(headers, "content-type")) ||
crypto/libressl/crypto/asn1/asn_mime.c
482
!hdr->value) {
crypto/libressl/crypto/asn1/asn_mime.c
489
if (strcmp(hdr->value, "application/x-pkcs7-signature") &&
crypto/libressl/crypto/asn1/asn_mime.c
490
strcmp(hdr->value, "application/pkcs7-signature")) {
crypto/libressl/crypto/asn1/asn_mime.c
492
ERR_asprintf_error_data("type: %s", hdr->value);
crypto/libressl/crypto/asn1/asn_mime.c
515
if (strcmp (hdr->value, "application/x-pkcs7-mime") &&
crypto/libressl/crypto/asn1/asn_mime.c
516
strcmp (hdr->value, "application/pkcs7-mime")) {
crypto/libressl/crypto/asn1/asn_mime.c
518
ERR_asprintf_error_data("type: %s", hdr->value);
crypto/libressl/crypto/asn1/asn_mime.c
576
MIME_HEADER *hdr;
crypto/libressl/crypto/asn1/asn_mime.c
582
if (!(hdr = mime_hdr_find(headers, "content-type")) || !hdr->value) {
crypto/libressl/crypto/asn1/asn_mime.c
587
if (strcmp (hdr->value, "text/plain")) {
crypto/libressl/crypto/asn1/asn_mime.c
589
ERR_asprintf_error_data("type: %s", hdr->value);
crypto/libressl/crypto/asn1/asn_mime.c
942
mime_param_find(MIME_HEADER *hdr, char *name)
crypto/libressl/crypto/asn1/asn_mime.c
947
idx = sk_MIME_PARAM_find(hdr->params, ¶m);
crypto/libressl/crypto/asn1/asn_mime.c
950
return sk_MIME_PARAM_value(hdr->params, idx);
crypto/libressl/crypto/asn1/asn_mime.c
954
mime_hdr_free(MIME_HEADER *hdr)
crypto/libressl/crypto/asn1/asn_mime.c
956
free(hdr->name);
crypto/libressl/crypto/asn1/asn_mime.c
957
free(hdr->value);
crypto/libressl/crypto/asn1/asn_mime.c
958
if (hdr->params)
crypto/libressl/crypto/asn1/asn_mime.c
959
sk_MIME_PARAM_pop_free(hdr->params, mime_param_free);
crypto/libressl/crypto/asn1/asn_mime.c
960
free(hdr);
crypto/libressl/include/openssl/asn1.h
934
const char *hdr, const ASN1_ITEM *it);
crypto/libressl/include/openssl/pem.h
379
int PEM_write_bio(BIO *bp, const char *name, const char *hdr,
crypto/libressl/include/openssl/pem.h
397
int PEM_write(FILE *fp, const char *name, const char *hdr,
crypto/openssh/monitor_fdpass.c
118
struct cmsghdr hdr;
crypto/openssh/monitor_fdpass.c
58
struct cmsghdr hdr;
lib/libc/db/hash/hash.c
139
hdrsize = _read(hashp->fp, &hashp->hdr, sizeof(HASHHDR));
lib/libc/db/hash/hash.c
484
whdrp = &hashp->hdr;
lib/libc/db/hash/hash.c
487
swap_header_copy(&hashp->hdr, whdrp);
lib/libc/db/hash/hash.c
939
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
90
HASHHDR hdr; /* Header */
lib/libc/gmon/gmon.c
122
struct gmonhdr gmonhdr, *hdr;
lib/libc/gmon/gmon.c
167
hdr = (struct gmonhdr *)&gmonhdr;
lib/libc/gmon/gmon.c
168
bzero(hdr, sizeof(*hdr));
lib/libc/gmon/gmon.c
169
hdr->lpc = p->lowpc;
lib/libc/gmon/gmon.c
170
hdr->hpc = p->highpc;
lib/libc/gmon/gmon.c
171
hdr->ncnt = p->kcountsize + sizeof(gmonhdr);
lib/libc/gmon/gmon.c
172
hdr->version = GMONVERSION;
lib/libc/gmon/gmon.c
173
hdr->profrate = clockinfo.profhz;
lib/libc/gmon/gmon.c
174
_write(fd, (char *)hdr, sizeof *hdr);
lib/libc/net/getaddrinfo.c
1744
hp = &answer->hdr;
lib/libc/net/getaddrinfo.c
214
HEADER hdr;
lib/libc/net/gethostbydns.c
171
hp = &answer->hdr;
lib/libc/net/gethostbydns.c
94
HEADER hdr;
lib/libc/net/getnetbydns.c
181
hp = &answer->hdr;
lib/libc/net/getnetbydns.c
87
HEADER hdr;
lib/libc/net/nscachedcli.c
154
struct cmsghdr hdr;
lib/libc/net/nscachedcli.c
159
cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(struct cmsgcred));
lib/libc/net/nscachedcli.c
160
cmsg.hdr.cmsg_level = SOL_SOCKET;
lib/libc/net/nscachedcli.c
161
cmsg.hdr.cmsg_type = SCM_CREDS;
lib/libc/sysvipc/sockets.c
137
struct cmsghdr hdr;
lib/libc/sysvipc/sockets.c
190
struct cmsghdr hdr;
lib/libc/sysvipc/sockets.c
255
struct cmsghdr hdr;
lib/libc/sysvipc/sockets.c
260
cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(struct cmsgcred));
lib/libc/sysvipc/sockets.c
261
cmsg.hdr.cmsg_level = SOL_SOCKET;
lib/libc/sysvipc/sockets.c
262
cmsg.hdr.cmsg_type = SCM_CREDS;
lib/libc/sysvipc/sockets.c
292
struct cmsghdr hdr;
lib/libfetch/http.c
1249
http_digest_auth(conn_t *conn, const char *hdr, http_auth_challenge_t *c,
lib/libfetch/http.c
1292
hdr, parms->user, c->realm,
lib/libfetch/http.c
1298
hdr, parms->user, c->realm,
lib/libfetch/http.c
1310
http_basic_auth(conn_t *conn, const char *hdr, const char *usr, const char *pwd)
lib/libfetch/http.c
1323
r = http_cmd(conn, "%s: Basic %s", hdr, auth);
lib/libfetch/http.c
1333
http_authorize(conn_t *conn, const char *hdr, http_auth_challenges_t *cs,
lib/libfetch/http.c
1364
return (http_basic_auth(conn,hdr,parms->user,parms->password));
lib/libfetch/http.c
1367
return (http_digest_auth(conn, hdr, digest, parms, url));
lib/libfetch/http.c
462
http_match(const char *str, const char *hdr)
lib/libfetch/http.c
464
while (*str && *hdr &&
lib/libfetch/http.c
465
tolower((unsigned char)*str++) == tolower((unsigned char)*hdr++))
lib/libfetch/http.c
467
if (*str || *hdr != ':')
lib/libfetch/http.c
469
while (*hdr && isspace((unsigned char)*++hdr))
lib/libfetch/http.c
471
return (hdr);
lib/libkvm/kvm_minidump_x86_64.c
139
struct minidumphdr1 *hdr);
lib/libkvm/kvm_minidump_x86_64.c
141
struct minidumphdr2 *hdr);
lib/libkvm/kvm_minidump_x86_64.c
183
struct minidumphdr1 *hdr)
lib/libkvm/kvm_minidump_x86_64.c
188
off = PAGE_SIZE + round_page(hdr->msgbufsize);
lib/libkvm/kvm_minidump_x86_64.c
190
vmst->bitmap = _kvm_malloc(kd, hdr->bitmapsize);
lib/libkvm/kvm_minidump_x86_64.c
194
(intmax_t)hdr->bitmapsize);
lib/libkvm/kvm_minidump_x86_64.c
197
if (pread(kd->pmfd, vmst->bitmap, hdr->bitmapsize, off) !=
lib/libkvm/kvm_minidump_x86_64.c
198
hdr->bitmapsize) {
lib/libkvm/kvm_minidump_x86_64.c
201
(intmax_t)hdr->bitmapsize);
lib/libkvm/kvm_minidump_x86_64.c
206
vmst->ptemap = _kvm_malloc(kd, hdr->ptesize);
lib/libkvm/kvm_minidump_x86_64.c
210
(intmax_t)hdr->ptesize);
lib/libkvm/kvm_minidump_x86_64.c
213
if (pread(kd->pmfd, vmst->ptemap, hdr->ptesize, off) !=
lib/libkvm/kvm_minidump_x86_64.c
214
hdr->ptesize) {
lib/libkvm/kvm_minidump_x86_64.c
217
(intmax_t)hdr->ptesize);
lib/libkvm/kvm_minidump_x86_64.c
220
off += hdr->ptesize;
lib/libkvm/kvm_minidump_x86_64.c
222
vmst->kernbase = hdr->kernbase;
lib/libkvm/kvm_minidump_x86_64.c
223
vmst->dmapbase = hdr->dmapbase;
lib/libkvm/kvm_minidump_x86_64.c
224
vmst->dmapend = hdr->dmapend;
lib/libkvm/kvm_minidump_x86_64.c
225
vmst->bitmapsize = hdr->bitmapsize;
lib/libkvm/kvm_minidump_x86_64.c
229
inithash(kd, vmst->bitmap, hdr->bitmapsize, off);
lib/libkvm/kvm_minidump_x86_64.c
237
struct minidumphdr2 *hdr)
lib/libkvm/kvm_minidump_x86_64.c
242
off = PAGE_SIZE + round_page(hdr->msgbufsize);
lib/libkvm/kvm_minidump_x86_64.c
244
vmst->bitmap = _kvm_malloc(kd, hdr->bitmapsize);
lib/libkvm/kvm_minidump_x86_64.c
248
(intmax_t)hdr->bitmapsize);
lib/libkvm/kvm_minidump_x86_64.c
251
if (pread(kd->pmfd, vmst->bitmap, hdr->bitmapsize, off) !=
lib/libkvm/kvm_minidump_x86_64.c
252
(intmax_t)hdr->bitmapsize) {
lib/libkvm/kvm_minidump_x86_64.c
255
(intmax_t)hdr->bitmapsize);
lib/libkvm/kvm_minidump_x86_64.c
258
off += round_page(hdr->bitmapsize);
lib/libkvm/kvm_minidump_x86_64.c
260
vmst->ptemap = _kvm_malloc(kd, hdr->ptesize);
lib/libkvm/kvm_minidump_x86_64.c
264
(intmax_t)hdr->ptesize);
lib/libkvm/kvm_minidump_x86_64.c
267
if (pread(kd->pmfd, vmst->ptemap, hdr->ptesize, off) !=
lib/libkvm/kvm_minidump_x86_64.c
268
(intmax_t)hdr->ptesize) {
lib/libkvm/kvm_minidump_x86_64.c
271
(intmax_t)hdr->ptesize);
lib/libkvm/kvm_minidump_x86_64.c
274
off += hdr->ptesize;
lib/libkvm/kvm_minidump_x86_64.c
276
vmst->kernbase = hdr->kernbase;
lib/libkvm/kvm_minidump_x86_64.c
277
vmst->dmapbase = hdr->dmapbase;
lib/libkvm/kvm_minidump_x86_64.c
278
vmst->bitmapsize = hdr->bitmapsize;
lib/libkvm/kvm_minidump_x86_64.c
282
inithash(kd, vmst->bitmap, hdr->bitmapsize, off);
lib/libnetgraph/msg.c
176
const struct ng_mesg *hdr, const void *args, size_t arglen)
lib/libnetgraph/msg.c
200
*msg = *hdr;
lib/libnetgraph/msg.c
57
const struct ng_mesg *hdr, const void *args, size_t arglen);
lib/libnetgraph7/msg.c
183
const struct ng_mesg *hdr, const void *args, size_t arglen)
lib/libnetgraph7/msg.c
207
*msg = *hdr;
lib/libnetgraph7/msg.c
57
const struct ng_mesg *hdr, const void *args, size_t arglen);
lib/libtcplay/hdr.c
117
verify_hdr(struct tchdr_dec *hdr, struct pbkdf_prf_algo *prf_algo)
lib/libtcplay/hdr.c
121
if (memcmp(hdr->tc_str, prf_algo->sig, sizeof(hdr->tc_str)) != 0) {
lib/libtcplay/hdr.c
128
crc = crc32((void *)&hdr->keys, 256);
lib/libtcplay/hdr.c
129
if (crc != hdr->crc_keys) {
lib/libtcplay/hdr.c
136
switch(hdr->tc_ver) {
lib/libtcplay/hdr.c
140
tc_log(1, "Header version %d unsupported\n", hdr->tc_ver);
lib/libtcplay/hdr.c
145
hdr->sec_sz = 512;
lib/libtcplay/hdr.c
377
memcpy(info->hdr->tc_str, prf_algo->sig, 4);
lib/libtcplay/hdr.c
378
info->hdr->tc_min_ver = hdr_cfg->min_ver;
lib/libtcplay/hdr.c
380
HOST_TO_BE(16, info->hdr->tc_ver);
lib/libtcplay/hdr.c
381
HOST_TO_LE(16, info->hdr->tc_min_ver);
lib/libtcplay/hdr.c
382
HOST_TO_BE(32, info->hdr->crc_keys);
lib/libtcplay/hdr.c
383
HOST_TO_BE(64, info->hdr->vol_ctime);
lib/libtcplay/hdr.c
384
HOST_TO_BE(64, info->hdr->hdr_ctime);
lib/libtcplay/hdr.c
385
HOST_TO_BE(64, info->hdr->sz_vol);
lib/libtcplay/hdr.c
386
HOST_TO_BE(64, info->hdr->sz_hidvol);
lib/libtcplay/hdr.c
387
HOST_TO_BE(64, info->hdr->off_mk_scope);
lib/libtcplay/hdr.c
388
HOST_TO_BE(64, info->hdr->sz_mk_scope);
lib/libtcplay/hdr.c
389
HOST_TO_BE(32, info->hdr->sec_sz);
lib/libtcplay/hdr.c
390
HOST_TO_BE(32, info->hdr->flags);
lib/libtcplay/hdr.c
391
HOST_TO_BE(32, info->hdr->crc_dhdr);
lib/libtcplay/hdr.c
395
(unsigned char *)info->hdr, sizeof(struct tchdr_dec), ehdr->enc);
lib/libtcplay/hdr.c
403
(unsigned char *)info->hdr,
lib/libtcplay/safe_mem.c
109
struct safe_mem_hdr *hdr;
lib/libtcplay/safe_mem.c
114
mem -= sizeof(*hdr);
lib/libtcplay/safe_mem.c
115
hdr = (struct safe_mem_hdr *)mem;
lib/libtcplay/safe_mem.c
116
tail = (struct safe_mem_tail *)(mem + hdr->alloc_sz - sizeof(*tail));
lib/libtcplay/safe_mem.c
120
(unsigned long)(void *)hdr, hdr->file, hdr->line);
lib/libtcplay/safe_mem.c
123
if (hdr->alloc_sz == 0) {
lib/libtcplay/safe_mem.c
129
if ((memcmp(hdr->sig, "SAFEMEM\0", 8) != 0) ||
lib/libtcplay/safe_mem.c
142
if (hdr->prev != NULL)
lib/libtcplay/safe_mem.c
143
hdr->prev->next = hdr->next;
lib/libtcplay/safe_mem.c
144
if (hdr->next != NULL)
lib/libtcplay/safe_mem.c
145
hdr->next->prev = hdr->prev;
lib/libtcplay/safe_mem.c
146
if (safe_mem_hdr_first == hdr)
lib/libtcplay/safe_mem.c
147
safe_mem_hdr_first = hdr->next;
lib/libtcplay/safe_mem.c
149
alloc_sz = hdr->alloc_sz;
lib/libtcplay/safe_mem.c
177
struct safe_mem_hdr *hdr;
lib/libtcplay/safe_mem.c
186
hdr = safe_mem_hdr_first;
lib/libtcplay/safe_mem.c
187
while ((hdr = safe_mem_hdr_first) != NULL) {
lib/libtcplay/safe_mem.c
189
if ((hdr->alloc_sz > 0) &&
lib/libtcplay/safe_mem.c
190
(memcmp(hdr->sig, "SAFEMEM\0", 8) == 0) &&
lib/libtcplay/safe_mem.c
191
(memcmp(hdr->tail->sig, "SAFEMEM\0", 8) == 0))
lib/libtcplay/safe_mem.c
197
(unsigned long)(void *)hdr, hdr->file, hdr->line,
lib/libtcplay/safe_mem.c
200
mem = (void *)hdr;
lib/libtcplay/safe_mem.c
201
mem += sizeof(*hdr);
lib/libtcplay/safe_mem.c
57
struct safe_mem_hdr *hdr, *hdrp;
lib/libtcplay/safe_mem.c
62
alloc_sz = req_sz + sizeof(*hdr) + sizeof(*tail);
lib/libtcplay/safe_mem.c
78
hdr = (struct safe_mem_hdr *)mem;
lib/libtcplay/safe_mem.c
80
user_mem = mem + sizeof(*hdr);
lib/libtcplay/safe_mem.c
82
strcpy(hdr->sig, "SAFEMEM");
lib/libtcplay/safe_mem.c
84
hdr->tail = tail;
lib/libtcplay/safe_mem.c
85
hdr->alloc_sz = alloc_sz;
lib/libtcplay/safe_mem.c
86
hdr->file = file;
lib/libtcplay/safe_mem.c
87
hdr->line = line;
lib/libtcplay/safe_mem.c
88
hdr->next = NULL;
lib/libtcplay/safe_mem.c
91
safe_mem_hdr_first = hdr;
lib/libtcplay/safe_mem.c
96
hdr->prev = hdrp;
lib/libtcplay/safe_mem.c
97
hdrp->next = hdr;
lib/libtcplay/tcplay.c
1621
info->hdr = NULL;
lib/libtcplay/tcplay.c
335
if (info->hdr != NULL) {
lib/libtcplay/tcplay.c
336
printf("CRC Key Data:\t\t%#x\n", info->hdr->crc_keys);
lib/libtcplay/tcplay.c
337
printf("Sector size:\t\t%d\n", info->hdr->sec_sz);
lib/libtcplay/tcplay.c
338
printf("Signature:\t\t%c%c%c%c\n", info->hdr->tc_str[0],
lib/libtcplay/tcplay.c
339
info->hdr->tc_str[1], info->hdr->tc_str[2],
lib/libtcplay/tcplay.c
340
info->hdr->tc_str[3]);
lib/libtcplay/tcplay.c
363
struct pbkdf_prf_algo *prf, struct tchdr_dec *hdr, off_t start)
lib/libtcplay/tcplay.c
381
info->hdr = hdr;
lib/libtcplay/tcplay.c
382
info->blk_sz = hdr->sec_sz;
lib/libtcplay/tcplay.c
383
info->size = hdr->sz_mk_scope / hdr->sec_sz; /* volume size */
lib/libtcplay/tcplay.c
384
info->skip = hdr->off_mk_scope / hdr->sec_sz; /* iv skip */
lib/libtcplay/tcplay.c
386
info->volflags = hdr->flags;
lib/libtcplay/tcplay.c
392
info->offset = hdr->off_mk_scope / hdr->sec_sz; /* block offset */
lib/libtcplay/tcplay.c
395
error = tc_cipher_chain_populate_keys(cipher_chain, hdr->keys);
lib/libtcplay/tcplay.c
417
if (info->hdr)
lib/libtcplay/tcplay.c
418
free_safe_mem(info->hdr);
lib/libtcplay/tcplay.c
428
if (hinfo->hdr->sz_hidvol == 0)
lib/libtcplay/tcplay.c
431
info->size -= hinfo->hdr->sz_hidvol / hinfo->hdr->sec_sz;
lib/libtcplay/tcplay.h
151
struct tchdr_dec *hdr;
lib/libtcplay/tcplay.h
288
int verify_hdr(struct tchdr_dec *hdr, struct pbkdf_prf_algo *prf_algo);
lib/libtcplay/tcplay_api.c
772
if (info->hdr)
lib/libtcplay/tcplay_api.c
773
*i64p = (int64_t)info->size * (int64_t)info->hdr->sec_sz;
lib/libtcplay/tcplay_api.c
783
if (info->hdr)
lib/libtcplay/tcplay_api.c
784
*i64p = (int64_t)info->skip * (int64_t)info->hdr->sec_sz;
lib/libtcplay/tcplay_api.c
794
if (info->hdr)
lib/libtcplay/tcplay_api.c
795
*i64p = (int64_t)info->offset * (int64_t)info->hdr->sec_sz;
lib/libutil/hexdump.c
43
hexdump(const void *ptr, int length, const char *hdr, int flags)
lib/libutil/hexdump.c
62
if (hdr != NULL)
lib/libutil/hexdump.c
63
printf("%s", hdr);
libexec/rtld-elf/map_object.c
106
phdr = (Elf_Phdr *) ((char *)hdr + hdr->e_phoff);
libexec/rtld-elf/map_object.c
107
phsize = hdr->e_phnum * sizeof (phdr[0]);
libexec/rtld-elf/map_object.c
108
phlimit = phdr + hdr->e_phnum;
libexec/rtld-elf/map_object.c
116
segs = alloca(sizeof(segs[0]) * hdr->e_phnum);
libexec/rtld-elf/map_object.c
160
note_start = (Elf_Addr)(char *)hdr + phdr->p_offset;
libexec/rtld-elf/map_object.c
274
if (phdr_vaddr == 0 && data_offset <= hdr->e_phoff &&
libexec/rtld-elf/map_object.c
276
(hdr->e_phoff + hdr->e_phnum * sizeof (Elf_Phdr))) {
libexec/rtld-elf/map_object.c
277
phdr_vaddr = data_vaddr + hdr->e_phoff - data_offset;
libexec/rtld-elf/map_object.c
293
if (hdr->e_entry != 0)
libexec/rtld-elf/map_object.c
294
obj->entry = (caddr_t) (obj->relocbase + hdr->e_entry);
libexec/rtld-elf/map_object.c
304
memcpy((char *)obj->phdr, (char *)hdr + hdr->e_phoff, phsize);
libexec/rtld-elf/map_object.c
325
munmap(hdr, PAGE_SIZE);
libexec/rtld-elf/map_object.c
331
munmap(hdr, PAGE_SIZE);
libexec/rtld-elf/map_object.c
338
Elf_Ehdr *hdr;
libexec/rtld-elf/map_object.c
341
hdr = mmap(NULL, PAGE_SIZE, PROT_READ, MAP_PRIVATE, fd, 0);
libexec/rtld-elf/map_object.c
342
if (hdr == (Elf_Ehdr *)MAP_FAILED) {
libexec/rtld-elf/map_object.c
348
if (!IS_ELF(*hdr)) {
libexec/rtld-elf/map_object.c
352
if (hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS ||
libexec/rtld-elf/map_object.c
353
hdr->e_ident[EI_DATA] != ELF_TARG_DATA) {
libexec/rtld-elf/map_object.c
357
if (hdr->e_ident[EI_VERSION] != EV_CURRENT ||
libexec/rtld-elf/map_object.c
358
hdr->e_version != EV_CURRENT) {
libexec/rtld-elf/map_object.c
362
if (hdr->e_type != ET_EXEC && hdr->e_type != ET_DYN) {
libexec/rtld-elf/map_object.c
366
if (hdr->e_machine != ELF_TARG_MACH) {
libexec/rtld-elf/map_object.c
376
if (hdr->e_phentsize != sizeof(Elf_Phdr)) {
libexec/rtld-elf/map_object.c
381
if (hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr) >
libexec/rtld-elf/map_object.c
386
return (hdr);
libexec/rtld-elf/map_object.c
389
munmap(hdr, PAGE_SIZE);
libexec/rtld-elf/map_object.c
56
Elf_Ehdr *hdr;
libexec/rtld-elf/map_object.c
91
hdr = get_elf_header(fd, path);
libexec/rtld-elf/map_object.c
92
if (hdr == NULL)
libexec/rtld-elf/rtld.c
1696
struct elfhints_hdr hdr;
libexec/rtld-elf/rtld.c
1713
if (read(fd, &hdr, sizeof hdr) != sizeof hdr ||
libexec/rtld-elf/rtld.c
1714
hdr.magic != ELFHINTS_MAGIC ||
libexec/rtld-elf/rtld.c
1715
hdr.version != 1) {
libexec/rtld-elf/rtld.c
1719
p = xmalloc(hdr.dirlistlen + 1);
libexec/rtld-elf/rtld.c
1720
if (lseek(fd, hdr.strtab + hdr.dirlist, SEEK_SET) == -1 ||
libexec/rtld-elf/rtld.c
1721
read(fd, p, hdr.dirlistlen + 1) !=
libexec/rtld-elf/rtld.c
1722
(ssize_t)hdr.dirlistlen + 1) {
libexec/rtld-elf/rtld.c
1785
filtered_path = xmalloc(hdr.dirlistlen + 1);
sbin/cryptdisks/safe_mem.c
110
struct safe_mem_hdr *hdr;
sbin/cryptdisks/safe_mem.c
115
mem -= sizeof(*hdr);
sbin/cryptdisks/safe_mem.c
116
hdr = (struct safe_mem_hdr *)mem;
sbin/cryptdisks/safe_mem.c
117
tail = (struct safe_mem_tail *)(mem + hdr->alloc_sz - sizeof(*tail));
sbin/cryptdisks/safe_mem.c
121
(unsigned long)(void *)hdr, hdr->file, hdr->line);
sbin/cryptdisks/safe_mem.c
124
if (hdr->alloc_sz == 0) {
sbin/cryptdisks/safe_mem.c
130
if ((memcmp(hdr->sig, "SAFEMEM\0", 8) != 0) ||
sbin/cryptdisks/safe_mem.c
143
if (hdr->prev != NULL)
sbin/cryptdisks/safe_mem.c
144
hdr->prev->next = hdr->next;
sbin/cryptdisks/safe_mem.c
145
if (hdr->next != NULL)
sbin/cryptdisks/safe_mem.c
146
hdr->next->prev = hdr->prev;
sbin/cryptdisks/safe_mem.c
147
if (safe_mem_hdr_first == hdr)
sbin/cryptdisks/safe_mem.c
148
safe_mem_hdr_first = hdr->next;
sbin/cryptdisks/safe_mem.c
150
alloc_sz = hdr->alloc_sz;
sbin/cryptdisks/safe_mem.c
161
struct safe_mem_hdr *hdr;
sbin/cryptdisks/safe_mem.c
170
hdr = safe_mem_hdr_first;
sbin/cryptdisks/safe_mem.c
171
while ((hdr = safe_mem_hdr_first) != NULL) {
sbin/cryptdisks/safe_mem.c
173
if ((hdr->alloc_sz > 0) &&
sbin/cryptdisks/safe_mem.c
174
(memcmp(hdr->sig, "SAFEMEM\0", 8) == 0) &&
sbin/cryptdisks/safe_mem.c
175
(memcmp(hdr->tail->sig, "SAFEMEM\0", 8) == 0))
sbin/cryptdisks/safe_mem.c
181
(unsigned long)(void *)hdr, hdr->file, hdr->line,
sbin/cryptdisks/safe_mem.c
184
mem = (void *)hdr;
sbin/cryptdisks/safe_mem.c
185
mem += sizeof(*hdr);
sbin/cryptdisks/safe_mem.c
57
struct safe_mem_hdr *hdr, *hdrp;
sbin/cryptdisks/safe_mem.c
62
alloc_sz = req_sz + sizeof(*hdr) + sizeof(*tail);
sbin/cryptdisks/safe_mem.c
78
hdr = (struct safe_mem_hdr *)mem;
sbin/cryptdisks/safe_mem.c
80
user_mem = mem + sizeof(*hdr);
sbin/cryptdisks/safe_mem.c
82
strcpy(hdr->sig, "SAFEMEM");
sbin/cryptdisks/safe_mem.c
84
hdr->tail = tail;
sbin/cryptdisks/safe_mem.c
85
hdr->alloc_sz = alloc_sz;
sbin/cryptdisks/safe_mem.c
86
hdr->file = file;
sbin/cryptdisks/safe_mem.c
87
hdr->line = line;
sbin/cryptdisks/safe_mem.c
88
hdr->next = NULL;
sbin/cryptdisks/safe_mem.c
91
safe_mem_hdr_first = hdr;
sbin/cryptdisks/safe_mem.c
96
hdr->prev = hdrp;
sbin/cryptdisks/safe_mem.c
97
hdrp->next = hdr;
sbin/dhclient/bpf.c
303
struct bpf_hdr hdr;
sbin/dhclient/bpf.c
330
if (ifi->rbuf_len - ifi->rbuf_offset < sizeof(hdr)) {
sbin/dhclient/bpf.c
336
memcpy(&hdr, &ifi->rbuf[ifi->rbuf_offset], sizeof(hdr));
sbin/dhclient/bpf.c
342
if (ifi->rbuf_offset + hdr.bh_hdrlen + hdr.bh_caplen >
sbin/dhclient/bpf.c
353
if (hdr.bh_caplen != hdr.bh_datalen) {
sbin/dhclient/bpf.c
355
ifi->rbuf_offset + hdr.bh_hdrlen +
sbin/dhclient/bpf.c
356
hdr.bh_caplen);
sbin/dhclient/bpf.c
361
ifi->rbuf_offset += hdr.bh_hdrlen;
sbin/dhclient/bpf.c
373
ifi->rbuf_offset + hdr.bh_caplen);
sbin/dhclient/bpf.c
377
hdr.bh_caplen -= offset;
sbin/dhclient/bpf.c
381
ifi->rbuf_offset, from, NULL, hdr.bh_caplen);
sbin/dhclient/bpf.c
386
ifi->rbuf_offset + hdr.bh_caplen);
sbin/dhclient/bpf.c
390
hdr.bh_caplen -= offset;
sbin/dhclient/bpf.c
397
if (hdr.bh_caplen > sizeof(client->packet)) {
sbin/dhclient/bpf.c
399
ifi->rbuf_offset + hdr.bh_caplen);
sbin/dhclient/bpf.c
406
hdr.bh_caplen);
sbin/dhclient/bpf.c
408
hdr.bh_caplen);
sbin/dhclient/bpf.c
409
return (hdr.bh_caplen);
sbin/dhclient/dhclient.c
1531
struct imsg_hdr hdr;
sbin/dhclient/dhclient.c
1534
hdr.code = IMSG_SCRIPT_INIT;
sbin/dhclient/dhclient.c
1535
hdr.len = sizeof(struct imsg_hdr) + sizeof(size_t) + strlen(reason);
sbin/dhclient/dhclient.c
1536
buf = buf_open(hdr.len);
sbin/dhclient/dhclient.c
1538
buf_add(buf, &hdr, sizeof(hdr));
sbin/dhclient/dhclient.c
1679
struct imsg_hdr hdr;
sbin/dhclient/dhclient.c
1690
hdr.code = IMSG_SCRIPT_WRITE_PARAMS;
sbin/dhclient/dhclient.c
1691
hdr.len = sizeof(hdr) + sizeof(struct client_lease) +
sbin/dhclient/dhclient.c
1696
hdr.len += sizeof(int) + lease->options[i].len;
sbin/dhclient/dhclient.c
1700
buf = buf_open(hdr.len);
sbin/dhclient/dhclient.c
1702
buf_add(buf, &hdr, sizeof(hdr));
sbin/dhclient/dhclient.c
1724
struct imsg_hdr hdr;
sbin/dhclient/dhclient.c
1730
hdr.code = IMSG_SCRIPT_GO;
sbin/dhclient/dhclient.c
1731
hdr.len = sizeof(struct imsg_hdr);
sbin/dhclient/dhclient.c
1733
buf = buf_open(hdr.len);
sbin/dhclient/dhclient.c
1735
buf_add(buf, &hdr, sizeof(hdr));
sbin/dhclient/dhclient.c
1738
bzero(&hdr, sizeof(hdr));
sbin/dhclient/dhclient.c
1739
buf_read(privfd, &hdr, sizeof(hdr));
sbin/dhclient/dhclient.c
1740
if (hdr.code != IMSG_SCRIPT_GO_RET)
sbin/dhclient/dhclient.c
1741
error("unexpected msg type %u", hdr.code);
sbin/dhclient/dhclient.c
1742
if (hdr.len != sizeof(hdr) + sizeof(int))
sbin/dhclient/privsep.c
105
buf_read(fd, &hdr, sizeof(hdr));
sbin/dhclient/privsep.c
107
switch (hdr.code) {
sbin/dhclient/privsep.c
109
if (hdr.len < sizeof(hdr) + sizeof(size_t))
sbin/dhclient/privsep.c
112
if (hdr.len < reason_len + sizeof(hdr) + sizeof(size_t) ||
sbin/dhclient/privsep.c
127
totlen = sizeof(hdr) + sizeof(lease) + sizeof(size_t);
sbin/dhclient/privsep.c
128
if (hdr.len < totlen)
sbin/dhclient/privsep.c
134
if (hdr.len < totlen || filename_len == SIZE_T_MAX)
sbin/dhclient/privsep.c
145
if (hdr.len < totlen || servername_len == SIZE_T_MAX)
sbin/dhclient/privsep.c
157
if (hdr.len < totlen || prefix_len == SIZE_T_MAX)
sbin/dhclient/privsep.c
168
if (hdr.len < totlen)
sbin/dhclient/privsep.c
175
if (hdr.len < totlen || optlen == SIZE_T_MAX)
sbin/dhclient/privsep.c
197
if (hdr.len != sizeof(hdr))
sbin/dhclient/privsep.c
202
hdr.code = IMSG_SCRIPT_GO_RET;
sbin/dhclient/privsep.c
203
hdr.len = sizeof(struct imsg_hdr) + sizeof(int);
sbin/dhclient/privsep.c
204
if ((buf = buf_open(hdr.len)) == NULL)
sbin/dhclient/privsep.c
206
buf_add(buf, &hdr, sizeof(hdr));
sbin/dhclient/privsep.c
211
error("received unknown message, code %d", hdr.code);
sbin/dhclient/privsep.c
96
struct imsg_hdr hdr;
sbin/gpt/add.c
100
le32toh(hdr->hdr_entsz));
sbin/gpt/add.c
109
for (i = 0; i < le32toh(hdr->hdr_entries); i++) {
sbin/gpt/add.c
111
le32toh(hdr->hdr_entsz));
sbin/gpt/add.c
115
if (i == le32toh(hdr->hdr_entries)) {
sbin/gpt/add.c
134
hdr->hdr_crc_table = htole32(crc32(tbl->map_data,
sbin/gpt/add.c
135
le32toh(hdr->hdr_entries) * le32toh(hdr->hdr_entsz)));
sbin/gpt/add.c
136
hdr->hdr_crc_self = 0;
sbin/gpt/add.c
137
hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
sbin/gpt/add.c
142
hdr = tpg->map_data;
sbin/gpt/add.c
143
ent = (void*)((char*)lbt->map_data + i * le32toh(hdr->hdr_entsz));
sbin/gpt/add.c
151
hdr->hdr_crc_table = htole32(crc32(lbt->map_data,
sbin/gpt/add.c
152
le32toh(hdr->hdr_entries) * le32toh(hdr->hdr_entsz)));
sbin/gpt/add.c
153
hdr->hdr_crc_self = 0;
sbin/gpt/add.c
154
hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
sbin/gpt/add.c
62
struct gpt_hdr *hdr;
sbin/gpt/add.c
90
hdr = gpt->map_data;
sbin/gpt/add.c
91
if (entry != MAP_NOENTRY && entry > le32toh(hdr->hdr_entries)) {
sbin/gpt/add.c
93
entry, le32toh(hdr->hdr_entries));
sbin/gpt/boot.c
106
hdr->hdr_crc_table = htole32(crc32(tbl->map_data,
sbin/gpt/boot.c
107
le32toh(hdr->hdr_entries) *
sbin/gpt/boot.c
108
le32toh(hdr->hdr_entsz)));
sbin/gpt/boot.c
109
hdr->hdr_crc_self = 0;
sbin/gpt/boot.c
110
hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
sbin/gpt/boot.c
118
hdr = tpg->map_data;
sbin/gpt/boot.c
124
hdr->hdr_crc_table = htole32(crc32(lbt->map_data,
sbin/gpt/boot.c
125
le32toh(hdr->hdr_entries) *
sbin/gpt/boot.c
126
le32toh(hdr->hdr_entsz)));
sbin/gpt/boot.c
127
hdr->hdr_crc_self = 0;
sbin/gpt/boot.c
128
hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
sbin/gpt/boot.c
63
struct gpt_hdr *hdr;
sbin/gpt/boot.c
89
hdr = gpt->map_data;
sbin/gpt/create.c
158
hdr = gpt->map_data;
sbin/gpt/create.c
159
memcpy(hdr->hdr_sig, GPT_HDR_SIG, sizeof(hdr->hdr_sig));
sbin/gpt/create.c
160
hdr->hdr_revision = htole32(GPT_HDR_REVISION);
sbin/gpt/create.c
161
hdr->hdr_size = htole32(GPT_MIN_HDR_SIZE);
sbin/gpt/create.c
162
hdr->hdr_lba_self = htole64(gpt->map_start);
sbin/gpt/create.c
163
hdr->hdr_lba_alt = htole64(last);
sbin/gpt/create.c
164
hdr->hdr_lba_start = htole64(tbl->map_start + blocks);
sbin/gpt/create.c
165
hdr->hdr_lba_end = htole64(last - blocks - 1LL);
sbin/gpt/create.c
167
uuid_enc_le(&hdr->hdr_uuid, &uuid);
sbin/gpt/create.c
168
hdr->hdr_lba_table = htole64(tbl->map_start);
sbin/gpt/create.c
169
hdr->hdr_entries = htole32((blocks * secsz) / sizeof(struct gpt_ent));
sbin/gpt/create.c
170
if (le32toh(hdr->hdr_entries) > parts)
sbin/gpt/create.c
171
hdr->hdr_entries = htole32(parts);
sbin/gpt/create.c
172
hdr->hdr_entsz = htole32(sizeof(struct gpt_ent));
sbin/gpt/create.c
175
for (i = 0; i < le32toh(hdr->hdr_entries); i++) {
sbin/gpt/create.c
180
hdr->hdr_crc_table = htole32(crc32(ent, le32toh(hdr->hdr_entries) *
sbin/gpt/create.c
181
le32toh(hdr->hdr_entsz)));
sbin/gpt/create.c
182
hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
sbin/gpt/create.c
201
hdr = tpg->map_data;
sbin/gpt/create.c
202
hdr->hdr_lba_self = htole64(tpg->map_start);
sbin/gpt/create.c
203
hdr->hdr_lba_alt = htole64(gpt->map_start);
sbin/gpt/create.c
204
hdr->hdr_lba_table = htole64(lbt->map_start);
sbin/gpt/create.c
205
hdr->hdr_crc_self = 0; /* Don't ever forget this! */
sbin/gpt/create.c
206
hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
sbin/gpt/create.c
81
struct gpt_hdr *hdr;
sbin/gpt/expand.c
119
hdr = gpt->map_data;
sbin/gpt/expand.c
123
for (i = 0; i < le32toh(hdr->hdr_entries); ++i) {
sbin/gpt/expand.c
125
le32toh(hdr->hdr_entsz));
sbin/gpt/expand.c
180
delta = last - hdr->hdr_lba_alt;
sbin/gpt/expand.c
187
hdr->hdr_lba_alt = htole64(last);
sbin/gpt/expand.c
189
hdr->hdr_crc_table = htole32(crc32(tbl->map_data,
sbin/gpt/expand.c
190
le32toh(hdr->hdr_entries) * le32toh(hdr->hdr_entsz)));
sbin/gpt/expand.c
191
hdr->hdr_crc_self = 0;
sbin/gpt/expand.c
192
hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
sbin/gpt/expand.c
210
hdr = tpg->map_data;
sbin/gpt/expand.c
211
hdr->hdr_lba_self = htole64(tpg->map_start);
sbin/gpt/expand.c
212
hdr->hdr_lba_table = htole64(lbt->map_start);
sbin/gpt/expand.c
213
hdr->hdr_lba_alt = htole64(gpt->map_start);
sbin/gpt/expand.c
214
hdr->hdr_crc_table = htole32(crc32(lbt->map_data,
sbin/gpt/expand.c
215
le32toh(hdr->hdr_entries) * le32toh(hdr->hdr_entsz)));
sbin/gpt/expand.c
216
hdr->hdr_crc_self = 0;
sbin/gpt/expand.c
217
hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
sbin/gpt/expand.c
90
struct gpt_hdr *hdr;
sbin/gpt/gpt.c
463
struct gpt_hdr *hdr;
sbin/gpt/gpt.c
469
hdr = gpt_read(fd, lba, 1);
sbin/gpt/gpt.c
470
if (hdr == NULL) {
sbin/gpt/gpt.c
476
if (memcmp(hdr->hdr_sig, GPT_HDR_SIG, sizeof(hdr->hdr_sig)))
sbin/gpt/gpt.c
479
crc = le32toh(hdr->hdr_crc_self);
sbin/gpt/gpt.c
480
hdr->hdr_crc_self = 0;
sbin/gpt/gpt.c
481
if (crc32(hdr, le32toh(hdr->hdr_size)) != crc) {
sbin/gpt/gpt.c
489
tblsz = le32toh(hdr->hdr_entries) * le32toh(hdr->hdr_entsz);
sbin/gpt/gpt.c
492
p = gpt_read(fd, le64toh(hdr->hdr_lba_table), blocks);
sbin/gpt/gpt.c
495
device_name, (uintmax_t)le64toh(hdr->hdr_lba_table));
sbin/gpt/gpt.c
499
if (crc32(p, tblsz) != le32toh(hdr->hdr_crc_table)) {
sbin/gpt/gpt.c
503
(uintmax_t)le64toh(hdr->hdr_lba_table));
sbin/gpt/gpt.c
514
(lba == 1) ? MAP_TYPE_GPT_PRI_HDR : MAP_TYPE_GPT_SEC_HDR, hdr);
sbin/gpt/gpt.c
518
m = map_add(le64toh(hdr->hdr_lba_table), blocks,
sbin/gpt/gpt.c
529
free(hdr);
sbin/gpt/gpt.c
536
struct gpt_hdr *hdr;
sbin/gpt/gpt.c
546
hdr = map->map_data;
sbin/gpt/gpt.c
550
hdr = map->map_data;
sbin/gpt/gpt.c
554
for (i = 0; i < le32toh(hdr->hdr_entries); i++) {
sbin/gpt/gpt.c
560
le32toh(hdr->hdr_entsz));
sbin/gpt/gpt.c
664
struct gpt_hdr *hdr;
sbin/gpt/gpt.c
676
hdr = map->map_data;
sbin/gpt/gpt.c
677
lba = le64toh(hdr->hdr_lba_alt);
sbin/gpt/label.c
105
hdr = gpt->map_data;
sbin/gpt/label.c
107
le32toh(hdr->hdr_entsz));
sbin/gpt/label.c
116
hdr->hdr_crc_table = htole32(crc32(tbl->map_data,
sbin/gpt/label.c
117
le32toh(hdr->hdr_entries) * le32toh(hdr->hdr_entsz)));
sbin/gpt/label.c
118
hdr->hdr_crc_self = 0;
sbin/gpt/label.c
119
hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
sbin/gpt/label.c
124
hdr = tpg->map_data;
sbin/gpt/label.c
126
le32toh(hdr->hdr_entsz));
sbin/gpt/label.c
131
hdr->hdr_crc_table = htole32(crc32(lbt->map_data,
sbin/gpt/label.c
132
le32toh(hdr->hdr_entries) * le32toh(hdr->hdr_entsz)));
sbin/gpt/label.c
133
hdr->hdr_crc_self = 0;
sbin/gpt/label.c
134
hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
sbin/gpt/label.c
66
struct gpt_hdr *hdr;
sbin/gpt/migrate.c
240
struct gpt_hdr *hdr;
sbin/gpt/migrate.c
323
hdr = gpt->map_data;
sbin/gpt/migrate.c
324
memcpy(hdr->hdr_sig, GPT_HDR_SIG, sizeof(hdr->hdr_sig));
sbin/gpt/migrate.c
325
hdr->hdr_revision = htole32(GPT_HDR_REVISION);
sbin/gpt/migrate.c
326
hdr->hdr_size = htole32(GPT_MIN_HDR_SIZE);
sbin/gpt/migrate.c
327
hdr->hdr_lba_self = htole64(gpt->map_start);
sbin/gpt/migrate.c
328
hdr->hdr_lba_alt = htole64(tpg->map_start);
sbin/gpt/migrate.c
329
hdr->hdr_lba_start = htole64(tbl->map_start + blocks);
sbin/gpt/migrate.c
330
hdr->hdr_lba_end = htole64(lbt->map_start - 1LL);
sbin/gpt/migrate.c
332
uuid_enc_le(&hdr->hdr_uuid, &uuid);
sbin/gpt/migrate.c
333
hdr->hdr_lba_table = htole64(tbl->map_start);
sbin/gpt/migrate.c
334
hdr->hdr_entries = htole32((blocks * secsz) / sizeof(struct gpt_ent));
sbin/gpt/migrate.c
335
if (le32toh(hdr->hdr_entries) > parts)
sbin/gpt/migrate.c
336
hdr->hdr_entries = htole32(parts);
sbin/gpt/migrate.c
337
hdr->hdr_entsz = htole32(sizeof(struct gpt_ent));
sbin/gpt/migrate.c
340
for (i = 0; i < le32toh(hdr->hdr_entries); i++) {
sbin/gpt/migrate.c
418
hdr->hdr_crc_table = htole32(crc32(ent, le32toh(hdr->hdr_entries) *
sbin/gpt/migrate.c
419
le32toh(hdr->hdr_entsz)));
sbin/gpt/migrate.c
420
hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
sbin/gpt/migrate.c
429
hdr = tpg->map_data;
sbin/gpt/migrate.c
430
hdr->hdr_lba_self = htole64(tpg->map_start);
sbin/gpt/migrate.c
431
hdr->hdr_lba_alt = htole64(gpt->map_start);
sbin/gpt/migrate.c
432
hdr->hdr_lba_table = htole64(lbt->map_start);
sbin/gpt/migrate.c
433
hdr->hdr_crc_self = 0; /* Don't ever forget this! */
sbin/gpt/migrate.c
434
hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
sbin/gpt/recover.c
111
hdr = tpg->map_data;
sbin/gpt/recover.c
112
hdr->hdr_lba_self = htole64(tpg->map_start);
sbin/gpt/recover.c
113
hdr->hdr_lba_alt = htole64(gpt->map_start);
sbin/gpt/recover.c
114
hdr->hdr_lba_table = htole64(lbt->map_start);
sbin/gpt/recover.c
115
hdr->hdr_crc_self = 0;
sbin/gpt/recover.c
116
hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
sbin/gpt/recover.c
129
hdr = gpt->map_data;
sbin/gpt/recover.c
130
hdr->hdr_lba_self = htole64(gpt->map_start);
sbin/gpt/recover.c
131
hdr->hdr_lba_alt = htole64(tpg->map_start);
sbin/gpt/recover.c
132
hdr->hdr_lba_table = htole64(tbl->map_start);
sbin/gpt/recover.c
133
hdr->hdr_crc_self = 0;
sbin/gpt/recover.c
134
hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
sbin/gpt/recover.c
53
struct gpt_hdr *hdr;
sbin/gpt/remove.c
102
hdr = gpt->map_data;
sbin/gpt/remove.c
104
le32toh(hdr->hdr_entsz));
sbin/gpt/remove.c
113
hdr->hdr_crc_table = htole32(crc32(tbl->map_data,
sbin/gpt/remove.c
114
le32toh(hdr->hdr_entries) * le32toh(hdr->hdr_entsz)));
sbin/gpt/remove.c
115
hdr->hdr_crc_self = 0;
sbin/gpt/remove.c
116
hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
sbin/gpt/remove.c
121
hdr = tpg->map_data;
sbin/gpt/remove.c
123
le32toh(hdr->hdr_entsz));
sbin/gpt/remove.c
128
hdr->hdr_crc_table = htole32(crc32(lbt->map_data,
sbin/gpt/remove.c
129
le32toh(hdr->hdr_entries) * le32toh(hdr->hdr_entsz)));
sbin/gpt/remove.c
130
hdr->hdr_crc_self = 0;
sbin/gpt/remove.c
131
hdr->hdr_crc_self = htole32(crc32(hdr, le32toh(hdr->hdr_size)));
sbin/gpt/remove.c
63
struct gpt_hdr *hdr;
sbin/hammer/cmd_show.c
1042
hammer_fifo_head_t hdr;
sbin/hammer/cmd_show.c
1057
hdr = &head->head;
sbin/hammer/cmd_show.c
1060
switch(hdr->hdr_type) {
sbin/hammer/cmd_show.c
1062
printf("PAD(%d)", hdr->hdr_size);
sbin/hammer/cmd_show.c
1066
hdr->hdr_size, hdr->hdr_seq);
sbin/hammer/cmd_show.c
1070
hdr->hdr_size, hdr->hdr_seq,
sbin/hammer/cmd_show.c
1077
hdr->hdr_size, hdr->hdr_seq,
sbin/hammer/cmd_show.c
1086
hdr->hdr_type, hdr->hdr_size, hdr->hdr_seq);
sbin/hammer/cmd_show.c
1097
hammer_add_zone_stat(stats, scan_offset, hdr->hdr_size);
sbin/hammer/cmd_show.c
1099
if ((hdr->hdr_size & HAMMER_HEAD_ALIGN_MASK) ||
sbin/hammer/cmd_show.c
1100
hdr->hdr_size == 0 ||
sbin/hammer/cmd_show.c
1101
hdr->hdr_size > HAMMER_UNDO_ALIGN -
sbin/hammer/cmd_show.c
1107
scan_offset += hdr->hdr_size;
sbin/hammer/cmd_show.c
77
static void hexdump_record(const void *ptr, int length, const char *hdr);
sbin/hammer/cmd_show.c
873
hexdump_record(const void *ptr, int length, const char *hdr)
sbin/hammer/cmd_show.c
879
hexdump(ptr, data_len, hdr, 0);
sbin/hammer/cmd_show.c
882
printf("%s....\n", hdr);
sbin/ldconfig/elfhints.c
193
struct elfhints_hdr *hdr;
sbin/ldconfig/elfhints.c
217
hdr = (struct elfhints_hdr *)mapbase;
sbin/ldconfig/elfhints.c
218
if (hdr->magic != ELFHINTS_MAGIC)
sbin/ldconfig/elfhints.c
220
if (hdr->version != 1)
sbin/ldconfig/elfhints.c
222
hdr->version);
sbin/ldconfig/elfhints.c
224
strtab = (char *)mapbase + hdr->strtab;
sbin/ldconfig/elfhints.c
225
dirlist = strtab + hdr->dirlist;
sbin/ldconfig/elfhints.c
255
struct elfhints_hdr hdr;
sbin/ldconfig/elfhints.c
270
hdr.magic = ELFHINTS_MAGIC;
sbin/ldconfig/elfhints.c
271
hdr.version = 1;
sbin/ldconfig/elfhints.c
272
hdr.strtab = sizeof hdr;
sbin/ldconfig/elfhints.c
273
hdr.strsize = 0;
sbin/ldconfig/elfhints.c
274
hdr.dirlist = 0;
sbin/ldconfig/elfhints.c
275
memset(hdr.spare, 0, sizeof hdr.spare);
sbin/ldconfig/elfhints.c
279
hdr.strsize += strlen(dirs[0]);
sbin/ldconfig/elfhints.c
281
hdr.strsize += 1 + strlen(dirs[i]);
sbin/ldconfig/elfhints.c
283
hdr.dirlistlen = hdr.strsize;
sbin/ldconfig/elfhints.c
284
hdr.strsize++; /* For the null terminator */
sbin/ldconfig/elfhints.c
287
if (fwrite(&hdr, 1, sizeof hdr, fp) != sizeof hdr)
sbin/restore/symtab.c
439
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
fwrite((char *)&hdr, sizeof(struct symtableheader), 1, fd);
sbin/restore/symtab.c
524
struct symtableheader hdr;
sbin/restore/symtab.c
553
read(fd, (char *)&hdr, sizeof(struct symtableheader)) < 0) {
sbin/restore/symtab.c
563
if (hdr.dumpdate != dumptime) {
sbin/restore/symtab.c
564
if (hdr.dumpdate < dumptime)
sbin/restore/symtab.c
576
dumptime = hdr.dumptime;
sbin/restore/symtab.c
577
dumpdate = hdr.dumpdate;
sbin/restore/symtab.c
579
newtapebuf(hdr.ntrec);
sbin/restore/symtab.c
580
getvol(hdr.volno);
sbin/restore/symtab.c
586
maxino = hdr.maxino;
sbin/restore/symtab.c
587
entrytblsize = hdr.entrytblsize;
sbin/restore/symtab.c
590
baseep = (struct entry *)(base + hdr.stringsize - sizeof(struct entry));
sbin/vinum/list.c
1374
struct vinum_hdr *hdr = (struct vinum_hdr *) vinumlabel; /* with this structure */
sbin/vinum/list.c
1399
if ((hdr->magic == VINUM_MAGIC)
sbin/vinum/list.c
1400
|| (vflag && (hdr->magic == VINUM_NOMAGIC))) {
sbin/vinum/list.c
1402
hdr->label.name,
sbin/vinum/list.c
1404
if (hdr->magic == VINUM_NOMAGIC)
sbin/vinum/list.c
1406
t = hdr->label.date_of_birth.tv_sec;
sbin/vinum/list.c
1408
hdr->label.sysname,
sbin/vinum/list.c
1410
t = hdr->label.last_update.tv_sec;
sbin/vinum/list.c
1414
(long long) hdr->label.drive_size, /* bytes used */
sbin/vinum/list.c
1415
(long long) (hdr->label.drive_size / MEGABYTE));
stand/boot/common/load_elf_obj.c
102
hdr = &ef.hdr;
stand/boot/common/load_elf_obj.c
103
bytes_read = read(ef.fd, hdr, sizeof(*hdr));
stand/boot/common/load_elf_obj.c
104
if (bytes_read != sizeof(*hdr)) {
stand/boot/common/load_elf_obj.c
110
if (!IS_ELF(*hdr)) {
stand/boot/common/load_elf_obj.c
114
if (hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || /* Layout ? */
stand/boot/common/load_elf_obj.c
115
hdr->e_ident[EI_DATA] != ELF_TARG_DATA ||
stand/boot/common/load_elf_obj.c
116
hdr->e_ident[EI_VERSION] != EV_CURRENT || /* Version ? */
stand/boot/common/load_elf_obj.c
117
hdr->e_version != EV_CURRENT ||
stand/boot/common/load_elf_obj.c
118
hdr->e_machine != ELF_TARG_MACH || /* Machine ? */
stand/boot/common/load_elf_obj.c
119
hdr->e_type != ET_REL) {
stand/boot/common/load_elf_obj.c
124
if (hdr->e_shnum * hdr->e_shentsize == 0 || hdr->e_shoff == 0 ||
stand/boot/common/load_elf_obj.c
125
hdr->e_shentsize != sizeof(Elf_Shdr)) {
stand/boot/common/load_elf_obj.c
165
file_addmetadata(fp, MODINFOMD_ELFHDR, sizeof(*hdr), hdr);
stand/boot/common/load_elf_obj.c
191
Elf_Ehdr *hdr;
stand/boot/common/load_elf_obj.c
198
hdr = &ef->hdr;
stand/boot/common/load_elf_obj.c
202
shdrbytes = hdr->e_shnum * hdr->e_shentsize;
stand/boot/common/load_elf_obj.c
203
shdr = alloc_pread(ef->fd, (off_t)hdr->e_shoff, shdrbytes);
stand/boot/common/load_elf_obj.c
215
for (i = 0; i < hdr->e_shnum; i++) {
stand/boot/common/load_elf_obj.c
231
for (i = 0; i < hdr->e_shnum; i++) {
stand/boot/common/load_elf_obj.c
250
if (symstrindex < 0 || symstrindex >= hdr->e_shnum ||
stand/boot/common/load_elf_obj.c
260
if (hdr->e_shstrndx == 0 || hdr->e_shstrndx >= hdr->e_shnum ||
stand/boot/common/load_elf_obj.c
261
shdr[hdr->e_shstrndx].sh_type != SHT_STRTAB) {
stand/boot/common/load_elf_obj.c
265
ef->shstrindex = hdr->e_shstrndx;
stand/boot/common/load_elf_obj.c
271
for (i = 0; i < hdr->e_shnum; i++) {
stand/boot/common/load_elf_obj.c
286
for (i = 0; i < hdr->e_shnum; i++) {
stand/boot/common/load_elf_obj.c
396
Elf_Ehdr *hdr;
stand/boot/common/load_elf_obj.c
402
hdr = &ef->hdr;
stand/boot/common/load_elf_obj.c
406
for (i = 0; i < hdr->e_shnum; i++) {
stand/boot/common/load_elf_obj.c
434
Elf_Ehdr *hdr;
stand/boot/common/load_elf_obj.c
442
hdr = &ef->hdr;
stand/boot/common/load_elf_obj.c
445
for (i = 0; i < hdr->e_shnum; i++) {
stand/boot/common/load_elf_obj.c
498
if (sym.st_shndx == SHN_UNDEF || sym.st_shndx >= ef->hdr.e_shnum)
stand/boot/common/load_elf_obj.c
53
Elf_Ehdr hdr;
stand/boot/common/load_elf_obj.c
87
Elf_Ehdr *hdr;
stand/boot/pc32/boot2/boot2.c
368
} hdr;
stand/boot/pc32/boot2/boot2.c
381
if (xfsread(ino, &hdr, sizeof(hdr)))
stand/boot/pc32/boot2/boot2.c
384
if (N_GETMAGIC(hdr.ex) == ZMAGIC) {
stand/boot/pc32/boot2/boot2.c
385
addr = hdr.ex.a_entry & 0xffffff;
stand/boot/pc32/boot2/boot2.c
388
if (xfsread(ino, p, hdr.ex.a_text))
stand/boot/pc32/boot2/boot2.c
390
p += roundup2(hdr.ex.a_text, PAGE_SIZE);
stand/boot/pc32/boot2/boot2.c
391
if (xfsread(ino, p, hdr.ex.a_data))
stand/boot/pc32/boot2/boot2.c
393
} else if (IS_ELF(hdr.eh)) {
stand/boot/pc32/boot2/boot2.c
394
fs_off = hdr.eh.e_phoff;
stand/boot/pc32/boot2/boot2.c
395
for (j = i = 0; i < hdr.eh.e_phnum && j < 2; i++) {
stand/boot/pc32/boot2/boot2.c
409
if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) {
stand/boot/pc32/boot2/boot2.c
410
fs_off = hdr.eh.e_shoff + sizeof(es[0]) *
stand/boot/pc32/boot2/boot2.c
411
(hdr.eh.e_shstrndx + 1);
stand/boot/pc32/boot2/boot2.c
423
addr = hdr.eh.e_entry & 0xffffff;
stand/boot/pc32/btxld/btxld.c
109
static void gethdr(int, struct hdr *);
stand/boot/pc32/btxld/btxld.c
110
static void puthdr(int, struct hdr *);
stand/boot/pc32/btxld/btxld.c
192
struct hdr ihdr, ohdr;
stand/boot/pc32/btxld/btxld.c
306
gethdr(int fd, struct hdr *hdr)
stand/boot/pc32/btxld/btxld.c
315
memset(hdr, 0, sizeof(*hdr));
stand/boot/pc32/btxld/btxld.c
320
hdr->size = sb.st_size;
stand/boot/pc32/btxld/btxld.c
321
if ((p = mmap(NULL, hdr->size, PROT_READ, MAP_SHARED, fd,
stand/boot/pc32/btxld/btxld.c
324
for (fmt = F_CNT - 1; !hdr->fmt && fmt; fmt--)
stand/boot/pc32/btxld/btxld.c
328
if (hdr->size >= sizeof(struct exec) && !N_BADMAG(*ex)) {
stand/boot/pc32/btxld/btxld.c
329
hdr->fmt = fmt;
stand/boot/pc32/btxld/btxld.c
335
hdr->flags |= IMPURE;
stand/boot/pc32/btxld/btxld.c
337
hdr->text = ex->a_text;
stand/boot/pc32/btxld/btxld.c
338
hdr->data = ex->a_data;
stand/boot/pc32/btxld/btxld.c
339
hdr->bss = ex->a_bss;
stand/boot/pc32/btxld/btxld.c
340
hdr->entry = ex->a_entry;
stand/boot/pc32/btxld/btxld.c
342
hdr->org = BTX_PGSIZE;
stand/boot/pc32/btxld/btxld.c
347
if (hdr->size >= sizeof(Elf32_Ehdr) && IS_ELF(*ee)) {
stand/boot/pc32/btxld/btxld.c
348
hdr->fmt = fmt;
stand/boot/pc32/btxld/btxld.c
355
hdr->text = ep->p_filesz;
stand/boot/pc32/btxld/btxld.c
356
hdr->org = ep->p_paddr;
stand/boot/pc32/btxld/btxld.c
358
hdr->flags |= IMPURE;
stand/boot/pc32/btxld/btxld.c
361
hdr->data = ep->p_filesz;
stand/boot/pc32/btxld/btxld.c
362
hdr->bss = ep->p_memsz - ep->p_filesz;
stand/boot/pc32/btxld/btxld.c
370
hdr->entry = ee->e_entry;
stand/boot/pc32/btxld/btxld.c
373
if (munmap(p, hdr->size))
stand/boot/pc32/btxld/btxld.c
381
puthdr(int fd, struct hdr *hdr)
stand/boot/pc32/btxld/btxld.c
386
switch (hdr->fmt) {
stand/boot/pc32/btxld/btxld.c
390
hdr->text = N_ALIGN(ex, hdr->text);
stand/boot/pc32/btxld/btxld.c
391
ex.a_text = hdr->text;
stand/boot/pc32/btxld/btxld.c
392
hdr->data = N_ALIGN(ex, hdr->data);
stand/boot/pc32/btxld/btxld.c
393
ex.a_data = hdr->data;
stand/boot/pc32/btxld/btxld.c
394
ex.a_entry = hdr->entry;
stand/boot/pc32/btxld/btxld.c
396
hdr->size = N_ALIGN(ex, sizeof(ex));
stand/boot/pc32/btxld/btxld.c
397
seekx(fd, hdr->size);
stand/boot/pc32/btxld/btxld.c
401
eh.e.e_entry = hdr->entry;
stand/boot/pc32/btxld/btxld.c
402
eh.p[0].p_vaddr = eh.p[0].p_paddr = hdr->org;
stand/boot/pc32/btxld/btxld.c
403
eh.p[0].p_filesz = eh.p[0].p_memsz = hdr->text;
stand/boot/pc32/btxld/btxld.c
407
eh.p[1].p_filesz = eh.p[1].p_memsz = hdr->data;
stand/boot/pc32/btxld/btxld.c
415
hdr->size = sizeof(eh);
sys/bus/cam/scsi/scsi_sa.c
2797
cpage->hdr.pagecode &= ~0x80;
sys/bus/cam/scsi/scsi_sa.c
2863
switch (ccomp->hdr.pagecode & ~0x80) {
sys/bus/cam/scsi/scsi_sa.h
220
struct { u_int8_t pagecode, pagelength; } hdr;
sys/bus/cam/scsi/scsi_sg.c
644
struct sg_header *hdr;
sys/bus/cam/scsi/scsi_sg.c
653
hdr = &rdwr->hdr.hdr;
sys/bus/cam/scsi/scsi_sg.c
656
if (uio->uio_resid < sizeof(*hdr)) {
sys/bus/cam/scsi/scsi_sg.c
660
error = uiomove((char *)hdr, sizeof(*hdr), uio);
sys/bus/cam/scsi/scsi_sg.c
681
if (hdr->twelve_byte)
sys/bus/cam/scsi/scsi_sg.c
705
} else if (hdr->reply_len != 0) {
sys/bus/cam/scsi/scsi_sg.c
706
buf = kmalloc(hdr->reply_len, M_DEVBUF, M_WAITOK | M_ZERO);
sys/bus/cam/scsi/scsi_sg.c
707
buf_len = hdr->reply_len;
sys/bus/cam/scsi/scsi_sg.c
735
rdwr->tag = hdr->pack_id;
sys/bus/cam/scsi/scsi_sg.c
761
struct sg_header *hdr;
sys/bus/cam/scsi/scsi_sg.c
810
hdr = &rdwr->hdr.hdr;
sys/bus/cam/scsi/scsi_sg.c
813
hdr->host_status = hstat;
sys/bus/cam/scsi/scsi_sg.c
814
hdr->driver_status = dstat;
sys/bus/cam/scsi/scsi_sg.c
815
hdr->target_status = csio->scsi_status >> 1;
sys/bus/cam/scsi/scsi_sg.c
821
hdr->result = 0;
sys/bus/cam/scsi/scsi_sg.c
826
hdr->result = EBUSY;
sys/bus/cam/scsi/scsi_sg.c
835
hdr->result = EIO;
sys/bus/cam/scsi/scsi_sg.c
840
bcopy(&csio->sense_data, hdr->sense_buffer,
sys/bus/cam/scsi/scsi_sg.c
847
error = uiomove((char *)&hdr->result, sizeof(*hdr) -
sys/bus/cam/scsi/scsi_sg.c
849
if ((error == 0) && (hdr->result == 0))
sys/bus/cam/scsi/scsi_sg.c
93
struct sg_header hdr;
sys/bus/cam/scsi/scsi_sg.c
95
} hdr;
sys/bus/firewire/firewire.c
1080
fp = &xfer->send.hdr;
sys/bus/firewire/firewire.c
1355
fp = &xfer->send.hdr;
sys/bus/firewire/firewire.c
1400
fp = &xfer->send.hdr;
sys/bus/firewire/firewire.c
1453
sfp = &xfer->send.hdr;
sys/bus/firewire/firewire.c
1454
rfp = &xfer->recv.hdr;
sys/bus/firewire/firewire.c
1652
if (tmptl->xfer->send.hdr.mode.hdr.dst ==
sys/bus/firewire/firewire.c
1653
xfer->send.hdr.mode.hdr.dst)
sys/bus/firewire/firewire.c
1663
xfer->send.hdr.mode.hdr.dst, label);
sys/bus/firewire/firewire.c
1684
tinfo = &rb->fc->tcode[pkt->mode.hdr.tcode];
sys/bus/firewire/firewire.c
1687
p = (u_char *)&rb->xfer->recv.hdr;
sys/bus/firewire/firewire.c
1697
if (pkt->mode.hdr.tcode == FWTCODE_RRESQ &&
sys/bus/firewire/firewire.c
1757
rb->xfer = fw_tl2xfer(rb->fc, fp->mode.hdr.src,
sys/bus/firewire/firewire.c
1758
fp->mode.hdr.tlrt >> 2);
sys/bus/firewire/firewire.c
1763
fp->mode.hdr.src,
sys/bus/firewire/firewire.c
1764
fp->mode.hdr.tlrt >> 2,
sys/bus/firewire/firewire.c
1765
fp->mode.hdr.tlrt & 3,
sys/bus/firewire/firewire.c
1769
rb->xfer = fw_tl2xfer(rb->fc, fp->mode.hdr.src,
sys/bus/firewire/firewire.c
1770
(fp->mode.hdr.tlrt >> 2)^3);
sys/bus/firewire/firewire.c
1780
if (rb->xfer->recv.hdr.mode.wres.rtcode != RESP_CMP)
sys/bus/firewire/firewire.c
1813
fp->mode.hdr.src, ntohl(fp->mode.wreqq.data));
sys/bus/firewire/firewire.c
1824
resfp = &rb->xfer->send.hdr;
sys/bus/firewire/firewire.c
1828
resfp->mode.hdr.tcode = FWTCODE_WRES;
sys/bus/firewire/firewire.c
1831
resfp->mode.hdr.tcode = FWTCODE_RRESQ;
sys/bus/firewire/firewire.c
1834
resfp->mode.hdr.tcode = FWTCODE_RRESB;
sys/bus/firewire/firewire.c
1837
resfp->mode.hdr.tcode = FWTCODE_LRES;
sys/bus/firewire/firewire.c
1840
resfp->mode.hdr.dst = fp->mode.hdr.src;
sys/bus/firewire/firewire.c
1841
resfp->mode.hdr.tlrt = fp->mode.hdr.tlrt;
sys/bus/firewire/firewire.c
1842
resfp->mode.hdr.pri = fp->mode.hdr.pri;
sys/bus/firewire/firewire.c
1969
if (xfer->recv.hdr.mode.lres.rtcode != FWRCODE_COMPLETE)
sys/bus/firewire/firewire.c
197
fp = &xfer->send.hdr;
sys/bus/firewire/firewire.c
2005
fp = &xfer->send.hdr;
sys/bus/firewire/firewire.c
2049
switch(rfp->mode.hdr.tcode){
sys/bus/firewire/firewire.c
2090
sfp->mode.hdr.dst = rfp->mode.hdr.src;
sys/bus/firewire/firewire.c
2091
xfer->dst = ntohs(rfp->mode.hdr.src);
sys/bus/firewire/firewire.c
2095
sfp->mode.hdr.tlrt = rfp->mode.hdr.tlrt;
sys/bus/firewire/firewire.c
2096
sfp->mode.hdr.pri = 0;
sys/bus/firewire/firewire.c
240
fp->mode.hdr.tlrt = tl << 2;
sys/bus/firewire/firewire.c
346
xfer->send.hdr.mode.hdr.dst, i, xfer->state);
sys/bus/firewire/firewire.c
579
src->hdr.info_len = 4;
sys/bus/firewire/firewire.c
920
if(tl->xfer->send.hdr.mode.hdr.dst == node){
sys/bus/firewire/firewire.h
110
u_int32_t hdr[1];
sys/bus/firewire/firewire.h
114
u_int32_t hdr[4];
sys/bus/firewire/firewire.h
147
} hdr;
sys/bus/firewire/firewirereg.h
253
struct fw_pkt hdr;
sys/bus/firewire/fwcrom.c
487
struct csrhdr *hdr;
sys/bus/firewire/fwcrom.c
512
len = 1 + src->hdr.info_len;
sys/bus/firewire/fwcrom.c
514
if (crom_copy((u_int32_t *)(void *)&src->hdr, buf, &count, len, maxlen) < 0)
sys/bus/firewire/fwcrom.c
525
hdr = (struct csrhdr *)buf;
sys/bus/firewire/fwcrom.c
526
hdr->crc_len = count - 1;
sys/bus/firewire/fwcrom.c
527
hdr->crc = crom_crc(&buf[1], hdr->crc_len);
sys/bus/firewire/fwcrom.c
567
src.hdr.info_len = 4;
sys/bus/firewire/fwcrom.c
65
struct csrhdr *hdr;
sys/bus/firewire/fwcrom.c
67
hdr = (struct csrhdr *)p;
sys/bus/firewire/fwcrom.c
68
if (hdr->info_len == 0) {
sys/bus/firewire/fwcrom.c
80
if (hdr->info_len == 1) {
sys/bus/firewire/fwcrom.c
84
p += 1 + hdr->info_len;
sys/bus/firewire/fwdev.c
311
fp = &xfer->recv.hdr;
sys/bus/firewire/fwdev.c
527
tinfo = &sc->fc->tcode[fp->mode.hdr.tcode];
sys/bus/firewire/fwdev.c
548
fp->mode.hdr.dst = FWLOCALBUS | fwdev->dst;
sys/bus/firewire/fwdev.c
558
bcopy(fp, (void *)&xfer->send.hdr, tinfo->hdr_len);
sys/bus/firewire/fwdev.c
577
tinfo = &sc->fc->tcode[xfer->recv.hdr.mode.hdr.tcode];
sys/bus/firewire/fwdev.c
582
bcopy(&xfer->recv.hdr, fp, tinfo->hdr_len);
sys/bus/firewire/fwmem.c
128
fp = &xfer->send.hdr;
sys/bus/firewire/fwmem.c
164
fp = &xfer->send.hdr;
sys/bus/firewire/fwmem.c
201
fp = &xfer->send.hdr;
sys/bus/firewire/fwmem.c
239
fp = &xfer->send.hdr;
sys/bus/firewire/fwmem.c
96
xfer->send.hdr.mode.hdr.dst = FWLOCALBUS | fwdev->dst;
sys/bus/firewire/fwohci.c
866
fp = &xfer->send.hdr;
sys/bus/firewire/fwohci.c
889
ohcifp->mode.asycomm.dst = fp->mode.hdr.dst;
sys/bus/firewire/iec13213.h
227
struct csrhdr hdr;
sys/bus/u4b/audio/uaudio.c
176
struct usb_proc_msg hdr;
sys/bus/u4b/audio/uaudio.c
921
sc->sc_config_msg[0].hdr.pm_callback = &uaudio_configure_msg;
sys/bus/u4b/audio/uaudio.c
923
sc->sc_config_msg[1].hdr.pm_callback = &uaudio_configure_msg;
sys/bus/u4b/controller/usb_controller.c
306
if (bus->reset_msg[0].hdr.pm_qentry.tqe_prev != NULL ||
sys/bus/u4b/controller/usb_controller.c
307
bus->reset_msg[1].hdr.pm_qentry.tqe_prev != NULL) {
sys/bus/u4b/controller/usb_controller.c
820
bus->explore_msg[0].hdr.pm_callback = &usb_bus_explore;
sys/bus/u4b/controller/usb_controller.c
822
bus->explore_msg[1].hdr.pm_callback = &usb_bus_explore;
sys/bus/u4b/controller/usb_controller.c
825
bus->detach_msg[0].hdr.pm_callback = &usb_bus_detach;
sys/bus/u4b/controller/usb_controller.c
827
bus->detach_msg[1].hdr.pm_callback = &usb_bus_detach;
sys/bus/u4b/controller/usb_controller.c
830
bus->attach_msg[0].hdr.pm_callback = &usb_bus_attach;
sys/bus/u4b/controller/usb_controller.c
832
bus->attach_msg[1].hdr.pm_callback = &usb_bus_attach;
sys/bus/u4b/controller/usb_controller.c
835
bus->suspend_msg[0].hdr.pm_callback = &usb_bus_suspend;
sys/bus/u4b/controller/usb_controller.c
837
bus->suspend_msg[1].hdr.pm_callback = &usb_bus_suspend;
sys/bus/u4b/controller/usb_controller.c
840
bus->resume_msg[0].hdr.pm_callback = &usb_bus_resume;
sys/bus/u4b/controller/usb_controller.c
842
bus->resume_msg[1].hdr.pm_callback = &usb_bus_resume;
sys/bus/u4b/controller/usb_controller.c
845
bus->reset_msg[0].hdr.pm_callback = &usb_bus_reset;
sys/bus/u4b/controller/usb_controller.c
847
bus->reset_msg[1].hdr.pm_callback = &usb_bus_reset;
sys/bus/u4b/controller/usb_controller.c
850
bus->shutdown_msg[0].hdr.pm_callback = &usb_bus_shutdown;
sys/bus/u4b/controller/usb_controller.c
852
bus->shutdown_msg[1].hdr.pm_callback = &usb_bus_shutdown;
sys/bus/u4b/controller/usb_controller.c
857
bus->cleanup_msg[0].hdr.pm_callback = &usb_bus_cleanup;
sys/bus/u4b/controller/usb_controller.c
859
bus->cleanup_msg[1].hdr.pm_callback = &usb_bus_cleanup;
sys/bus/u4b/controller/xhci.c
666
sc->sc_config_msg[0].hdr.pm_callback = &xhci_configure_msg;
sys/bus/u4b/controller/xhci.c
668
sc->sc_config_msg[1].hdr.pm_callback = &xhci_configure_msg;
sys/bus/u4b/net/if_axe.c
1032
struct axe_sframe_hdr hdr;
sys/bus/u4b/net/if_axe.c
1042
if ((int)(pos + sizeof(hdr)) > actlen) {
sys/bus/u4b/net/if_axe.c
1047
usbd_copy_out(pc, pos, &hdr, sizeof(hdr));
sys/bus/u4b/net/if_axe.c
1049
if ((hdr.len ^ hdr.ilen) != sc->sc_lenmask) {
sys/bus/u4b/net/if_axe.c
1054
pos += sizeof(hdr);
sys/bus/u4b/net/if_axe.c
1055
len = le16toh(hdr.len);
sys/bus/u4b/net/if_axe.c
1161
struct axe_sframe_hdr hdr;
sys/bus/u4b/net/if_axe.c
1197
hdr.len = htole16(m->m_pkthdr.len);
sys/bus/u4b/net/if_axe.c
1198
hdr.ilen = ~hdr.len;
sys/bus/u4b/net/if_axe.c
1208
hdr.len |= htole16(
sys/bus/u4b/net/if_axe.c
1211
hdr.len |= htole16(
sys/bus/u4b/net/if_axe.c
1215
usbd_copy_in(pc, pos, &hdr, sizeof(hdr));
sys/bus/u4b/net/if_axe.c
1216
pos += sizeof(hdr);
sys/bus/u4b/net/if_axe.c
1220
hdr.len = 0;
sys/bus/u4b/net/if_axe.c
1221
hdr.ilen = 0xffff;
sys/bus/u4b/net/if_axe.c
1222
usbd_copy_in(pc, pos, &hdr,
sys/bus/u4b/net/if_axe.c
1223
sizeof(hdr));
sys/bus/u4b/net/if_axe.c
1224
pos += sizeof(hdr);
sys/bus/u4b/net/if_cdce.c
1226
offset = sizeof(sc->sc_ncm.hdr) +
sys/bus/u4b/net/if_cdce.c
1338
sc->sc_ncm.hdr.dwSignature[0] = 'N';
sys/bus/u4b/net/if_cdce.c
1339
sc->sc_ncm.hdr.dwSignature[1] = 'C';
sys/bus/u4b/net/if_cdce.c
1340
sc->sc_ncm.hdr.dwSignature[2] = 'M';
sys/bus/u4b/net/if_cdce.c
1341
sc->sc_ncm.hdr.dwSignature[3] = 'H';
sys/bus/u4b/net/if_cdce.c
1342
USETW(sc->sc_ncm.hdr.wHeaderLength, sizeof(sc->sc_ncm.hdr));
sys/bus/u4b/net/if_cdce.c
1343
USETW(sc->sc_ncm.hdr.wBlockLength, offset);
sys/bus/u4b/net/if_cdce.c
1344
USETW(sc->sc_ncm.hdr.wSequence, sc->sc_ncm.tx_seq);
sys/bus/u4b/net/if_cdce.c
1345
USETW(sc->sc_ncm.hdr.wDptIndex, sizeof(sc->sc_ncm.hdr));
sys/bus/u4b/net/if_cdce.c
1356
usbd_copy_in(pc, 0, &(sc->sc_ncm.hdr), sizeof(sc->sc_ncm.hdr));
sys/bus/u4b/net/if_cdce.c
1357
usbd_copy_in(pc, sizeof(sc->sc_ncm.hdr), &(sc->sc_ncm.dpt),
sys/bus/u4b/net/if_cdce.c
1359
usbd_copy_in(pc, sizeof(sc->sc_ncm.hdr) + sizeof(sc->sc_ncm.dpt),
sys/bus/u4b/net/if_cdce.c
1445
if (actlen < (int)(sizeof(sc->sc_ncm.hdr) +
sys/bus/u4b/net/if_cdce.c
1450
usbd_copy_out(pc, 0, &(sc->sc_ncm.hdr),
sys/bus/u4b/net/if_cdce.c
1451
sizeof(sc->sc_ncm.hdr));
sys/bus/u4b/net/if_cdce.c
1453
if ((sc->sc_ncm.hdr.dwSignature[0] != 'N') ||
sys/bus/u4b/net/if_cdce.c
1454
(sc->sc_ncm.hdr.dwSignature[1] != 'C') ||
sys/bus/u4b/net/if_cdce.c
1455
(sc->sc_ncm.hdr.dwSignature[2] != 'M') ||
sys/bus/u4b/net/if_cdce.c
1456
(sc->sc_ncm.hdr.dwSignature[3] != 'H')) {
sys/bus/u4b/net/if_cdce.c
1459
sc->sc_ncm.hdr.dwSignature[0],
sys/bus/u4b/net/if_cdce.c
1460
sc->sc_ncm.hdr.dwSignature[1],
sys/bus/u4b/net/if_cdce.c
1461
sc->sc_ncm.hdr.dwSignature[2],
sys/bus/u4b/net/if_cdce.c
1462
sc->sc_ncm.hdr.dwSignature[3]);
sys/bus/u4b/net/if_cdce.c
1465
temp = UGETW(sc->sc_ncm.hdr.wBlockLength);
sys/bus/u4b/net/if_cdce.c
1471
temp = UGETW(sc->sc_ncm.hdr.wDptIndex);
sys/bus/u4b/net/if_cdcereg.h
67
struct usb_ncm16_hdr hdr;
sys/bus/u4b/net/if_urndis.c
217
struct urndis_set_req hdr;
sys/bus/u4b/net/if_urndis.c
283
&msg_filter.hdr, sizeof(msg_filter));
sys/bus/u4b/net/if_urndis.c
439
struct urndis_comp_hdr *hdr;
sys/bus/u4b/net/if_urndis.c
448
hdr = (struct urndis_comp_hdr *)sc->sc_response_buf;
sys/bus/u4b/net/if_urndis.c
450
DPRINTF("type 0x%x len %u\n", le32toh(hdr->rm_type),
sys/bus/u4b/net/if_urndis.c
451
le32toh(hdr->rm_len));
sys/bus/u4b/net/if_urndis.c
453
if (le32toh(hdr->rm_len) > RNDIS_RESPONSE_LEN) {
sys/bus/u4b/net/if_urndis.c
455
le32toh(hdr->rm_len), RNDIS_RESPONSE_LEN);
sys/bus/u4b/net/if_urndis.c
458
return (hdr);
sys/bus/u4b/net/if_urndis.c
462
urndis_ctrl_handle(struct urndis_softc *sc, struct urndis_comp_hdr *hdr,
sys/bus/u4b/net/if_urndis.c
473
switch (le32toh(hdr->rm_type)) {
sys/bus/u4b/net/if_urndis.c
475
rval = urndis_ctrl_handle_init(sc, hdr);
sys/bus/u4b/net/if_urndis.c
479
rval = urndis_ctrl_handle_query(sc, hdr, buf, bufsz);
sys/bus/u4b/net/if_urndis.c
483
rval = urndis_ctrl_handle_reset(sc, hdr);
sys/bus/u4b/net/if_urndis.c
488
rval = le32toh(hdr->rm_status);
sys/bus/u4b/net/if_urndis.c
493
le32toh(hdr->rm_type));
sys/bus/u4b/net/if_urndis.c
502
const struct urndis_comp_hdr *hdr)
sys/bus/u4b/net/if_urndis.c
506
msg = (const struct urndis_init_comp *)hdr;
sys/bus/u4b/net/if_urndis.c
545
const struct urndis_comp_hdr *hdr, const void **buf, uint16_t *bufsz)
sys/bus/u4b/net/if_urndis.c
550
msg = (const struct urndis_query_comp *)hdr;
sys/bus/u4b/net/if_urndis.c
592
const struct urndis_comp_hdr *hdr)
sys/bus/u4b/net/if_urndis.c
597
msg = (const struct urndis_reset_comp *)hdr;
sys/bus/u4b/net/if_urndis.c
613
struct urndis_set_req hdr;
sys/bus/u4b/net/if_urndis.c
620
&msg_filter.hdr, sizeof(msg_filter));
sys/bus/u4b/net/if_urndis.c
634
struct urndis_comp_hdr *hdr;
sys/bus/u4b/net/if_urndis.c
659
if ((hdr = urndis_ctrl_recv(sc)) == NULL) {
sys/bus/u4b/net/if_urndis.c
663
rval = urndis_ctrl_handle(sc, hdr, NULL, NULL);
sys/bus/u4b/net/if_urndis.c
698
struct urndis_comp_hdr *hdr;
sys/bus/u4b/net/if_urndis.c
724
if ((hdr = urndis_ctrl_recv(sc)) == NULL) {
sys/bus/u4b/net/if_urndis.c
728
rval = urndis_ctrl_handle(sc, hdr, rbuf, rbufsz);
sys/bus/u4b/net/if_urndis.c
736
struct urndis_comp_hdr *hdr;
sys/bus/u4b/net/if_urndis.c
768
if ((hdr = urndis_ctrl_recv(sc)) == NULL) {
sys/bus/u4b/net/if_urndis.c
772
rval = urndis_ctrl_handle(sc, hdr, NULL, NULL);
sys/bus/u4b/net/usb_ethernet.c
123
task->hdr.pm_callback = fn;
sys/bus/u4b/net/usb_ethernet.c
183
&ue->ue_sync_task[0].hdr,
sys/bus/u4b/net/usb_ethernet.c
184
&ue->ue_sync_task[1].hdr);
sys/bus/u4b/net/usb_ethernet.c
326
&ue->ue_sync_task[0].hdr,
sys/bus/u4b/net/usb_ethernet.c
327
&ue->ue_sync_task[1].hdr);
sys/bus/u4b/net/usb_ethernet.c
422
&ue->ue_media_task[0].hdr,
sys/bus/u4b/net/usb_ethernet.c
423
&ue->ue_media_task[1].hdr);
sys/bus/u4b/net/usb_ethernet.c
450
&ue->ue_tick_task[0].hdr,
sys/bus/u4b/net/usb_ethernet.c
451
&ue->ue_tick_task[1].hdr);
sys/bus/u4b/net/usb_ethernet.c
484
&ue->ue_promisc_task[0].hdr,
sys/bus/u4b/net/usb_ethernet.c
485
&ue->ue_promisc_task[1].hdr);
sys/bus/u4b/net/usb_ethernet.c
488
&ue->ue_sync_task[0].hdr,
sys/bus/u4b/net/usb_ethernet.c
489
&ue->ue_sync_task[1].hdr);
sys/bus/u4b/net/usb_ethernet.c
492
&ue->ue_sync_task[0].hdr,
sys/bus/u4b/net/usb_ethernet.c
493
&ue->ue_sync_task[1].hdr);
sys/bus/u4b/net/usb_ethernet.c
501
&ue->ue_multi_task[0].hdr,
sys/bus/u4b/net/usb_ethernet.c
502
&ue->ue_multi_task[1].hdr);
sys/bus/u4b/net/usb_ethernet.h
76
struct usb_proc_msg hdr;
sys/bus/u4b/serial/usb_serial.c
1443
&sc->sc_line_state_task[0].hdr,
sys/bus/u4b/serial/usb_serial.c
1444
&sc->sc_line_state_task[1].hdr);
sys/bus/u4b/serial/usb_serial.c
1615
&sc->sc_status_task[0].hdr,
sys/bus/u4b/serial/usb_serial.c
1616
&sc->sc_status_task[1].hdr);
sys/bus/u4b/serial/usb_serial.c
1692
&sc->sc_param_task[0].hdr,
sys/bus/u4b/serial/usb_serial.c
1693
&sc->sc_param_task[1].hdr);
sys/bus/u4b/serial/usb_serial.c
1697
&sc->sc_start_task[0].hdr,
sys/bus/u4b/serial/usb_serial.c
1698
&sc->sc_start_task[1].hdr);
sys/bus/u4b/serial/usb_serial.c
238
struct unrhdr *hdr;
sys/bus/u4b/serial/usb_serial.c
239
hdr = ucom_unrhdr;
sys/bus/u4b/serial/usb_serial.c
244
if (hdr != NULL)
sys/bus/u4b/serial/usb_serial.c
245
delete_unrhdr(hdr);
sys/bus/u4b/serial/usb_serial.c
658
task->hdr.pm_callback = fn;
sys/bus/u4b/serial/usb_serial.c
679
sc->sc_last_start_xfer = &task->hdr;
sys/bus/u4b/serial/usb_serial.c
866
&sc->sc_open_task[0].hdr,
sys/bus/u4b/serial/usb_serial.c
867
&sc->sc_open_task[1].hdr);
sys/bus/u4b/serial/usb_serial.c
871
&sc->sc_start_task[0].hdr,
sys/bus/u4b/serial/usb_serial.c
872
&sc->sc_start_task[1].hdr);
sys/bus/u4b/serial/usb_serial.c
956
&sc->sc_close_task[0].hdr,
sys/bus/u4b/serial/usb_serial.c
957
&sc->sc_close_task[1].hdr);
sys/bus/u4b/serial/usb_serial.h
125
struct usb_proc_msg hdr;
sys/bus/u4b/serial/usb_serial.h
130
struct usb_proc_msg hdr;
sys/bus/u4b/usb_bus.h
38
struct usb_proc_msg hdr;
sys/bus/u4b/usb_device.c
1598
udev->cs_msg[0].hdr.pm_callback = &usbd_clear_stall_proc;
sys/bus/u4b/usb_device.c
1600
udev->cs_msg[1].hdr.pm_callback = &usbd_clear_stall_proc;
sys/bus/u4b/usb_device.h
55
struct usb_proc_msg hdr;
sys/bus/u4b/usb_hub.c
1383
hub->tt_msg[0].hdr.pm_callback = &uhub_reset_tt_proc;
sys/bus/u4b/usb_hub.c
1385
hub->tt_msg[1].hdr.pm_callback = &uhub_reset_tt_proc;
sys/bus/u4b/usb_transfer.c
1000
info->done_m[1].hdr.pm_callback = &usb_callback_proc;
sys/bus/u4b/usb_transfer.c
3366
pm = &udev->cs_msg[0].hdr;
sys/bus/u4b/usb_transfer.c
3370
xroot->done_m[0].hdr;
sys/bus/u4b/usb_transfer.c
3375
pm = &xroot->done_m[0].hdr;
sys/bus/u4b/usb_transfer.c
998
info->done_m[0].hdr.pm_callback = &usb_callback_proc;
sys/bus/u4b/usb_transfer.h
149
struct usb_proc_msg hdr;
sys/bus/u4b/wlan/if_mtw.c
1112
const struct mtw_ucode_hdr *hdr;
sys/bus/u4b/wlan/if_mtw.c
1187
hdr = (const struct mtw_ucode_hdr *)&fw->hdr;
sys/bus/u4b/wlan/if_mtw.c
1189
if (size < sizeof(struct mtw_ucode_hdr) + le32toh(hdr->ilm_len) +
sys/bus/u4b/wlan/if_mtw.c
1190
le32toh(hdr->dlm_len)) {
sys/bus/u4b/wlan/if_mtw.c
1195
ilen = le32toh(hdr->ilm_len) - MTW_MCU_IVB_LEN;
sys/bus/u4b/wlan/if_mtw.c
1196
dlen = le32toh(hdr->dlm_len);
sys/bus/u4b/wlan/if_mtw.c
1248
le32toh(hdr->fw_ver), le32toh(hdr->build_ver), hdr->build_time);
sys/bus/u4b/wlan/if_mtwvar.h
228
struct mtw_ucode_hdr hdr;
sys/bus/u4b/wlan/if_urtwn.c
3865
const struct r92c_fw_hdr *hdr;
sys/bus/u4b/wlan/if_urtwn.c
3892
if (len < sizeof(*hdr)) {
sys/bus/u4b/wlan/if_urtwn.c
3898
hdr = (const struct r92c_fw_hdr *)ptr;
sys/bus/u4b/wlan/if_urtwn.c
3900
if ((le16toh(hdr->signature) >> 4) == 0x88c ||
sys/bus/u4b/wlan/if_urtwn.c
3901
(le16toh(hdr->signature) >> 4) == 0x88e ||
sys/bus/u4b/wlan/if_urtwn.c
3902
(le16toh(hdr->signature) >> 4) == 0x92c) {
sys/bus/u4b/wlan/if_urtwn.c
3905
le16toh(hdr->version), le16toh(hdr->subversion),
sys/bus/u4b/wlan/if_urtwn.c
3906
hdr->month, hdr->date, hdr->hour, hdr->minute);
sys/bus/u4b/wlan/if_urtwn.c
3907
ptr += sizeof(*hdr);
sys/bus/u4b/wlan/if_urtwn.c
3908
len -= sizeof(*hdr);
sys/dev/acpica/acpi.c
1657
ACPI_TABLE_HEADER *hdr;
sys/dev/acpica/acpi.c
1661
status = AcpiGetTable(ACPI_SIG_MCFG, 1, &hdr);
sys/dev/acpica/acpi.c
1665
end = (ACPI_MCFG_ALLOCATION *)((char *)hdr + hdr->Length);
sys/dev/acpica/acpi.c
1666
alloc = (ACPI_MCFG_ALLOCATION *)((ACPI_TABLE_MCFG *)hdr + 1);
sys/dev/acpica/acpi_hpet.c
318
ACPI_TABLE_HEADER *hdr;
sys/dev/acpica/acpi_hpet.c
361
status = AcpiGetTable(ACPI_SIG_HPET, 1, &hdr);
sys/dev/acpica/acpi_hpet.c
369
hpet = (ACPI_TABLE_HPET *)hdr;
sys/dev/acpica/acpi_quirk.c
109
aq_match_header(ACPI_TABLE_HEADER *hdr, const struct acpi_q_rule *match)
sys/dev/acpica/acpi_quirk.c
116
if (aq_strcmp(hdr->OemId, match->x.id) &&
sys/dev/acpica/acpi_quirk.c
117
aq_strcmp(hdr->OemTableId, match->y.tid))
sys/dev/acpica/acpi_quirk.c
121
if (aq_strcmp(hdr->AslCompilerId, match->x.id))
sys/dev/acpica/acpi_quirk.c
125
if (aq_revcmp(hdr->OemRevision, match->x.op, match->y.rev))
sys/dev/acpica/acpi_quirk.c
129
if (aq_revcmp(hdr->AslCompilerRevision, match->x.op, match->y.rev))
sys/dev/acpica/acpi_quirk.c
142
ACPI_TABLE_HEADER fadt, dsdt, xsdt, *hdr;
sys/dev/acpica/acpi_quirk.c
161
hdr = &fadt;
sys/dev/acpica/acpi_quirk.c
163
hdr = &dsdt;
sys/dev/acpica/acpi_quirk.c
165
hdr = &xsdt;
sys/dev/acpica/acpi_quirk.c
170
if (aq_match_header(hdr, match) == FALSE) {
sys/dev/acpica/acpi_quirk.c
72
static int aq_match_header(ACPI_TABLE_HEADER *hdr,
sys/dev/apple/fw/apple_fw.c
60
ACPI_TABLE_HEADER hdr;
sys/dev/apple/fw/apple_fw.c
63
status = AcpiGetTableHeader(ACPI_SIG_FADT, 0, &hdr);
sys/dev/apple/fw/apple_fw.c
66
return (strncmp(hdr.OemId, "APPLE ", ACPI_OEM_ID_SIZE) == 0);
sys/dev/disk/ahci/ahci.c
244
struct ahci_cmd_hdr *hdr;
sys/dev/disk/ahci/ahci.c
397
hdr = AHCI_DMA_KVA(ap->ap_dmamem_cmd_list);
sys/dev/disk/ahci/ahci.c
399
bzero(hdr, sc->sc_cmdlist_size);
sys/dev/disk/ahci/ahci.c
416
ccb->ccb_cmd_hdr = &hdr[i];
sys/dev/disk/mpt/mpt.c
1437
MSG_DEFAULT_REPLY *hdr;
sys/dev/disk/mpt/mpt.c
1443
hdr = (MSG_DEFAULT_REPLY *)reply;
sys/dev/disk/mpt/mpt.c
1467
if ((reply_len >> 1) != hdr->MsgLength &&
sys/dev/disk/mpt/mpt.c
1468
(hdr->Function != MPI_FUNCTION_IOC_FACTS)){
sys/dev/disk/mpt/mpt.c
1471
hdr->MsgLength << 2, reply_len << 1, hdr->Function);
sys/dev/disk/mpt/mpt.c
1475
left = (hdr->MsgLength << 1) - 2;
sys/dev/disk/mpt/mpt.c
1500
if ((hdr->IOCStatus & MPI_IOCSTATUS_MASK) != MPI_IOCSTATUS_SUCCESS) {
sys/dev/disk/mpt/mpt.c
1502
mpt_print_reply(hdr);
sys/dev/disk/mpt/mpt.c
1503
return (MPT_FAIL | hdr->IOCStatus);
sys/dev/disk/mpt/mpt.c
1689
CONFIG_EXTENDED_PAGE_HEADER *hdr, void *buf, size_t len,
sys/dev/disk/mpt/mpt.c
1703
params.PageVersion = hdr->PageVersion;
sys/dev/disk/mpt/mpt.c
1705
params.PageNumber = hdr->PageNumber;
sys/dev/disk/mpt/mpt.c
1708
params.ExtPageType = hdr->ExtPageType;
sys/dev/disk/mpt/mpt.c
1709
params.ExtPageLength = hdr->ExtPageLength;
sys/dev/disk/mpt/mpt.c
1789
CONFIG_PAGE_HEADER *hdr, size_t len, int sleep_ok,
sys/dev/disk/mpt/mpt.c
1804
params.PageVersion = hdr->PageVersion;
sys/dev/disk/mpt/mpt.c
1805
params.PageLength = hdr->PageLength;
sys/dev/disk/mpt/mpt.c
1806
params.PageNumber = hdr->PageNumber;
sys/dev/disk/mpt/mpt.c
1807
params.PageType = hdr->PageType & MPI_CONFIG_PAGETYPE_MASK;
sys/dev/disk/mpt/mpt.c
1823
memcpy(hdr, ((uint8_t *)req->req_vbuf)+MPT_RQSL(mpt), len);
sys/dev/disk/mpt/mpt.c
1830
CONFIG_PAGE_HEADER *hdr, size_t len, int sleep_ok,
sys/dev/disk/mpt/mpt.c
1838
hdr_attr = hdr->PageType & MPI_CONFIG_PAGEATTR_MASK;
sys/dev/disk/mpt/mpt.c
1842
hdr->PageType & MPI_CONFIG_PAGETYPE_MASK);
sys/dev/disk/mpt/mpt.c
1850
hdr->PageType &= MPI_CONFIG_PAGETYPE_MASK;
sys/dev/disk/mpt/mpt.c
1857
memcpy(((caddr_t)req->req_vbuf) + MPT_RQSL(mpt), hdr, len);
sys/dev/disk/mpt/mpt.c
1866
params.PageVersion = hdr->PageVersion;
sys/dev/disk/mpt/mpt.c
1867
params.PageLength = hdr->PageLength;
sys/dev/disk/mpt/mpt.c
1868
params.PageNumber = hdr->PageNumber;
sys/dev/disk/mpt/mpt.c
1872
hdr->PageType |= hdr_attr;
sys/dev/disk/mpt/mpt.c
1873
params.PageType = hdr->PageType & MPI_CONFIG_PAGETYPE_MASK;
sys/dev/disk/mpt/mpt.c
1875
params.PageType = hdr->PageType;
sys/dev/disk/mpt/mpt.c
1901
CONFIG_PAGE_HEADER hdr;
sys/dev/disk/mpt/mpt.c
1908
2, 0, &hdr, FALSE, 5000);
sys/dev/disk/mpt/mpt.c
1921
hdr.PageVersion, hdr.PageLength << 2,
sys/dev/disk/mpt/mpt.c
1922
hdr.PageNumber, hdr.PageType);
sys/dev/disk/mpt/mpt.c
1924
len = hdr.PageLength * sizeof(uint32_t);
sys/dev/disk/mpt/mpt.c
1931
memcpy(&mpt->ioc_page2->Header, &hdr, sizeof(hdr));
sys/dev/disk/mpt/mpt.c
2031
3, 0, &hdr, FALSE, 5000);
sys/dev/disk/mpt/mpt.c
2038
hdr.PageVersion, hdr.PageLength, hdr.PageNumber, hdr.PageType);
sys/dev/disk/mpt/mpt.c
2040
len = hdr.PageLength * sizeof(uint32_t);
sys/dev/disk/mpt/mpt.c
2047
memcpy(&mpt->ioc_page3->Header, &hdr, sizeof(hdr));
sys/dev/disk/mpt/mpt.h
1097
CONFIG_EXTENDED_PAGE_HEADER *hdr,
sys/dev/disk/mpt/mpt.h
1115
CONFIG_PAGE_HEADER *hdr, size_t len,
sys/dev/disk/mpt/mpt.h
1119
PageAddress, hdr, len, sleep_ok, timeout_ms));
sys/dev/disk/mpt/mpt.h
1124
CONFIG_PAGE_HEADER *hdr, size_t len, int sleep_ok,
sys/dev/disk/mpt/mpt.h
1128
PageAddress, hdr, len, sleep_ok,
sys/dev/disk/mpt/mpt_cam.c
603
ConfigExtendedPageHeader_t hdr;
sys/dev/disk/mpt/mpt_cam.c
610
&hdr, 0, 10000);
sys/dev/disk/mpt/mpt_cam.c
613
if (hdr.ExtPageLength == 0) {
sys/dev/disk/mpt/mpt_cam.c
618
len = hdr.ExtPageLength * 4;
sys/dev/disk/mpt/mpt_cam.c
626
0, &hdr, buffer, len, 0, 10000);
sys/dev/disk/mpt/mpt_cam.c
660
ConfigExtendedPageHeader_t hdr;
sys/dev/disk/mpt/mpt_cam.c
665
MPI_CONFIG_EXTPAGETYPE_SAS_PHY, &hdr,
sys/dev/disk/mpt/mpt_cam.c
669
if (hdr.ExtPageLength == 0) {
sys/dev/disk/mpt/mpt_cam.c
681
form + form_specific, &hdr, buffer,
sys/dev/disk/mpt/mpt_cam.c
702
ConfigExtendedPageHeader_t hdr;
sys/dev/disk/mpt/mpt_cam.c
710
&hdr, 0, 10000);
sys/dev/disk/mpt/mpt_cam.c
713
if (hdr.ExtPageLength == 0) {
sys/dev/disk/mpt/mpt_cam.c
725
form + form_specific, &hdr, buffer,
sys/dev/disk/mpt/mpt_user.c
284
CONFIG_PAGE_HEADER *hdr;
sys/dev/disk/mpt/mpt_user.c
295
hdr = mpt_page->vaddr;
sys/dev/disk/mpt/mpt_user.c
297
params.PageVersion = hdr->PageVersion;
sys/dev/disk/mpt/mpt_user.c
298
params.PageLength = hdr->PageLength;
sys/dev/disk/mpt/mpt_user.c
299
params.PageNumber = hdr->PageNumber;
sys/dev/disk/mpt/mpt_user.c
300
params.PageType = hdr->PageType & MPI_CONFIG_PAGETYPE_MASK;
sys/dev/disk/mpt/mpt_user.c
372
CONFIG_EXTENDED_PAGE_HEADER *hdr;
sys/dev/disk/mpt/mpt_user.c
383
hdr = mpt_page->vaddr;
sys/dev/disk/mpt/mpt_user.c
385
params.PageVersion = hdr->PageVersion;
sys/dev/disk/mpt/mpt_user.c
387
params.PageNumber = hdr->PageNumber;
sys/dev/disk/mpt/mpt_user.c
390
params.ExtPageType = hdr->ExtPageType;
sys/dev/disk/mpt/mpt_user.c
391
params.ExtPageLength = hdr->ExtPageLength;
sys/dev/disk/mpt/mpt_user.c
413
CONFIG_PAGE_HEADER *hdr;
sys/dev/disk/mpt/mpt_user.c
419
hdr = mpt_page->vaddr;
sys/dev/disk/mpt/mpt_user.c
420
hdr_attr = hdr->PageType & MPI_CONFIG_PAGEATTR_MASK;
sys/dev/disk/mpt/mpt_user.c
424
hdr->PageType & MPI_CONFIG_PAGETYPE_MASK);
sys/dev/disk/mpt/mpt_user.c
432
hdr->PageType &= ~MPI_CONFIG_PAGETYPE_MASK;
sys/dev/disk/mpt/mpt_user.c
448
params.PageVersion = hdr->PageVersion;
sys/dev/disk/mpt/mpt_user.c
449
params.PageLength = hdr->PageLength;
sys/dev/disk/mpt/mpt_user.c
450
params.PageNumber = hdr->PageNumber;
sys/dev/disk/mpt/mpt_user.c
454
hdr->PageType |= hdr_attr;
sys/dev/disk/mpt/mpt_user.c
455
params.PageType = hdr->PageType & MPI_CONFIG_PAGETYPE_MASK;
sys/dev/disk/mpt/mpt_user.c
457
params.PageType = hdr->PageType;
sys/dev/disk/nata/atapi-cd.c
1010
ntracks = cdp->toc.hdr.ending_track - cdp->toc.hdr.starting_track + 1;
sys/dev/disk/nata/atapi-cd.c
1026
cdp->toc.hdr.len = ntohs(cdp->toc.hdr.len);
sys/dev/disk/nata/atapi-cd.c
1056
if (cdp->disk_size && cdp->toc.hdr.ending_track) {
sys/dev/disk/nata/atapi-cd.c
1059
cdp->toc.hdr.ending_track-cdp->toc.hdr.starting_track+1);
sys/dev/disk/nata/atapi-cd.c
381
if (!cdp->toc.hdr.ending_track) {
sys/dev/disk/nata/atapi-cd.c
385
bcopy(&cdp->toc.hdr, ap->a_data, sizeof(cdp->toc.hdr));
sys/dev/disk/nata/atapi-cd.c
395
if (!toc->hdr.ending_track) {
sys/dev/disk/nata/atapi-cd.c
409
starting_track = toc->hdr.starting_track;
sys/dev/disk/nata/atapi-cd.c
411
starting_track = toc->hdr.ending_track + 1;
sys/dev/disk/nata/atapi-cd.c
412
else if (starting_track < toc->hdr.starting_track ||
sys/dev/disk/nata/atapi-cd.c
413
starting_track > toc->hdr.ending_track + 1) {
sys/dev/disk/nata/atapi-cd.c
418
len = ((toc->hdr.ending_track + 1 - starting_track) + 1) *
sys/dev/disk/nata/atapi-cd.c
433
entry = toc->tab + (toc->hdr.ending_track + 1 -
sys/dev/disk/nata/atapi-cd.c
434
toc->hdr.starting_track) + 1;
sys/dev/disk/nata/atapi-cd.c
441
error = copyout(toc->tab + starting_track - toc->hdr.starting_track,
sys/dev/disk/nata/atapi-cd.c
455
if (!toc->hdr.ending_track) {
sys/dev/disk/nata/atapi-cd.c
467
track = toc->hdr.starting_track;
sys/dev/disk/nata/atapi-cd.c
469
track = toc->hdr.ending_track + 1;
sys/dev/disk/nata/atapi-cd.c
470
else if (track < toc->hdr.starting_track ||
sys/dev/disk/nata/atapi-cd.c
471
track > toc->hdr.ending_track + 1) {
sys/dev/disk/nata/atapi-cd.c
482
entry = toc->tab + (track - toc->hdr.starting_track);
sys/dev/disk/nata/atapi-cd.c
486
bcopy(toc->tab + track - toc->hdr.starting_track,
sys/dev/disk/nata/atapi-cd.c
569
if (!cdp->toc.hdr.ending_track) {
sys/dev/disk/nata/atapi-cd.c
573
if (args->end_track < cdp->toc.hdr.ending_track + 1)
sys/dev/disk/nata/atapi-cd.c
575
if (args->end_track > cdp->toc.hdr.ending_track + 1)
sys/dev/disk/nata/atapi-cd.c
576
args->end_track = cdp->toc.hdr.ending_track + 1;
sys/dev/disk/nata/atapi-cd.c
577
t1 = args->start_track - cdp->toc.hdr.starting_track;
sys/dev/disk/nata/atapi-cd.c
578
t2 = args->end_track - cdp->toc.hdr.starting_track;
sys/dev/disk/nata/atapi-cd.c
580
t1 > (cdp->toc.hdr.ending_track-cdp->toc.hdr.starting_track)) {
sys/dev/disk/nata/atapi-cd.h
36
struct ioc_toc_header hdr;
sys/dev/disk/sbp/sbp.c
1077
fp = &xfer->send.hdr;
sys/dev/disk/sbp/sbp.c
1109
fp = &xfer->send.hdr;
sys/dev/disk/sbp/sbp.c
1168
fp = &xfer->send.hdr;
sys/dev/disk/sbp/sbp.c
1267
fp = &xfer->send.hdr;
sys/dev/disk/sbp/sbp.c
1359
fp = &xfer->send.hdr;
sys/dev/disk/sbp/sbp.c
1567
rfp = &xfer->recv.hdr;
sys/dev/disk/sbp/sbp.c
884
fp = &xfer->send.hdr;
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
781
const union amdgpu_firmware_header *hdr;
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
785
hdr = (const union amdgpu_firmware_header *)
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
790
hdr = (const union amdgpu_firmware_header *)
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
795
hdr = (const union amdgpu_firmware_header *)
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
800
hdr = (const union amdgpu_firmware_header *)
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
805
hdr = (const union amdgpu_firmware_header *)
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
810
hdr = (const union amdgpu_firmware_header *)
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
815
hdr = (const union amdgpu_firmware_header *)
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
820
hdr = (const union amdgpu_firmware_header *)
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
828
if (hdr == NULL)
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
832
return hdr->common.ucode_version;
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
1001
hdr = (const union amdgpu_firmware_header *)adev->sdma.instance[1].fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
1008
if (hdr == NULL)
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
1012
return hdr->common.ucode_version;
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
969
const union amdgpu_firmware_header *hdr;
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
973
hdr = (const union amdgpu_firmware_header *)adev->gfx.pfp_fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
977
hdr = (const union amdgpu_firmware_header *)adev->gfx.me_fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
981
hdr = (const union amdgpu_firmware_header *)adev->gfx.ce_fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
985
hdr = (const union amdgpu_firmware_header *)adev->gfx.mec_fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
989
hdr = (const union amdgpu_firmware_header *)adev->gfx.mec2_fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
993
hdr = (const union amdgpu_firmware_header *)adev->gfx.rlc_fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
997
hdr = (const union amdgpu_firmware_header *)adev->sdma.instance[0].fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_bios.c
378
ACPI_TABLE_HEADER *hdr;
sys/dev/drm/amd/amdgpu/amdgpu_bios.c
385
if (!ACPI_SUCCESS(acpi_get_table_with_size("VFCT", 1, &hdr, &tbl_size)))
sys/dev/drm/amd/amdgpu/amdgpu_bios.c
388
status = AcpiGetTable("VFCT", 1, &hdr);
sys/dev/drm/amd/amdgpu/amdgpu_bios.c
392
tbl_size = hdr->Length;
sys/dev/drm/amd/amdgpu/amdgpu_bios.c
398
vfct = (UEFI_ACPI_VFCT *)hdr;
sys/dev/drm/amd/amdgpu/amdgpu_bios.c
402
GOP_VBIOS_CONTENT *vbios = (GOP_VBIOS_CONTENT *)((char *)hdr + offset);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
245
const struct smc_firmware_header_v1_0 *hdr;
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
461
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
462
amdgpu_ucode_print_smc_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
463
adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
464
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
465
ucode_start_address = le32_to_cpu(hdr->ucode_start_addr);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
467
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/amdgpu_device.c
1306
const struct gpu_info_firmware_header_v1_0 *hdr;
sys/dev/drm/amd/amdgpu/amdgpu_device.c
1369
hdr = (const struct gpu_info_firmware_header_v1_0 *)adev->firmware.gpu_info_fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_device.c
1370
amdgpu_ucode_print_gpu_info_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/amdgpu_device.c
1372
switch (hdr->version_major) {
sys/dev/drm/amd/amdgpu/amdgpu_device.c
1377
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/amdgpu_device.c
1401
"Unsupported gpu_info table %d\n", hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
106
void amdgpu_ucode_print_rlc_hdr(const struct common_firmware_header *hdr)
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
108
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
109
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
112
amdgpu_ucode_print_common_hdr(hdr);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
116
container_of(hdr, struct rlc_firmware_header_v1_0, header);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
130
container_of(hdr, struct rlc_firmware_header_v2_0, header);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
201
void amdgpu_ucode_print_sdma_hdr(const struct common_firmware_header *hdr)
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
203
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
204
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
207
amdgpu_ucode_print_common_hdr(hdr);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
211
container_of(hdr, struct sdma_firmware_header_v1_0, header);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
230
void amdgpu_ucode_print_gpu_info_hdr(const struct common_firmware_header *hdr)
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
232
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
233
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
236
amdgpu_ucode_print_common_hdr(hdr);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
240
container_of(hdr, struct gpu_info_firmware_header_v1_0, header);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
253
const struct common_firmware_header *hdr =
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
256
if (fw->datasize == le32_to_cpu(hdr->size_bytes))
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
262
bool amdgpu_ucode_hdr_version(union amdgpu_firmware_header *hdr,
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
265
if ((hdr->common.header_version_major == hdr_major) &&
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
266
(hdr->common.header_version_minor == hdr_minor))
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
31
static void amdgpu_ucode_print_common_hdr(const struct common_firmware_header *hdr)
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
33
DRM_DEBUG("size_bytes: %u\n", le32_to_cpu(hdr->size_bytes));
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
34
DRM_DEBUG("header_size_bytes: %u\n", le32_to_cpu(hdr->header_size_bytes));
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
35
DRM_DEBUG("header_version_major: %u\n", le16_to_cpu(hdr->header_version_major));
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
36
DRM_DEBUG("header_version_minor: %u\n", le16_to_cpu(hdr->header_version_minor));
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
37
DRM_DEBUG("ip_version_major: %u\n", le16_to_cpu(hdr->ip_version_major));
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
38
DRM_DEBUG("ip_version_minor: %u\n", le16_to_cpu(hdr->ip_version_minor));
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
39
DRM_DEBUG("ucode_version: 0x%08x\n", le32_to_cpu(hdr->ucode_version));
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
40
DRM_DEBUG("ucode_size_bytes: %u\n", le32_to_cpu(hdr->ucode_size_bytes));
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
42
le32_to_cpu(hdr->ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
43
DRM_DEBUG("crc32: 0x%08x\n", le32_to_cpu(hdr->crc32));
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
46
void amdgpu_ucode_print_mc_hdr(const struct common_firmware_header *hdr)
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
48
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
49
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
52
amdgpu_ucode_print_common_hdr(hdr);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
56
container_of(hdr, struct mc_firmware_header_v1_0, header);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
67
void amdgpu_ucode_print_smc_hdr(const struct common_firmware_header *hdr)
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
69
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
70
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
73
amdgpu_ucode_print_common_hdr(hdr);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
77
container_of(hdr, struct smc_firmware_header_v1_0, header);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
85
void amdgpu_ucode_print_gfx_hdr(const struct common_firmware_header *hdr)
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
87
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
88
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
91
amdgpu_ucode_print_common_hdr(hdr);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.c
95
container_of(hdr, struct gfx_firmware_header_v1_0, header);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.h
270
void amdgpu_ucode_print_mc_hdr(const struct common_firmware_header *hdr);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.h
271
void amdgpu_ucode_print_smc_hdr(const struct common_firmware_header *hdr);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.h
272
void amdgpu_ucode_print_gfx_hdr(const struct common_firmware_header *hdr);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.h
273
void amdgpu_ucode_print_rlc_hdr(const struct common_firmware_header *hdr);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.h
274
void amdgpu_ucode_print_sdma_hdr(const struct common_firmware_header *hdr);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.h
275
void amdgpu_ucode_print_gpu_info_hdr(const struct common_firmware_header *hdr);
sys/dev/drm/amd/amdgpu/amdgpu_ucode.h
277
bool amdgpu_ucode_hdr_version(union amdgpu_firmware_header *hdr,
sys/dev/drm/amd/amdgpu/amdgpu_uvd.c
127
const struct common_firmware_header *hdr;
sys/dev/drm/amd/amdgpu/amdgpu_uvd.c
207
hdr = (const struct common_firmware_header *)adev->uvd.fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_uvd.c
208
family_id = le32_to_cpu(hdr->ucode_version) & 0xff;
sys/dev/drm/amd/amdgpu/amdgpu_uvd.c
213
version_major = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xff;
sys/dev/drm/amd/amdgpu/amdgpu_uvd.c
214
version_minor = (le32_to_cpu(hdr->ucode_version) >> 8) & 0xff;
sys/dev/drm/amd/amdgpu/amdgpu_uvd.c
239
dec_minor = (le32_to_cpu(hdr->ucode_version) >> 8) & 0xff;
sys/dev/drm/amd/amdgpu/amdgpu_uvd.c
240
enc_minor = (le32_to_cpu(hdr->ucode_version) >> 24) & 0x3f;
sys/dev/drm/amd/amdgpu/amdgpu_uvd.c
241
enc_major = (le32_to_cpu(hdr->ucode_version) >> 30) & 0x3;
sys/dev/drm/amd/amdgpu/amdgpu_uvd.c
247
adev->uvd.fw_version = le32_to_cpu(hdr->ucode_version);
sys/dev/drm/amd/amdgpu/amdgpu_uvd.c
253
bo_size += AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
sys/dev/drm/amd/amdgpu/amdgpu_uvd.c
400
const struct common_firmware_header *hdr;
sys/dev/drm/amd/amdgpu/amdgpu_uvd.c
403
hdr = (const struct common_firmware_header *)adev->uvd.fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_uvd.c
405
offset = le32_to_cpu(hdr->ucode_array_offset_bytes);
sys/dev/drm/amd/amdgpu/amdgpu_uvd.c
407
le32_to_cpu(hdr->ucode_size_bytes));
sys/dev/drm/amd/amdgpu/amdgpu_uvd.c
408
size -= le32_to_cpu(hdr->ucode_size_bytes);
sys/dev/drm/amd/amdgpu/amdgpu_uvd.c
409
ptr += le32_to_cpu(hdr->ucode_size_bytes);
sys/dev/drm/amd/amdgpu/amdgpu_vce.c
170
hdr = (const struct common_firmware_header *)adev->vce.fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_vce.c
172
ucode_version = le32_to_cpu(hdr->ucode_version);
sys/dev/drm/amd/amdgpu/amdgpu_vce.c
286
const struct common_firmware_header *hdr;
sys/dev/drm/amd/amdgpu/amdgpu_vce.c
306
hdr = (const struct common_firmware_header *)adev->vce.fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_vce.c
307
offset = le32_to_cpu(hdr->ucode_array_offset_bytes);
sys/dev/drm/amd/amdgpu/amdgpu_vce.c
94
const struct common_firmware_header *hdr;
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
103
fw_check = (le32_to_cpu(hdr->ucode_version) >> 20) & 0xf;
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
107
fw_rev = le32_to_cpu(hdr->ucode_version) & 0xfff;
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
108
enc_minor = (le32_to_cpu(hdr->ucode_version) >> 12) & 0xff;
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
110
dec_ver = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xf;
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
111
vep = (le32_to_cpu(hdr->ucode_version) >> 28) & 0xf;
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
117
family_id = le32_to_cpu(hdr->ucode_version) & 0xff;
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
118
version_major = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xff;
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
119
version_minor = (le32_to_cpu(hdr->ucode_version) >> 8) & 0xff;
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
126
bo_size += AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
198
const struct common_firmware_header *hdr;
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
201
hdr = (const struct common_firmware_header *)adev->vcn.fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
203
offset = le32_to_cpu(hdr->ucode_array_offset_bytes);
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
205
le32_to_cpu(hdr->ucode_size_bytes));
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
206
size -= le32_to_cpu(hdr->ucode_size_bytes);
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
207
ptr += le32_to_cpu(hdr->ucode_size_bytes);
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
59
const struct common_firmware_header *hdr;
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
94
hdr = (const struct common_firmware_header *)adev->vcn.fw->data;
sys/dev/drm/amd/amdgpu/amdgpu_vcn.c
95
adev->vcn.fw_version = le32_to_cpu(hdr->ucode_version);
sys/dev/drm/amd/amdgpu/ci_smc.c
210
const struct smc_firmware_header_v1_0 *hdr;
sys/dev/drm/amd/amdgpu/ci_smc.c
220
hdr = (const struct smc_firmware_header_v1_0 *)adev->pm.fw->data;
sys/dev/drm/amd/amdgpu/ci_smc.c
221
amdgpu_ucode_print_smc_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/ci_smc.c
223
adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/ci_smc.c
224
ucode_start_address = le32_to_cpu(hdr->ucode_start_addr);
sys/dev/drm/amd/amdgpu/ci_smc.c
225
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
sys/dev/drm/amd/amdgpu/ci_smc.c
227
(adev->pm.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/cik_sdma.c
541
const struct sdma_firmware_header_v1_0 *hdr;
sys/dev/drm/amd/amdgpu/cik_sdma.c
552
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
sys/dev/drm/amd/amdgpu/cik_sdma.c
553
amdgpu_ucode_print_sdma_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/cik_sdma.c
554
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/cik_sdma.c
555
adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/cik_sdma.c
556
adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version);
sys/dev/drm/amd/amdgpu/cik_sdma.c
560
(adev->sdma.instance[i].fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3535
const struct rlc_firmware_header_v1_0 *hdr;
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3543
hdr = (const struct rlc_firmware_header_v1_0 *)adev->gfx.rlc_fw->data;
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3544
amdgpu_ucode_print_rlc_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3545
adev->gfx.rlc_fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3547
hdr->ucode_feature_version);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3573
(adev->gfx.rlc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3574
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3806
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3810
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3811
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3812
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3814
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3818
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3819
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3820
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3822
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3826
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3827
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3828
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3830
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3834
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3835
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3836
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3838
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3842
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3843
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/amd/amdgpu/gfx_v7_0.c
3844
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1316
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1320
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1321
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1322
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1324
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1328
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1329
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1330
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1332
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1336
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1337
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1338
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1340
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1344
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1345
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1346
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1348
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1352
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1353
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/amd/amdgpu/gfx_v8_0.c
1354
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1080
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1084
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1085
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1086
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1088
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1092
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1093
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1094
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1096
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1100
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1101
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1102
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1104
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1108
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1109
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1110
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1112
const struct gfx_firmware_header_v1_0 *hdr =
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1116
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1117
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
1118
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2471
const struct rlc_firmware_header_v2_0 *hdr;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2478
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2479
amdgpu_ucode_print_rlc_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2482
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gfx_v9_0.c
2483
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gmc_v7_0.c
180
const struct mc_firmware_header_v1_0 *hdr;
sys/dev/drm/amd/amdgpu/gmc_v7_0.c
189
hdr = (const struct mc_firmware_header_v1_0 *)adev->gmc.fw->data;
sys/dev/drm/amd/amdgpu/gmc_v7_0.c
190
amdgpu_ucode_print_mc_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/gmc_v7_0.c
192
adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gmc_v7_0.c
193
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
sys/dev/drm/amd/amdgpu/gmc_v7_0.c
195
(adev->gmc.fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gmc_v7_0.c
196
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gmc_v7_0.c
198
(adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
297
const struct mc_firmware_header_v1_0 *hdr;
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
314
hdr = (const struct mc_firmware_header_v1_0 *)adev->gmc.fw->data;
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
315
amdgpu_ucode_print_mc_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
317
adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
318
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
320
(adev->gmc.fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
321
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
323
(adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
366
const struct mc_firmware_header_v1_0 *hdr;
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
383
hdr = (const struct mc_firmware_header_v1_0 *)adev->gmc.fw->data;
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
384
amdgpu_ucode_print_mc_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
386
adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
387
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
389
(adev->gmc.fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
390
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/gmc_v8_0.c
392
(adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/psp_v10_0.c
114
const struct psp_firmware_header_v1_0 *hdr;
sys/dev/drm/amd/amdgpu/psp_v10_0.c
139
hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.asd_fw->data;
sys/dev/drm/amd/amdgpu/psp_v10_0.c
140
adev->psp.asd_fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/psp_v10_0.c
141
adev->psp.asd_feature_version = le32_to_cpu(hdr->ucode_feature_version);
sys/dev/drm/amd/amdgpu/psp_v10_0.c
142
adev->psp.asd_ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
sys/dev/drm/amd/amdgpu/psp_v10_0.c
143
adev->psp.asd_start_addr = (uint8_t *)hdr +
sys/dev/drm/amd/amdgpu/psp_v10_0.c
144
le32_to_cpu(hdr->header.ucode_array_offset_bytes);
sys/dev/drm/amd/amdgpu/psp_v11_0.c
101
const struct psp_firmware_header_v1_0 *hdr;
sys/dev/drm/amd/amdgpu/psp_v11_0.c
122
hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.sos_fw->data;
sys/dev/drm/amd/amdgpu/psp_v11_0.c
123
adev->psp.sos_fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/psp_v11_0.c
124
adev->psp.sos_feature_version = le32_to_cpu(hdr->ucode_feature_version);
sys/dev/drm/amd/amdgpu/psp_v11_0.c
125
adev->psp.sos_bin_size = le32_to_cpu(hdr->sos_size_bytes);
sys/dev/drm/amd/amdgpu/psp_v11_0.c
126
adev->psp.sys_bin_size = le32_to_cpu(hdr->header.ucode_size_bytes) -
sys/dev/drm/amd/amdgpu/psp_v11_0.c
127
le32_to_cpu(hdr->sos_size_bytes);
sys/dev/drm/amd/amdgpu/psp_v11_0.c
128
adev->psp.sys_start_addr = (uint8_t *)hdr +
sys/dev/drm/amd/amdgpu/psp_v11_0.c
129
le32_to_cpu(hdr->header.ucode_array_offset_bytes);
sys/dev/drm/amd/amdgpu/psp_v11_0.c
131
le32_to_cpu(hdr->sos_offset_bytes);
sys/dev/drm/amd/amdgpu/psp_v3_1.c
107
const struct psp_firmware_header_v1_0 *hdr;
sys/dev/drm/amd/amdgpu/psp_v3_1.c
130
hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.sos_fw->data;
sys/dev/drm/amd/amdgpu/psp_v3_1.c
131
adev->psp.sos_fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/psp_v3_1.c
132
adev->psp.sos_feature_version = le32_to_cpu(hdr->ucode_feature_version);
sys/dev/drm/amd/amdgpu/psp_v3_1.c
133
adev->psp.sos_bin_size = le32_to_cpu(hdr->sos_size_bytes);
sys/dev/drm/amd/amdgpu/psp_v3_1.c
134
adev->psp.sys_bin_size = le32_to_cpu(hdr->header.ucode_size_bytes) -
sys/dev/drm/amd/amdgpu/psp_v3_1.c
135
le32_to_cpu(hdr->sos_size_bytes);
sys/dev/drm/amd/amdgpu/psp_v3_1.c
136
adev->psp.sys_start_addr = (uint8_t *)hdr +
sys/dev/drm/amd/amdgpu/psp_v3_1.c
137
le32_to_cpu(hdr->header.ucode_array_offset_bytes);
sys/dev/drm/amd/amdgpu/psp_v3_1.c
139
le32_to_cpu(hdr->sos_offset_bytes);
sys/dev/drm/amd/amdgpu/psp_v3_1.c
150
hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.asd_fw->data;
sys/dev/drm/amd/amdgpu/psp_v3_1.c
151
adev->psp.asd_fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/psp_v3_1.c
152
adev->psp.asd_feature_version = le32_to_cpu(hdr->ucode_feature_version);
sys/dev/drm/amd/amdgpu/psp_v3_1.c
153
adev->psp.asd_ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
sys/dev/drm/amd/amdgpu/psp_v3_1.c
154
adev->psp.asd_start_addr = (uint8_t *)hdr +
sys/dev/drm/amd/amdgpu/psp_v3_1.c
155
le32_to_cpu(hdr->header.ucode_array_offset_bytes);
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
135
const struct sdma_firmware_header_v1_0 *hdr;
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
157
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
158
adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/sdma_v2_4.c
159
adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version);
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
272
const struct sdma_firmware_header_v1_0 *hdr;
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
315
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
316
adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/sdma_v3_0.c
317
adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
271
const struct sdma_firmware_header_v1_0 *hdr;
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
308
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
309
adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
310
adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
906
const struct sdma_firmware_header_v1_0 *hdr;
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
918
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
919
amdgpu_ucode_print_sdma_hdr(&hdr->header);
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
920
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/amd/amdgpu/sdma_v4_0.c
924
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/amd/amdgpu/uvd_v7_0.c
434
const struct common_firmware_header *hdr;
sys/dev/drm/amd/amdgpu/uvd_v7_0.c
435
hdr = (const struct common_firmware_header *)adev->uvd.fw->data;
sys/dev/drm/amd/amdgpu/uvd_v7_0.c
439
ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/uvd_v7_0.c
445
ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/vce_v4_0.c
439
const struct common_firmware_header *hdr;
sys/dev/drm/amd/amdgpu/vce_v4_0.c
446
hdr = (const struct common_firmware_header *)adev->vce.fw->data;
sys/dev/drm/amd/amdgpu/vce_v4_0.c
450
ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/amdgpu/vcn_v1_0.c
110
const struct common_firmware_header *hdr;
sys/dev/drm/amd/amdgpu/vcn_v1_0.c
111
hdr = (const struct common_firmware_header *)adev->vcn.fw->data;
sys/dev/drm/amd/amdgpu/vcn_v1_0.c
115
ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
519
const struct dmcu_firmware_header_v1_0 *hdr;
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
574
hdr = (const struct dmcu_firmware_header_v1_0 *)adev->dm.fw_dmcu->data;
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
578
ALIGN(le32_to_cpu(hdr->header.ucode_size_bytes) - le32_to_cpu(hdr->intv_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
583
ALIGN(le32_to_cpu(hdr->intv_size_bytes), PAGE_SIZE);
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
585
adev->dm.dmcu_fw_version = le32_to_cpu(hdr->header.ucode_version);
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1189
ATOM_COMMON_TABLE_HEADER *hdr;
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1194
hdr = GET_IMAGE(ATOM_COMMON_TABLE_HEADER, DATA_TABLES(LCD_Info));
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1196
if (!hdr)
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1199
switch (hdr->ucTableFormatRevision) {
sys/dev/drm/amd/display/dc/bios/bios_parser.c
1201
switch (hdr->ucTableContentRevision) {
sys/dev/drm/drm_dp_mst_topology.c
137
static inline u8 drm_dp_calc_sb_hdr_size(struct drm_dp_sideband_msg_hdr *hdr)
sys/dev/drm/drm_dp_mst_topology.c
140
size += (hdr->lct / 2);
sys/dev/drm/drm_dp_mst_topology.c
144
static void drm_dp_encode_sideband_msg_hdr(struct drm_dp_sideband_msg_hdr *hdr,
sys/dev/drm/drm_dp_mst_topology.c
1453
static int set_hdr_from_dst_qlock(struct drm_dp_sideband_msg_hdr *hdr,
sys/dev/drm/drm_dp_mst_topology.c
1478
hdr->broadcast = 1;
sys/dev/drm/drm_dp_mst_topology.c
1480
hdr->broadcast = 0;
sys/dev/drm/drm_dp_mst_topology.c
1481
hdr->path_msg = txmsg->path_msg;
sys/dev/drm/drm_dp_mst_topology.c
1482
hdr->lct = mstb->lct;
sys/dev/drm/drm_dp_mst_topology.c
1483
hdr->lcr = mstb->lct - 1;
sys/dev/drm/drm_dp_mst_topology.c
1485
memcpy(hdr->rad, mstb->rad, mstb->lct / 2);
sys/dev/drm/drm_dp_mst_topology.c
1486
hdr->seqno = txmsg->seqno;
sys/dev/drm/drm_dp_mst_topology.c
1497
struct drm_dp_sideband_msg_hdr hdr;
sys/dev/drm/drm_dp_mst_topology.c
150
buf[idx++] = ((hdr->lct & 0xf) << 4) | (hdr->lcr & 0xf);
sys/dev/drm/drm_dp_mst_topology.c
1501
memset(&hdr, 0, sizeof(struct drm_dp_sideband_msg_hdr));
sys/dev/drm/drm_dp_mst_topology.c
151
for (i = 0; i < (hdr->lct / 2); i++)
sys/dev/drm/drm_dp_mst_topology.c
1510
ret = set_hdr_from_dst_qlock(&hdr, txmsg);
sys/dev/drm/drm_dp_mst_topology.c
1518
space = 48 - 1 - drm_dp_calc_sb_hdr_size(&hdr);
sys/dev/drm/drm_dp_mst_topology.c
152
buf[idx++] = hdr->rad[i];
sys/dev/drm/drm_dp_mst_topology.c
1522
hdr.somt = 1;
sys/dev/drm/drm_dp_mst_topology.c
1524
hdr.eomt = 1;
sys/dev/drm/drm_dp_mst_topology.c
1527
hdr.msg_len = tosend + 1;
sys/dev/drm/drm_dp_mst_topology.c
1528
drm_dp_encode_sideband_msg_hdr(&hdr, chunk, &idx);
sys/dev/drm/drm_dp_mst_topology.c
153
buf[idx++] = (hdr->broadcast << 7) | (hdr->path_msg << 6) |
sys/dev/drm/drm_dp_mst_topology.c
154
(hdr->msg_len & 0x3f);
sys/dev/drm/drm_dp_mst_topology.c
155
buf[idx++] = (hdr->somt << 7) | (hdr->eomt << 6) | (hdr->seqno << 4);
sys/dev/drm/drm_dp_mst_topology.c
163
static bool drm_dp_decode_sideband_msg_hdr(struct drm_dp_sideband_msg_hdr *hdr,
sys/dev/drm/drm_dp_mst_topology.c
183
hdr->lct = (buf[0] & 0xf0) >> 4;
sys/dev/drm/drm_dp_mst_topology.c
184
hdr->lcr = (buf[0] & 0xf);
sys/dev/drm/drm_dp_mst_topology.c
186
for (i = 0; i < (hdr->lct / 2); i++)
sys/dev/drm/drm_dp_mst_topology.c
187
hdr->rad[i] = buf[idx++];
sys/dev/drm/drm_dp_mst_topology.c
188
hdr->broadcast = (buf[idx] >> 7) & 0x1;
sys/dev/drm/drm_dp_mst_topology.c
189
hdr->path_msg = (buf[idx] >> 6) & 0x1;
sys/dev/drm/drm_dp_mst_topology.c
190
hdr->msg_len = buf[idx] & 0x3f;
sys/dev/drm/drm_dp_mst_topology.c
192
hdr->somt = (buf[idx] >> 7) & 0x1;
sys/dev/drm/drm_dp_mst_topology.c
193
hdr->eomt = (buf[idx] >> 6) & 0x1;
sys/dev/drm/drm_dp_mst_topology.c
194
hdr->seqno = (buf[idx] >> 4) & 0x1;
sys/dev/drm/drm_dp_mst_topology.c
327
u8 *replybuf, u8 replybuflen, bool hdr)
sys/dev/drm/drm_dp_mst_topology.c
332
if (hdr) {
sys/dev/drm/i915/intel_engine_cs.c
1385
char hdr[80];
sys/dev/drm/i915/intel_engine_cs.c
1387
snprintf(hdr, sizeof(hdr),
sys/dev/drm/i915/intel_engine_cs.c
1391
print_request(m, rq, hdr);
sys/dev/drm/radeon/ci_smc.c
198
const struct smc_firmware_header_v1_0 *hdr =
sys/dev/drm/radeon/ci_smc.c
201
radeon_ucode_print_smc_hdr(&hdr->header);
sys/dev/drm/radeon/ci_smc.c
203
ucode_start_address = le32_to_cpu(hdr->ucode_start_addr);
sys/dev/drm/radeon/ci_smc.c
204
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
sys/dev/drm/radeon/ci_smc.c
206
(rdev->smc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
1868
const struct mc_firmware_header_v1_0 *hdr =
sys/dev/drm/radeon/cik.c
1871
radeon_ucode_print_mc_hdr(&hdr->header);
sys/dev/drm/radeon/cik.c
1873
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
sys/dev/drm/radeon/cik.c
1875
(rdev->mc_fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
sys/dev/drm/radeon/cik.c
1876
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/cik.c
1878
(rdev->mc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
5967
const struct rlc_firmware_header_v1_0 *hdr =
sys/dev/drm/radeon/cik.c
5970
(rdev->rlc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
5972
radeon_ucode_print_rlc_hdr(&hdr->header);
sys/dev/drm/radeon/cik.c
5974
size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/cik.c
5978
WREG32(RLC_GPM_UCODE_ADDR, le32_to_cpu(hdr->header.ucode_version));
sys/dev/drm/radeon/cik.c
6455
const struct gfx_firmware_header_v1_0 *hdr;
sys/dev/drm/radeon/cik.c
6458
hdr = (const struct gfx_firmware_header_v1_0 *)rdev->ce_fw->data;
sys/dev/drm/radeon/cik.c
6460
(rdev->ce_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
6461
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/radeon/cik.c
6462
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/radeon/cik.c
6464
hdr = (const struct gfx_firmware_header_v1_0 *)rdev->pfp_fw->data;
sys/dev/drm/radeon/cik.c
6466
(rdev->pfp_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
6467
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/radeon/cik.c
6468
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/radeon/cik.c
6470
hdr = (const struct gfx_firmware_header_v1_0 *)rdev->me_fw->data;
sys/dev/drm/radeon/cik.c
6472
(rdev->me_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
6473
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/radeon/cik.c
6474
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/radeon/cik.c
6476
hdr = (const struct gfx_firmware_header_v1_0 *)rdev->mec_fw->data;
sys/dev/drm/radeon/cik.c
6478
(rdev->mec_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
6479
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/radeon/cik.c
6480
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/radeon/cik.c
6482
hdr = (const struct gfx_firmware_header_v1_0 *)rdev->mec2_fw->data;
sys/dev/drm/radeon/cik.c
6484
(rdev->mec2_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik.c
6485
table_offset = le32_to_cpu(hdr->jt_offset);
sys/dev/drm/radeon/cik.c
6486
table_size = le32_to_cpu(hdr->jt_size);
sys/dev/drm/radeon/cik_sdma.c
471
const struct sdma_firmware_header_v1_0 *hdr =
sys/dev/drm/radeon/cik_sdma.c
476
radeon_ucode_print_sdma_hdr(&hdr->header);
sys/dev/drm/radeon/cik_sdma.c
480
(rdev->sdma_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik_sdma.c
481
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/cik_sdma.c
489
(rdev->sdma_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/cik_sdma.c
490
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/radeon_bios.c
669
ACPI_TABLE_HEADER *hdr;
sys/dev/drm/radeon/radeon_bios.c
679
status = AcpiGetTable("VFCT", 1, &hdr);
sys/dev/drm/radeon/radeon_bios.c
685
tbl_size = hdr->Length;
sys/dev/drm/radeon/radeon_bios.c
691
vfct = (UEFI_ACPI_VFCT *)hdr;
sys/dev/drm/radeon/radeon_bios.c
697
vbios = (GOP_VBIOS_CONTENT *)((char *)hdr + vfct->VBIOSImageOffset);
sys/dev/drm/radeon/radeon_ucode.c
105
void radeon_ucode_print_rlc_hdr(const struct common_firmware_header *hdr)
sys/dev/drm/radeon/radeon_ucode.c
107
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/drm/radeon/radeon_ucode.c
108
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/drm/radeon/radeon_ucode.c
111
radeon_ucode_print_common_hdr(hdr);
sys/dev/drm/radeon/radeon_ucode.c
115
container_of(__DECONST(void *, hdr), struct rlc_firmware_header_v1_0, header);
sys/dev/drm/radeon/radeon_ucode.c
132
void radeon_ucode_print_sdma_hdr(const struct common_firmware_header *hdr)
sys/dev/drm/radeon/radeon_ucode.c
134
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/drm/radeon/radeon_ucode.c
135
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/drm/radeon/radeon_ucode.c
138
radeon_ucode_print_common_hdr(hdr);
sys/dev/drm/radeon/radeon_ucode.c
142
container_of(__DECONST(void *, hdr), struct sdma_firmware_header_v1_0, header);
sys/dev/drm/radeon/radeon_ucode.c
158
const struct common_firmware_header *hdr =
sys/dev/drm/radeon/radeon_ucode.c
161
if (fw->datasize == le32_to_cpu(hdr->size_bytes))
sys/dev/drm/radeon/radeon_ucode.c
30
static void radeon_ucode_print_common_hdr(const struct common_firmware_header *hdr)
sys/dev/drm/radeon/radeon_ucode.c
32
DRM_DEBUG("size_bytes: %u\n", le32_to_cpu(hdr->size_bytes));
sys/dev/drm/radeon/radeon_ucode.c
33
DRM_DEBUG("header_size_bytes: %u\n", le32_to_cpu(hdr->header_size_bytes));
sys/dev/drm/radeon/radeon_ucode.c
34
DRM_DEBUG("header_version_major: %u\n", le16_to_cpu(hdr->header_version_major));
sys/dev/drm/radeon/radeon_ucode.c
35
DRM_DEBUG("header_version_minor: %u\n", le16_to_cpu(hdr->header_version_minor));
sys/dev/drm/radeon/radeon_ucode.c
36
DRM_DEBUG("ip_version_major: %u\n", le16_to_cpu(hdr->ip_version_major));
sys/dev/drm/radeon/radeon_ucode.c
37
DRM_DEBUG("ip_version_minor: %u\n", le16_to_cpu(hdr->ip_version_minor));
sys/dev/drm/radeon/radeon_ucode.c
38
DRM_DEBUG("ucode_version: 0x%08x\n", le32_to_cpu(hdr->ucode_version));
sys/dev/drm/radeon/radeon_ucode.c
39
DRM_DEBUG("ucode_size_bytes: %u\n", le32_to_cpu(hdr->ucode_size_bytes));
sys/dev/drm/radeon/radeon_ucode.c
41
le32_to_cpu(hdr->ucode_array_offset_bytes));
sys/dev/drm/radeon/radeon_ucode.c
42
DRM_DEBUG("crc32: 0x%08x\n", le32_to_cpu(hdr->crc32));
sys/dev/drm/radeon/radeon_ucode.c
45
void radeon_ucode_print_mc_hdr(const struct common_firmware_header *hdr)
sys/dev/drm/radeon/radeon_ucode.c
47
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/drm/radeon/radeon_ucode.c
48
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/drm/radeon/radeon_ucode.c
51
radeon_ucode_print_common_hdr(hdr);
sys/dev/drm/radeon/radeon_ucode.c
55
container_of(__DECONST(void *, hdr), struct mc_firmware_header_v1_0, header);
sys/dev/drm/radeon/radeon_ucode.c
66
void radeon_ucode_print_smc_hdr(const struct common_firmware_header *hdr)
sys/dev/drm/radeon/radeon_ucode.c
68
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/drm/radeon/radeon_ucode.c
69
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/drm/radeon/radeon_ucode.c
72
radeon_ucode_print_common_hdr(hdr);
sys/dev/drm/radeon/radeon_ucode.c
76
container_of(__DECONST(void *, hdr), struct smc_firmware_header_v1_0, header);
sys/dev/drm/radeon/radeon_ucode.c
84
void radeon_ucode_print_gfx_hdr(const struct common_firmware_header *hdr)
sys/dev/drm/radeon/radeon_ucode.c
86
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
sys/dev/drm/radeon/radeon_ucode.c
87
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
sys/dev/drm/radeon/radeon_ucode.c
90
radeon_ucode_print_common_hdr(hdr);
sys/dev/drm/radeon/radeon_ucode.c
94
container_of(__DECONST(void *, hdr), struct gfx_firmware_header_v1_0, header);
sys/dev/drm/radeon/radeon_ucode.h
220
void radeon_ucode_print_mc_hdr(const struct common_firmware_header *hdr);
sys/dev/drm/radeon/radeon_ucode.h
221
void radeon_ucode_print_smc_hdr(const struct common_firmware_header *hdr);
sys/dev/drm/radeon/radeon_ucode.h
222
void radeon_ucode_print_gfx_hdr(const struct common_firmware_header *hdr);
sys/dev/drm/radeon/radeon_ucode.h
223
void radeon_ucode_print_rlc_hdr(const struct common_firmware_header *hdr);
sys/dev/drm/radeon/radeon_ucode.h
224
void radeon_ucode_print_sdma_hdr(const struct common_firmware_header *hdr);
sys/dev/drm/radeon/radeon_uvd.c
146
struct common_firmware_header *hdr = (void *)rdev->uvd_fw->data;
sys/dev/drm/radeon/radeon_uvd.c
155
family_id = le32_to_cpu(hdr->ucode_version) & 0xff;
sys/dev/drm/radeon/radeon_uvd.c
156
version_major = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xff;
sys/dev/drm/radeon/radeon_uvd.c
157
version_minor = (le32_to_cpu(hdr->ucode_version) >> 8) & 0xff;
sys/dev/drm/radeon/si.c
1575
const struct mc_firmware_header_v1_0 *hdr =
sys/dev/drm/radeon/si.c
1578
radeon_ucode_print_mc_hdr(&hdr->header);
sys/dev/drm/radeon/si.c
1579
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
sys/dev/drm/radeon/si.c
1581
(rdev->mc_fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
sys/dev/drm/radeon/si.c
1582
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/si.c
1584
(rdev->mc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/si.c
5877
const struct rlc_firmware_header_v1_0 *hdr =
sys/dev/drm/radeon/si.c
5879
u32 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
sys/dev/drm/radeon/si.c
5881
(rdev->rlc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/drm/radeon/si.c
5883
radeon_ucode_print_rlc_hdr(&hdr->header);
sys/dev/drm/radeon/si_smc.c
223
const struct smc_firmware_header_v1_0 *hdr =
sys/dev/drm/radeon/si_smc.c
226
radeon_ucode_print_smc_hdr(&hdr->header);
sys/dev/drm/radeon/si_smc.c
228
ucode_start_address = le32_to_cpu(hdr->ucode_start_addr);
sys/dev/drm/radeon/si_smc.c
229
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
sys/dev/drm/radeon/si_smc.c
231
(rdev->smc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
sys/dev/misc/tbridge/safe_mem.c
100
hdr->prev = hdrp;
sys/dev/misc/tbridge/safe_mem.c
101
hdrp->next = hdr;
sys/dev/misc/tbridge/safe_mem.c
110
struct safe_mem_hdr *hdr;
sys/dev/misc/tbridge/safe_mem.c
116
hdr = (struct safe_mem_hdr *)(user_mem - sizeof(*hdr));
sys/dev/misc/tbridge/safe_mem.c
117
tail = (struct safe_mem_tail *)(user_mem + hdr->alloc_sz);
sys/dev/misc/tbridge/safe_mem.c
118
mem -= hdr->alloc_sz;
sys/dev/misc/tbridge/safe_mem.c
122
(unsigned long)(void *)hdr, hdr->file, hdr->line);
sys/dev/misc/tbridge/safe_mem.c
125
if (hdr->alloc_sz == 0) {
sys/dev/misc/tbridge/safe_mem.c
132
if ((memcmp(hdr->sig, "SAFEMEM\0", 8) != 0) ||
sys/dev/misc/tbridge/safe_mem.c
145
if (hdr->prev != NULL)
sys/dev/misc/tbridge/safe_mem.c
146
hdr->prev->next = hdr->next;
sys/dev/misc/tbridge/safe_mem.c
147
if (hdr->next != NULL)
sys/dev/misc/tbridge/safe_mem.c
148
hdr->next->prev = hdr->prev;
sys/dev/misc/tbridge/safe_mem.c
149
if (safe_mem_hdr_first == hdr)
sys/dev/misc/tbridge/safe_mem.c
150
safe_mem_hdr_first = hdr->next;
sys/dev/misc/tbridge/safe_mem.c
152
alloc_sz = hdr->alloc_sz;
sys/dev/misc/tbridge/safe_mem.c
161
struct safe_mem_hdr *hdr;
sys/dev/misc/tbridge/safe_mem.c
170
hdr = safe_mem_hdr_first;
sys/dev/misc/tbridge/safe_mem.c
171
while ((hdr = safe_mem_hdr_first) != NULL) {
sys/dev/misc/tbridge/safe_mem.c
173
if ((hdr->alloc_sz > 0) &&
sys/dev/misc/tbridge/safe_mem.c
174
(memcmp(hdr->sig, "SAFEMEM\0", 8) == 0) &&
sys/dev/misc/tbridge/safe_mem.c
175
(memcmp(hdr->tail->sig, "SAFEMEM\0", 8) == 0))
sys/dev/misc/tbridge/safe_mem.c
181
(unsigned long)(void *)hdr, hdr->file, hdr->line,
sys/dev/misc/tbridge/safe_mem.c
184
mem = (void *)hdr;
sys/dev/misc/tbridge/safe_mem.c
185
mem += sizeof(*hdr);
sys/dev/misc/tbridge/safe_mem.c
74
struct safe_mem_hdr *hdr, *hdrp;
sys/dev/misc/tbridge/safe_mem.c
83
hdr = (struct safe_mem_hdr *)(user_mem - sizeof(*hdr));
sys/dev/misc/tbridge/safe_mem.c
86
strcpy(hdr->sig, "SAFEMEM");
sys/dev/misc/tbridge/safe_mem.c
88
hdr->tail = tail;
sys/dev/misc/tbridge/safe_mem.c
89
hdr->alloc_sz = alloc_sz;
sys/dev/misc/tbridge/safe_mem.c
90
hdr->file = file;
sys/dev/misc/tbridge/safe_mem.c
91
hdr->line = line;
sys/dev/misc/tbridge/safe_mem.c
92
hdr->next = NULL;
sys/dev/misc/tbridge/safe_mem.c
95
safe_mem_hdr_first = hdr;
sys/dev/netif/ae/if_ae.c
1075
struct ae_txd *hdr;
sys/dev/netif/ae/if_ae.c
1090
hdr = (struct ae_txd *)(sc->txd_base + sc->txd_cur);
sys/dev/netif/ae/if_ae.c
1091
bzero(hdr, sizeof(*hdr));
sys/dev/netif/ae/if_ae.c
1110
hdr->vlan = htole16(AE_TXD_VLAN(m0->m_pkthdr.ether_vlantag));
sys/dev/netif/ae/if_ae.c
1111
hdr->len = htole16(len | AE_TXD_INSERT_VTAG);
sys/dev/netif/ae/if_ae.c
1113
hdr->len = htole16(len);
sys/dev/netif/ath/ath/if_ath_alq.h
147
struct if_ath_alq_hdr hdr;
sys/dev/netif/bwn/bwn/if_bwn.c
3587
const struct bwn_fwhdr *hdr;
sys/dev/netif/bwn/bwn/if_bwn.c
3591
hdr = (const struct bwn_fwhdr *)(fw->initvals.fw->data);
sys/dev/netif/bwn/bwn/if_bwn.c
3593
be32toh(hdr->size), fw->initvals.fw->datasize - hdr_len);
sys/dev/netif/bwn/bwn/if_bwn.c
3597
hdr = (const struct bwn_fwhdr *)(fw->initvals_band.fw->data);
sys/dev/netif/bwn/bwn/if_bwn.c
3600
be32toh(hdr->size),
sys/dev/netif/bwn/bwn/if_bwn.c
4141
const struct bwn_fwhdr *hdr;
sys/dev/netif/bwn/bwn/if_bwn.c
4168
hdr = (const struct bwn_fwhdr *)(fw->data);
sys/dev/netif/bwn/bwn/if_bwn.c
4169
switch (hdr->type) {
sys/dev/netif/bwn/bwn/if_bwn.c
4172
if (be32toh(hdr->size) !=
sys/dev/netif/bwn/bwn/if_bwn.c
4177
if (hdr->ver != 1)
sys/dev/netif/bwn/bwn/if_bwn.c
5668
struct bwn_rxhdr4 *hdr;
sys/dev/netif/bwn/bwn/if_bwn.c
5725
hdr = mtod(meta->mt_m, struct bwn_rxhdr4 *);
sys/dev/netif/bwn/bwn/if_bwn.c
5726
bzero(hdr, sizeof(*hdr));
sys/dev/netif/bwn/bwn/if_bwn.c
5734
sizeof(*hdr), 0, 0, 0);
sys/dev/netif/dc/if_dc.c
1774
struct dc_eblock_hdr *hdr;
sys/dev/netif/dc/if_dc.c
1789
hdr = (struct dc_eblock_hdr *)ptr;
sys/dev/netif/dc/if_dc.c
1790
if (hdr->dc_type == DC_EBLOCK_MII)
sys/dev/netif/dc/if_dc.c
1793
ptr += (hdr->dc_len & 0x7F);
sys/dev/netif/dc/if_dc.c
1804
hdr = (struct dc_eblock_hdr *)ptr;
sys/dev/netif/dc/if_dc.c
1805
switch(hdr->dc_type) {
sys/dev/netif/dc/if_dc.c
1807
dc_decode_leaf_mii(sc, (struct dc_eblock_mii *)hdr);
sys/dev/netif/dc/if_dc.c
1812
(struct dc_eblock_sia *)hdr);
sys/dev/netif/dc/if_dc.c
1817
(struct dc_eblock_sym *)hdr);
sys/dev/netif/dc/if_dc.c
1823
ptr += (hdr->dc_len & 0x7F);
sys/dev/netif/fwe/if_fwe.c
507
fp = &xfer->send.hdr;
sys/dev/netif/fwe/if_fwe.c
508
*(u_int32_t *)&xfer->send.hdr = *(int32_t *)&fwe->pkt_hdr;
sys/dev/netif/ic/if_ic.c
345
uint32_t hdr = dst->sa_family;
sys/dev/netif/ic/if_ic.c
358
bcopy ((char *)&hdr, sc->ic_obuf, ICHDRLEN);
sys/dev/netif/ic/if_ic.c
379
bpf_ptap(ifp->if_bpf, m, &hdr, ICHDRLEN);
sys/dev/netif/ig_hal/e1000_api.c
956
struct e1000_host_mng_command_header *hdr)
sys/dev/netif/ig_hal/e1000_api.c
958
return e1000_mng_write_cmd_header_generic(hw, hdr);
sys/dev/netif/ig_hal/e1000_api.h
117
struct e1000_host_mng_command_header *hdr);
sys/dev/netif/ig_hal/e1000_manage.c
133
struct e1000_host_mng_dhcp_cookie *hdr = &hw->mng_cookie;
sys/dev/netif/ig_hal/e1000_manage.c
164
hdr_csum = hdr->checksum;
sys/dev/netif/ig_hal/e1000_manage.c
165
hdr->checksum = 0;
sys/dev/netif/ig_hal/e1000_manage.c
166
csum = e1000_calculate_checksum((u8 *)hdr,
sys/dev/netif/ig_hal/e1000_manage.c
172
if ((hdr_csum != csum) || (hdr->signature != E1000_IAMT_SIGNATURE)) {
sys/dev/netif/ig_hal/e1000_manage.c
178
if (!(hdr->status & E1000_MNG_DHCP_COOKIE_STATUS_PARSING))
sys/dev/netif/ig_hal/e1000_manage.c
192
struct e1000_host_mng_command_header *hdr)
sys/dev/netif/ig_hal/e1000_manage.c
200
hdr->checksum = e1000_calculate_checksum((u8 *)hdr, length);
sys/dev/netif/ig_hal/e1000_manage.c
206
*((u32 *) hdr + i));
sys/dev/netif/ig_hal/e1000_manage.c
300
struct e1000_host_mng_command_header hdr;
sys/dev/netif/ig_hal/e1000_manage.c
306
hdr.command_id = E1000_MNG_DHCP_TX_PAYLOAD_CMD;
sys/dev/netif/ig_hal/e1000_manage.c
307
hdr.command_length = length;
sys/dev/netif/ig_hal/e1000_manage.c
308
hdr.reserved1 = 0;
sys/dev/netif/ig_hal/e1000_manage.c
309
hdr.reserved2 = 0;
sys/dev/netif/ig_hal/e1000_manage.c
310
hdr.checksum = 0;
sys/dev/netif/ig_hal/e1000_manage.c
319
sizeof(hdr), &(hdr.checksum));
sys/dev/netif/ig_hal/e1000_manage.c
324
ret_val = e1000_mng_write_cmd_header_generic(hw, &hdr);
sys/dev/netif/ig_hal/e1000_manage.h
44
struct e1000_host_mng_command_header *hdr);
sys/dev/netif/igb/if_igb.c
2174
igb_txeof(struct igb_tx_ring *txr, int hdr)
sys/dev/netif/igb/if_igb.c
2182
if (first == hdr)
sys/dev/netif/igb/if_igb.c
2186
while (first != hdr) {
sys/dev/netif/igb/if_igb.c
2222
int first, hdr;
sys/dev/netif/igb/if_igb.c
2230
hdr = E1000_READ_REG(&txr->sc->hw, E1000_TDH(txr->me)),
sys/dev/netif/igb/if_igb.c
2232
if (first == hdr)
sys/dev/netif/igb/if_igb.c
2239
while (first != hdr) {
sys/dev/netif/igb/if_igb.c
306
igb_tx_intr(struct igb_tx_ring *txr, int hdr)
sys/dev/netif/igb/if_igb.c
309
igb_txeof(txr, hdr);
sys/dev/netif/igb/if_igb.c
4925
int hdr;
sys/dev/netif/igb/if_igb.c
4938
hdr = *(txr->tx_hdr);
sys/dev/netif/igb/if_igb.c
4939
if (hdr != txr->next_to_clean) {
sys/dev/netif/igb/if_igb.c
4941
igb_tx_intr(txr, hdr);
sys/dev/netif/iwi/if_iwi.c
1636
struct iwi_hdr *hdr;
sys/dev/netif/iwi/if_iwi.c
1647
hdr = mtod(data->m, struct iwi_hdr *);
sys/dev/netif/iwi/if_iwi.c
1649
switch (hdr->type) {
sys/dev/netif/iwi/if_iwi.c
1652
(struct iwi_frame *)(hdr + 1));
sys/dev/netif/iwi/if_iwi.c
1657
(struct iwi_notif *)(hdr + 1));
sys/dev/netif/iwi/if_iwi.c
1662
hdr->type);
sys/dev/netif/iwi/if_iwi.c
1800
desc->hdr.type = IWI_HDR_TYPE_COMMAND;
sys/dev/netif/iwi/if_iwi.c
1801
desc->hdr.flags = IWI_HDR_FLAG_IRQ;
sys/dev/netif/iwi/if_iwi.c
1989
desc->hdr.type = IWI_HDR_TYPE_DATA;
sys/dev/netif/iwi/if_iwi.c
1990
desc->hdr.flags = IWI_HDR_FLAG_IRQ;
sys/dev/netif/iwi/if_iwi.c
2212
const struct iwi_firmware_ohdr *hdr;
sys/dev/netif/iwi/if_iwi.c
2218
hdr = (const struct iwi_firmware_ohdr *)fp->data;
sys/dev/netif/iwi/if_iwi.c
2219
if ((IWI_FW_GET_MAJOR(le32toh(hdr->version)) != IWI_FW_REQ_MAJOR) ||
sys/dev/netif/iwi/if_iwi.c
2220
(IWI_FW_GET_MINOR(le32toh(hdr->version)) != IWI_FW_REQ_MINOR)) {
sys/dev/netif/iwi/if_iwi.c
2222
fp->name, IWI_FW_GET_MAJOR(le32toh(hdr->version)),
sys/dev/netif/iwi/if_iwi.c
2223
IWI_FW_GET_MINOR(le32toh(hdr->version)), IWI_FW_REQ_MAJOR,
sys/dev/netif/iwi/if_iwi.c
2230
return hdr;
sys/dev/netif/iwi/if_iwi.c
2236
const struct iwi_firmware_ohdr *hdr;
sys/dev/netif/iwi/if_iwi.c
2238
hdr = iwi_setup_ofw(sc, fw);
sys/dev/netif/iwi/if_iwi.c
2239
if (hdr != NULL && le32toh(hdr->mode) != IWI_FW_MODE_UCODE) {
sys/dev/netif/iwi/if_iwi.c
2242
hdr = NULL;
sys/dev/netif/iwi/if_iwi.c
2244
return hdr;
sys/dev/netif/iwi/if_iwi.c
2275
const struct iwi_firmware_hdr *hdr;
sys/dev/netif/iwi/if_iwi.c
2351
hdr = (const struct iwi_firmware_hdr *)fp->data;
sys/dev/netif/iwi/if_iwi.c
2352
if (fp->datasize < sizeof(*hdr) + le32toh(hdr->bsize) + le32toh(hdr->usize)
sys/dev/netif/iwi/if_iwi.c
2353
+ le32toh(hdr->fsize)) {
sys/dev/netif/iwi/if_iwi.c
2358
sc->fw_boot.data = ((const char *) fp->data) + sizeof(*hdr);
sys/dev/netif/iwi/if_iwi.c
2359
sc->fw_boot.size = le32toh(hdr->bsize);
sys/dev/netif/iwi/if_iwi.c
2362
sc->fw_uc.size = le32toh(hdr->usize);
sys/dev/netif/iwi/if_iwi.c
2365
sc->fw_fw.size = le32toh(hdr->fsize);
sys/dev/netif/iwi/if_iwireg.h
324
struct iwi_hdr hdr;
sys/dev/netif/iwi/if_iwireg.h
359
struct iwi_hdr hdr;
sys/dev/netif/iwm/if_iwm.c
2823
if (pkt->hdr.code != IWM_CALIB_RES_NOTIF_PHY_DB) {
sys/dev/netif/iwm/if_iwm.c
2824
if(pkt->hdr.code != IWM_INIT_COMPLETE_NOTIF) {
sys/dev/netif/iwm/if_iwm.c
2826
__func__, pkt->hdr.code);
sys/dev/netif/iwm/if_iwm.c
3597
cmd_hdr = &pkt->hdr;
sys/dev/netif/iwm/if_iwm.c
3649
if (pkt->hdr.qid != IWM_CMD_QUEUE) {
sys/dev/netif/iwm/if_iwm.c
3656
pkt->hdr.code, pkt->hdr.qid, pkt->hdr.idx);
sys/dev/netif/iwm/if_iwm.c
3658
data = &ring->data[pkt->hdr.idx];
sys/dev/netif/iwm/if_iwm.c
3668
wakeup(&ring->desc[pkt->hdr.idx]);
sys/dev/netif/iwm/if_iwm.c
3670
if (((pkt->hdr.idx + ring->queued) % IWM_TX_RING_COUNT) != ring->cur) {
sys/dev/netif/iwm/if_iwm.c
3673
__func__, pkt->hdr.idx, ring->queued, ring->cur);
sys/dev/netif/iwm/if_iwm.c
3835
cmd->hdr.code = IWM_TX_CMD;
sys/dev/netif/iwm/if_iwm.c
3836
cmd->hdr.flags = 0;
sys/dev/netif/iwm/if_iwm.c
3837
cmd->hdr.qid = ring->qid;
sys/dev/netif/iwm/if_iwm.c
3838
cmd->hdr.idx = ring->cur;
sys/dev/netif/iwm/if_iwm.c
5385
qid = pkt->hdr.qid;
sys/dev/netif/iwm/if_iwm.c
5386
idx = pkt->hdr.idx;
sys/dev/netif/iwm/if_iwm.c
5388
code = IWM_WIDE_ID(pkt->hdr.flags, pkt->hdr.code);
sys/dev/netif/iwm/if_iwm.c
5394
if ((pkt->hdr.code == 0 && (qid & ~0x80) == 0 && idx == 0) ||
sys/dev/netif/iwm/if_iwm.c
5401
qid & ~0x80, pkt->hdr.idx, code);
sys/dev/netif/iwm/if_iwm.c
5422
(nextpkt->hdr.code == 0 &&
sys/dev/netif/iwm/if_iwm.c
5423
(nextpkt->hdr.qid & ~0x80) == 0 &&
sys/dev/netif/iwm/if_iwm.c
5424
nextpkt->hdr.idx == 0) ||
sys/dev/netif/iwm/if_iwm_time_event.c
226
if (pkt->hdr.code != IWM_TIME_EVENT_NOTIFICATION ||
sys/dev/netif/iwm/if_iwm_time_event.c
257
if (pkt->hdr.code != IWM_TIME_EVENT_CMD ||
sys/dev/netif/iwm/if_iwm_util.c
210
hdrlen = sizeof(cmd->hdr);
sys/dev/netif/iwm/if_iwm_util.c
264
cmd->hdr.code = iwm_cmd_opcode(code);
sys/dev/netif/iwm/if_iwm_util.c
265
cmd->hdr.flags = 0;
sys/dev/netif/iwm/if_iwm_util.c
266
cmd->hdr.qid = ring->qid;
sys/dev/netif/iwm/if_iwm_util.c
267
cmd->hdr.idx = ring->cur;
sys/dev/netif/iwm/if_iwm_util.c
377
if (pkt->hdr.flags & IWM_CMD_FAILED_MSK) {
sys/dev/netif/iwm/if_iwmreg.h
5008
struct ieee80211_frame hdr[0];
sys/dev/netif/iwm/if_iwmreg.h
6894
struct iwm_cmd_header hdr;
sys/dev/netif/iwm/if_iwmreg.h
6924
struct iwm_cmd_header hdr;
sys/dev/netif/iwm/if_iwmreg.h
6947
return iwm_rx_packet_len(pkt) - sizeof(pkt->hdr);
sys/dev/netif/iwn/if_iwn.c
2372
struct iwn5000_eeprom_calib_hdr hdr;
sys/dev/netif/iwn/if_iwn.c
2398
iwn_read_prom_data(sc, base, &hdr, sizeof hdr);
sys/dev/netif/iwn/if_iwn.c
2401
hdr.version, hdr.pa_type, le16toh(hdr.volt));
sys/dev/netif/iwn/if_iwn.c
2402
sc->calib_ver = hdr.version;
sys/dev/netif/iwn/if_iwn.c
2405
sc->eeprom_voltage = le16toh(hdr.volt);
sys/dev/netif/iwn/if_iwn.c
6895
struct iwn_scan_hdr *hdr;
sys/dev/netif/iwn/if_iwn.c
6932
hdr = (struct iwn_scan_hdr *)buf;
sys/dev/netif/iwn/if_iwn.c
6937
hdr->quiet_time = htole16(10); /* timeout in milliseconds */
sys/dev/netif/iwn/if_iwn.c
6938
hdr->quiet_threshold = htole16(1); /* min # of packets */
sys/dev/netif/iwn/if_iwn.c
6943
hdr->max_svc = htole32(250 * 1024);
sys/dev/netif/iwn/if_iwn.c
6954
hdr->pause_svc = htole32(scan_service_time);
sys/dev/netif/iwn/if_iwn.c
6967
hdr->rxchain = htole16(rxchain);
sys/dev/netif/iwn/if_iwn.c
6968
hdr->filter = htole32(IWN_FILTER_MULTICAST | IWN_FILTER_BEACON);
sys/dev/netif/iwn/if_iwn.c
6970
tx = (struct iwn_cmd_data *)(hdr + 1);
sys/dev/netif/iwn/if_iwn.c
6980
hdr->flags = htole32(IWN_RXON_24GHZ | IWN_RXON_AUTO);
sys/dev/netif/iwn/if_iwn.c
7077
hdr->crc_threshold = is_active ?
sys/dev/netif/iwn/if_iwn.c
7080
hdr->crc_threshold = is_active ?
sys/dev/netif/iwn/if_iwn.c
7124
hdr->crc_threshold, is_active, ss->ss_nssid);
sys/dev/netif/iwn/if_iwn.c
7126
hdr->nchan++;
sys/dev/netif/iwn/if_iwn.c
7129
hdr->len = htole16(buflen);
sys/dev/netif/iwn/if_iwn.c
7139
hdr->nchan);
sys/dev/netif/iwn/if_iwn.c
8241
const struct iwn_fw_tlv_hdr *hdr;
sys/dev/netif/iwn/if_iwn.c
8247
if (fw->size < sizeof (*hdr)) {
sys/dev/netif/iwn/if_iwn.c
8252
hdr = (const struct iwn_fw_tlv_hdr *)fw->data;
sys/dev/netif/iwn/if_iwn.c
8253
if (hdr->signature != htole32(IWN_FW_SIGNATURE)) {
sys/dev/netif/iwn/if_iwn.c
8255
__func__, le32toh(hdr->signature));
sys/dev/netif/iwn/if_iwn.c
8258
DPRINTF(sc, IWN_DEBUG_RESET, "FW: \"%.64s\", build 0x%x\n", hdr->descr,
sys/dev/netif/iwn/if_iwn.c
8259
le32toh(hdr->build));
sys/dev/netif/iwn/if_iwn.c
8260
sc->ucode_rev = le32toh(hdr->rev);
sys/dev/netif/iwn/if_iwn.c
8266
altmask = le64toh(hdr->altmask);
sys/dev/netif/iwn/if_iwn.c
8271
ptr = (const uint8_t *)(hdr + 1);
sys/dev/netif/ix/if_ix.c
2356
ix_txeof(struct ix_tx_ring *txr, int hdr)
sys/dev/netif/ix/if_ix.c
2364
if (first == hdr)
sys/dev/netif/ix/if_ix.c
2368
while (first != hdr) {
sys/dev/netif/ix/if_ix.c
2392
int first, hdr;
sys/dev/netif/ix/if_ix.c
2400
hdr = IXGBE_READ_REG(&txr->tx_sc->hw, IXGBE_TDH(txr->tx_idx));
sys/dev/netif/ix/if_ix.c
2402
if (first == hdr)
sys/dev/netif/ix/if_ix.c
2409
while (first != hdr) {
sys/dev/netif/ix/if_ix.c
377
ix_tx_intr(struct ix_tx_ring *txr, int hdr)
sys/dev/netif/ix/if_ix.c
380
ix_txeof(txr, hdr);
sys/dev/netif/ix/if_ix.c
4797
int hdr;
sys/dev/netif/ix/if_ix.c
4810
hdr = *(txr->tx_hdr);
sys/dev/netif/ix/if_ix.c
4811
if (hdr != txr->tx_next_clean) {
sys/dev/netif/ix/if_ix.c
4813
ix_tx_intr(txr, hdr);
sys/dev/netif/ix/ixgbe_common.c
4691
fw_cmd.hdr.cmd = FW_CEM_CMD_DRIVER_INFO;
sys/dev/netif/ix/ixgbe_common.c
4692
fw_cmd.hdr.buf_len = FW_CEM_CMD_DRIVER_INFO_LEN;
sys/dev/netif/ix/ixgbe_common.c
4693
fw_cmd.hdr.cmd_or_resp.cmd_resv = FW_CEM_CMD_RESERVED;
sys/dev/netif/ix/ixgbe_common.c
4699
fw_cmd.hdr.checksum = 0;
sys/dev/netif/ix/ixgbe_common.c
4702
fw_cmd.hdr.checksum = ixgbe_calculate_checksum((u8 *)&fw_cmd,
sys/dev/netif/ix/ixgbe_common.c
4703
(FW_CEM_HDR_LEN + fw_cmd.hdr.buf_len));
sys/dev/netif/ix/ixgbe_common.c
4713
if (fw_cmd.hdr.cmd_or_resp.ret_status ==
sys/dev/netif/ix/ixgbe_type.h
3162
struct ixgbe_hic_hdr hdr;
sys/dev/netif/ix/ixgbe_type.h
3173
struct ixgbe_hic_hdr hdr;
sys/dev/netif/ix/ixgbe_type.h
3184
union ixgbe_hic_hdr2 hdr;
sys/dev/netif/ix/ixgbe_type.h
3193
union ixgbe_hic_hdr2 hdr;
sys/dev/netif/ix/ixgbe_type.h
3202
struct ixgbe_hic_hdr hdr;
sys/dev/netif/ix/ixgbe_type.h
3209
struct ixgbe_hic_hdr hdr;
sys/dev/netif/ix/ixgbe_type.h
3216
struct ixgbe_hic_hdr hdr;
sys/dev/netif/ix/ixgbe_type.h
3226
struct ixgbe_hic_hdr hdr;
sys/dev/netif/ix/ixgbe_type.h
3231
struct ixgbe_hic_hdr hdr;
sys/dev/netif/ix/ixgbe_type.h
3239
struct ixgbe_hic_hdr hdr;
sys/dev/netif/ix/ixgbe_x550.c
1229
token_cmd.hdr.cmd = FW_PHY_TOKEN_REQ_CMD;
sys/dev/netif/ix/ixgbe_x550.c
1230
token_cmd.hdr.buf_len = FW_PHY_TOKEN_REQ_LEN;
sys/dev/netif/ix/ixgbe_x550.c
1231
token_cmd.hdr.cmd_or_resp.cmd_resv = 0;
sys/dev/netif/ix/ixgbe_x550.c
1232
token_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/netif/ix/ixgbe_x550.c
1245
if (token_cmd.hdr.cmd_or_resp.ret_status == FW_PHY_TOKEN_OK)
sys/dev/netif/ix/ixgbe_x550.c
1247
if (token_cmd.hdr.cmd_or_resp.ret_status != FW_PHY_TOKEN_RETRY) {
sys/dev/netif/ix/ixgbe_x550.c
1249
token_cmd.hdr.cmd_or_resp.ret_status);
sys/dev/netif/ix/ixgbe_x550.c
1267
token_cmd.hdr.cmd = FW_PHY_TOKEN_REQ_CMD;
sys/dev/netif/ix/ixgbe_x550.c
1268
token_cmd.hdr.buf_len = FW_PHY_TOKEN_REQ_LEN;
sys/dev/netif/ix/ixgbe_x550.c
1269
token_cmd.hdr.cmd_or_resp.cmd_resv = 0;
sys/dev/netif/ix/ixgbe_x550.c
1270
token_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/netif/ix/ixgbe_x550.c
1280
if (token_cmd.hdr.cmd_or_resp.ret_status == FW_PHY_TOKEN_OK)
sys/dev/netif/ix/ixgbe_x550.c
1303
write_cmd.hdr.cmd = FW_INT_PHY_REQ_CMD;
sys/dev/netif/ix/ixgbe_x550.c
1304
write_cmd.hdr.buf_len = FW_INT_PHY_REQ_LEN;
sys/dev/netif/ix/ixgbe_x550.c
1305
write_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/netif/ix/ixgbe_x550.c
1336
hic.cmd.hdr.cmd = FW_INT_PHY_REQ_CMD;
sys/dev/netif/ix/ixgbe_x550.c
1337
hic.cmd.hdr.buf_len = FW_INT_PHY_REQ_LEN;
sys/dev/netif/ix/ixgbe_x550.c
1338
hic.cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/netif/ix/ixgbe_x550.c
3125
buffer.hdr.req.cmd = FW_READ_SHADOW_RAM_CMD;
sys/dev/netif/ix/ixgbe_x550.c
3126
buffer.hdr.req.buf_lenh = 0;
sys/dev/netif/ix/ixgbe_x550.c
3127
buffer.hdr.req.buf_lenl = FW_READ_SHADOW_RAM_LEN;
sys/dev/netif/ix/ixgbe_x550.c
3128
buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/netif/ix/ixgbe_x550.c
3186
buffer.hdr.req.cmd = FW_READ_SHADOW_RAM_CMD;
sys/dev/netif/ix/ixgbe_x550.c
3187
buffer.hdr.req.buf_lenh = 0;
sys/dev/netif/ix/ixgbe_x550.c
3188
buffer.hdr.req.buf_lenl = FW_READ_SHADOW_RAM_LEN;
sys/dev/netif/ix/ixgbe_x550.c
3189
buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/netif/ix/ixgbe_x550.c
3243
buffer.hdr.req.cmd = FW_WRITE_SHADOW_RAM_CMD;
sys/dev/netif/ix/ixgbe_x550.c
3244
buffer.hdr.req.buf_lenh = 0;
sys/dev/netif/ix/ixgbe_x550.c
3245
buffer.hdr.req.buf_lenl = FW_WRITE_SHADOW_RAM_LEN;
sys/dev/netif/ix/ixgbe_x550.c
3246
buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/netif/ix/ixgbe_x550.c
3729
fw_cmd.hdr.cmd = FW_DISABLE_RXEN_CMD;
sys/dev/netif/ix/ixgbe_x550.c
3730
fw_cmd.hdr.buf_len = FW_DISABLE_RXEN_LEN;
sys/dev/netif/ix/ixgbe_x550.c
3731
fw_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/netif/ix/ixgbe_x550.c
414
hic.cmd.hdr.cmd = FW_PHY_ACT_REQ_CMD;
sys/dev/netif/ix/ixgbe_x550.c
415
hic.cmd.hdr.buf_len = FW_PHY_ACT_REQ_LEN;
sys/dev/netif/ix/ixgbe_x550.c
416
hic.cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
sys/dev/netif/ix/ixgbe_x550.c
428
if (hic.rsp.hdr.cmd_or_resp.ret_status ==
sys/dev/netif/ix/ixgbe_x550.c
4614
fw_cmd.hdr.cmd = FW_CEM_CMD_DRIVER_INFO;
sys/dev/netif/ix/ixgbe_x550.c
4615
fw_cmd.hdr.buf_len = FW_CEM_CMD_DRIVER_INFO_LEN + len;
sys/dev/netif/ix/ixgbe_x550.c
4616
fw_cmd.hdr.cmd_or_resp.cmd_resv = FW_CEM_CMD_RESERVED;
sys/dev/netif/ix/ixgbe_x550.c
4622
fw_cmd.hdr.checksum = 0;
sys/dev/netif/ix/ixgbe_x550.c
4624
fw_cmd.hdr.checksum = ixgbe_calculate_checksum((u8 *)&fw_cmd,
sys/dev/netif/ix/ixgbe_x550.c
4625
(FW_CEM_HDR_LEN + fw_cmd.hdr.buf_len));
sys/dev/netif/ix/ixgbe_x550.c
4635
if (fw_cmd.hdr.cmd_or_resp.ret_status ==
sys/dev/netif/mxge/if_mxge.c
612
mxge_validate_firmware(mxge_softc_t *sc, const mcp_gen_header_t *hdr)
sys/dev/netif/mxge/if_mxge.c
614
if (be32toh(hdr->mcp_type) != MCP_TYPE_ETH) {
sys/dev/netif/mxge/if_mxge.c
616
be32toh(hdr->mcp_type));
sys/dev/netif/mxge/if_mxge.c
621
strlcpy(sc->fw_version, hdr->version, sizeof(sc->fw_version));
sys/dev/netif/mxge/if_mxge.c
623
if_printf(sc->ifp, "firmware id: %s\n", hdr->version);
sys/dev/netif/mxge/if_mxge.c
657
const mcp_gen_header_t *hdr;
sys/dev/netif/mxge/if_mxge.c
701
if ((hdr_offset & 3) || hdr_offset + sizeof(*hdr) > fw_len) {
sys/dev/netif/mxge/if_mxge.c
706
hdr = (const void*)(inflate_buffer + hdr_offset);
sys/dev/netif/mxge/if_mxge.c
708
status = mxge_validate_firmware(sc, hdr);
sys/dev/netif/mxge/if_mxge.c
856
struct mcp_gen_header *hdr;
sys/dev/netif/mxge/if_mxge.c
867
if ((hdr_offset & 3) || hdr_offset + sizeof(*hdr) > sc->sram_size) {
sys/dev/netif/mxge/if_mxge.c
877
hdr = kmalloc(bytes, M_DEVBUF, M_WAITOK);
sys/dev/netif/mxge/if_mxge.c
879
rman_get_bushandle(sc->mem_res), hdr_offset, (char *)hdr, bytes);
sys/dev/netif/mxge/if_mxge.c
880
status = mxge_validate_firmware(sc, hdr);
sys/dev/netif/mxge/if_mxge.c
881
kfree(hdr, M_DEVBUF);
sys/dev/netif/oce/oce_hw.h
1004
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1027
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1058
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1081
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1109
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1154
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1176
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1235
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1251
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1368
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1384
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1449
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1464
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1482
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1502
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1517
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1532
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1551
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1571
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1587
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1621
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1731
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1772
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1787
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1863
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1876
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1891
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1905
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1913
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1918
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1935
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1951
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1966
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
1987
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
2008
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
2026
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
2656
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
2769
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
2799
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
2821
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
2848
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
3050
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
3063
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
3176
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
3239
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
3280
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_hw.h
3308
struct mbx_hdr hdr;
sys/dev/netif/oce/oce_if.h
1062
void mbx_common_req_hdr_init(struct mbx_hdr *hdr,
sys/dev/netif/oce/oce_mbox.c
1006
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1028
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1055
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1080
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1108
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1133
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1157
mbx_common_req_hdr_init(&req->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1178
rc = req->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1228
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1243
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1265
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1281
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1300
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1318
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1345
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1363
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1386
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1406
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1428
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1451
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1479
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1497
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1519
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1532
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1570
mbx_common_req_hdr_init(&fwcmd->params.req.hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1623
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1635
fwcmd->hdr.u0.req.version = OCE_MBX_VER_V1;
sys/dev/netif/oce/oce_mbox.c
1649
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1684
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1703
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1734
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1754
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1788
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1832
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1862
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1885
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1922
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
1947
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
1985
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
2006
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
203
mbx_common_req_hdr_init(struct mbx_hdr *hdr,
sys/dev/netif/oce/oce_mbox.c
2077
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
209
hdr->u0.req.opcode = opcode;
sys/dev/netif/oce/oce_mbox.c
2096
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
210
hdr->u0.req.subsystem = subsys;
sys/dev/netif/oce/oce_mbox.c
211
hdr->u0.req.port_number = port;
sys/dev/netif/oce/oce_mbox.c
212
hdr->u0.req.domain = dom;
sys/dev/netif/oce/oce_mbox.c
214
hdr->u0.req.timeout = timeout;
sys/dev/netif/oce/oce_mbox.c
215
hdr->u0.req.request_length = pyld_len - sizeof(struct mbx_hdr);
sys/dev/netif/oce/oce_mbox.c
216
hdr->u0.req.version = version;
sys/dev/netif/oce/oce_mbox.c
269
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
282
ret = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
314
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
418
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
439
ret = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
469
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
482
ret = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
537
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
543
DW_SWAP(u32ptr(&fwcmd->hdr), sizeof(struct mbx_hdr));
sys/dev/netif/oce/oce_mbox.c
562
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
593
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
608
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
638
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
66
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
660
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
684
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
703
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
777
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
802
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
868
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
886
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
911
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
925
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_mbox.c
953
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_mbox.c
978
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_queue.c
697
mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
sys/dev/netif/oce/oce_queue.c
737
rc = fwcmd->hdr.u0.rsp.status;
sys/dev/netif/oce/oce_queue.c
820
struct mbx_hdr *hdr = (struct mbx_hdr *)&mbx->payload;
sys/dev/netif/oce/oce_queue.c
850
mbx_common_req_hdr_init(hdr, 0, 0, subsys,
sys/dev/netif/oce/oce_queue.c
860
rc = hdr->u0.rsp.status;
sys/dev/netif/wpi/if_wpi.c
4146
struct wpi_scan_hdr *hdr;
sys/dev/netif/wpi/if_wpi.c
4185
hdr = (struct wpi_scan_hdr *)buf;
sys/dev/netif/wpi/if_wpi.c
4191
hdr->quiet_time = htole16(WPI_QUIET_TIME_DEFAULT);
sys/dev/netif/wpi/if_wpi.c
4192
hdr->quiet_threshold = htole16(1);
sys/dev/netif/wpi/if_wpi.c
4199
hdr->max_svc = htole32(250 * IEEE80211_DUR_TU);
sys/dev/netif/wpi/if_wpi.c
4200
hdr->pause_svc = htole32(wpi_get_scan_pause_time(100,
sys/dev/netif/wpi/if_wpi.c
4204
hdr->filter = htole32(WPI_FILTER_MULTICAST | WPI_FILTER_BEACON);
sys/dev/netif/wpi/if_wpi.c
4206
tx = (struct wpi_cmd_data *)(hdr + 1);
sys/dev/netif/wpi/if_wpi.c
4216
hdr->flags = htole32(WPI_RXON_24GHZ | WPI_RXON_AUTO);
sys/dev/netif/wpi/if_wpi.c
4267
hdr->crc_threshold = WPI_SCAN_CRC_TH_DEFAULT;
sys/dev/netif/wpi/if_wpi.c
4270
hdr->crc_threshold = WPI_SCAN_CRC_TH_NEVER;
sys/dev/netif/wpi/if_wpi.c
4298
hdr->nchan++;
sys/dev/netif/wpi/if_wpi.c
4300
if (hdr->nchan == 1 && sc->rxon.chan == chan->chan) {
sys/dev/netif/wpi/if_wpi.c
4308
chan->passive = chan->active = hdr->quiet_time;
sys/dev/netif/wpi/if_wpi.c
4310
hdr->nchan++;
sys/dev/netif/wpi/if_wpi.c
4316
hdr->len = htole16(buflen);
sys/dev/netif/wpi/if_wpi.c
4319
hdr->nchan);
sys/dev/netif/wpi/if_wpi.c
5070
const struct wpi_firmware_hdr *hdr;
sys/dev/netif/wpi/if_wpi.c
5101
hdr = (const struct wpi_firmware_hdr *)fw->data;
sys/dev/netif/wpi/if_wpi.c
5106
fw->main.textsz = le32toh(hdr->rtextsz);
sys/dev/netif/wpi/if_wpi.c
5107
fw->main.datasz = le32toh(hdr->rdatasz);
sys/dev/netif/wpi/if_wpi.c
5108
fw->init.textsz = le32toh(hdr->itextsz);
sys/dev/netif/wpi/if_wpi.c
5109
fw->init.datasz = le32toh(hdr->idatasz);
sys/dev/netif/wpi/if_wpi.c
5110
fw->boot.textsz = le32toh(hdr->btextsz);
sys/dev/netif/wpi/if_wpi.c
5126
if (fw->size < sizeof (*hdr) + fw->main.textsz + fw->main.datasz +
sys/dev/netif/wpi/if_wpi.c
5135
fw->main.text = (const uint8_t *)(hdr + 1);
sys/dev/netif/wpi/if_wpi.c
5144
"boot (text %u)\n", hdr->major, hdr->minor, le32toh(hdr->driver),
sys/dev/raid/ida/ida.c
306
hwqcb->hdr.size = (sizeof(struct ida_req) +
sys/dev/raid/ida/ida.c
343
hwqcb->hdr.drive = drive;
sys/dev/raid/ida/ida.c
407
hwqcb->hdr.drive = drv->drive;
sys/dev/raid/ida/idavar.h
77
struct ida_hdr hdr; /* 4 */
sys/dev/raid/mfi/mfi.c
1296
struct mfi_frame_header *hdr;
sys/dev/raid/mfi/mfi.c
1324
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
1325
if (hdr->cmd_status != MFI_STAT_OK) {
sys/dev/raid/mfi/mfi.c
1327
"MFI_DCMD_PD_LIST_QUERY failed %x\n", hdr->cmd_status);
sys/dev/raid/mfi/mfi.c
1369
struct mfi_frame_header *hdr;
sys/dev/raid/mfi/mfi.c
1389
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
1390
if (hdr->cmd_status != MFI_STAT_OK) {
sys/dev/raid/mfi/mfi.c
1392
hdr->cmd_status);
sys/dev/raid/mfi/mfi.c
1639
struct mfi_frame_header *hdr;
sys/dev/raid/mfi/mfi.c
1649
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
1655
hdr->cmd_status == MFI_STAT_INVALID_STATUS) {
sys/dev/raid/mfi/mfi.c
1836
struct mfi_frame_header *hdr;
sys/dev/raid/mfi/mfi.c
1842
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
1845
if (hdr->cmd_status != MFI_STAT_OK) {
sys/dev/raid/mfi/mfi.c
1910
struct mfi_frame_header *hdr;
sys/dev/raid/mfi/mfi.c
1916
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
1919
if (hdr->cmd_status != MFI_STAT_OK) {
sys/dev/raid/mfi/mfi.c
2095
struct mfi_frame_header *hdr;
sys/dev/raid/mfi/mfi.c
2100
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
2103
if ((hdr->cmd_status != MFI_STAT_OK) || (hdr->scsi_status != 0)) {
sys/dev/raid/mfi/mfi.c
2107
"scsi_status= %d\n", hdr->cmd_status, hdr->scsi_status);
sys/dev/raid/mfi/mfi.c
2180
struct mfi_frame_header *hdr;
sys/dev/raid/mfi/mfi.c
2188
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
2213
hdr->flags |= MFI_FRAME_IEEE_SGL | MFI_FRAME_SGL64;
sys/dev/raid/mfi/mfi.c
2214
hdr->sg_count = nsegs;
sys/dev/raid/mfi/mfi.c
2240
hdr->flags |= MFI_FRAME_SGL64;
sys/dev/raid/mfi/mfi.c
2242
hdr->sg_count = j;
sys/dev/raid/mfi/mfi.c
2248
hdr->flags |= MFI_FRAME_DIR_READ;
sys/dev/raid/mfi/mfi.c
2252
hdr->flags |= MFI_FRAME_DIR_WRITE;
sys/dev/raid/mfi/mfi.c
2275
struct mfi_frame_header *hdr;
sys/dev/raid/mfi/mfi.c
2278
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
2284
hdr->cmd_status = MFI_STAT_INVALID_STATUS;
sys/dev/raid/mfi/mfi.c
2285
hdr->flags |= MFI_FRAME_DONT_POST_IN_REPLY_QUEUE;
sys/dev/raid/mfi/mfi.c
2309
while (hdr->cmd_status == MFI_STAT_INVALID_STATUS) {
sys/dev/raid/mfi/mfi.c
2316
if (hdr->cmd_status == MFI_STAT_INVALID_STATUS) {
sys/dev/raid/mfi/mfi.c
2318
"command 0x%X\n", hdr, cm->cm_frame->dcmd.opcode);
sys/dev/raid/mfi/mfi.c
3092
ioc->mfi_frame.hdr.cmd_status = cm->cm_frame->header.cmd_status;
sys/dev/raid/mfi/mfi.c
3332
->lioc_frame.hdr.cmd_status,
sys/dev/raid/mfi/mfi.c
794
struct mfi_frame_header *hdr;
sys/dev/raid/mfi/mfi.c
804
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi.c
805
if (cm->cm_data != NULL && hdr->sg_count) {
sys/dev/raid/mfi/mfi_debug.c
107
struct mfi_frame_header *hdr;
sys/dev/raid/mfi/mfi_debug.c
110
hdr = &io->header;
sys/dev/raid/mfi/mfi_debug.c
113
"lba=%d\n", (hdr->cmd == MFI_CMD_LD_READ) ? "LD_READ":"LD_WRITE",
sys/dev/raid/mfi/mfi_debug.c
114
hdr->target_id, hdr->sg_count, hdr->data_len, io->lba_lo);
sys/dev/raid/mfi/mfi_debug.c
115
mfi_print_frame_flags(dev, hdr->flags);
sys/dev/raid/mfi/mfi_debug.c
116
mfi_print_sgl(hdr, &io->sgl, hdr->sg_count);
sys/dev/raid/mfi/mfi_debug.c
124
struct mfi_frame_header *hdr;
sys/dev/raid/mfi/mfi_debug.c
128
hdr = &dcmd->header;
sys/dev/raid/mfi/mfi_debug.c
176
opcode, hdr->data_len);
sys/dev/raid/mfi/mfi_debug.c
177
mfi_print_frame_flags(dev, hdr->flags);
sys/dev/raid/mfi/mfi_debug.c
178
mfi_print_sgl(hdr, &dcmd->sgl, hdr->sg_count);
sys/dev/raid/mfi/mfi_debug.c
240
struct mfi_frame_header *hdr;
sys/dev/raid/mfi/mfi_debug.c
244
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi_debug.c
246
for (i = 0; i < hdr->sg_count; i++) {
sys/dev/raid/mfi/mfi_debug.c
247
if (hdr->flags & MFI_FRAME_IEEE_SGL)
sys/dev/raid/mfi/mfi_debug.c
249
else if (hdr->flags & MFI_FRAME_SGL64)
sys/dev/raid/mfi/mfi_debug.c
257
data_len = hdr->data_len;
sys/dev/raid/mfi/mfi_debug.c
258
switch (hdr->cmd) {
sys/dev/raid/mfi/mfi_debug.c
66
mfi_print_sgl(struct mfi_frame_header *hdr, union mfi_sgl *sgl, int count)
sys/dev/raid/mfi/mfi_debug.c
72
if (hdr->flags & MFI_FRAME_IEEE_SGL) {
sys/dev/raid/mfi/mfi_debug.c
80
} else if (hdr->flags & MFI_FRAME_SGL64) {
sys/dev/raid/mfi/mfi_ioctl.h
111
struct mfi_frame_header hdr;
sys/dev/raid/mfi/mfi_ioctl.h
84
struct mfi_frame_header hdr;
sys/dev/raid/mfi/mfi_tbolt.c
1138
struct mfi_frame_header *hdr;
sys/dev/raid/mfi/mfi_tbolt.c
1143
hdr = &cm->cm_frame->header;
sys/dev/raid/mfi/mfi_tbolt.c
1152
hdr->cmd_status = 0xff;
sys/dev/raid/mfi/mfi_tbolt.c
1153
hdr->flags |= MFI_FRAME_DONT_POST_IN_REPLY_QUEUE;
sys/dev/raid/mfi/mfi_tbolt.c
1156
if (hdr->cmd == MFI_CMD_PD_SCSI_IO) {
sys/dev/raid/mfi/mfi_tbolt.c
1169
else if (hdr->cmd == MFI_CMD_LD_SCSI_IO ||
sys/dev/raid/mfi/mfi_tbolt.c
1170
hdr->cmd == MFI_CMD_LD_READ || hdr->cmd == MFI_CMD_LD_WRITE) {
sys/dev/raid/mfi/mfi_tbolt.c
1188
while (hdr->cmd_status == 0xff) {
sys/dev/raid/mfi/mfi_tbolt.c
1195
if (hdr->cmd_status == 0xff) {
sys/dev/raid/mfi/mfi_tbolt.c
1197
"command 0x%X\n", hdr, cm->cm_frame->dcmd.opcode);
sys/dev/raid/mly/mlyreg.h
936
struct mly_devconf_hdr hdr;
sys/dev/raid/mpr/mpr.c
1881
struct mpr_dumpreq_hdr hdr;
sys/dev/raid/mpr/mpr.c
1909
hdr.smid = i;
sys/dev/raid/mpr/mpr.c
1910
hdr.state = cm->cm_state;
sys/dev/raid/mpr/mpr.c
1911
hdr.numframes = 1;
sys/dev/raid/mpr/mpr.c
1912
hdr.deschi = cm->cm_desc.Words.High;
sys/dev/raid/mpr/mpr.c
1913
hdr.desclo = cm->cm_desc.Words.Low;
sys/dev/raid/mpr/mpr.c
1916
hdr.numframes++;
sys/dev/raid/mpr/mpr.c
1917
sbuf_bcat(sb, &hdr, sizeof(hdr));
sys/dev/raid/mpr/mpr.c
3705
if (params->hdr.Struct.PageType == MPI2_CONFIG_PAGETYPE_EXTENDED) {
sys/dev/raid/mpr/mpr.c
3706
MPI2_CONFIG_EXTENDED_PAGE_HEADER *hdr;
sys/dev/raid/mpr/mpr.c
3708
hdr = ¶ms->hdr.Ext;
sys/dev/raid/mpr/mpr.c
3709
req->ExtPageType = hdr->ExtPageType;
sys/dev/raid/mpr/mpr.c
3710
req->ExtPageLength = hdr->ExtPageLength;
sys/dev/raid/mpr/mpr.c
3713
req->Header.PageNumber = hdr->PageNumber;
sys/dev/raid/mpr/mpr.c
3714
req->Header.PageVersion = hdr->PageVersion;
sys/dev/raid/mpr/mpr.c
3716
MPI2_CONFIG_PAGE_HEADER *hdr;
sys/dev/raid/mpr/mpr.c
3718
hdr = ¶ms->hdr.Struct;
sys/dev/raid/mpr/mpr.c
3719
req->Header.PageType = hdr->PageType;
sys/dev/raid/mpr/mpr.c
3720
req->Header.PageNumber = hdr->PageNumber;
sys/dev/raid/mpr/mpr.c
3721
req->Header.PageLength = hdr->PageLength;
sys/dev/raid/mpr/mpr.c
3722
req->Header.PageVersion = hdr->PageVersion;
sys/dev/raid/mpr/mpr.c
3790
if (params->hdr.Struct.PageType == MPI2_CONFIG_PAGETYPE_EXTENDED) {
sys/dev/raid/mpr/mpr.c
3791
params->hdr.Ext.ExtPageType = reply->ExtPageType;
sys/dev/raid/mpr/mpr.c
3792
params->hdr.Ext.ExtPageLength = reply->ExtPageLength;
sys/dev/raid/mpr/mpr.c
3793
params->hdr.Ext.PageType = reply->Header.PageType;
sys/dev/raid/mpr/mpr.c
3794
params->hdr.Ext.PageNumber = reply->Header.PageNumber;
sys/dev/raid/mpr/mpr.c
3795
params->hdr.Ext.PageVersion = reply->Header.PageVersion;
sys/dev/raid/mpr/mpr.c
3797
params->hdr.Struct.PageType = reply->Header.PageType;
sys/dev/raid/mpr/mpr.c
3798
params->hdr.Struct.PageNumber = reply->Header.PageNumber;
sys/dev/raid/mpr/mpr.c
3799
params->hdr.Struct.PageLength = reply->Header.PageLength;
sys/dev/raid/mpr/mpr.c
3800
params->hdr.Struct.PageVersion = reply->Header.PageVersion;
sys/dev/raid/mpr/mpr_user.c
242
MPI2_CONFIG_PAGE_HEADER *hdr;
sys/dev/raid/mpr/mpr_user.c
246
hdr = ¶ms.hdr.Struct;
sys/dev/raid/mpr/mpr_user.c
249
hdr->PageVersion = 0;
sys/dev/raid/mpr/mpr_user.c
250
hdr->PageLength = 0;
sys/dev/raid/mpr/mpr_user.c
251
hdr->PageNumber = page_req->header.PageNumber;
sys/dev/raid/mpr/mpr_user.c
252
hdr->PageType = page_req->header.PageType;
sys/dev/raid/mpr/mpr_user.c
271
bcopy(hdr, &page_req->header, sizeof(page_req->header));
sys/dev/raid/mpr/mpr_user.c
281
MPI2_CONFIG_PAGE_HEADER *reqhdr, *hdr;
sys/dev/raid/mpr/mpr_user.c
286
hdr = ¶ms.hdr.Struct;
sys/dev/raid/mpr/mpr_user.c
287
hdr->PageVersion = reqhdr->PageVersion;
sys/dev/raid/mpr/mpr_user.c
288
hdr->PageLength = reqhdr->PageLength;
sys/dev/raid/mpr/mpr_user.c
289
hdr->PageNumber = reqhdr->PageNumber;
sys/dev/raid/mpr/mpr_user.c
290
hdr->PageType = reqhdr->PageType & MPI2_CONFIG_PAGETYPE_MASK;
sys/dev/raid/mpr/mpr_user.c
310
MPI2_CONFIG_EXTENDED_PAGE_HEADER *hdr;
sys/dev/raid/mpr/mpr_user.c
314
hdr = ¶ms.hdr.Ext;
sys/dev/raid/mpr/mpr_user.c
316
hdr->PageVersion = ext_page_req->header.PageVersion;
sys/dev/raid/mpr/mpr_user.c
317
hdr->PageType = MPI2_CONFIG_PAGETYPE_EXTENDED;
sys/dev/raid/mpr/mpr_user.c
318
hdr->ExtPageLength = 0;
sys/dev/raid/mpr/mpr_user.c
319
hdr->PageNumber = ext_page_req->header.PageNumber;
sys/dev/raid/mpr/mpr_user.c
320
hdr->ExtPageType = ext_page_req->header.ExtPageType;
sys/dev/raid/mpr/mpr_user.c
340
ext_page_req->header.PageVersion = hdr->PageVersion;
sys/dev/raid/mpr/mpr_user.c
341
ext_page_req->header.PageNumber = hdr->PageNumber;
sys/dev/raid/mpr/mpr_user.c
342
ext_page_req->header.PageType = hdr->PageType;
sys/dev/raid/mpr/mpr_user.c
343
ext_page_req->header.ExtPageLength = hdr->ExtPageLength;
sys/dev/raid/mpr/mpr_user.c
344
ext_page_req->header.ExtPageType = hdr->ExtPageType;
sys/dev/raid/mpr/mpr_user.c
354
MPI2_CONFIG_EXTENDED_PAGE_HEADER *reqhdr, *hdr;
sys/dev/raid/mpr/mpr_user.c
359
hdr = ¶ms.hdr.Ext;
sys/dev/raid/mpr/mpr_user.c
362
hdr->PageVersion = reqhdr->PageVersion;
sys/dev/raid/mpr/mpr_user.c
363
hdr->PageType = MPI2_CONFIG_PAGETYPE_EXTENDED;
sys/dev/raid/mpr/mpr_user.c
364
hdr->PageNumber = reqhdr->PageNumber;
sys/dev/raid/mpr/mpr_user.c
365
hdr->ExtPageType = reqhdr->ExtPageType;
sys/dev/raid/mpr/mpr_user.c
366
hdr->ExtPageLength = reqhdr->ExtPageLength;
sys/dev/raid/mpr/mpr_user.c
384
MPI2_CONFIG_PAGE_HEADER *reqhdr, *hdr;
sys/dev/raid/mpr/mpr_user.c
390
hdr = ¶ms.hdr.Struct;
sys/dev/raid/mpr/mpr_user.c
404
hdr->PageVersion = reqhdr->PageVersion;
sys/dev/raid/mpr/mpr_user.c
405
hdr->PageLength = reqhdr->PageLength;
sys/dev/raid/mpr/mpr_user.c
406
hdr->PageNumber = reqhdr->PageNumber;
sys/dev/raid/mpr/mpr_user.c
407
hdr->PageType = reqhdr->PageType;
sys/dev/raid/mpr/mpr_user.c
633
MPI2_REQUEST_HEADER *hdr = (MPI2_REQUEST_HEADER *)cm->cm_req;
sys/dev/raid/mpr/mpr_user.c
637
if (hdr->Function == f->Function)
sys/dev/raid/mpr/mpr_user.c
646
MPI2_REQUEST_HEADER *hdr;
sys/dev/raid/mpr/mpr_user.c
663
hdr = (MPI2_REQUEST_HEADER *)cm->cm_req;
sys/dev/raid/mpr/mpr_user.c
672
err = copyin(cmd->req, hdr, cmd->req_len);
sys/dev/raid/mpr/mpr_user.c
677
hdr->Function, hdr->MsgFlags);
sys/dev/raid/mpr/mpr_user.c
695
hdr->Function);
sys/dev/raid/mpr/mpr_user.c
742
MPI2_REQUEST_HEADER *hdr, tmphdr;
sys/dev/raid/mpr/mpr_user.c
885
hdr = (MPI2_REQUEST_HEADER *)cm->cm_req;
sys/dev/raid/mpr/mpr_user.c
886
bcopy(&tmphdr, hdr, data->RequestSize);
sys/dev/raid/mpr/mpr_user.c
892
mpr_init_sge(cm, hdr, (void *)((uint8_t *)hdr + data->RequestSize));
sys/dev/raid/mpr/mpr_user.c
935
tool = (uint8_t)hdr->FunctionDependent1;
sys/dev/raid/mpr/mpr_user.c
982
scsi_io_req = (MPI2_SCSI_IO_REQUEST *)hdr;
sys/dev/raid/mpr/mprvar.h
478
MPI2_CONFIG_EXT_PAGE_HEADER_UNION hdr;
sys/dev/raid/mps/mps.c
2189
if (params->hdr.Struct.PageType == MPI2_CONFIG_PAGETYPE_EXTENDED) {
sys/dev/raid/mps/mps.c
2190
MPI2_CONFIG_EXTENDED_PAGE_HEADER *hdr;
sys/dev/raid/mps/mps.c
2192
hdr = ¶ms->hdr.Ext;
sys/dev/raid/mps/mps.c
2193
req->ExtPageType = hdr->ExtPageType;
sys/dev/raid/mps/mps.c
2194
req->ExtPageLength = hdr->ExtPageLength;
sys/dev/raid/mps/mps.c
2197
req->Header.PageNumber = hdr->PageNumber;
sys/dev/raid/mps/mps.c
2198
req->Header.PageVersion = hdr->PageVersion;
sys/dev/raid/mps/mps.c
2200
MPI2_CONFIG_PAGE_HEADER *hdr;
sys/dev/raid/mps/mps.c
2202
hdr = ¶ms->hdr.Struct;
sys/dev/raid/mps/mps.c
2203
req->Header.PageType = hdr->PageType;
sys/dev/raid/mps/mps.c
2204
req->Header.PageNumber = hdr->PageNumber;
sys/dev/raid/mps/mps.c
2205
req->Header.PageLength = hdr->PageLength;
sys/dev/raid/mps/mps.c
2206
req->Header.PageVersion = hdr->PageVersion;
sys/dev/raid/mps/mps.c
2269
if (params->hdr.Ext.ExtPageType != 0) {
sys/dev/raid/mps/mps.c
2270
params->hdr.Ext.ExtPageType = reply->ExtPageType;
sys/dev/raid/mps/mps.c
2271
params->hdr.Ext.ExtPageLength = reply->ExtPageLength;
sys/dev/raid/mps/mps.c
2273
params->hdr.Struct.PageType = reply->Header.PageType;
sys/dev/raid/mps/mps.c
2274
params->hdr.Struct.PageNumber = reply->Header.PageNumber;
sys/dev/raid/mps/mps.c
2275
params->hdr.Struct.PageLength = reply->Header.PageLength;
sys/dev/raid/mps/mps.c
2276
params->hdr.Struct.PageVersion = reply->Header.PageVersion;
sys/dev/raid/mps/mps_user.c
224
MPI2_CONFIG_PAGE_HEADER *hdr;
sys/dev/raid/mps/mps_user.c
228
hdr = ¶ms.hdr.Struct;
sys/dev/raid/mps/mps_user.c
231
hdr->PageVersion = 0;
sys/dev/raid/mps/mps_user.c
232
hdr->PageLength = 0;
sys/dev/raid/mps/mps_user.c
233
hdr->PageNumber = page_req->header.PageNumber;
sys/dev/raid/mps/mps_user.c
234
hdr->PageType = page_req->header.PageType;
sys/dev/raid/mps/mps_user.c
253
bcopy(hdr, &page_req->header, sizeof(page_req->header));
sys/dev/raid/mps/mps_user.c
263
MPI2_CONFIG_PAGE_HEADER *reqhdr, *hdr;
sys/dev/raid/mps/mps_user.c
268
hdr = ¶ms.hdr.Struct;
sys/dev/raid/mps/mps_user.c
269
hdr->PageVersion = reqhdr->PageVersion;
sys/dev/raid/mps/mps_user.c
270
hdr->PageLength = reqhdr->PageLength;
sys/dev/raid/mps/mps_user.c
271
hdr->PageNumber = reqhdr->PageNumber;
sys/dev/raid/mps/mps_user.c
272
hdr->PageType = reqhdr->PageType & MPI2_CONFIG_PAGETYPE_MASK;
sys/dev/raid/mps/mps_user.c
292
MPI2_CONFIG_EXTENDED_PAGE_HEADER *hdr;
sys/dev/raid/mps/mps_user.c
296
hdr = ¶ms.hdr.Ext;
sys/dev/raid/mps/mps_user.c
298
hdr->PageVersion = ext_page_req->header.PageVersion;
sys/dev/raid/mps/mps_user.c
299
hdr->PageType = MPI2_CONFIG_PAGETYPE_EXTENDED;
sys/dev/raid/mps/mps_user.c
300
hdr->ExtPageLength = 0;
sys/dev/raid/mps/mps_user.c
301
hdr->PageNumber = ext_page_req->header.PageNumber;
sys/dev/raid/mps/mps_user.c
302
hdr->ExtPageType = ext_page_req->header.ExtPageType;
sys/dev/raid/mps/mps_user.c
318
ext_page_req->header.PageVersion = hdr->PageVersion;
sys/dev/raid/mps/mps_user.c
319
ext_page_req->header.PageNumber = hdr->PageNumber;
sys/dev/raid/mps/mps_user.c
320
ext_page_req->header.PageType = hdr->PageType;
sys/dev/raid/mps/mps_user.c
321
ext_page_req->header.ExtPageLength = hdr->ExtPageLength;
sys/dev/raid/mps/mps_user.c
322
ext_page_req->header.ExtPageType = hdr->ExtPageType;
sys/dev/raid/mps/mps_user.c
332
MPI2_CONFIG_EXTENDED_PAGE_HEADER *reqhdr, *hdr;
sys/dev/raid/mps/mps_user.c
337
hdr = ¶ms.hdr.Ext;
sys/dev/raid/mps/mps_user.c
340
hdr->PageVersion = reqhdr->PageVersion;
sys/dev/raid/mps/mps_user.c
341
hdr->PageType = MPI2_CONFIG_PAGETYPE_EXTENDED;
sys/dev/raid/mps/mps_user.c
342
hdr->PageNumber = reqhdr->PageNumber;
sys/dev/raid/mps/mps_user.c
343
hdr->ExtPageType = reqhdr->ExtPageType;
sys/dev/raid/mps/mps_user.c
344
hdr->ExtPageLength = reqhdr->ExtPageLength;
sys/dev/raid/mps/mps_user.c
362
MPI2_CONFIG_PAGE_HEADER *reqhdr, *hdr;
sys/dev/raid/mps/mps_user.c
368
hdr = ¶ms.hdr.Struct;
sys/dev/raid/mps/mps_user.c
382
hdr->PageVersion = reqhdr->PageVersion;
sys/dev/raid/mps/mps_user.c
383
hdr->PageLength = reqhdr->PageLength;
sys/dev/raid/mps/mps_user.c
384
hdr->PageNumber = reqhdr->PageNumber;
sys/dev/raid/mps/mps_user.c
385
hdr->PageType = reqhdr->PageType;
sys/dev/raid/mps/mps_user.c
639
MPI2_REQUEST_HEADER *hdr = (MPI2_REQUEST_HEADER *)cm->cm_req;
sys/dev/raid/mps/mps_user.c
643
if (hdr->Function == f->Function)
sys/dev/raid/mps/mps_user.c
652
MPI2_REQUEST_HEADER *hdr;
sys/dev/raid/mps/mps_user.c
669
hdr = (MPI2_REQUEST_HEADER *)cm->cm_req;
sys/dev/raid/mps/mps_user.c
678
err = copyin(cmd->req, hdr, cmd->req_len);
sys/dev/raid/mps/mps_user.c
683
"MsgFlags %02X\n", hdr->Function, hdr->MsgFlags );
sys/dev/raid/mps/mps_user.c
700
hdr->Function );
sys/dev/raid/mps/mps_user.c
747
MPI2_REQUEST_HEADER *hdr, tmphdr;
sys/dev/raid/mps/mps_user.c
877
hdr = (MPI2_REQUEST_HEADER *)cm->cm_req;
sys/dev/raid/mps/mps_user.c
878
bcopy(&tmphdr, hdr, data->RequestSize);
sys/dev/raid/mps/mps_user.c
884
mpi_init_sge(cm, hdr, (void *)((uint8_t *)hdr + data->RequestSize));
sys/dev/raid/mps/mps_user.c
933
scsi_io_req = (MPI2_SCSI_IO_REQUEST *)hdr;
sys/dev/raid/mps/mpsvar.h
446
MPI2_CONFIG_EXT_PAGE_HEADER_UNION hdr;
sys/dev/raid/mrsas/mrsas.c
2703
struct mrsas_header *frame_hdr = &cmd->frame->hdr;
sys/dev/raid/mrsas/mrsas.c
2812
struct mrsas_header *frame_hdr = &mfi_cmd->frame->hdr;
sys/dev/raid/mrsas/mrsas.c
2916
struct mrsas_header *hdr = &cmd->frame->hdr;
sys/dev/raid/mrsas/mrsas.c
2917
u_int8_t cmd_status = cmd->frame->hdr.cmd_status;
sys/dev/raid/mrsas/mrsas.c
2925
switch (hdr->cmd) {
sys/dev/raid/mrsas/mrsas.c
2986
device_printf(sc->mrsas_dev,"Unknown command completed! [0x%X]\n", hdr->cmd);
sys/dev/raid/mrsas/mrsas.h
2116
struct mrsas_header hdr;
sys/dev/raid/mrsas/mrsas_ioctl.c
174
user_ioc->frame.hdr.cmd_status = MFI_STAT_OK;
sys/dev/raid/mrsas/mrsas_ioctl.c
206
cmd->frame->hdr.context = cmd->index;
sys/dev/raid/mrsas/mrsas_ioctl.c
207
cmd->frame->hdr.pad_0 = 0;
sys/dev/raid/mrsas/mrsas_ioctl.c
208
cmd->frame->hdr.flags &= ~(MFI_FRAME_IEEE | MFI_FRAME_SGL64 |
sys/dev/raid/mrsas/mrsas_ioctl.c
337
memcpy(&user_ioc->frame.hdr.cmd_status, &cmd->frame->hdr.cmd_status,
sys/dev/raid/mrsas/mrsas_ioctl.h
89
struct mrsas_header hdr;
sys/dev/raid/tws/tws.c
617
sc->sense_bufs[i].hdr = &cmd_buf[i].hdr ;
sys/dev/raid/tws/tws.c
628
sc->reqs[i].cmd_pkt->hdr.header_desc.size_header = 128;
sys/dev/raid/tws/tws_cam.c
494
struct tws_command_header *hdr;
sys/dev/raid/tws/tws_cam.c
510
hdr = sen->hdr;
sys/dev/raid/tws/tws_cam.c
511
TWS_TRACE_DEBUG(sc, "sen, hdr", sen, hdr);
sys/dev/raid/tws/tws_cam.c
512
req_id = hdr->header_desc.request_id;
sys/dev/raid/tws/tws_cam.c
521
tws_passthru_err_complete(req, hdr);
sys/dev/raid/tws/tws_cam.c
527
tws_scsi_err_complete(req, hdr);
sys/dev/raid/tws/tws_cam.c
533
hdr->header_desc.size_header = 128;
sys/dev/raid/tws/tws_cam.c
550
tws_scsi_err_complete(struct tws_request *req, struct tws_command_header *hdr)
sys/dev/raid/tws/tws_cam.c
556
TWS_TRACE_DEBUG(sc, "sbe, cmd_status", hdr->status_block.error,
sys/dev/raid/tws/tws_cam.c
558
if ( hdr->status_block.error == TWS_ERROR_LOGICAL_UNIT_NOT_SUPPORTED ||
sys/dev/raid/tws/tws_cam.c
559
hdr->status_block.error == TWS_ERROR_UNIT_OFFLINE ) {
sys/dev/raid/tws/tws_cam.c
573
(hdr->status_block.error == TWS_ERROR_NOT_SUPPORTED))) {
sys/dev/raid/tws/tws_cam.c
585
memcpy(sense_data, hdr->sense_data, TWS_SENSE_DATA_LENGTH );
sys/dev/raid/tws/tws_cam.c
607
struct tws_command_header *hdr)
sys/dev/raid/tws/tws_cam.c
610
TWS_TRACE_DEBUG(req->sc, "entry", hdr, req->request_id);
sys/dev/raid/tws/tws_cam.c
611
req->error_code = hdr->status_block.error;
sys/dev/raid/tws/tws_cam.c
612
memcpy(&(req->cmd_pkt->hdr), hdr, sizeof(struct tws_command_header));
sys/dev/raid/tws/tws_cam.c
79
struct tws_command_header *hdr);
sys/dev/raid/tws/tws_cam.c
81
struct tws_command_header *hdr);
sys/dev/raid/tws/tws_hdm.h
331
struct tws_command_header hdr;
sys/dev/raid/tws/tws_hdm.h
393
struct tws_command_header *hdr;
sys/dev/raid/tws/tws_user.c
155
memcpy(&ubuf->cmd_pkt.hdr, &req->cmd_pkt->hdr, sizeof(struct tws_command_apache));
sys/dev/video/fb/pcx/splash_pcx.c
161
const struct pcxheader *hdr;
sys/dev/video/fb/pcx/splash_pcx.c
163
hdr = (const struct pcxheader *)data;
sys/dev/video/fb/pcx/splash_pcx.c
166
|| hdr->manufactor != 10
sys/dev/video/fb/pcx/splash_pcx.c
167
|| hdr->version != 5
sys/dev/video/fb/pcx/splash_pcx.c
168
|| hdr->encoding != 1
sys/dev/video/fb/pcx/splash_pcx.c
169
|| hdr->nplanes != 1
sys/dev/video/fb/pcx/splash_pcx.c
170
|| hdr->bpp != 8
sys/dev/video/fb/pcx/splash_pcx.c
171
|| hdr->bpsl > MAXSCANLINE
sys/dev/video/fb/pcx/splash_pcx.c
176
pcx_info.width = hdr->xmax - hdr->xmin + 1;
sys/dev/video/fb/pcx/splash_pcx.c
177
pcx_info.height = hdr->ymax - hdr->ymin + 1;
sys/dev/video/fb/pcx/splash_pcx.c
178
pcx_info.bpsl = hdr->bpsl;
sys/dev/video/fb/pcx/splash_pcx.c
179
pcx_info.bpp = hdr->bpp;
sys/dev/video/fb/pcx/splash_pcx.c
180
pcx_info.planes = hdr->nplanes;
sys/dev/virtual/hyperv/vmbus/vmbus.c
1017
const struct vmbus_chanmsg_hdr *hdr;
sys/dev/virtual/hyperv/vmbus/vmbus.c
1019
hdr = (const struct vmbus_chanmsg_hdr *)msg->msg_data;
sys/dev/virtual/hyperv/vmbus/vmbus.c
1022
if (hdr->chm_type == VMBUS_CHANMSG_TYPE_VERSION_RESP)
sys/dev/virtual/virtio/net/if_vtnet.c
1414
struct virtio_net_hdr *hdr;
sys/dev/virtual/virtio/net/if_vtnet.c
1429
hdr = &rxhdr->vrh_hdr;
sys/dev/virtual/virtio/net/if_vtnet.c
1432
error = sglist_append(&sg, hdr, sc->vtnet_hdr_size);
sys/dev/virtual/virtio/net/if_vtnet.c
1583
struct virtio_net_hdr *hdr)
sys/dev/virtual/virtio/net/if_vtnet.c
1591
csum_len = hdr->csum_start + hdr->csum_offset;
sys/dev/virtual/virtio/net/if_vtnet.c
1611
switch (hdr->csum_offset) {
sys/dev/virtual/virtio/net/if_vtnet.c
1613
if (m->m_len < hdr->csum_start + sizeof(struct udphdr))
sys/dev/virtual/virtio/net/if_vtnet.c
1615
udp = (struct udphdr *)(mtod(m, uint8_t *) + hdr->csum_start);
sys/dev/virtual/virtio/net/if_vtnet.c
1691
struct virtio_net_hdr *hdr;
sys/dev/virtual/virtio/net/if_vtnet.c
1697
hdr = &lhdr;
sys/dev/virtual/virtio/net/if_vtnet.c
1752
memcpy(hdr, mtod(m, void *), sizeof(struct virtio_net_hdr));
sys/dev/virtual/virtio/net/if_vtnet.c
1764
if (hdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM)
sys/dev/virtual/virtio/net/if_vtnet.c
1765
hdr->csum_start -=
sys/dev/virtual/virtio/net/if_vtnet.c
1771
hdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) {
sys/dev/virtual/virtio/net/if_vtnet.c
1772
if (vtnet_rx_csum(sc, m, hdr) != 0)
sys/dev/virtual/virtio/net/if_vtnet.c
1876
struct virtio_net_hdr *hdr)
sys/dev/virtual/virtio/net/if_vtnet.c
1946
hdr->flags |= VIRTIO_NET_HDR_F_NEEDS_CSUM;
sys/dev/virtual/virtio/net/if_vtnet.c
1947
hdr->csum_start = csum_start;
sys/dev/virtual/virtio/net/if_vtnet.c
1948
hdr->csum_offset = m->m_pkthdr.csum_data;
sys/dev/virtual/virtio/net/if_vtnet.c
1964
hdr->gso_type = gso_type;
sys/dev/virtual/virtio/net/if_vtnet.c
1965
hdr->hdr_len = csum_start + (tcp->th_off << 2);
sys/dev/virtual/virtio/net/if_vtnet.c
1966
hdr->gso_size = m->m_pkthdr.tso_segsz;
sys/dev/virtual/virtio/net/if_vtnet.c
1981
hdr->gso_type |= VIRTIO_NET_HDR_GSO_ECN;
sys/dev/virtual/virtio/net/if_vtnet.c
2072
struct virtio_net_hdr *hdr;
sys/dev/virtual/virtio/net/if_vtnet.c
2087
hdr = &txhdr->vth_uhdr.hdr;
sys/dev/virtual/virtio/net/if_vtnet.c
2101
m = vtnet_tx_offload(sc, m, hdr);
sys/dev/virtual/virtio/net/if_vtnet.c
2415
struct virtio_net_ctrl_hdr hdr __aligned(2);
sys/dev/virtual/virtio/net/if_vtnet.c
2425
s.hdr.class = VIRTIO_NET_CTRL_MAC;
sys/dev/virtual/virtio/net/if_vtnet.c
2426
s.hdr.cmd = VIRTIO_NET_CTRL_MAC_ADDR_SET;
sys/dev/virtual/virtio/net/if_vtnet.c
2434
error |= sglist_append(&sg, &s.hdr,
sys/dev/virtual/virtio/net/if_vtnet.c
2474
struct virtio_net_ctrl_hdr hdr __aligned(2);
sys/dev/virtual/virtio/net/if_vtnet.c
2485
s.hdr.class = VIRTIO_NET_CTRL_RX;
sys/dev/virtual/virtio/net/if_vtnet.c
2486
s.hdr.cmd = cmd;
sys/dev/virtual/virtio/net/if_vtnet.c
2492
error |= sglist_append(&sg, &s.hdr, sizeof(struct virtio_net_ctrl_hdr));
sys/dev/virtual/virtio/net/if_vtnet.c
2520
struct virtio_net_ctrl_hdr hdr __aligned(2);
sys/dev/virtual/virtio/net/if_vtnet.c
2600
hdr.class = VIRTIO_NET_CTRL_MAC;
sys/dev/virtual/virtio/net/if_vtnet.c
2601
hdr.cmd = VIRTIO_NET_CTRL_MAC_TABLE_SET;
sys/dev/virtual/virtio/net/if_vtnet.c
2606
error |= sglist_append(&sg, &hdr, sizeof(struct virtio_net_ctrl_hdr));
sys/dev/virtual/virtio/net/if_vtnet.c
2633
struct virtio_net_ctrl_hdr hdr __aligned(2);
sys/dev/virtual/virtio/net/if_vtnet.c
2641
s.hdr.class = VIRTIO_NET_CTRL_VLAN;
sys/dev/virtual/virtio/net/if_vtnet.c
2642
s.hdr.cmd = add ? VIRTIO_NET_CTRL_VLAN_ADD : VIRTIO_NET_CTRL_VLAN_DEL;
sys/dev/virtual/virtio/net/if_vtnet.c
2648
error |= sglist_append(&sg, &s.hdr, sizeof(struct virtio_net_ctrl_hdr));
sys/dev/virtual/virtio/net/if_vtnetvar.h
150
struct virtio_net_hdr hdr;
sys/dev/virtual/virtio/net/virtio_net.h
79
struct virtio_net_hdr hdr;
sys/kern/imgact_elf.c
130
.hdr.n_namesz = sizeof(DRAGONFLY_ABI_VENDOR),
sys/kern/imgact_elf.c
131
.hdr.n_descsz = sizeof(int32_t),
sys/kern/imgact_elf.c
132
.hdr.n_type = 1,
sys/kern/imgact_elf.c
1676
const Elf_Ehdr *hdr;
sys/kern/imgact_elf.c
1680
hdr = (const Elf_Ehdr *)imgp->image_header;
sys/kern/imgact_elf.c
1681
phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff);
sys/kern/imgact_elf.c
1683
for (i = 0; i < hdr->e_phnum; i++) {
sys/kern/imgact_elf.c
1786
if (note->n_namesz == checknote->hdr.n_namesz
sys/kern/imgact_elf.c
1787
&& note->n_descsz == checknote->hdr.n_descsz
sys/kern/imgact_elf.c
1788
&& note->n_type == checknote->hdr.n_type
sys/kern/imgact_elf.c
1790
checknote->hdr.n_namesz) == 0)) {
sys/kern/imgact_elf.c
211
__elfN(check_header)(const Elf_Ehdr *hdr)
sys/kern/imgact_elf.c
216
if (!IS_ELF(*hdr) ||
sys/kern/imgact_elf.c
217
hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS ||
sys/kern/imgact_elf.c
218
hdr->e_ident[EI_DATA] != ELF_TARG_DATA ||
sys/kern/imgact_elf.c
219
hdr->e_ident[EI_VERSION] != EV_CURRENT ||
sys/kern/imgact_elf.c
220
hdr->e_phentsize != sizeof(Elf_Phdr) ||
sys/kern/imgact_elf.c
221
hdr->e_ehsize != sizeof(Elf_Ehdr) ||
sys/kern/imgact_elf.c
222
hdr->e_version != ELF_TARG_VER)
sys/kern/imgact_elf.c
231
if (bi != NULL && bi->machine == hdr->e_machine)
sys/kern/imgact_elf.c
414
const Elf_Ehdr *hdr = NULL;
sys/kern/imgact_elf.c
471
hdr = (const Elf_Ehdr *)imgp->image_header;
sys/kern/imgact_elf.c
472
if ((error = __elfN(check_header)(hdr)) != 0)
sys/kern/imgact_elf.c
474
if (hdr->e_type == ET_DYN)
sys/kern/imgact_elf.c
476
else if (hdr->e_type == ET_EXEC)
sys/kern/imgact_elf.c
485
if ((hdr->e_phoff > PAGE_SIZE) ||
sys/kern/imgact_elf.c
486
(hdr->e_phentsize * hdr->e_phnum) > PAGE_SIZE - hdr->e_phoff) {
sys/kern/imgact_elf.c
491
phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff);
sys/kern/imgact_elf.c
497
for (i = 0, numsegs = 0; i < hdr->e_phnum; i++) {
sys/kern/imgact_elf.c
520
*entry = (unsigned long)hdr->e_entry + rbase;
sys/kern/imgact_elf.c
538
const Elf_Ehdr *hdr = (const Elf_Ehdr *)imgp->image_header;
sys/kern/imgact_elf.c
555
if (hdr->e_machine == bi->machine && (bi->flags &
sys/kern/imgact_elf.c
569
if (hdr->e_machine == bi->machine &&
sys/kern/imgact_elf.c
570
(hdr->e_ident[EI_OSABI] == bi->brand ||
sys/kern/imgact_elf.c
571
strncmp((const char *)&hdr->e_ident[OLD_EI_BRAND],
sys/kern/imgact_elf.c
583
if (hdr->e_machine == bi->machine &&
sys/kern/imgact_elf.c
595
if (hdr->e_machine == bi->machine &&
sys/kern/imgact_elf.c
605
const Elf_Ehdr *hdr = (const Elf_Ehdr *) imgp->image_header;
sys/kern/imgact_elf.c
628
if (__elfN(check_header)(hdr) != 0 ||
sys/kern/imgact_elf.c
629
(hdr->e_type != ET_EXEC && hdr->e_type != ET_DYN))
sys/kern/imgact_elf.c
637
if ((hdr->e_phoff > PAGE_SIZE) ||
sys/kern/imgact_elf.c
638
(hdr->e_phoff + hdr->e_phentsize * hdr->e_phnum) > PAGE_SIZE) {
sys/kern/imgact_elf.c
642
phdr = (const Elf_Phdr *)(imgp->image_header + hdr->e_phoff);
sys/kern/imgact_elf.c
647
for (i = 0; i < hdr->e_phnum; i++) {
sys/kern/imgact_elf.c
681
hdr->e_ident[EI_OSABI]);
sys/kern/imgact_elf.c
686
if (hdr->e_type == ET_DYN) {
sys/kern/imgact_elf.c
721
for (i = 0; i < hdr->e_phnum; i++) {
sys/kern/imgact_elf.c
749
hdr->e_phoff + hdr->e_phnum * hdr->e_phentsize
sys/kern/imgact_elf.c
751
proghdr = phdr[i].p_vaddr + hdr->e_phoff +
sys/kern/imgact_elf.c
76
static int __elfN(check_header)(const Elf_Ehdr *hdr);
sys/kern/imgact_elf.c
773
if (hdr->e_entry >= phdr[i].p_vaddr &&
sys/kern/imgact_elf.c
774
hdr->e_entry < (phdr[i].p_vaddr +
sys/kern/imgact_elf.c
778
entry = (u_long)hdr->e_entry + et_dyn_addr;
sys/kern/imgact_elf.c
858
elf_auxargs->phent = hdr->e_phentsize;
sys/kern/imgact_elf.c
859
elf_auxargs->phnum = hdr->e_phnum;
sys/kern/kern_dmsg.c
329
dmsg_hdr_t hdr;
sys/kern/kern_dmsg.c
339
error = fp_read(iocom->msg_fp, &hdr, sizeof(hdr),
sys/kern/kern_dmsg.c
343
if (hdr.magic != DMSG_HDR_MAGIC) {
sys/kern/kern_dmsg.c
344
kdio_printf(iocom, 1, "bad magic: %04x\n", hdr.magic);
sys/kern/kern_dmsg.c
348
hbytes = (hdr.cmd & DMSGF_SIZE) * DMSG_ALIGN;
sys/kern/kern_dmsg.c
349
if (hbytes < sizeof(hdr) || hbytes > DMSG_HDR_MAX) {
sys/kern/kern_dmsg.c
357
hdr.cmd & DMSGF_BASECMDMASK,
sys/kern/kern_dmsg.c
359
msg->any.head = hdr;
sys/kern/kern_dmsg.c
361
if (hbytes > sizeof(hdr)) {
sys/kern/kern_dmsg.c
363
hbytes - sizeof(hdr),
sys/kern/kern_dmsg.c
372
msg->aux_size = hdr.aux_bytes;
sys/kern/link_elf.c
394
Elf_Ehdr *hdr;
sys/kern/link_elf.c
450
hdr = (Elf_Ehdr *)firstpage;
sys/kern/link_elf.c
457
if (!IS_ELF(*hdr)) {
sys/kern/link_elf.c
462
if (hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS
sys/kern/link_elf.c
463
|| hdr->e_ident[EI_DATA] != ELF_TARG_DATA) {
sys/kern/link_elf.c
468
if (hdr->e_ident[EI_VERSION] != EV_CURRENT
sys/kern/link_elf.c
469
|| hdr->e_version != EV_CURRENT) {
sys/kern/link_elf.c
474
if (hdr->e_type != ET_EXEC && hdr->e_type != ET_DYN) {
sys/kern/link_elf.c
478
if (hdr->e_machine != ELF_TARG_MACH) {
sys/kern/link_elf.c
489
if (!((hdr->e_phentsize == sizeof(Elf_Phdr)) &&
sys/kern/link_elf.c
490
(hdr->e_phoff + hdr->e_phnum*sizeof(Elf_Phdr) <= PAGE_SIZE) &&
sys/kern/link_elf.c
491
(hdr->e_phoff + hdr->e_phnum*sizeof(Elf_Phdr) <= nbytes)))
sys/kern/link_elf.c
500
phdr = (Elf_Phdr *) (firstpage + hdr->e_phoff);
sys/kern/link_elf.c
501
phlimit = phdr + hdr->e_phnum;
sys/kern/link_elf.c
590
nbytes = hdr->e_shnum * hdr->e_shentsize;
sys/kern/link_elf.c
591
if (nbytes == 0 || hdr->e_shoff == 0)
sys/kern/link_elf.c
595
(caddr_t)shdr, nbytes, hdr->e_shoff,
sys/kern/link_elf.c
601
for (i = 0; i < hdr->e_shnum; i++) {
sys/kern/link_elf_obj.c
165
Elf_Ehdr *hdr;
sys/kern/link_elf_obj.c
186
hdr = (Elf_Ehdr *) preload_search_info(modptr, MODINFO_METADATA |
sys/kern/link_elf_obj.c
195
if (baseptr == NULL || sizeptr == NULL || hdr == NULL || shdr == NULL)
sys/kern/link_elf_obj.c
210
if (hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS ||
sys/kern/link_elf_obj.c
211
hdr->e_ident[EI_DATA] != ELF_TARG_DATA ||
sys/kern/link_elf_obj.c
212
hdr->e_ident[EI_VERSION] != EV_CURRENT ||
sys/kern/link_elf_obj.c
213
hdr->e_version != EV_CURRENT ||
sys/kern/link_elf_obj.c
214
hdr->e_type != ET_REL ||
sys/kern/link_elf_obj.c
215
hdr->e_machine != ELF_TARG_MACH) {
sys/kern/link_elf_obj.c
224
for (i = 0; i < hdr->e_shnum; i++) {
sys/kern/link_elf_obj.c
243
shstrindex = hdr->e_shstrndx;
sys/kern/link_elf_obj.c
245
symstrindex >= hdr->e_shnum ||
sys/kern/link_elf_obj.c
247
shstrindex >= hdr->e_shnum ||
sys/kern/link_elf_obj.c
270
for (i = 0; i < hdr->e_shnum; i++) {
sys/kern/link_elf_obj.c
274
for (i = 0; i < hdr->e_shnum; i++) {
sys/kern/link_elf_obj.c
291
for (i = 0; i < hdr->e_shnum; i++) {
sys/kern/link_elf_obj.c
397
Elf_Ehdr *hdr;
sys/kern/link_elf_obj.c
428
hdr = NULL;
sys/kern/link_elf_obj.c
448
hdr = kmalloc(sizeof(*hdr), M_LINKER, M_WAITOK);
sys/kern/link_elf_obj.c
449
error = vn_rdwr(UIO_READ, vp, (void *)hdr, sizeof(*hdr), 0,
sys/kern/link_elf_obj.c
457
if (!IS_ELF(*hdr)) {
sys/kern/link_elf_obj.c
462
if (hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS
sys/kern/link_elf_obj.c
463
|| hdr->e_ident[EI_DATA] != ELF_TARG_DATA) {
sys/kern/link_elf_obj.c
468
if (hdr->e_ident[EI_VERSION] != EV_CURRENT
sys/kern/link_elf_obj.c
469
|| hdr->e_version != EV_CURRENT) {
sys/kern/link_elf_obj.c
474
if (hdr->e_type != ET_REL) {
sys/kern/link_elf_obj.c
478
if (hdr->e_machine != ELF_TARG_MACH) {
sys/kern/link_elf_obj.c
497
nbytes = hdr->e_shnum * hdr->e_shentsize;
sys/kern/link_elf_obj.c
498
if (nbytes == 0 || hdr->e_shoff == 0 ||
sys/kern/link_elf_obj.c
499
hdr->e_shentsize != sizeof(Elf_Shdr)) {
sys/kern/link_elf_obj.c
505
error = vn_rdwr(UIO_READ, vp, (caddr_t) shdr, nbytes, hdr->e_shoff,
sys/kern/link_elf_obj.c
517
for (i = 0; i < hdr->e_shnum; i++) {
sys/kern/link_elf_obj.c
551
if (symstrindex < 0 || symstrindex > hdr->e_shnum ||
sys/kern/link_elf_obj.c
603
if (hdr->e_shstrndx != 0 &&
sys/kern/link_elf_obj.c
604
shdr[hdr->e_shstrndx].sh_type == SHT_STRTAB) {
sys/kern/link_elf_obj.c
605
shstrindex = hdr->e_shstrndx;
sys/kern/link_elf_obj.c
621
for (i = 0; i < hdr->e_shnum; i++) {
sys/kern/link_elf_obj.c
696
for (i = 0; i < hdr->e_shnum; i++) {
sys/kern/link_elf_obj.c
835
if (hdr)
sys/kern/link_elf_obj.c
836
kfree(hdr, M_LINKER);
sys/kern/subr_disk.c
518
switch (msg->hdr.u.ms_result) {
sys/kern/subr_disk.c
596
lwkt_replymsg(&msg->hdr, 0);
sys/kern/subr_disk.c
622
lwkt_initmsg(&disk_msg->hdr, &disk_dispose_port, 0);
sys/kern/subr_disk.c
624
disk_msg->hdr.u.ms_result = cmd;
sys/kern/subr_disk.c
628
lwkt_sendmsg(port, &disk_msg->hdr);
sys/kern/subr_disk.c
643
lwkt_initmsg(&disk_msg->hdr, &rep_port, 0);
sys/kern/subr_disk.c
645
disk_msg->hdr.u.ms_result = cmd;
sys/kern/subr_disk.c
649
lwkt_domsg(port, &disk_msg->hdr, 0);
sys/kern/subr_module.c
101
hdr = (u_int32_t *)curp;
sys/kern/subr_module.c
102
if (hdr[0] == 0 && hdr[1] == 0)
sys/kern/subr_module.c
106
if (hdr[0] == MODINFO_NAME)
sys/kern/subr_module.c
110
if ((hdr[0] == MODINFO_TYPE) &&
sys/kern/subr_module.c
115
next = sizeof(u_int32_t) * 2 + hdr[1];
sys/kern/subr_module.c
130
u_int32_t *hdr;
sys/kern/subr_module.c
139
hdr = (u_int32_t *)curp;
sys/kern/subr_module.c
140
next = sizeof(u_int32_t) * 2 + hdr[1];
sys/kern/subr_module.c
147
hdr = (u_int32_t *)curp;
sys/kern/subr_module.c
148
if (hdr[0] == 0 && hdr[1] == 0)
sys/kern/subr_module.c
152
if (hdr[0] == MODINFO_NAME)
sys/kern/subr_module.c
156
next = sizeof(u_int32_t) * 2 + hdr[1];
sys/kern/subr_module.c
172
u_int32_t *hdr;
sys/kern/subr_module.c
178
hdr = (u_int32_t *)curp;
sys/kern/subr_module.c
180
if (hdr[0] == 0 && hdr[1] == 0)
sys/kern/subr_module.c
187
type = hdr[0];
sys/kern/subr_module.c
189
if (hdr[0] == type)
sys/kern/subr_module.c
198
if (hdr[0] == inf)
sys/kern/subr_module.c
202
next = sizeof(u_int32_t) * 2 + hdr[1];
sys/kern/subr_module.c
216
u_int32_t *hdr;
sys/kern/subr_module.c
224
hdr = (u_int32_t *)curp;
sys/kern/subr_module.c
225
if (hdr[0] == 0 && hdr[1] == 0)
sys/kern/subr_module.c
229
if (hdr[0] == MODINFO_NAME) {
sys/kern/subr_module.c
236
hdr[0] = MODINFO_EMPTY;
sys/kern/subr_module.c
239
next = sizeof(u_int32_t) * 2 + hdr[1];
sys/kern/subr_module.c
251
u_int32_t *hdr;
sys/kern/subr_module.c
259
hdr = (u_int32_t *)curp;
sys/kern/subr_module.c
260
if (hdr[0] == 0 && hdr[1] == 0)
sys/kern/subr_module.c
264
switch (hdr[0]) {
sys/kern/subr_module.c
275
next = sizeof(u_int32_t) * 2 + hdr[1];
sys/kern/subr_module.c
50
u_int32_t *hdr;
sys/kern/subr_module.c
60
hdr = (u_int32_t *)curp;
sys/kern/subr_module.c
61
if (hdr[0] == 0 && hdr[1] == 0)
sys/kern/subr_module.c
68
if (hdr[0] == MODINFO_NAME) {
sys/kern/subr_module.c
79
next = sizeof(u_int32_t) * 2 + hdr[1];
sys/kern/subr_module.c
93
u_int32_t *hdr;
sys/kern/subr_prf.c
1257
hexdump(const void *ptr, int length, const char *hdr, int flags)
sys/kern/subr_prf.c
1276
if (hdr != NULL)
sys/kern/subr_prf.c
1277
kprintf("%s", hdr);
sys/net/altq/altq_red.c
424
void *hdr;
sys/net/altq/altq_red.c
429
hdr = m->m_pkthdr.pf.hdr;
sys/net/altq/altq_red.c
432
hdr = pktattr->pattr_hdr;
sys/net/altq/altq_red.c
442
if (((caddr_t)hdr >= m0->m_data) &&
sys/net/altq/altq_red.c
443
((caddr_t)hdr < m0->m_data + m0->m_len))
sys/net/altq/altq_red.c
454
struct ip *ip = hdr;
sys/net/altq/altq_red.c
484
struct ip6_hdr *ip6 = hdr;
sys/net/ipfw/ip_fw2.c
3692
uint32_t *hdr = (uint32_t *)args->eh;
sys/net/ipfw/ip_fw2.c
3695
(want[0] == (hdr[0] & mask[0]) &&
sys/net/ipfw/ip_fw2.c
3696
want[1] == (hdr[1] & mask[1]) &&
sys/net/ipfw/ip_fw2.c
3697
want[2] == (hdr[2] & mask[2]));
sys/net/ipfw3_layer2/ip_fw3_layer2.c
101
(want[3] == (hdr[3] & mask[3]) &&
sys/net/ipfw3_layer2/ip_fw3_layer2.c
102
want[4] == (hdr[4] & mask[4]) &&
sys/net/ipfw3_layer2/ip_fw3_layer2.c
103
want[5] == (hdr[5] & mask[5]));
sys/net/ipfw3_layer2/ip_fw3_layer2.c
142
uint16_t *hdr = (uint16_t *)(*args)->eh;
sys/net/ipfw3_layer2/ip_fw3_layer2.c
144
(want[0] == (hdr[0] & mask[0]) &&
sys/net/ipfw3_layer2/ip_fw3_layer2.c
145
want[1] == (hdr[1] & mask[1]) &&
sys/net/ipfw3_layer2/ip_fw3_layer2.c
146
want[2] == (hdr[2] & mask[2]));
sys/net/ipfw3_layer2/ip_fw3_layer2.c
81
uint32_t *hdr = (uint32_t *)(*args)->eh;
sys/net/ipfw3_layer2/ip_fw3_layer2.c
83
(want[0] == (hdr[0] & mask[0]) &&
sys/net/ipfw3_layer2/ip_fw3_layer2.c
84
want[1] == (hdr[1] & mask[1]) &&
sys/net/ipfw3_layer2/ip_fw3_layer2.c
85
want[2] == (hdr[2] & mask[2]));
sys/net/ipfw3_layer2/ip_fw3_layer2.c
99
uint16_t *hdr = (uint16_t *)(*args)->eh;
sys/net/netmap/netmap_user.h
132
struct nm_hdr_t hdr;
sys/net/netmap/netmap_user.h
285
d->hdr.len = d->hdr.caplen = ring->slot[i].len;
sys/net/netmap/netmap_user.h
286
d->hdr.ts = ring->ts;
sys/net/netmap/netmap_user.h
287
cb(arg, &d->hdr, buf);
sys/net/netmap/netmap_user.h
298
nm_next(struct nm_desc_t *d, struct nm_hdr_t *hdr)
sys/net/netmap/netmap_user.h
311
hdr->ts = ring->ts;
sys/net/netmap/netmap_user.h
312
hdr->len = hdr->caplen = ring->slot[i].len;
sys/net/pf/if_pflog.c
239
struct pfloghdr hdr;
sys/net/pf/if_pflog.c
249
bzero(&hdr, sizeof(hdr));
sys/net/pf/if_pflog.c
250
hdr.length = PFLOG_REAL_HDRLEN;
sys/net/pf/if_pflog.c
251
hdr.af = af;
sys/net/pf/if_pflog.c
252
hdr.action = rm->action;
sys/net/pf/if_pflog.c
253
hdr.reason = reason;
sys/net/pf/if_pflog.c
254
memcpy(hdr.ifname, kif->pfik_name, sizeof(hdr.ifname));
sys/net/pf/if_pflog.c
257
hdr.rulenr = htonl(rm->nr);
sys/net/pf/if_pflog.c
258
hdr.subrulenr = -1;
sys/net/pf/if_pflog.c
260
hdr.rulenr = htonl(am->nr);
sys/net/pf/if_pflog.c
261
hdr.subrulenr = htonl(rm->nr);
sys/net/pf/if_pflog.c
263
strlcpy(hdr.ruleset, ruleset->anchor->name,
sys/net/pf/if_pflog.c
264
sizeof(hdr.ruleset));
sys/net/pf/if_pflog.c
269
hdr.uid = pd->lookup.uid;
sys/net/pf/if_pflog.c
270
hdr.pid = pd->lookup.pid;
sys/net/pf/if_pflog.c
272
hdr.uid = UID_MAX;
sys/net/pf/if_pflog.c
273
hdr.pid = NO_PID;
sys/net/pf/if_pflog.c
275
hdr.rule_uid = rm->cuid;
sys/net/pf/if_pflog.c
276
hdr.rule_pid = rm->cpid;
sys/net/pf/if_pflog.c
277
hdr.dir = dir;
sys/net/pf/if_pflog.c
296
bpf_mtap_hdr(ifn->if_bpf, (char *)&hdr, PFLOG_HDRLEN, m,
sys/net/pf/pf.c
2186
m->m_pkthdr.pf.hdr = mtod(m, struct ip *);
sys/net/pf/pf.c
2323
m0->m_pkthdr.pf.hdr = mtod(m0, struct ip *);
sys/net/pf/pf.c
3131
off, pd->hdr.tcp), r->os_fingerprint)))
sys/net/pf/pf.c
3388
if (pd->hdr.tcp == NULL)
sys/net/pf/pf.c
3390
sport = pd->hdr.tcp->th_sport;
sys/net/pf/pf.c
3391
dport = pd->hdr.tcp->th_dport;
sys/net/pf/pf.c
3441
if (pd->hdr.udp == NULL)
sys/net/pf/pf.c
3443
sport = pd->hdr.udp->uh_sport;
sys/net/pf/pf.c
3444
dport = pd->hdr.udp->uh_dport;
sys/net/pf/pf.c
3504
u_int8_t hdr[60];
sys/net/pf/pf.c
3511
if (!pf_pull_hdr(m, off, hdr, hlen, NULL, NULL, af))
sys/net/pf/pf.c
3513
opt = hdr + sizeof(struct tcphdr);
sys/net/pf/pf.c
3544
u_int8_t hdr[60];
sys/net/pf/pf.c
3551
if (!pf_pull_hdr(m, off, hdr, hlen, NULL, NULL, af))
sys/net/pf/pf.c
3553
opt = hdr + sizeof(struct tcphdr);
sys/net/pf/pf.c
3674
MD5Update(&ctx, (char *)&pd->hdr.tcp->th_sport, sizeof(u_short));
sys/net/pf/pf.c
3675
MD5Update(&ctx, (char *)&pd->hdr.tcp->th_dport, sizeof(u_short));
sys/net/pf/pf.c
3686
return (digest[0] + pd->hdr.tcp->th_seq + pf_tcp_iss_off);
sys/net/pf/pf.c
3701
struct tcphdr *th = pd->hdr.tcp;
sys/net/pf/pf.c
3734
sport = pd->hdr.udp->uh_sport;
sys/net/pf/pf.c
3735
dport = pd->hdr.udp->uh_dport;
sys/net/pf/pf.c
3736
hdrlen = sizeof(*pd->hdr.udp);
sys/net/pf/pf.c
3742
sport = dport = pd->hdr.icmp->icmp_id;
sys/net/pf/pf.c
3743
hdrlen = sizeof(*pd->hdr.icmp);
sys/net/pf/pf.c
3744
icmptype = pd->hdr.icmp->icmp_type;
sys/net/pf/pf.c
3745
icmpcode = pd->hdr.icmp->icmp_code;
sys/net/pf/pf.c
3759
sport = dport = pd->hdr.icmp6->icmp6_id;
sys/net/pf/pf.c
3760
hdrlen = sizeof(*pd->hdr.icmp6);
sys/net/pf/pf.c
3761
icmptype = pd->hdr.icmp6->icmp6_type;
sys/net/pf/pf.c
3762
icmpcode = pd->hdr.icmp6->icmp6_code;
sys/net/pf/pf.c
3815
bproto_sum = pd->hdr.udp->uh_sum;
sys/net/pf/pf.c
3816
pd->proto_sum = &pd->hdr.udp->uh_sum;
sys/net/pf/pf.c
3820
pf_change_ap(saddr, &pd->hdr.udp->uh_sport,
sys/net/pf/pf.c
3821
pd->ip_sum, &pd->hdr.udp->uh_sum,
sys/net/pf/pf.c
3824
sport = pd->hdr.udp->uh_sport;
sys/net/pf/pf.c
3825
pd->sport = &pd->hdr.udp->uh_sport;
sys/net/pf/pf.c
3830
pf_change_ap(daddr, &pd->hdr.udp->uh_dport,
sys/net/pf/pf.c
3831
pd->ip_sum, &pd->hdr.udp->uh_sum,
sys/net/pf/pf.c
3834
dport = pd->hdr.udp->uh_dport;
sys/net/pf/pf.c
3835
pd->dport = &pd->hdr.udp->uh_dport;
sys/net/pf/pf.c
3850
if (nk->port[1] != pd->hdr.icmp->icmp_id) {
sys/net/pf/pf.c
3851
pd->hdr.icmp->icmp_cksum = pf_cksum_fixup(
sys/net/pf/pf.c
3852
pd->hdr.icmp->icmp_cksum, sport,
sys/net/pf/pf.c
3854
pd->hdr.icmp->icmp_id = nk->port[1];
sys/net/pf/pf.c
3855
pd->sport = &pd->hdr.icmp->icmp_id;
sys/net/pf/pf.c
3857
m_copyback(m, off, ICMP_MINLEN, pd->hdr.icmp);
sys/net/pf/pf.c
3864
pf_change_a6(saddr, &pd->hdr.icmp6->icmp6_cksum,
sys/net/pf/pf.c
3868
pf_change_a6(daddr, &pd->hdr.icmp6->icmp6_cksum,
sys/net/pf/pf.c
3997
m_copyback(m, off, hdrlen, pd->hdr.any);
sys/net/pf/pf.c
4018
m_copyback(m, off, hdrlen, pd->hdr.any);
sys/net/pf/pf.c
4085
m_copyback(m, off, hdrlen, pd->hdr.any);
sys/net/pf/pf.c
4107
struct tcphdr *th = pd->hdr.tcp;
sys/net/pf/pf.c
4285
m_copyback(m, off, hdrlen, pd->hdr.any);
sys/net/pf/pf.c
4425
struct tcphdr *th = pd->hdr.tcp;
sys/net/pf/pf.c
4781
struct tcphdr *th = pd->hdr.tcp;
sys/net/pf/pf.c
4860
struct tcphdr *th = pd->hdr.tcp;
sys/net/pf/pf.c
5080
struct udphdr *uh = pd->hdr.udp;
sys/net/pf/pf.c
5179
icmptype = pd->hdr.icmp->icmp_type;
sys/net/pf/pf.c
5180
icmpid = pd->hdr.icmp->icmp_id;
sys/net/pf/pf.c
5181
icmpsum = &pd->hdr.icmp->icmp_cksum;
sys/net/pf/pf.c
5193
icmptype = pd->hdr.icmp6->icmp6_type;
sys/net/pf/pf.c
5194
icmpid = pd->hdr.icmp6->icmp6_id;
sys/net/pf/pf.c
5195
icmpsum = &pd->hdr.icmp6->icmp6_cksum;
sys/net/pf/pf.c
5249
pd->hdr.icmp->icmp_id) {
sys/net/pf/pf.c
5250
pd->hdr.icmp->icmp_cksum =
sys/net/pf/pf.c
5252
pd->hdr.icmp->icmp_cksum, icmpid,
sys/net/pf/pf.c
5254
pd->hdr.icmp->icmp_id =
sys/net/pf/pf.c
5259
m_copyback(m, off, ICMP_MINLEN, pd->hdr.icmp);
sys/net/pf/pf.c
5267
&pd->hdr.icmp6->icmp6_cksum,
sys/net/pf/pf.c
5273
&pd->hdr.icmp6->icmp6_cksum,
sys/net/pf/pf.c
5278
pd->hdr.icmp6);
sys/net/pf/pf.c
5454
icmptype, pd->hdr.icmp->icmp_code);
sys/net/pf/pf.c
5467
icmptype, pd->hdr.icmp->icmp_code);
sys/net/pf/pf.c
5509
pd->hdr.icmp);
sys/net/pf/pf.c
5518
pd->hdr.icmp6);
sys/net/pf/pf.c
5579
pd->hdr.icmp);
sys/net/pf/pf.c
5588
pd->hdr.icmp6);
sys/net/pf/pf.c
5645
m_copyback(m, off, ICMP_MINLEN, pd->hdr.icmp);
sys/net/pf/pf.c
5700
pd->hdr.icmp6);
sys/net/pf/pf.c
5744
pd->hdr.icmp);
sys/net/pf/pf.c
5754
pd->hdr.icmp6);
sys/net/pf/pf.c
6617
pd.hdr.tcp = &th;
sys/net/pf/pf.c
6648
pd.hdr.udp = &uh;
sys/net/pf/pf.c
6677
pd.hdr.icmp = &ih;
sys/net/pf/pf.c
6740
m->m_pkthdr.pf.hdr = h;
sys/net/pf/pf.c
7018
pd.hdr.tcp = &th;
sys/net/pf/pf.c
7045
pd.hdr.udp = &uh;
sys/net/pf/pf.c
7074
pd.hdr.icmp6 = &ih;
sys/net/pf/pf.c
7143
m->m_pkthdr.pf.hdr = h;
sys/net/pf/pf_norm.c
1296
struct tcphdr *th = pd->hdr.tcp;
sys/net/pf/pf_norm.c
1411
u_int8_t hdr[60];
sys/net/pf/pf_norm.c
1449
pf_pull_hdr(m, off, hdr, th->th_off << 2, NULL, NULL, pd->af)) {
sys/net/pf/pf_norm.c
1452
opt = hdr + sizeof(struct tcphdr);
sys/net/pf/pf_norm.c
1508
u_int8_t hdr[60];
sys/net/pf/pf_norm.c
1552
pf_pull_hdr(m, off, hdr, th->th_off << 2, NULL, NULL, pd->af)) {
sys/net/pf/pf_norm.c
1555
opt = hdr + sizeof(struct tcphdr);
sys/net/pf/pf_norm.c
1622
hdr + sizeof(struct tcphdr));
sys/net/pf/pf_osfp.c
106
if (!pf_pull_hdr(m, off, hdr, tcp->th_off << 2, NULL, NULL,
sys/net/pf/pf_osfp.c
109
return (pf_osfp_fingerprint_hdr(ip, ip6, (struct tcphdr *)hdr));
sys/net/pf/pf_osfp.c
93
char hdr[60];
sys/net/pf/pfvar.h
1214
} hdr;
sys/net/ppp_layer/slcompress.c
415
u_char *hdr, *cp;
sys/net/ppp_layer/slcompress.c
419
vjlen = sl_uncompress_tcp_core(cp, len, len, type, comp, &hdr, &hlen);
sys/net/ppp_layer/slcompress.c
443
BCOPY(hdr, cp, hlen);
sys/netbt/hci_event.c
163
hci_event_hdr_t hdr;
sys/netbt/hci_event.c
167
KKASSERT(m->m_pkthdr.len >= sizeof(hdr));
sys/netbt/hci_event.c
168
m_copydata(m, 0, sizeof(hdr), &hdr);
sys/netbt/hci_event.c
169
m_adj(m, sizeof(hdr));
sys/netbt/hci_event.c
171
KKASSERT(hdr.type == HCI_EVENT_PKT);
sys/netbt/hci_event.c
174
device_get_nameunit(unit->hci_dev), hci_eventstr(hdr.event));
sys/netbt/hci_event.c
176
switch(hdr.event) {
sys/netbt/hci_link.c
420
hci_acldata_hdr_t hdr;
sys/netbt/hci_link.c
427
KKASSERT(m->m_pkthdr.len >= sizeof(hdr));
sys/netbt/hci_link.c
428
m_copydata(m, 0, sizeof(hdr), &hdr);
sys/netbt/hci_link.c
429
m_adj(m, sizeof(hdr));
sys/netbt/hci_link.c
432
if (hdr.type != HCI_ACL_DATA_PKT) {
sys/netbt/hci_link.c
438
if (m->m_pkthdr.len != letoh16(hdr.length)) {
sys/netbt/hci_link.c
441
letoh16(hdr.length));
sys/netbt/hci_link.c
446
hdr.length = letoh16(hdr.length);
sys/netbt/hci_link.c
447
hdr.con_handle = letoh16(hdr.con_handle);
sys/netbt/hci_link.c
448
handle = HCI_CON_HANDLE(hdr.con_handle);
sys/netbt/hci_link.c
449
pb = HCI_PB_FLAG(hdr.con_handle);
sys/netbt/hci_link.c
617
hci_acldata_hdr_t *hdr;
sys/netbt/hci_link.c
657
M_PREPEND(m, sizeof(*hdr), M_NOWAIT);
sys/netbt/hci_link.c
661
hdr = mtod(m, hci_acldata_hdr_t *);
sys/netbt/hci_link.c
662
hdr->type = HCI_ACL_DATA_PKT;
sys/netbt/hci_link.c
663
hdr->con_handle = htole16(handle);
sys/netbt/hci_link.c
664
hdr->length = htole16(m->m_pkthdr.len - sizeof(*hdr));
sys/netbt/hci_link.c
831
hci_scodata_hdr_t hdr;
sys/netbt/hci_link.c
837
KKASSERT(m->m_pkthdr.len >= sizeof(hdr));
sys/netbt/hci_link.c
838
m_copydata(m, 0, sizeof(hdr), &hdr);
sys/netbt/hci_link.c
839
m_adj(m, sizeof(hdr));
sys/netbt/hci_link.c
842
if (hdr.type != HCI_SCO_DATA_PKT) {
sys/netbt/hci_link.c
848
if (m->m_pkthdr.len != hdr.length) {
sys/netbt/hci_link.c
851
hdr.length);
sys/netbt/hci_link.c
856
hdr.con_handle = letoh16(hdr.con_handle);
sys/netbt/hci_link.c
857
handle = HCI_CON_HANDLE(hdr.con_handle);
sys/netbt/hci_socket.c
476
hci_cmd_hdr_t hdr;
sys/netbt/hci_socket.c
483
if (m->m_pkthdr.len < sizeof(hdr)) {
sys/netbt/hci_socket.c
487
m_copydata(m, 0, sizeof(hdr), &hdr);
sys/netbt/hci_socket.c
488
hdr.opcode = letoh16(hdr.opcode);
sys/netbt/hci_socket.c
491
if (hdr.type != HCI_CMD_PKT) {
sys/netbt/hci_socket.c
497
if (m->m_pkthdr.len != sizeof(hdr) + hdr.length) {
sys/netbt/hci_socket.c
511
&& hci_security_check_opcode(unit, hdr.opcode) != hdr.length) {
sys/netbt/hci_socket.c
527
HCI_OGF(hdr.opcode), HCI_OCF(hdr.opcode));
sys/netbt/l2cap_lower.c
113
l2cap_hdr_t hdr;
sys/netbt/l2cap_lower.c
115
m_copydata(m, 0, sizeof(hdr), &hdr);
sys/netbt/l2cap_lower.c
116
m_adj(m, sizeof(hdr));
sys/netbt/l2cap_lower.c
118
hdr.length = letoh16(hdr.length);
sys/netbt/l2cap_lower.c
119
hdr.dcid = letoh16(hdr.dcid);
sys/netbt/l2cap_lower.c
122
device_get_nameunit(link->hl_unit->hci_dev), hdr.length);
sys/netbt/l2cap_lower.c
124
if (hdr.length != m->m_pkthdr.len)
sys/netbt/l2cap_lower.c
127
if (hdr.dcid == L2CAP_SIGNAL_CID) {
sys/netbt/l2cap_lower.c
132
if (hdr.dcid == L2CAP_CLT_CID) {
sys/netbt/l2cap_lower.c
137
chan = l2cap_cid_lookup(hdr.dcid);
sys/netbt/l2cap_lower.c
145
device_get_nameunit(link->hl_unit->hci_dev), hdr.length,
sys/netbt/l2cap_lower.c
146
hdr.dcid);
sys/netbt/l2cap_signal.c
941
l2cap_hdr_t *hdr;
sys/netbt/l2cap_signal.c
958
hdr = mtod(m, l2cap_hdr_t *);
sys/netbt/l2cap_signal.c
959
cmd = (l2cap_cmd_hdr_t *)(hdr + 1);
sys/netbt/l2cap_signal.c
960
hlen = (int)(sizeof(*hdr) + sizeof(*cmd));
sys/netbt/l2cap_signal.c
977
hdr->length = htole16(length);
sys/netbt/l2cap_signal.c
978
hdr->dcid = htole16(L2CAP_SIGNAL_CID);
sys/netbt/l2cap_signal.c
979
length += sizeof(*hdr);
sys/netbt/l2cap_upper.c
372
l2cap_hdr_t *hdr;
sys/netbt/l2cap_upper.c
390
hdr = mtod(m, l2cap_hdr_t *);
sys/netbt/l2cap_upper.c
391
hdr->length = htole16(plen);
sys/netbt/l2cap_upper.c
392
hdr->dcid = htole16(chan->lc_rcid);
sys/netbt/rfcomm_session.c
1457
struct rfcomm_cmd_hdr *hdr;
sys/netbt/rfcomm_session.c
1484
hdr = mtod(m, struct rfcomm_cmd_hdr *);
sys/netbt/rfcomm_session.c
1485
hdr->address = RFCOMM_MKADDRESS(cr, dlci);
sys/netbt/rfcomm_session.c
1486
hdr->control = RFCOMM_MKCONTROL(type, 1); /* PF = 1 */
sys/netbt/rfcomm_session.c
1487
hdr->length = (0x00 << 1) | 0x01; /* len = 0x00, EA = 1 */
sys/netbt/rfcomm_session.c
1490
fcs = FCS(fcs, hdr->address);
sys/netbt/rfcomm_session.c
1491
fcs = FCS(fcs, hdr->control);
sys/netbt/rfcomm_session.c
1492
fcs = FCS(fcs, hdr->length);
sys/netbt/rfcomm_session.c
1494
hdr->fcs = fcs;
sys/netbt/rfcomm_session.c
1523
uint8_t fcs, *hdr;
sys/netbt/rfcomm_session.c
1561
hdr = mtod(m0, uint8_t *);
sys/netbt/rfcomm_session.c
1564
*hdr = RFCOMM_MKADDRESS((IS_INITIATOR(rs) ? 1 : 0),
sys/netbt/rfcomm_session.c
1566
fcs = FCS(0xff, *hdr);
sys/netbt/rfcomm_session.c
1567
hdr++;
sys/netbt/rfcomm_session.c
1570
*hdr = RFCOMM_MKCONTROL(RFCOMM_FRAME_UIH, (credits > 0 ? 1 : 0));
sys/netbt/rfcomm_session.c
1571
fcs = FCS(fcs, *hdr);
sys/netbt/rfcomm_session.c
1572
hdr++;
sys/netbt/rfcomm_session.c
1575
*hdr++ = ((len << 1) & 0xfe) | 0x01; /* 7 bits, EA = 1 */
sys/netbt/rfcomm_session.c
1577
*hdr++ = ((len << 1) & 0xfe); /* 7 bits, EA = 0 */
sys/netbt/rfcomm_session.c
1578
*hdr++ = ((len >> 7) & 0xff); /* 8 bits, no EA */
sys/netbt/rfcomm_session.c
1582
*hdr++ = (uint8_t)credits;
sys/netbt/rfcomm_session.c
1584
m0->m_len = hdr - mtod(m0, uint8_t *);
sys/netbt/rfcomm_session.c
1636
uint8_t *hdr;
sys/netbt/rfcomm_session.c
1643
hdr = mtod(m, uint8_t *);
sys/netbt/rfcomm_session.c
1649
*hdr++ = RFCOMM_MKMCC_TYPE(cr, type);
sys/netbt/rfcomm_session.c
1661
*hdr++ = ((len << 1) & 0xfe) | 0x01; /* 7 bits, EA = 1 */
sys/netbt/rfcomm_session.c
1663
*hdr++ = ((len << 1) & 0xfe); /* 7 bits, EA = 0 */
sys/netbt/rfcomm_session.c
1664
*hdr++ = ((len >> 6) & 0xfe) | 0x01; /* 7 bits, EA = 1 */
sys/netbt/rfcomm_session.c
1666
*hdr++ = ((len << 1) & 0xfe); /* 7 bits, EA = 0 */
sys/netbt/rfcomm_session.c
1667
*hdr++ = ((len >> 6) & 0xfe); /* 7 bits, EA = 0 */
sys/netbt/rfcomm_session.c
1668
*hdr++ = ((len >> 13) & 0x02) | 0x01; /* 1 bit, EA = 1 */
sys/netbt/rfcomm_session.c
1678
hlen = hdr - mtod(m, uint8_t *);
sys/netbt/sco_upper.c
279
hci_scodata_hdr_t *hdr;
sys/netbt/sco_upper.c
304
hdr = mtod(m, hci_scodata_hdr_t *);
sys/netbt/sco_upper.c
305
hdr->type = HCI_SCO_DATA_PKT;
sys/netbt/sco_upper.c
306
hdr->con_handle = htole16(pcb->sp_link->hl_handle);
sys/netbt/sco_upper.c
307
hdr->length = plen;
sys/netgraph/frame_relay/ng_frame_relay.c
136
static int ngfrm_addrlen(char *hdr);
sys/netgraph/frame_relay/ng_frame_relay.c
323
ngfrm_addrlen(char *hdr)
sys/netgraph/frame_relay/ng_frame_relay.c
325
if (hdr[0] & BYTEX_EA)
sys/netgraph/frame_relay/ng_frame_relay.c
327
if (hdr[1] & BYTEX_EA)
sys/netgraph/frame_relay/ng_frame_relay.c
329
if (hdr[2] & BYTEX_EA)
sys/netgraph/frame_relay/ng_frame_relay.c
331
if (hdr[3] & BYTEX_EA)
sys/netgraph/l2tp/ng_l2tp.c
690
u_int16_t hdr;
sys/netgraph/l2tp/ng_l2tp.c
712
hdr = ntohs(*mtod(m, u_int16_t *));
sys/netgraph/l2tp/ng_l2tp.c
716
is_ctrl = (hdr & L2TP_HDR_CTRL) != 0;
sys/netgraph/l2tp/ng_l2tp.c
717
if ((hdr & req_bits[is_ctrl][0]) != 0
sys/netgraph/l2tp/ng_l2tp.c
718
|| (~hdr & req_bits[is_ctrl][1]) != 0) {
sys/netgraph/l2tp/ng_l2tp.c
724
+ (2 * ((hdr & L2TP_HDR_LEN) != 0)) /* length field */
sys/netgraph/l2tp/ng_l2tp.c
725
+ (4 * ((hdr & L2TP_HDR_SEQ) != 0)) /* seq # fields */
sys/netgraph/l2tp/ng_l2tp.c
726
+ (2 * ((hdr & L2TP_HDR_OFF) != 0))) { /* offset field */
sys/netgraph/l2tp/ng_l2tp.c
733
if ((hdr & L2TP_HDR_LEN) != 0) {
sys/netgraph/l2tp/ng_l2tp.c
768
if ((hdr & L2TP_HDR_CTRL) == 0) {
sys/netgraph/l2tp/ng_l2tp.c
784
if ((hdr & L2TP_HDR_SEQ) != 0) {
sys/netgraph/l2tp/ng_l2tp.c
801
if ((hdr & L2TP_HDR_OFF) != 0) {
sys/netgraph/l2tp/ng_l2tp.c
823
if ((hdr & L2TP_HDR_CTRL) != 0) {
sys/netgraph/l2tp/ng_l2tp.c
862
hpriv->conf.enable_dseq = ((hdr & L2TP_HDR_SEQ) != 0);
sys/netgraph/l2tp/ng_l2tp.c
865
if ((hdr & L2TP_HDR_SEQ) != 0) {
sys/netgraph/l2tp/ng_l2tp.c
956
u_int16_t hdr;
sys/netgraph/l2tp/ng_l2tp.c
978
hdr = L2TP_DATA_HDR;
sys/netgraph/l2tp/ng_l2tp.c
980
hdr |= L2TP_HDR_LEN;
sys/netgraph/l2tp/ng_l2tp.c
986
hdr |= L2TP_HDR_SEQ;
sys/netgraph/l2tp/ng_l2tp.c
991
mtod(m, u_int16_t *)[0] = htons(hdr);
sys/netgraph/netgraph/ng_parse.c
1231
const struct ng_mesg *const hdr
sys/netgraph/netgraph/ng_parse.c
1232
= (const struct ng_mesg *)(data - sizeof(*hdr));
sys/netgraph/netgraph/ng_parse.c
1259
if (sizeof(*hdr) + *off < workSize) {
sys/netgraph/netgraph/ng_parse.c
1260
int tempsize = workSize - sizeof(*hdr) - *off;
sys/netgraph/netgraph/ng_parse.c
1262
bcopy(hdr, workBuf, sizeof(*hdr) + *off);
sys/netgraph/netgraph/ng_parse.c
1264
+ sizeof(*hdr), workBuf + sizeof(*hdr) + *off,
sys/netgraph/netgraph/ng_parse.c
1266
&& bcmp(workBuf + sizeof(*hdr) + *off,
sys/netgraph/ppp/ng_ppp.c
916
u_int16_t hdr[2];
sys/netgraph/ppp/ng_ppp.c
918
hdr[0] = htons(linkNum);
sys/netgraph/ppp/ng_ppp.c
919
hdr[1] = htons((u_int16_t)proto);
sys/netgraph/ppp/ng_ppp.c
920
if ((m = ng_ppp_prepend(m, &hdr, 4)) == NULL) {
sys/netgraph/pppoe/ng_pppoe.c
1046
insert_tag(sp, &neg->service.hdr); /* Service */
sys/netgraph/pppoe/ng_pppoe.c
1103
insert_tag(sp, &neg->ac_name.hdr); /* AC_NAME */
sys/netgraph/pppoe/ng_pppoe.c
1335
uniqtag.hdr.tag_type = PTT_AC_COOKIE;
sys/netgraph/pppoe/ng_pppoe.c
1336
uniqtag.hdr.tag_len = htons((u_int16_t)sizeof(sp));
sys/netgraph/pppoe/ng_pppoe.c
1339
insert_tag(sp, &neg->ac_name.hdr); /* AC_NAME */
sys/netgraph/pppoe/ng_pppoe.c
1350
&& (neg->service.hdr.tag_len != 0)) {
sys/netgraph/pppoe/ng_pppoe.c
1351
insert_tag(sp, &neg->service.hdr); /* SERVICE */
sys/netgraph/pppoe/ng_pppoe.c
1355
insert_tag(sp, &uniqtag.hdr);
sys/netgraph/pppoe/ng_pppoe.c
713
neg->service.hdr.tag_type = PTT_SRV_NAME;
sys/netgraph/pppoe/ng_pppoe.c
714
neg->service.hdr.tag_len =
sys/netgraph/pppoe/ng_pppoe.c
731
neg->service.hdr.tag_type = PTT_SRV_NAME;
sys/netgraph/pppoe/ng_pppoe.c
732
neg->service.hdr.tag_len =
sys/netgraph/pppoe/ng_pppoe.c
753
neg->ac_name.hdr.tag_type = PTT_AC_NAME;
sys/netgraph/pppoe/ng_pppoe.c
754
neg->ac_name.hdr.tag_len =
sys/netgraph/pppoe/ng_pppoe.c
778
neg->service.hdr.tag_type = PTT_SRV_NAME;
sys/netgraph/pppoe/ng_pppoe.c
779
neg->service.hdr.tag_len =
sys/netgraph/pppoe/ng_pppoe.c
815
struct pppoe_tag hdr;
sys/netgraph/pppoe/ng_pppoe.c
827
uniqtag.hdr.tag_type = PTT_HOST_UNIQ;
sys/netgraph/pppoe/ng_pppoe.c
828
uniqtag.hdr.tag_len = htons((u_int16_t)sizeof(uniqtag.data));
sys/netgraph/pppoe/ng_pppoe.c
831
insert_tag(sp, &uniqtag.hdr);
sys/netgraph/pppoe/ng_pppoe.c
832
insert_tag(sp, &sp->neg->service.hdr);
sys/netgraph/pppoe/ng_pppoe.c
894
struct pppoe_tag hdr;
sys/netgraph/pppoe/ng_pppoe.h
204
struct pppoe_tag hdr;
sys/netgraph/vjc/ng_vjc.c
447
u_char *hdr;
sys/netgraph/vjc/ng_vjc.c
470
&priv->slc, &hdr, &hlen);
sys/netgraph/vjc/ng_vjc.c
495
bcopy(hdr, mtod(hm, u_char *), hlen);
sys/netgraph/vjc/ng_vjc.c
504
u_char *hdr;
sys/netgraph/vjc/ng_vjc.c
522
&priv->slc, &hdr, &hlen) < 0) {
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
799
ng_hci_event_pkt_t *hdr;
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
838
if (m->m_pkthdr.len < (int)sizeof(*hdr)) {
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
845
hdr = mtod(m, ng_hci_event_pkt_t *);
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
846
if (hdr->length != (m->m_pkthdr.len - sizeof(*hdr))) {
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
849
hdr->length, m->m_pkthdr.len);
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
856
"length=%d\n", m->m_pkthdr.len, hdr->length);
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
898
ng_hci_acldata_pkt_t *hdr;
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
938
if (m->m_pkthdr.len < (int)sizeof(*hdr)) {
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
945
hdr = mtod(m, ng_hci_acldata_pkt_t *);
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
946
len = le16toh(hdr->length);
sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
947
if (len != (int)(m->m_pkthdr.len - sizeof(*hdr))) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
101
__func__, NG_NODE_NAME(unit->node), hdr->event, hdr->length);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
104
m_adj(event, sizeof(*hdr));
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
106
switch (hdr->event) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
513
ng_hci_cmd_pkt_t hdr;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
523
lp->hdr.type = NG_HCI_CMD_PKT;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
524
lp->hdr.opcode = htole16(NG_HCI_OPCODE(
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
527
lp->hdr.length = sizeof(lp->cp);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
89
ng_hci_event_pkt_t *hdr = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
93
NG_HCI_M_PULLUP(event, sizeof(*hdr));
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
97
hdr = mtod(event, ng_hci_event_pkt_t *);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1007
req->hdr.type = NG_HCI_CMD_PKT;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1008
req->hdr.length = sizeof(req->cp);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1009
req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_POLICY,
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
112
ng_hci_cmd_pkt_t hdr;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
236
req->hdr.type = NG_HCI_CMD_PKT;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
237
req->hdr.length = sizeof(req->cp);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
238
req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL,
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
312
ng_hci_cmd_pkt_t hdr;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
429
req->hdr.type = NG_HCI_CMD_PKT;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
430
req->hdr.length = sizeof(req->cp);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
431
req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL,
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
480
ng_hci_cmd_pkt_t hdr;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
542
req->hdr.type = NG_HCI_CMD_PKT;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
543
req->hdr.length = sizeof(req->cp);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
544
req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL,
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
685
ng_hci_cmd_pkt_t hdr;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
786
req->hdr.type = NG_HCI_CMD_PKT;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
789
req->hdr.length = sizeof(req->cp.acc);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
790
req->hdr.opcode = htole16(NG_HCI_OPCODE(
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
823
req->hdr.length = sizeof(req->cp.rej);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
824
req->hdr.opcode = htole16(NG_HCI_OPCODE(
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
841
m->m_pkthdr.len = m->m_len = sizeof(req->hdr) + req->hdr.length;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
937
ng_hci_cmd_pkt_t hdr;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
100
c->hdr.code = NG_L2CAP_CON_REQ; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
101
c->hdr.ident = (_ident); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
102
c->hdr.length = htole16(sizeof(c->param)); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
112
ng_l2cap_cmd_hdr_t hdr; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
123
c->hdr.code = NG_L2CAP_CON_RSP; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
124
c->hdr.ident = (_ident); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
125
c->hdr.length = htole16(sizeof(c->param)); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
137
ng_l2cap_cmd_hdr_t hdr; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
150
c->hdr.code = NG_L2CAP_CFG_REQ; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
151
c->hdr.ident = (_ident); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
152
c->hdr.length = sizeof(c->param); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
160
c->hdr.length += l; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
164
c->hdr.length = htole16(c->hdr.length); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
171
ng_l2cap_cmd_hdr_t hdr; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
184
c->hdr.code = NG_L2CAP_CFG_RSP; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
185
c->hdr.ident = (_ident); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
186
c->hdr.length = sizeof(c->param); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
195
c->hdr.length += l; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
199
c->hdr.length = htole16(c->hdr.length); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
216
ng_l2cap_cfg_opt_t hdr; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
221
o->hdr.type = NG_L2CAP_OPT_MTU; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
222
o->hdr.length = sizeof(o->val); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
231
ng_l2cap_cfg_opt_t hdr; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
236
o->hdr.type = NG_L2CAP_OPT_FLUSH_TIMO; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
237
o->hdr.length = sizeof(o->val); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
246
ng_l2cap_cfg_opt_t hdr; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
251
o->hdr.type = NG_L2CAP_OPT_QOS; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
252
o->hdr.length = sizeof(o->val); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
280
ng_l2cap_cmd_hdr_t hdr; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
291
c->hdr.code = NG_L2CAP_DISCON_REQ; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
292
c->hdr.ident = (_ident); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
293
c->hdr.length = htole16(sizeof(c->param)); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
303
ng_l2cap_cmd_hdr_t hdr; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
314
c->hdr.code = NG_L2CAP_DISCON_RSP; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
315
c->hdr.ident = (_ident); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
316
c->hdr.length = htole16(sizeof(c->param)); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
350
ng_l2cap_cmd_hdr_t hdr; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
361
c->hdr.code = NG_L2CAP_INFO_REQ; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
362
c->hdr.ident = (_ident); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
363
c->hdr.length = htole16(sizeof(c->param)); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
372
ng_l2cap_cmd_hdr_t hdr; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
382
c->hdr.code = NG_L2CAP_INFO_REQ; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
383
c->hdr.ident = (_ident); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
384
c->hdr.length = sizeof(c->param); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
393
c->hdr.length += sizeof((c->data.mtu.mtu)); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
398
(_m)->m_pkthdr.len = (_m)->m_len = sizeof(c->hdr) + \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
399
c->hdr.length; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
401
c->hdr.length = htole16(c->hdr.length); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
54
ng_l2cap_cmd_hdr_t hdr; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
64
c->hdr.code = NG_L2CAP_CMD_REJ; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
65
c->hdr.ident = (_ident); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
66
c->hdr.length = sizeof(c->param); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
72
c->hdr.length += sizeof(c->data.mtu); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
76
c->hdr.length += sizeof(c->data.cid); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
79
(_m)->m_pkthdr.len = (_m)->m_len = sizeof(c->hdr) + \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
80
c->hdr.length; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
82
c->hdr.length = htole16(c->hdr.length); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.h
89
ng_l2cap_cmd_hdr_t hdr; \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
103
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
107
hdr = mtod(con->rx_pkt, ng_l2cap_hdr_t *);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
108
hdr->length = le16toh(hdr->length);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
109
hdr->dcid = le16toh(hdr->dcid);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
112
if (hdr->length != con->rx_pkt->m_pkthdr.len - sizeof(*hdr)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
115
__func__, NG_NODE_NAME(l2cap->node), hdr->length,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
116
con->rx_pkt->m_pkthdr.len - sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
122
switch (hdr->dcid) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
124
m_adj(con->rx_pkt, sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1266
get_next_l2cap_opt(struct mbuf *m, int *off, ng_l2cap_cfg_opt_p hdr,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1273
if (len < 0 || len < sizeof(*hdr))
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1276
m_copydata(m, *off, sizeof(*hdr), hdr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1277
*off += sizeof(*hdr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1278
len -= sizeof(*hdr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1280
hint = NG_L2CAP_OPT_HINT(hdr->type);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1281
hdr->type &= NG_L2CAP_OPT_HINT_MASK;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1283
switch (hdr->type) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1285
if (hdr->length != NG_L2CAP_OPT_MTU_SIZE || len < hdr->length)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1294
if (hdr->length != NG_L2CAP_OPT_FLUSH_TIMO_SIZE ||
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1295
len < hdr->length)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1304
if (hdr->length != NG_L2CAP_OPT_QOS_SIZE || len < hdr->length)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1319
*off += hdr->length;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
156
ng_l2cap_cmd_hdr_t *hdr = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
161
if (con->rx_pkt->m_pkthdr.len < sizeof(*hdr)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
172
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
176
hdr = mtod(con->rx_pkt, ng_l2cap_cmd_hdr_t *);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
177
hdr->length = le16toh(hdr->length);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
178
m_adj(con->rx_pkt, sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
181
if (con->rx_pkt->m_pkthdr.len < hdr->length) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
186
hdr->code, hdr->ident, hdr->length,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
194
if (con->rx_pkt->m_pkthdr.len > hdr->length)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
195
m = m_split(con->rx_pkt, hdr->length, M_NOWAIT);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
200
switch (hdr->code) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
202
ng_l2cap_process_cmd_rej(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
206
ng_l2cap_process_con_req(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
210
ng_l2cap_process_con_rsp(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
214
ng_l2cap_process_cfg_req(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
218
ng_l2cap_process_cfg_rsp(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
222
ng_l2cap_process_discon_req(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
226
ng_l2cap_process_discon_rsp(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
230
ng_l2cap_process_echo_req(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
234
ng_l2cap_process_echo_rsp(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
238
ng_l2cap_process_info_req(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
242
ng_l2cap_process_info_rsp(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
249
hdr->code, hdr->ident, hdr->length);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
256
send_l2cap_reject(con, hdr->ident,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
528
ng_l2cap_cfg_opt_t hdr;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
568
error = get_next_l2cap_opt(m, &off, &hdr, &val);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
573
switch (hdr.type) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
599
m_adj(m, off - sizeof(hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
600
m->m_pkthdr.len = sizeof(hdr) + hdr.length;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
662
ng_l2cap_cfg_opt_t hdr;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
725
error = get_next_l2cap_opt(m, &off, &hdr, &val);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
729
switch (hdr.type) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
89
ng_l2cap_hdr_t *hdr = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
93
if (con->rx_pkt->m_pkthdr.len < sizeof(*hdr)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
972
ng_l2cap_cmd_hdr_t *hdr = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
975
con->rx_pkt = ng_l2cap_prepend(con->rx_pkt, sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
979
__func__, NG_NODE_NAME(l2cap->node), sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
984
hdr = mtod(con->rx_pkt, ng_l2cap_cmd_hdr_t *);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
985
hdr->code = NG_L2CAP_ECHO_RSP;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
986
hdr->ident = ident;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
987
hdr->length = htole16(con->rx_pkt->m_pkthdr.len - sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1021
__func__, NG_NODE_NAME(l2cap->node), hdr->c_h.psm);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
885
ng_l2cap_hdr_t *hdr = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
889
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
893
hdr = mtod(con->rx_pkt, ng_l2cap_hdr_t *);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
896
ch = ng_l2cap_chan_by_scid(l2cap, hdr->dcid);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
900
__func__, NG_NODE_NAME(l2cap->node), hdr->dcid);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
917
if (hdr->length > ch->imtu) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
921
__func__, NG_NODE_NAME(l2cap->node), hdr->length,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
961
} __attribute__ ((packed)) *hdr = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
965
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
969
hdr = mtod(con->rx_pkt, struct _clt_pkt *);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
972
length = con->rx_pkt->m_pkthdr.len - sizeof(*hdr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
991
hdr->c_h.psm = le16toh(hdr->c_h.psm);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
999
switch (hdr->c_h.psm) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1328
ng_l2cap_hdr_t *hdr = NULL;
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1347
if (m->m_pkthdr.len < sizeof(*hdr)) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1353
if (m->m_len < sizeof(*hdr)) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1354
m = m_pullup(m, sizeof(*hdr));
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1360
hdr = mtod(m, ng_l2cap_hdr_t *);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1361
m_adj(m, sizeof(*hdr));
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1363
if (hdr->length != m->m_pkthdr.len) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1366
__func__, m->m_pkthdr.len, hdr->length);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1387
hdr->dcid, hdr->length);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1389
if (hdr->dcid >= NG_L2CAP_FIRST_CID) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1394
pcb = ng_btsocket_l2cap_pcb_by_cid(&rt->src, hdr->dcid);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1408
hdr->dcid, pcb->state);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1416
if (hdr->length > pcb->imtu) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1423
hdr->dcid, hdr->length, pcb->imtu);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1446
hdr->dcid, m->m_pkthdr.len,
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1462
} else if (hdr->dcid == NG_L2CAP_CLT_CID) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1466
if (hdr->length > NG_L2CAP_MTU_DEFAULT) {
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1473
hdr->length);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1485
hdr->length);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
1505
clt_hdr->psm, hdr->length);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
2587
ng_l2cap_l2ca_hdr_t *hdr = NULL;
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
2600
M_PREPEND(m, sizeof(*hdr), M_NOWAIT);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
2602
if (m->m_len < sizeof(*hdr))
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
2603
m = m_pullup(m, sizeof(*hdr));
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
2612
hdr = mtod(m, ng_l2cap_l2ca_hdr_t *);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
2613
hdr->token = pcb->token;
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
2614
hdr->length = m->m_pkthdr.len - sizeof(*hdr);
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
2615
hdr->lcid = pcb->cid;
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
2619
__func__, m->m_pkthdr.len, hdr->length, hdr->lcid,
sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap.c
2620
hdr->token, pcb->state);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
1912
struct rfcomm_frame_hdr *hdr = NULL;
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
1931
hdr = mtod(m0, struct rfcomm_frame_hdr *);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
1932
dlci = RFCOMM_DLCI(hdr->address);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
1933
type = RFCOMM_TYPE(hdr->control);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
1936
if (!RFCOMM_EA(hdr->length)) {
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
1937
bcopy(&hdr->length, &length, sizeof(length));
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
1939
m_adj(m0, sizeof(*hdr) + 1);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
1941
length = hdr->length >> 1;
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
1942
m_adj(m0, sizeof(*hdr));
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
1947
__func__, type, dlci, length, RFCOMM_CR(hdr->address),
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
1948
RFCOMM_PF(hdr->control), m0->m_pkthdr.len);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
1967
if (ng_btsocket_rfcomm_check_fcs((u_int8_t *) hdr, type, m->m_data[m->m_len - 1])) {
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2002
if (RFCOMM_PF(hdr->control))
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2007
if (RFCOMM_PF(hdr->control))
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2012
if (RFCOMM_PF(hdr->control))
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2025
RFCOMM_PF(hdr->control), m0);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2504
struct rfcomm_mcc_hdr *hdr = NULL;
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2515
hdr = mtod(m0, struct rfcomm_mcc_hdr *);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2516
cr = RFCOMM_CR(hdr->type);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2517
type = RFCOMM_MCC_TYPE(hdr->type);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2518
length = RFCOMM_MCC_LENGTH(hdr->length);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2521
if (sizeof(*hdr) + length != m0->m_pkthdr.len) {
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2559
"mtu=%d, len=%d\n", __func__, RFCOMM_MCC_TYPE(*((u_int8_t *)(hdr + 1))), cr,
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2572
hdr = mtod(m0, struct rfcomm_mcc_hdr *);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2573
m0->m_pkthdr.len = m0->m_len = sizeof(*hdr);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2576
hdr->type = RFCOMM_MKMCC_TYPE(0, RFCOMM_MCC_NSC);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2577
hdr->length = RFCOMM_MKLEN8(1);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2600
struct rfcomm_mcc_hdr *hdr = mtod(m0, struct rfcomm_mcc_hdr *);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2607
"len=%d\n", __func__, RFCOMM_CR(hdr->type), RFCOMM_MCC_LENGTH(hdr->length),
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2610
if (RFCOMM_CR(hdr->type)) {
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2611
hdr->type = RFCOMM_MKMCC_TYPE(0, RFCOMM_MCC_TEST);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2627
struct rfcomm_mcc_hdr *hdr = mtod(m0, struct rfcomm_mcc_hdr *);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2628
u_int8_t type = RFCOMM_MCC_TYPE(hdr->type);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2642
RFCOMM_CR(hdr->type), RFCOMM_MCC_LENGTH(hdr->length),
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2645
if (RFCOMM_CR(hdr->type)) {
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2651
hdr->type = RFCOMM_MKMCC_TYPE(0, type);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2667
struct rfcomm_mcc_hdr *hdr = mtod(m0, struct rfcomm_mcc_hdr*);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2668
struct rfcomm_mcc_msc *msc = (struct rfcomm_mcc_msc *)(hdr+1);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2677
__func__, RFCOMM_DLCI(msc->address), RFCOMM_CR(hdr->type),
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2678
RFCOMM_MCC_LENGTH(hdr->length), s->state, s->flags,
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2681
if (RFCOMM_CR(hdr->type)) {
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2709
hdr->type = RFCOMM_MKMCC_TYPE(0, RFCOMM_MCC_MSC);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2735
struct rfcomm_mcc_hdr *hdr = mtod(m0, struct rfcomm_mcc_hdr *);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2736
struct rfcomm_mcc_rpn *rpn = (struct rfcomm_mcc_rpn *)(hdr + 1);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2747
__func__, RFCOMM_DLCI(rpn->dlci), RFCOMM_CR(hdr->type),
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2748
RFCOMM_MCC_LENGTH(hdr->length), s->state, s->flags,
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2751
if (RFCOMM_CR(hdr->type)) {
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2754
if (RFCOMM_MCC_LENGTH(hdr->length) == 1) {
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2824
m0->m_pkthdr.len = m0->m_len = sizeof(*hdr) + sizeof(*rpn);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2826
hdr->type = RFCOMM_MKMCC_TYPE(0, RFCOMM_MCC_RPN);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2842
struct rfcomm_mcc_hdr *hdr = mtod(m0, struct rfcomm_mcc_hdr *);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2843
struct rfcomm_mcc_rls *rls = (struct rfcomm_mcc_rls *)(hdr + 1);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2858
RFCOMM_CR(hdr->type), RFCOMM_MCC_LENGTH(hdr->length),
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2861
if (RFCOMM_CR(hdr->type)) {
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2867
hdr->type = RFCOMM_MKMCC_TYPE(0, RFCOMM_MCC_RLS);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2883
struct rfcomm_mcc_hdr *hdr = mtod(m0, struct rfcomm_mcc_hdr*);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2884
struct rfcomm_mcc_pn *pn = (struct rfcomm_mcc_pn *)(hdr+1);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2894
__func__, pn->dlci, RFCOMM_CR(hdr->type),
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2895
RFCOMM_MCC_LENGTH(hdr->length), pn->flow_control, pn->priority,
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2911
if (RFCOMM_CR(hdr->type)) {
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2924
hdr->type = RFCOMM_MKMCC_TYPE(0, RFCOMM_MCC_PN);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2946
} else if (RFCOMM_CR(hdr->type)) {
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
2966
hdr->type = RFCOMM_MKMCC_TYPE(0, RFCOMM_MCC_PN);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3053
struct rfcomm_cmd_hdr *hdr = NULL;
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3084
m->m_pkthdr.len = m->m_len = sizeof(*hdr);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3086
hdr = mtod(m, struct rfcomm_cmd_hdr *);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3087
hdr->address = RFCOMM_MKADDRESS(cr, dlci);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3088
hdr->control = RFCOMM_MKCONTROL(type, 1);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3089
hdr->length = RFCOMM_MKLEN8(0);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3090
hdr->fcs = ng_btsocket_rfcomm_fcs3((u_int8_t *) hdr);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3105
struct rfcomm_frame_hdr *hdr = NULL;
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3116
m->m_pkthdr.len = m->m_len = sizeof(*hdr);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3126
hdr = mtod(m, struct rfcomm_frame_hdr *);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3127
hdr->address = address;
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3128
hdr->control = RFCOMM_MKCONTROL(RFCOMM_FRAME_UIH, pf);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3131
mcrc->m_data[0] = ng_btsocket_rfcomm_fcs2((u_int8_t *) hdr);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3138
bcopy(&l, &hdr->length, sizeof(l));
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3142
hdr->length = RFCOMM_MKLEN8(length);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3179
struct rfcomm_mcc_hdr *hdr = NULL;
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3189
m->m_pkthdr.len = m->m_len = sizeof(*hdr) + sizeof(*msc);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3191
hdr = mtod(m, struct rfcomm_mcc_hdr *);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3192
msc = (struct rfcomm_mcc_msc *)(hdr + 1);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3194
hdr->type = RFCOMM_MKMCC_TYPE(1, RFCOMM_MCC_MSC);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3195
hdr->length = RFCOMM_MKLEN8(sizeof(*msc));
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3217
struct rfcomm_mcc_hdr *hdr = NULL;
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3227
m->m_pkthdr.len = m->m_len = sizeof(*hdr) + sizeof(*pn);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3229
hdr = mtod(m, struct rfcomm_mcc_hdr *);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3230
pn = (struct rfcomm_mcc_pn *)(hdr + 1);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3232
hdr->type = RFCOMM_MKMCC_TYPE(1, RFCOMM_MCC_PN);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
3233
hdr->length = RFCOMM_MKLEN8(sizeof(*pn));
sys/netgraph7/frame_relay/ng_frame_relay.c
136
static int ngfrm_addrlen(char *hdr);
sys/netgraph7/frame_relay/ng_frame_relay.c
312
ngfrm_addrlen(char *hdr)
sys/netgraph7/frame_relay/ng_frame_relay.c
314
if (hdr[0] & BYTEX_EA)
sys/netgraph7/frame_relay/ng_frame_relay.c
316
if (hdr[1] & BYTEX_EA)
sys/netgraph7/frame_relay/ng_frame_relay.c
318
if (hdr[2] & BYTEX_EA)
sys/netgraph7/frame_relay/ng_frame_relay.c
320
if (hdr[3] & BYTEX_EA)
sys/netgraph7/l2tp/ng_l2tp.c
1002
if ((hdr & L2TP_HDR_SEQ) != 0) {
sys/netgraph7/l2tp/ng_l2tp.c
1119
u_int16_t hdr;
sys/netgraph7/l2tp/ng_l2tp.c
1153
hdr = L2TP_DATA_HDR;
sys/netgraph7/l2tp/ng_l2tp.c
1155
hdr |= L2TP_HDR_LEN;
sys/netgraph7/l2tp/ng_l2tp.c
1161
hdr |= L2TP_HDR_SEQ;
sys/netgraph7/l2tp/ng_l2tp.c
1166
mtod(m, u_int16_t *)[0] = htons(hdr);
sys/netgraph7/l2tp/ng_l2tp.c
773
u_int16_t hdr;
sys/netgraph7/l2tp/ng_l2tp.c
811
hdr = ntohs(*mtod(m, u_int16_t *));
sys/netgraph7/l2tp/ng_l2tp.c
815
is_ctrl = (hdr & L2TP_HDR_CTRL) != 0;
sys/netgraph7/l2tp/ng_l2tp.c
816
if ((hdr & req_bits[is_ctrl][0]) != 0
sys/netgraph7/l2tp/ng_l2tp.c
817
|| (~hdr & req_bits[is_ctrl][1]) != 0) {
sys/netgraph7/l2tp/ng_l2tp.c
824
+ (2 * ((hdr & L2TP_HDR_LEN) != 0)) /* length field */
sys/netgraph7/l2tp/ng_l2tp.c
825
+ (4 * ((hdr & L2TP_HDR_SEQ) != 0)) /* seq # fields */
sys/netgraph7/l2tp/ng_l2tp.c
826
+ (2 * ((hdr & L2TP_HDR_OFF) != 0))) { /* offset field */
sys/netgraph7/l2tp/ng_l2tp.c
834
if ((hdr & L2TP_HDR_LEN) != 0) {
sys/netgraph7/l2tp/ng_l2tp.c
871
if ((hdr & L2TP_HDR_CTRL) == 0) {
sys/netgraph7/l2tp/ng_l2tp.c
883
if ((hdr & L2TP_HDR_SEQ) != 0) {
sys/netgraph7/l2tp/ng_l2tp.c
900
if ((hdr & L2TP_HDR_OFF) != 0) {
sys/netgraph7/l2tp/ng_l2tp.c
923
if ((hdr & L2TP_HDR_CTRL) != 0) {
sys/netgraph7/l2tp/ng_l2tp.c
999
hpriv->conf.enable_dseq = ((hdr & L2TP_HDR_SEQ) != 0);
sys/netgraph7/netgraph/ng_parse.c
1389
const struct ng_mesg *const hdr
sys/netgraph7/netgraph/ng_parse.c
1390
= (const struct ng_mesg *)(data - sizeof(*hdr));
sys/netgraph7/netgraph/ng_parse.c
1419
if (sizeof(*hdr) + *off < workSize) {
sys/netgraph7/netgraph/ng_parse.c
1420
int tempsize = workSize - sizeof(*hdr) - *off;
sys/netgraph7/netgraph/ng_parse.c
1422
bcopy(hdr, workBuf, sizeof(*hdr) + *off);
sys/netgraph7/netgraph/ng_parse.c
1424
+ sizeof(*hdr), workBuf + sizeof(*hdr) + *off,
sys/netgraph7/netgraph/ng_parse.c
1426
&& bcmp(workBuf + sizeof(*hdr) + *off,
sys/netgraph7/ppp/ng_ppp.c
883
uint16_t hdr[2];
sys/netgraph7/ppp/ng_ppp.c
893
hdr[0] = htons(linkNum);
sys/netgraph7/ppp/ng_ppp.c
894
hdr[1] = htons(proto);
sys/netgraph7/ppp/ng_ppp.c
897
if ((m = ng_ppp_prepend(m, &hdr, 4)) == NULL) {
sys/netgraph7/pppoe/ng_pppoe.c
1051
struct pppoe_tag hdr;
sys/netgraph7/pppoe/ng_pppoe.c
1069
uniqtag.hdr.tag_type = PTT_HOST_UNIQ;
sys/netgraph7/pppoe/ng_pppoe.c
1070
uniqtag.hdr.tag_len = htons((u_int16_t)sizeof(uniqtag.data));
sys/netgraph7/pppoe/ng_pppoe.c
1073
insert_tag(sp, &uniqtag.hdr);
sys/netgraph7/pppoe/ng_pppoe.c
1074
insert_tag(sp, &neg->service.hdr);
sys/netgraph7/pppoe/ng_pppoe.c
1178
struct pppoe_tag hdr;
sys/netgraph7/pppoe/ng_pppoe.c
1226
uniqtag.hdr.tag_type = PTT_AC_COOKIE;
sys/netgraph7/pppoe/ng_pppoe.c
1227
uniqtag.hdr.tag_len = htons((u_int16_t)sizeof(sp));
sys/netgraph7/pppoe/ng_pppoe.c
1230
insert_tag(sp, &neg->ac_name.hdr); /* AC_NAME */
sys/netgraph7/pppoe/ng_pppoe.c
1241
(neg->service.hdr.tag_len != 0)) {
sys/netgraph7/pppoe/ng_pppoe.c
1242
insert_tag(sp, &neg->service.hdr); /* SERVICE */
sys/netgraph7/pppoe/ng_pppoe.c
1246
insert_tag(sp, &uniqtag.hdr);
sys/netgraph7/pppoe/ng_pppoe.c
1467
insert_tag(sp, &neg->service.hdr); /* Service */
sys/netgraph7/pppoe/ng_pppoe.c
1522
insert_tag(sp, &neg->ac_name.hdr); /* AC_NAME */
sys/netgraph7/pppoe/ng_pppoe.c
862
neg->service.hdr.tag_type = PTT_SRV_NAME;
sys/netgraph7/pppoe/ng_pppoe.c
863
neg->service.hdr.tag_len = htons((uint16_t)srvlen);
sys/netgraph7/pppoe/ng_pppoe.c
878
neg->service.hdr.tag_type = PTT_SRV_NAME;
sys/netgraph7/pppoe/ng_pppoe.c
879
neg->service.hdr.tag_len =
sys/netgraph7/pppoe/ng_pppoe.c
900
neg->ac_name.hdr.tag_type = PTT_AC_NAME;
sys/netgraph7/pppoe/ng_pppoe.c
901
neg->ac_name.hdr.tag_len =
sys/netgraph7/pppoe/ng_pppoe.c
925
neg->service.hdr.tag_type = PTT_SRV_NAME;
sys/netgraph7/pppoe/ng_pppoe.c
926
neg->service.hdr.tag_len =
sys/netgraph7/pppoe/ng_pppoe.h
229
struct pppoe_tag hdr;
sys/netgraph7/vjc/ng_vjc.c
439
u_char *hdr;
sys/netgraph7/vjc/ng_vjc.c
463
&priv->slc, &hdr, &hlen);
sys/netgraph7/vjc/ng_vjc.c
491
bcopy(hdr, mtod(hm, u_char *), hlen);
sys/netgraph7/vjc/ng_vjc.c
500
u_char *hdr;
sys/netgraph7/vjc/ng_vjc.c
519
&priv->slc, &hdr, &hlen) < 0) {
sys/netinet/in_pcb.c
1560
const struct inp_localgrphead *hdr;
sys/netinet/in_pcb.c
1569
hdr = &pcbinfo->localgrphashbase[
sys/netinet/in_pcb.c
1572
LIST_FOREACH(grp, hdr, il_list) {
sys/netinet/in_pcb.c
1610
const struct inp_localgrphead *hdr;
sys/netinet/in_pcb.c
1621
hdr = &pcbinfo->localgrphashbase[
sys/netinet/in_pcb.c
1640
LIST_FOREACH(grp, hdr, il_list) {
sys/netinet/in_pcb.c
2067
struct inp_localgrphead *hdr;
sys/netinet/in_pcb.c
2092
hdr = &pcbinfo->localgrphashbase[
sys/netinet/in_pcb.c
2096
LIST_FOREACH(grp, hdr, il_list) {
sys/netinet/in_pcb.c
2126
LIST_INSERT_HEAD(hdr, grp, il_list);
sys/netinet/in_pcb.c
2179
LIST_INSERT_HEAD(hdr, grp_alloc, il_list);
sys/netinet/in_pcb.c
2298
struct inp_localgrphead *hdr;
sys/netinet/in_pcb.c
2306
hdr = &pcbinfo->localgrphashbase[
sys/netinet/in_pcb.c
2309
LIST_FOREACH(grp, hdr, il_list) {
sys/netinet6/ip6_output.c
892
struct ip6_ext *hdr = h;
sys/netinet6/ip6_output.c
896
if (hdr == NULL)
sys/netinet6/ip6_output.c
899
hlen = (hdr->ip6e_len + 1) * 8;
sys/netinet6/ip6_output.c
908
bcopy(hdr, mtod(m, caddr_t), hlen);
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
781
michael_mic_hdr(const struct ieee80211_frame *wh0, uint8_t hdr[16])
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
788
IEEE80211_ADDR_COPY(hdr, wh->i_addr1); /* DA */
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
789
IEEE80211_ADDR_COPY(hdr + IEEE80211_ADDR_LEN, wh->i_addr2);
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
792
IEEE80211_ADDR_COPY(hdr, wh->i_addr3); /* DA */
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
793
IEEE80211_ADDR_COPY(hdr + IEEE80211_ADDR_LEN, wh->i_addr2);
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
796
IEEE80211_ADDR_COPY(hdr, wh->i_addr1); /* DA */
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
797
IEEE80211_ADDR_COPY(hdr + IEEE80211_ADDR_LEN, wh->i_addr3);
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
800
IEEE80211_ADDR_COPY(hdr, wh->i_addr3); /* DA */
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
801
IEEE80211_ADDR_COPY(hdr + IEEE80211_ADDR_LEN, wh->i_addr4);
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
808
hdr[12] = qwh->i_qos[0] & IEEE80211_QOS_TID;
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
810
hdr[12] = 0;
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
811
hdr[13] = hdr[14] = hdr[15] = 0; /* reserved */
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
819
uint8_t hdr[16];
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
824
michael_mic_hdr(mtod(m, struct ieee80211_frame *), hdr);
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
830
l ^= get_le32(hdr);
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
832
l ^= get_le32(&hdr[4]);
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
834
l ^= get_le32(&hdr[8]);
sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c
836
l ^= get_le32(&hdr[12]);
sys/sys/devfs.h
166
struct lwkt_msg hdr;
sys/sys/disk.h
191
struct lwkt_msg hdr;
sys/sys/imgact_elf.h
61
Elf_Note hdr;
sys/sys/mbuf.h
112
void *hdr; /* saved hdr pos in mbuf, for ECN */
sys/sys/systm.h
233
void hexdump (const void *ptr, int length, const char *hdr, int flags);
sys/vfs/devfs/devfs_core.c
1117
lwkt_initmsg(&devfs_msg->hdr, &devfs_dispose_port, 0);
sys/vfs/devfs/devfs_core.c
1119
devfs_msg->hdr.u.ms_result = cmd;
sys/vfs/devfs/devfs_core.c
1123
lwkt_replymsg(&devfs_msg->hdr, 0);
sys/vfs/devfs/devfs_core.c
1144
lwkt_initmsg(&devfs_msg->hdr, &rep_port, 0);
sys/vfs/devfs/devfs_core.c
1146
devfs_msg->hdr.u.ms_result = cmd;
sys/vfs/devfs/devfs_core.c
1268
(unsigned int)msg->hdr.u.ms_result);
sys/vfs/devfs/devfs_core.c
1270
lwkt_replymsg(&msg->hdr, 0);
sys/vfs/devfs/devfs_core.c
1291
switch (msg->hdr.u.ms_result) {
sys/vfs/ext2fs/ext2_extents.h
107
#define EXT_FIRST_EXTENT(hdr) ((struct ext4_extent *)(((char *)(hdr)) + \
sys/vfs/ext2fs/ext2_extents.h
109
#define EXT_FIRST_INDEX(hdr) ((struct ext4_extent_index *)(((char *)(hdr)) + \
sys/vfs/ext2fs/ext2_extents.h
111
#define EXT_LAST_EXTENT(hdr) (EXT_FIRST_EXTENT((hdr)) + le16toh((hdr)->eh_ecount) - 1)
sys/vfs/ext2fs/ext2_extents.h
112
#define EXT_LAST_INDEX(hdr) (EXT_FIRST_INDEX((hdr)) + le16toh((hdr)->eh_ecount) - 1)
sys/vfs/ext2fs/ext2_extents.h
113
#define EXT4_EXTENT_TAIL_OFFSET(hdr) (sizeof(struct ext4_extent_header) + \
sys/vfs/ext2fs/ext2_extents.h
114
(sizeof(struct ext4_extent) * le16toh((hdr)->eh_max)))
sys/vfs/ext2fs/ext2_extents.h
117
#define EXT_MAX_EXTENT(hdr) (EXT_FIRST_EXTENT(hdr) + le16toh((hdr)->eh_max) - 1)
sys/vfs/ext2fs/ext2_extents.h
118
#define EXT_MAX_INDEX(hdr) (EXT_FIRST_INDEX((hdr)) + le16toh((hdr)->eh_max) - 1)
tools/tools/net80211/wesside/dics/dics.c
113
struct cmsghdr hdr;
tools/tools/net80211/wesside/dics/dics.c
138
if ( ctl.hdr.cmsg_level != IPPROTO_IP ||
tools/tools/net80211/wesside/dics/dics.c
140
ctl.hdr.cmsg_type != IP_TTL
tools/tools/net80211/wesside/dics/dics.c
142
ctl.hdr.cmsg_type != IP_RECVTTL
tools/tools/net80211/wesside/dics/dics.c
147
ctl.hdr.cmsg_len, ctl.hdr.cmsg_level, ctl.hdr.cmsg_type);
usr.bin/gcore/elfcore.c
119
hdr = malloc(hdrsize);
usr.bin/gcore/elfcore.c
120
if ((hdr = malloc(hdrsize)) == NULL)
usr.bin/gcore/elfcore.c
122
elf_corehdr(fd, pid, map, seginfo.count, hdr, hdrsize);
usr.bin/gcore/elfcore.c
129
php = (Elf_Phdr *)((char *)hdr + sizeof(Elf_Ehdr)) + 1;
usr.bin/gcore/elfcore.c
159
free(hdr);
usr.bin/gcore/elfcore.c
225
elf_corehdr(int fd, pid_t pid, vm_map_entry_t map, int numsegs, void *hdr,
usr.bin/gcore/elfcore.c
237
memset(hdr, 0, hdrsize);
usr.bin/gcore/elfcore.c
239
elf_puthdr(map, hdr, &off, &status, &fpregset, &psinfo, numsegs);
usr.bin/gcore/elfcore.c
242
if (write(fd, hdr, hdrsize) == -1)
usr.bin/gcore/elfcore.c
75
void *hdr, size_t hdrsize);
usr.bin/gcore/elfcore.c
92
void *hdr;
usr.bin/gzip/unpack.c
151
unsigned char hdr[PACK_HEADER_LENGTH]; /* buffer for header */
usr.bin/gzip/unpack.c
157
memcpy(hdr, pre, prelen);
usr.bin/gzip/unpack.c
160
bytesread = read(in, hdr + prelen, PACK_HEADER_LENGTH - prelen);
usr.bin/gzip/unpack.c
170
unpackd->uncompressed_size |= hdr[i];
usr.bin/gzip/unpack.c
174
unpackd->treelevels = hdr[6];
usr.bin/kcollect/kcollect.c
613
char hdr[32];
usr.bin/kcollect/kcollect.c
637
snprintf(hdr, sizeof(hdr), "%s%d", HDR_BASE, i);
usr.bin/kcollect/kcollect.c
638
key.dptr = hdr;
usr.bin/kcollect/kcollect.c
691
char hdr[32];
usr.bin/kcollect/kcollect.c
699
snprintf(hdr, sizeof(hdr), "%s%d", HDR_BASE, i);
usr.bin/kcollect/kcollect.c
700
key.dptr = hdr;
usr.bin/kcollect/kcollect.c
701
key.dsize = strlen(hdr) + 1;
usr.bin/ldd/ldd.c
107
} hdr;
usr.bin/ldd/ldd.c
118
if ((n = read(fd, &hdr, sizeof hdr)) == -1) {
usr.bin/ldd/ldd.c
127
if ((size_t)n >= sizeof hdr.elf && IS_ELF(hdr.elf)) {
usr.bin/ldd/ldd.c
154
} else if (hdr.elf.e_type == ET_DYN) {
usr.bin/top/top.c
493
char *hdr;
usr.bin/top/top.c
526
hdr = gstate->header_text;
usr.bin/top/top.c
555
i_header(hdr);
usr.bin/top/top.c
580
u_header(hdr);
usr.sbin/fstyp/hfsplus.c
104
struct hfsp_vol_hdr *hdr;
usr.sbin/fstyp/hfsplus.c
108
hdr = read_buf(fp, VOL_HDR_OFF, sizeof(*hdr));
usr.sbin/fstyp/hfsplus.c
109
if (hdr == NULL)
usr.sbin/fstyp/hfsplus.c
112
if ((strncmp(hdr->hp_signature, "H+", 2) != 0 || hdr->hp_version != 4)
usr.sbin/fstyp/hfsplus.c
114
(strncmp(hdr->hp_signature, "HX", 2) != 0 || hdr->hp_version != 5))
usr.sbin/fstyp/hfsplus.c
123
free(hdr);
usr.sbin/fwcontrol/fwcontrol.c
297
struct csrhdr *hdr;
usr.sbin/fwcontrol/fwcontrol.c
301
hdr = (struct csrhdr *)crom_buf;
usr.sbin/fwcontrol/fwcontrol.c
302
if (hdr->info_len == 1) {
usr.sbin/fwcontrol/fwcontrol.c
304
reg = (struct csrreg *)hdr;
usr.sbin/fwcontrol/fwcontrol.c
309
hdr->info_len, hdr->crc_len, hdr->crc);
usr.sbin/fwcontrol/fwcontrol.c
310
crc = crom_crc(crom_buf+1, hdr->crc_len);
usr.sbin/fwcontrol/fwcontrol.c
311
if (crc == hdr->crc)
usr.sbin/fwcontrol/fwcontrol.c
315
parse_bus_info_block(crom_buf+1, hdr->info_len);
usr.sbin/fwcontrol/fwdv.c
257
u_int32_t iso_data, iso_empty, hdr[TNBUF + NEMPTY][3];
usr.sbin/fwcontrol/fwdv.c
295
bzero(hdr[0], sizeof(hdr[0]));
usr.sbin/fwcontrol/fwdv.c
296
hdr[0][0] = iso_data;
usr.sbin/fwcontrol/fwdv.c
297
ciph = (struct ciphdr *)&hdr[0][1];
usr.sbin/fwcontrol/fwdv.c
305
bcopy(hdr[0], hdr[i], sizeof(hdr[0]));
usr.sbin/fwcontrol/fwdv.c
311
htonl(hdr[0]), htonl(hdr[1]), htonl(hdr[2]));
usr.sbin/fwcontrol/fwdv.c
342
ciph = (struct ciphdr *)&hdr[nhdr][1];
usr.sbin/fwcontrol/fwdv.c
377
bcopy(hdr[nhdr], hdr[nhdr+1], sizeof(hdr[0]));
usr.sbin/fwcontrol/fwdv.c
378
hdr[nhdr][0] = iso_empty;
usr.sbin/fwcontrol/fwdv.c
379
wbuf[vec].iov_base = (char *)hdr[nhdr];
usr.sbin/fwcontrol/fwdv.c
380
wbuf[vec++].iov_len = sizeof(hdr[0]);
usr.sbin/fwcontrol/fwdv.c
384
hdr[nhdr][0] = iso_data;
usr.sbin/fwcontrol/fwdv.c
385
wbuf[vec].iov_base = (char *)hdr[nhdr];
usr.sbin/fwcontrol/fwdv.c
386
wbuf[vec++].iov_len = sizeof(hdr[0]);
usr.sbin/lpr/lpr/lpr.c
167
hdr++;
usr.sbin/lpr/lpr/lpr.c
172
hdr++;
usr.sbin/lpr/lpr/lpr.c
189
hdr++;
usr.sbin/lpr/lpr/lpr.c
213
hdr = 0;
usr.sbin/lpr/lpr/lpr.c
328
if (hdr && !pp->no_header) {
usr.sbin/lpr/lpr/lpr.c
76
static int hdr = 1; /* print header or not (default is yes) */
usr.sbin/mpsutil/mps_debug.c
64
struct mps_dumpreq_hdr *hdr;
usr.sbin/mpsutil/mps_debug.c
92
hdr = (struct mps_dumpreq_hdr *)buf;
usr.sbin/mpsutil/mps_debug.c
93
numframes = hdr->numframes;
usr.sbin/mpsutil/mps_debug.c
96
"desc.lo= %#08x\n", hdr->smid, hdr->state,
usr.sbin/mpsutil/mps_debug.c
97
hdr->numframes, hdr->deschi, hdr->desclo);
usr.sbin/mpsutil/mps_show.c
735
MPI2_CONFIG_PAGE_HEADER *hdr;
usr.sbin/mpsutil/mps_show.c
788
hdr = data;
usr.sbin/mpsutil/mps_show.c
789
len = hdr->PageLength * 4;
usr.sbin/mpsutil/mps_show.c
790
page = hdr->PageType & 0xf;
usr.sbin/mpsutil/mps_show.c
791
attrs = hdr->PageType >> 4;
usr.sbin/mpsutil/mpsutil.c
152
hexdump(const void *ptr, int length, const char *hdr, int flags)
usr.sbin/mpsutil/mpsutil.c
171
if (hdr != NULL)
usr.sbin/mpsutil/mpsutil.c
172
printf("%s", hdr);
usr.sbin/mpsutil/mpsutil.h
100
void hexdump(const void *ptr, int length, const char *hdr, int flags);
usr.sbin/mptutil/mpt_cmd.c
471
CONFIG_PAGE_HEADER *hdr;
usr.sbin/mptutil/mpt_cmd.c
478
hdr = buf;
usr.sbin/mptutil/mpt_cmd.c
479
req.len = hdr->PageLength * 4;
usr.sbin/mptutil/mpt_cmd.c
577
hexdump(const void *ptr, int length, const char *hdr, int flags)
usr.sbin/mptutil/mpt_cmd.c
596
if (hdr != NULL)
usr.sbin/mptutil/mpt_cmd.c
597
printf("%s", hdr);
usr.sbin/mptutil/mptutil.h
89
void hexdump(const void *ptr, int length, const char *hdr, int flags);
usr.sbin/nscd/nscdcli.c
137
struct cmsghdr hdr;
usr.sbin/nscd/nscdcli.c
143
cmsg.hdr.cmsg_len = sizeof(cmsg);
usr.sbin/nscd/nscdcli.c
144
cmsg.hdr.cmsg_level = SOL_SOCKET;
usr.sbin/nscd/nscdcli.c
145
cmsg.hdr.cmsg_type = SCM_CREDS;
usr.sbin/nscd/query.c
160
struct cmsghdr hdr;
usr.sbin/nscd/query.c
182
if (cmsg.hdr.cmsg_len < CMSG_LEN(sizeof(struct cmsgcred))
usr.sbin/nscd/query.c
183
|| cmsg.hdr.cmsg_level != SOL_SOCKET
usr.sbin/nscd/query.c
184
|| cmsg.hdr.cmsg_type != SCM_CREDS) {
usr.sbin/pflogd/pflogd.c
296
struct pcap_file_header hdr;
usr.sbin/pflogd/pflogd.c
347
hdr.magic = TCPDUMP_MAGIC;
usr.sbin/pflogd/pflogd.c
348
hdr.version_major = PCAP_VERSION_MAJOR;
usr.sbin/pflogd/pflogd.c
349
hdr.version_minor = PCAP_VERSION_MINOR;
usr.sbin/pflogd/pflogd.c
351
hdr.thiszone = 0;
usr.sbin/pflogd/pflogd.c
352
hdr.snaplen = hpcap->snapshot;
usr.sbin/pflogd/pflogd.c
353
hdr.sigfigs = 0;
usr.sbin/pflogd/pflogd.c
354
hdr.linktype = hpcap->linktype;
usr.sbin/pflogd/pflogd.c
356
if (fwrite((char *)&hdr, sizeof(hdr), 1, fp) != 1) {
usr.sbin/pflogd/pflogd.c
381
struct pcap_file_header hdr;
usr.sbin/pflogd/pflogd.c
395
if (fread((char *)&hdr, sizeof(hdr), 1, fp) != 1) {
usr.sbin/pflogd/pflogd.c
400
if (hdr.magic != TCPDUMP_MAGIC ||
usr.sbin/pflogd/pflogd.c
401
hdr.version_major != PCAP_VERSION_MAJOR ||
usr.sbin/pflogd/pflogd.c
402
hdr.version_minor != PCAP_VERSION_MINOR ||
usr.sbin/pflogd/pflogd.c
403
(int)hdr.linktype != hpcap->linktype ||
usr.sbin/pflogd/pflogd.c
404
hdr.snaplen > PFLOGD_MAXSNAPLEN) {
usr.sbin/pflogd/pflogd.c
408
pos = sizeof(hdr);
usr.sbin/pflogd/pflogd.c
417
if (ph.caplen > hdr.snaplen || ph.caplen > PFLOGD_MAXSNAPLEN)
usr.sbin/pflogd/pflogd.c
428
if ((int)hdr.snaplen != cur_snaplen) {
usr.sbin/pflogd/pflogd.c
431
hdr.snaplen);
usr.sbin/pflogd/pflogd.c
432
if (set_snaplen(hdr.snaplen)) {
usr.sbin/ppp/arp.c
121
arpmsg.hdr.rtm_type = add ? RTM_ADD : RTM_DELETE;
usr.sbin/ppp/arp.c
122
arpmsg.hdr.rtm_flags = RTF_ANNOUNCE | RTF_HOST | RTF_STATIC;
usr.sbin/ppp/arp.c
123
arpmsg.hdr.rtm_version = RTM_VERSION;
usr.sbin/ppp/arp.c
124
arpmsg.hdr.rtm_seq = ++bundle->routing_seq;
usr.sbin/ppp/arp.c
125
arpmsg.hdr.rtm_addrs = RTA_DST | RTA_GATEWAY;
usr.sbin/ppp/arp.c
126
arpmsg.hdr.rtm_inits = RTV_EXPIRE;
usr.sbin/ppp/arp.c
132
arpmsg.hdr.rtm_msglen = (char *) &arpmsg.hwa - (char *) &arpmsg
usr.sbin/ppp/arp.c
136
if (ID0write(routes, &arpmsg, arpmsg.hdr.rtm_msglen) < 0 &&
usr.sbin/ppp/arp.c
93
struct rt_msghdr hdr;
usr.sbin/ppp/auth.c
402
if (len >= sizeof authp->in.hdr) {
usr.sbin/ppp/auth.c
403
bp = mbuf_Read(bp, (u_char *)&authp->in.hdr, sizeof authp->in.hdr);
usr.sbin/ppp/auth.c
404
if (len >= ntohs(authp->in.hdr.length))
usr.sbin/ppp/auth.c
406
authp->in.hdr.length = htons(0);
usr.sbin/ppp/auth.c
408
ntohs(authp->in.hdr.length), len);
usr.sbin/ppp/auth.c
410
authp->in.hdr.length = htons(0);
usr.sbin/ppp/auth.c
412
(int)(sizeof authp->in.hdr), len);
usr.sbin/ppp/auth.h
44
struct fsmheader hdr;
usr.sbin/ppp/ccp.c
279
ccp->in.opt.hdr.id = -1;
usr.sbin/ppp/ccp.c
365
if ((*o)->val.hdr.id == algorithm[f]->id && (*o)->algorithm == (int)f)
usr.sbin/ppp/ccp.c
370
(*o)->val.hdr.id = algorithm[f]->id;
usr.sbin/ppp/ccp.c
371
(*o)->val.hdr.len = 2;
usr.sbin/ppp/ccp.c
377
if (cp + (*o)->val.hdr.len > buff + sizeof buff) {
usr.sbin/ppp/ccp.c
381
memcpy(cp, &(*o)->val, (*o)->val.hdr.len);
usr.sbin/ppp/ccp.c
382
cp += (*o)->val.hdr.len;
usr.sbin/ppp/ccp.c
384
ccp->my_proto = (*o)->val.hdr.id;
usr.sbin/ppp/ccp.c
574
while (end >= cp + sizeof(opt->hdr)) {
usr.sbin/ppp/ccp.c
579
if (algorithm[f]->id == opt->hdr.id)
usr.sbin/ppp/ccp.c
586
log_Printf(LogCCP, " %s[%d] %s\n", protoname(opt->hdr.id),
usr.sbin/ppp/ccp.c
587
opt->hdr.len, disp);
usr.sbin/ppp/ccp.c
592
ccp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/ccp.c
603
memcpy(&ccp->in.opt, opt, opt->hdr.len);
usr.sbin/ppp/ccp.c
613
ccp->his_proto = opt->hdr.id;
usr.sbin/ppp/ccp.c
623
if (o->val.hdr.id == opt->hdr.id)
usr.sbin/ppp/ccp.c
629
memcpy(&o->val, opt, opt->hdr.len);
usr.sbin/ppp/ccp.c
634
ccp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/ccp.c
646
ccp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/chap.c
715
ntohs(chap->auth.in.hdr.length) == 0)
usr.sbin/ppp/chap.c
717
else if (chap->auth.in.hdr.code == 0 || chap->auth.in.hdr.code > MAXCHAPCODE)
usr.sbin/ppp/chap.c
719
chap->auth.in.hdr.code);
usr.sbin/ppp/chap.c
724
if (chap->auth.in.hdr.code != CHAP_CHALLENGE &&
usr.sbin/ppp/chap.c
725
chap->auth.id != chap->auth.in.hdr.id &&
usr.sbin/ppp/chap.c
729
chapcodes[chap->auth.in.hdr.code], chap->auth.in.hdr.id,
usr.sbin/ppp/chap.c
734
chap->auth.id = chap->auth.in.hdr.id; /* We respond with this id */
usr.sbin/ppp/chap.c
739
switch (chap->auth.in.hdr.code) {
usr.sbin/ppp/chap.c
797
switch (chap->auth.in.hdr.code) {
usr.sbin/ppp/chap.c
802
chapcodes[chap->auth.in.hdr.code], alen,
usr.sbin/ppp/chap.c
805
lanman && chap->auth.in.hdr.code == CHAP_RESPONSE ?
usr.sbin/ppp/chap.c
811
chapcodes[chap->auth.in.hdr.code], alen,
usr.sbin/ppp/chap.c
813
lanman && chap->auth.in.hdr.code == CHAP_RESPONSE ?
usr.sbin/ppp/chap.c
823
chapcodes[chap->auth.in.hdr.code], ans);
usr.sbin/ppp/chap.c
826
chapcodes[chap->auth.in.hdr.code]);
usr.sbin/ppp/chap.c
830
switch (chap->auth.in.hdr.code) {
usr.sbin/ppp/deflate.c
207
u_char hdr[2];
usr.sbin/ppp/deflate.c
210
mi_head = mi = mbuf_Read(mi, hdr, 2);
usr.sbin/ppp/deflate.c
214
seq = (hdr[0] << 8) + hdr[1];
usr.sbin/ppp/deflate.c
447
o->hdr.len = 4;
usr.sbin/ppp/deflate.c
456
if (o->hdr.len != 4 || (o->data[0] & 15) != 8 || o->data[1] != '\0')
usr.sbin/ppp/deflate.c
473
if (o->hdr.len != 4 || (o->data[0] & 15) != 8 || o->data[1] != '\0')
usr.sbin/ppp/fsm.c
1144
if (o->hdr.len < sizeof(struct fsm_opt_hdr)) {
usr.sbin/ppp/fsm.c
1145
log_Printf(LogERROR, "Bad option length %d (out of phase?)\n", o->hdr.len);
usr.sbin/ppp/fsm.c
1149
*cp += o->hdr.len;
usr.sbin/ppp/fsm.c
1151
if (o->hdr.len > sizeof(struct fsm_opt)) {
usr.sbin/ppp/fsm.c
1153
o->hdr.len, (int)sizeof(struct fsm_opt));
usr.sbin/ppp/fsm.c
1154
o->hdr.len = sizeof(struct fsm_opt);
usr.sbin/ppp/fsm.c
1163
unsigned cplen = o->hdr.len;
usr.sbin/ppp/fsm.h
172
struct fsm_opt_hdr hdr;
usr.sbin/ppp/fsm.h
178
(o)->hdr.id = (ty); \
usr.sbin/ppp/fsm.h
179
(o)->hdr.len = (length); \
usr.sbin/ppp/ipcp.c
1055
while (end - cp >= (int)sizeof(opt->hdr)) {
usr.sbin/ppp/ipcp.c
1059
snprintf(tbuff, sizeof tbuff, " %s[%d]", protoname(opt->hdr.id),
usr.sbin/ppp/ipcp.c
1060
opt->hdr.len);
usr.sbin/ppp/ipcp.c
1062
switch (opt->hdr.id) {
usr.sbin/ppp/ipcp.c
1090
ipcp->peer_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/ipcp.c
1106
switch (opt->hdr.len) {
usr.sbin/ppp/ipcp.c
1116
nak.hdr.id = TY_COMPPROTO;
usr.sbin/ppp/ipcp.c
1117
nak.hdr.len = 4;
usr.sbin/ppp/ipcp.c
1134
nak.hdr.id = TY_COMPPROTO;
usr.sbin/ppp/ipcp.c
1135
nak.hdr.len = 4;
usr.sbin/ppp/ipcp.c
1144
nak.hdr.id = TY_COMPPROTO;
usr.sbin/ppp/ipcp.c
1145
nak.hdr.len = 6;
usr.sbin/ppp/ipcp.c
1172
ipcp->peer_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/ipcp.c
1202
ipcp->my_reject |= (1 << (opt->hdr.id - TY_ADJUST_NS));
usr.sbin/ppp/ipcp.c
1206
have_ip = ipcp->ns.dns[opt->hdr.id == TY_PRIMARY_DNS ? 0 : 1];
usr.sbin/ppp/ipcp.c
1208
if (opt->hdr.id == TY_PRIMARY_DNS && ipaddr.s_addr != have_ip.s_addr &&
usr.sbin/ppp/ipcp.c
1221
nak.hdr.id = opt->hdr.id;
usr.sbin/ppp/ipcp.c
1222
nak.hdr.len = 6;
usr.sbin/ppp/ipcp.c
1237
memcpy(&ipcp->ns.dns[opt->hdr.id == TY_PRIMARY_DNS ? 0 : 1].s_addr,
usr.sbin/ppp/ipcp.c
1243
ipcp->peer_reject |= (1 << (opt->hdr.id - TY_ADJUST_NS));
usr.sbin/ppp/ipcp.c
1256
ipcp->cfg.ns.nbns[opt->hdr.id == TY_PRIMARY_NBNS ? 0 : 1].s_addr;
usr.sbin/ppp/ipcp.c
1260
ipcp->my_reject |= (1 << (opt->hdr.id - TY_ADJUST_NS));
usr.sbin/ppp/ipcp.c
1266
nak.hdr.id = opt->hdr.id;
usr.sbin/ppp/ipcp.c
1267
nak.hdr.len = 6;
usr.sbin/ppp/ipcp.c
1275
log_Printf(LogIPCP, "MS NBNS req %d - NAK??\n", opt->hdr.id);
usr.sbin/ppp/ipcp.c
1279
log_Printf(LogIPCP, "MS NBNS req %d - REJ??\n", opt->hdr.id);
usr.sbin/ppp/ipcp.c
1286
ipcp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/ipv6cp.c
635
opt.hdr.id = TY_TOKEN;
usr.sbin/ppp/ipv6cp.c
636
opt.hdr.len = IPV6CP_IFIDLEN + 2;
usr.sbin/ppp/ipv6cp.c
657
while (end - cp >= (int)sizeof(opt->hdr)) {
usr.sbin/ppp/ipv6cp.c
661
snprintf(tbuff, sizeof tbuff, " %s[%d]", protoname(opt->hdr.id),
usr.sbin/ppp/ipv6cp.c
662
opt->hdr.len);
usr.sbin/ppp/ipv6cp.c
664
switch (opt->hdr.id) {
usr.sbin/ppp/ipv6cp.c
717
ipv6cp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/ipv6cp.c
724
ipv6cp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
1011
lcp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
1018
lcp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
1036
lcp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
1043
lcp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
1059
if (opt->hdr.len == 2) {
usr.sbin/ppp/lcp.c
1064
sz = opt->hdr.len - 3;
usr.sbin/ppp/lcp.c
1096
lcp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
1098
nak.hdr.id = opt->hdr.id;
usr.sbin/ppp/lcp.c
1099
nak.hdr.len = 3;
usr.sbin/ppp/lcp.c
1128
lcp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
1150
lcp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
1171
lcp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
1181
lcp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
1190
mp_Enddisc(opt->data[0], opt->data + 1, opt->hdr.len - 3));
usr.sbin/ppp/lcp.c
1196
lcp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
1198
lcp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
1200
} else if (opt->hdr.len < sizeof p->dl->peer.enddisc.address + 3 &&
usr.sbin/ppp/lcp.c
1203
p->dl->peer.enddisc.len = opt->hdr.len - 3;
usr.sbin/ppp/lcp.c
1204
memcpy(p->dl->peer.enddisc.address, opt->data + 1, opt->hdr.len - 3);
usr.sbin/ppp/lcp.c
1205
p->dl->peer.enddisc.address[opt->hdr.len - 3] = '\0';
usr.sbin/ppp/lcp.c
1216
lcp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
1222
lcp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
1229
if (sz + 2 > opt->hdr.len)
usr.sbin/ppp/lcp.c
1230
sz = opt->hdr.len - 2;
usr.sbin/ppp/lcp.c
1240
lcp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
1251
nak.hdr.id = TY_CALLBACK;
usr.sbin/ppp/lcp.c
1252
nak.hdr.len = 3;
usr.sbin/ppp/lcp.c
1263
nak.hdr.len = 2; /* XXX: Silly ! */
usr.sbin/ppp/lcp.c
1277
nak.hdr.id = TY_MRU;
usr.sbin/ppp/lcp.c
1278
nak.hdr.len = 4;
usr.sbin/ppp/lcp.c
621
nak.hdr.id = TY_AUTHPROTO;
usr.sbin/ppp/lcp.c
624
nak.hdr.len = 4;
usr.sbin/ppp/lcp.c
631
nak.hdr.len = 5;
usr.sbin/ppp/lcp.c
673
while (end - cp >= (int)sizeof(opt->hdr)) {
usr.sbin/ppp/lcp.c
677
snprintf(request, sizeof request, " %s[%d]", protoname(opt->hdr.id),
usr.sbin/ppp/lcp.c
678
opt->hdr.len);
usr.sbin/ppp/lcp.c
680
switch (opt->hdr.id) {
usr.sbin/ppp/lcp.c
691
lcp->his_reject &= ~(1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
696
nak.hdr.id = TY_MRRU;
usr.sbin/ppp/lcp.c
697
nak.hdr.len = 4;
usr.sbin/ppp/lcp.c
703
nak.hdr.id = TY_MRRU;
usr.sbin/ppp/lcp.c
704
nak.hdr.len = 4;
usr.sbin/ppp/lcp.c
714
lcp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
721
lcp->his_reject &= ~(1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
733
lcp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
758
nak.hdr.id = TY_MRU;
usr.sbin/ppp/lcp.c
759
nak.hdr.len = 4;
usr.sbin/ppp/lcp.c
765
nak.hdr.id = TY_MRU;
usr.sbin/ppp/lcp.c
766
nak.hdr.len = 4;
usr.sbin/ppp/lcp.c
790
lcp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
808
lcp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
815
chap_type = opt->hdr.len == 5 ? opt->data[2] : 0;
usr.sbin/ppp/lcp.c
824
if (opt->hdr.len == 4 && IsAccepted(lcp->cfg.pap)) {
usr.sbin/ppp/lcp.c
829
lcp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
85
struct fsm_opt_hdr hdr;
usr.sbin/ppp/lcp.c
858
lcp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
868
lcp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
883
lcp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
915
lcp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
920
lcp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
926
lcp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
939
lcp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
952
lcp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
981
lcp->my_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/lcp.c
992
lcp->his_reject |= (1 << opt->hdr.id);
usr.sbin/ppp/log.c
353
log_DumpBp(int lev, const char *hdr, const struct mbuf *bp)
usr.sbin/ppp/log.c
361
if (hdr && *hdr)
usr.sbin/ppp/log.c
362
log_Printf(lev, "%s\n", hdr);
usr.sbin/ppp/log.c
393
log_DumpBuff(int lev, const char *hdr, const u_char *ptr, int n)
usr.sbin/ppp/log.c
399
if (hdr && *hdr)
usr.sbin/ppp/log.c
400
log_Printf(lev, "%s\n", hdr);
usr.sbin/ppp/mppe.c
518
o->hdr.len = 6;
usr.sbin/ppp/pap.c
202
ntohs(authp->in.hdr.length) == 0) {
usr.sbin/ppp/pap.c
207
if (authp->in.hdr.code == 0 || authp->in.hdr.code > MAXPAPCODE) {
usr.sbin/ppp/pap.c
208
log_Printf(LogPHASE, "Pap Input: %d: Bad PAP code !\n", authp->in.hdr.code);
usr.sbin/ppp/pap.c
213
if (authp->in.hdr.code != PAP_REQUEST && authp->id != authp->in.hdr.id &&
usr.sbin/ppp/pap.c
217
papcodes[authp->in.hdr.code], authp->in.hdr.id, authp->id);
usr.sbin/ppp/pap.c
222
authp->id = authp->in.hdr.id; /* We respond with this id */
usr.sbin/ppp/pap.c
226
if (authp->in.hdr.code == PAP_ACK) {
usr.sbin/ppp/pap.c
246
papcodes[authp->in.hdr.code], txtlen, txt);
usr.sbin/ppp/pap.c
248
switch (authp->in.hdr.code) {
usr.sbin/ppp/pred.c
308
o->hdr.len = 2;
usr.sbin/ppp/pred.c
315
if (o->hdr.len != 2) {
usr.sbin/ppp/pred.c
316
o->hdr.len = 2;
usr.sbin/pstat/pstat.c
700
char hdr[] =
usr.sbin/pstat/pstat.c
712
printf("%s", hdr);
usr.sbin/pstat/pstat.c
756
printf("%s", hdr);
usr.sbin/resident/resident.c
161
} hdr;
usr.sbin/resident/resident.c
175
if ((n = read(fd, &hdr, sizeof hdr)) == -1) {
usr.sbin/resident/resident.c
184
if ((size_t)n >= sizeof hdr.elf && IS_ELF(hdr.elf)) {
usr.sbin/resident/resident.c
211
} else if (hdr.elf.e_type == ET_DYN) {
usr.sbin/resident/resident.c
212
if (hdr.elf.e_ident[EI_OSABI] & ELFOSABI_FREEBSD) {
usr.sbin/rtadvd/rtadvd.c
1404
nd6_options(struct nd_opt_hdr *hdr, int limit,
usr.sbin/rtadvd/rtadvd.c
1415
hdr = (struct nd_opt_hdr *)((caddr_t)hdr + optlen);
usr.sbin/rtadvd/rtadvd.c
1416
if (hdr->nd_opt_len == 0) {
usr.sbin/rtadvd/rtadvd.c
1419
__func__, hdr->nd_opt_type);
usr.sbin/rtadvd/rtadvd.c
1422
optlen = hdr->nd_opt_len << 3;
usr.sbin/rtadvd/rtadvd.c
1428
if (hdr->nd_opt_type > ND_OPT_MTU &&
usr.sbin/rtadvd/rtadvd.c
1429
hdr->nd_opt_type != ND_OPT_RDNSS &&
usr.sbin/rtadvd/rtadvd.c
1430
hdr->nd_opt_type != ND_OPT_DNSSL) {
usr.sbin/rtadvd/rtadvd.c
1432
__func__, hdr->nd_opt_type);
usr.sbin/rtadvd/rtadvd.c
1436
if ((ndopt_flags[hdr->nd_opt_type] & optflags) == 0) {
usr.sbin/rtadvd/rtadvd.c
1438
__func__, hdr->nd_opt_type);
usr.sbin/rtadvd/rtadvd.c
1446
switch (hdr->nd_opt_type) {
usr.sbin/rtadvd/rtadvd.c
1470
switch (hdr->nd_opt_type) {
usr.sbin/rtadvd/rtadvd.c
1478
if (ndopts->opt_array[hdr->nd_opt_type]) {
usr.sbin/rtadvd/rtadvd.c
1481
__func__, hdr->nd_opt_type);
usr.sbin/rtadvd/rtadvd.c
1483
ndopts->opt_array[hdr->nd_opt_type] = hdr;
usr.sbin/rtadvd/rtadvd.c
1491
(struct nd_opt_prefix_info *)hdr;
usr.sbin/rtadvd/rtadvd.c
1500
nol->nol_opt = hdr;
usr.sbin/usbdump/usbdump.c
449
print_apacket(const struct header_32 *hdr, const uint8_t *ptr, int ptr_len)
usr.sbin/usbdump/usbdump.c
487
tv.tv_sec = hdr->ts_sec;
usr.sbin/usbdump/usbdump.c
488
tv.tv_usec = hdr->ts_usec;
usr.sbin/usbdump/usbdump.c
575
const struct bpf_hdr *hdr;
usr.sbin/usbdump/usbdump.c
577
hdr = (const struct bpf_hdr *)ptr;
usr.sbin/usbdump/usbdump.c
579
temp.ts_sec = htole32(hdr->bh_tstamp.tv_sec);
usr.sbin/usbdump/usbdump.c
580
temp.ts_usec = htole32(hdr->bh_tstamp.tv_usec);
usr.sbin/usbdump/usbdump.c
581
temp.caplen = htole32(hdr->bh_caplen);
usr.sbin/usbdump/usbdump.c
582
temp.datalen = htole32(hdr->bh_datalen);
usr.sbin/usbdump/usbdump.c
583
temp.hdrlen = hdr->bh_hdrlen;
usr.sbin/usbdump/usbdump.c
586
hdrlen = hdr->bh_hdrlen;
usr.sbin/usbdump/usbdump.c
587
caplen = hdr->bh_caplen;