Searched refs:hdr (Results 1 - 25 of 737) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/wpa/src/tls/
H A Dpkcs8.c21 struct asn1_hdr hdr; local
30 if (asn1_get_next(buf, len, &hdr) < 0 ||
31 hdr.class != ASN1_CLASS_UNIVERSAL ||
32 hdr.tag != ASN1_TAG_SEQUENCE) {
37 pos = hdr.payload;
38 end = pos + hdr.length;
41 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
42 hdr.class != ASN1_CLASS_UNIVERSAL || hdr.tag != ASN1_TAG_INTEGER) {
45 hdr
124 struct asn1_hdr hdr; local
[all...]
H A Dtlsv1_cred.c446 struct asn1_hdr hdr; local
458 if (asn1_get_next(buf, len, &hdr) < 0 ||
459 hdr.class != ASN1_CLASS_UNIVERSAL ||
460 hdr.tag != ASN1_TAG_SEQUENCE) {
463 hdr.class, hdr.tag);
467 pos = hdr.payload;
468 end = hdr.payload + hdr.length;
485 if (asn1_get_next(pos, end - pos, &hdr) <
525 struct asn1_hdr hdr; local
552 struct asn1_hdr hdr; local
580 struct asn1_hdr hdr; local
625 struct asn1_hdr hdr; local
704 struct asn1_hdr hdr; local
749 struct asn1_hdr hdr; local
771 struct asn1_hdr hdr; local
890 struct asn1_hdr hdr; local
928 struct asn1_hdr hdr; local
1130 struct asn1_hdr hdr; local
[all...]
H A Dtlsv1_client_ocsp.c116 struct asn1_hdr hdr; local
141 if (asn1_get_next(resp, len, &hdr) < 0 ||
142 hdr.class != ASN1_CLASS_UNIVERSAL ||
143 hdr.tag != ASN1_TAG_SEQUENCE) {
146 hdr.class, hdr.tag);
149 pos = hdr.payload;
150 end = hdr.payload + hdr.length;
165 if (asn1_get_next(pos, end - pos, &hdr) <
323 struct asn1_hdr hdr; local
357 struct asn1_hdr hdr; local
682 struct asn1_hdr hdr; local
[all...]
H A Dx509v3.c185 struct asn1_hdr hdr; local
195 if (asn1_get_next(buf, len, &hdr) < 0 ||
196 hdr.class != ASN1_CLASS_UNIVERSAL ||
197 hdr.tag != ASN1_TAG_SEQUENCE) {
200 hdr.class, hdr.tag);
203 if (hdr.length > buf + len - hdr.payload)
205 pos = hdr.payload;
206 end = pos + hdr
223 struct asn1_hdr hdr; local
294 struct asn1_hdr hdr; local
695 struct asn1_hdr hdr; local
778 struct asn1_hdr hdr; local
815 struct asn1_hdr hdr; local
994 struct asn1_hdr hdr; local
1072 struct asn1_hdr hdr; local
1099 struct asn1_hdr hdr; local
1175 struct asn1_hdr hdr; local
1263 struct asn1_hdr hdr; local
1340 struct asn1_hdr hdr; local
1370 struct asn1_hdr hdr; local
1655 struct asn1_hdr hdr; local
1776 struct asn1_hdr hdr; local
[all...]
H A Dasn1.c25 static int asn1_valid_der_boolean(struct asn1_hdr *hdr) argument
28 if (hdr->length != 1) {
30 hdr->length);
34 if (hdr->payload[0] != 0 && hdr->payload[0] != 0xff) {
37 hdr->payload[0]);
45 static int asn1_valid_der(struct asn1_hdr *hdr) argument
47 if (hdr->class != ASN1_CLASS_UNIVERSAL)
49 if (hdr->tag == ASN1_TAG_BOOLEAN && !asn1_valid_der_boolean(hdr))
55 asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr) argument
176 struct asn1_hdr hdr; local
[all...]
H A Dpkcs5.c93 struct asn1_hdr hdr; local
109 if (asn1_get_next(pos, enc_alg_end - pos, &hdr) < 0 ||
110 hdr.class != ASN1_CLASS_UNIVERSAL ||
111 hdr.tag != ASN1_TAG_SEQUENCE) {
114 hdr.class, hdr.tag);
117 pos = hdr.payload;
118 end = hdr.payload + hdr.length;
120 if (asn1_get_next(pos, end - pos, &hdr) <
280 struct asn1_hdr hdr; local
[all...]
H A Dpkcs1.c205 struct asn1_hdr hdr; local
234 if (asn1_get_next(decrypted, decrypted_len, &hdr) < 0 ||
235 hdr.class != ASN1_CLASS_UNIVERSAL ||
236 hdr.tag != ASN1_TAG_SEQUENCE) {
239 hdr.class, hdr.tag);
244 pos = hdr.payload;
245 end = pos + hdr.length;
255 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
256 hdr
[all...]
/freebsd-11-stable/sys/kern/
H A Dsubr_module.c51 uint32_t *hdr; local
58 hdr = (uint32_t *)curp;
59 if (hdr[0] == 0 && hdr[1] == 0)
63 if ((hdr[0] == MODINFO_NAME) &&
68 next = sizeof(uint32_t) * 2 + hdr[1];
83 uint32_t *hdr; local
91 hdr = (uint32_t *)curp;
92 if (hdr[0] == 0 && hdr[
120 uint32_t *hdr; local
162 uint32_t *hdr; local
209 uint32_t *hdr, sz; local
280 uint32_t *hdr; local
[all...]
/freebsd-11-stable/stand/efi/fdt/
H A Defi_fdt.c46 struct fdt_header *hdr; local
48 hdr = efi_get_table(&fdtdtb);
49 if (hdr == NULL)
51 if (fdt_load_dtb_addr(hdr) != 0)
53 printf("Using DTB provided by EFI at %p.\n", hdr);
/freebsd-11-stable/tools/tools/ath/athalq/
H A Dmain.c51 struct if_ath_alq_init_state hdr; variable in typeref:struct:if_ath_alq_init_state
54 ath_alq_print_hdr(struct if_ath_alq_init_state *hdr) argument
57 be32toh(hdr->sc_mac_version),
58 be32toh(hdr->sc_mac_revision),
59 be32toh(hdr->sc_phy_rev),
60 be32toh(hdr->sc_hal_magic));
72 (unsigned int) be32toh(a->hdr.tstamp_sec),
73 (unsigned int) be32toh(a->hdr.tstamp_usec),
74 (unsigned long long) be64toh(a->hdr.threadid),
83 (unsigned int) be32toh(a->hdr
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Darc.c192 * arc_buf_hdr_t is cached. If the hdr is cached then the ARC allocates a new
194 * existing uncompressed arc_buf_t, decompresses the hdr's b_pabd buffer into a
195 * new data buffer, or shares the hdr's b_pabd buffer, depending on whether the
196 * hdr is compressed and the desired compression characteristics of the
199 * the last buffer in the hdr's b_buf list, however a shared compressed buf can
200 * be anywhere in the hdr's list.
202 * The diagram below shows an example of an uncompressed ARC hdr that is
233 * Writing to the ARC requires that the ARC first discard the hdr's b_pabd
240 * buffers which have been released (and hence have their own hdr, if there
241 * were originally other readers of the buf's original hdr)
1507 l2arc_trim(const arc_buf_hdr_t *hdr) argument
1540 buf_discard_identity(arc_buf_hdr_t *hdr) argument
1554 arc_buf_hdr_t *hdr; local
1577 buf_hash_insert(arc_buf_hdr_t *hdr, kmutex_t **lockp) argument
1621 buf_hash_remove(arc_buf_hdr_t *hdr) argument
1675 arc_buf_hdr_t *hdr = vbuf; local
1691 arc_buf_hdr_t *hdr = vbuf; local
1720 arc_buf_hdr_t *hdr = vbuf; local
1734 arc_buf_hdr_t *hdr = vbuf; local
1860 arc_cksum_free(arc_buf_hdr_t *hdr) argument
1875 arc_hdr_has_uncompressed_buf(arc_buf_hdr_t *hdr) argument
1893 arc_buf_hdr_t *hdr = buf->b_hdr; local
1920 arc_cksum_is_equal(arc_buf_hdr_t *hdr, zio_t *zio) argument
1998 arc_buf_hdr_t *hdr = buf->b_hdr; local
2072 arc_buf_type(arc_buf_hdr_t *hdr) argument
2109 arc_buf_hdr_t *hdr = buf->b_hdr; local
2148 arc_buf_hdr_t *hdr = buf->b_hdr; local
2179 arc_hdr_set_flags(arc_buf_hdr_t *hdr, arc_flags_t flags) argument
2186 arc_hdr_clear_flags(arc_buf_hdr_t *hdr, arc_flags_t flags) argument
2200 arc_hdr_set_compress(arc_buf_hdr_t *hdr, enum zio_compress cmp) argument
2231 arc_buf_hdr_t *hdr = buf->b_hdr; local
2277 arc_buf_hdr_t *hdr = buf->b_hdr; local
2379 arc_hdr_size(arc_buf_hdr_t *hdr) argument
2399 arc_evictable_space_increment(arc_buf_hdr_t *hdr, arc_state_t *state) argument
2434 arc_evictable_space_decrement(arc_buf_hdr_t *hdr, arc_state_t *state) argument
2470 add_reference(arc_buf_hdr_t *hdr, void *tag) argument
2500 remove_reference(arc_buf_hdr_t *hdr, kmutex_t *hash_lock, void *tag) argument
2527 arc_change_state(arc_state_t *new_state, arc_buf_hdr_t *hdr, kmutex_t *hash_lock) argument
2789 arc_can_share(arc_buf_hdr_t *hdr, arc_buf_t *buf) argument
2827 arc_buf_alloc_impl(arc_buf_hdr_t *hdr, void *tag, boolean_t compressed, boolean_t fill, arc_buf_t **ret) argument
2950 arc_buf_hdr_t *hdr = buf->b_hdr; local
2964 arc_buf_hdr_t *hdr = buf->b_hdr; local
2988 arc_hdr_free_on_write(arc_buf_hdr_t *hdr) argument
3019 arc_share_buf(arc_buf_hdr_t *hdr, arc_buf_t *buf) argument
3050 arc_unshare_buf(arc_buf_hdr_t *hdr, arc_buf_t *buf) argument
3084 arc_buf_remove(arc_buf_hdr_t *hdr, arc_buf_t *buf) argument
3126 arc_buf_hdr_t *hdr = buf->b_hdr; local
3217 arc_hdr_alloc_pabd(arc_buf_hdr_t *hdr, boolean_t do_adapt) argument
3233 arc_hdr_free_pabd(arc_buf_hdr_t *hdr) argument
3262 arc_buf_hdr_t *hdr; local
3302 arc_hdr_realloc(arc_buf_hdr_t *hdr, kmem_cache_t *old, kmem_cache_t *new) argument
3407 arc_buf_hdr_t *hdr = arc_hdr_alloc(spa_load_guid(spa), size, size, local
3431 arc_buf_hdr_t *hdr = arc_hdr_alloc(spa_load_guid(spa), psize, lsize, local
3456 arc_hdr_l2hdr_destroy(arc_buf_hdr_t *hdr) argument
3477 arc_hdr_destroy(arc_buf_hdr_t *hdr) argument
3547 arc_buf_hdr_t *hdr = buf->b_hdr; local
3583 arc_evict_hdr(arc_buf_hdr_t *hdr, kmutex_t *hash_lock) argument
3699 arc_buf_hdr_t *hdr; local
4853 arc_get_data_abd(arc_buf_hdr_t *hdr, uint64_t size, void *tag, boolean_t do_adapt) argument
4867 arc_get_data_buf(arc_buf_hdr_t *hdr, uint64_t size, void *tag) argument
4887 arc_get_data_impl(arc_buf_hdr_t *hdr, uint64_t size, void *tag, boolean_t do_adapt) argument
4976 arc_free_data_abd(arc_buf_hdr_t *hdr, abd_t *abd, uint64_t size, void *tag) argument
4983 arc_free_data_buf(arc_buf_hdr_t *hdr, void *buf, uint64_t size, void *tag) argument
5000 arc_free_data_impl(arc_buf_hdr_t *hdr, uint64_t size, void *tag) argument
5029 arc_access(arc_buf_hdr_t *hdr, kmutex_t *hash_lock) argument
5170 arc_buf_hdr_t *hdr = buf->b_hdr; local
5238 arc_hdr_verify(arc_buf_hdr_t *hdr, blkptr_t *bp) argument
5256 arc_buf_hdr_t *hdr = zio->io_private; local
5457 arc_buf_hdr_t *hdr = NULL; local
5843 arc_buf_hdr_t *hdr; local
5895 arc_buf_hdr_t *hdr = buf->b_hdr; local
6120 arc_buf_hdr_t *hdr = buf->b_hdr; local
6237 arc_buf_hdr_t *hdr = buf->b_hdr; local
6323 arc_buf_hdr_t *hdr = buf->b_hdr; local
6567 arc_buf_hdr_t *hdr = obj; local
7135 l2arc_write_eligible(uint64_t spa_guid, arc_buf_hdr_t *hdr) argument
7304 arc_buf_hdr_t *head, *hdr, *hdr_prev; local
7419 arc_buf_hdr_t *hdr; local
7570 arc_buf_hdr_t *hdr, *hdr_prev; local
7681 arc_buf_hdr_t *hdr, *hdr_prev, *head; local
[all...]
/freebsd-11-stable/lib/libkvm/
H A Dkvm_minidump_aarch64.c52 struct minidumphdr hdr; member in struct:vmstate
89 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) !=
90 sizeof(vmst->hdr)) {
94 if (strncmp(MINIDUMP_MAGIC, vmst->hdr.magic,
95 sizeof(vmst->hdr.magic)) != 0) {
100 vmst->hdr.version = le32toh(vmst->hdr.version);
101 if (vmst->hdr.version != MINIDUMP_VERSION) {
103 "Expected %d got %d", MINIDUMP_VERSION, vmst->hdr
[all...]
H A Dkvm_minidump_arm.c53 struct minidumphdr hdr; member in struct:vmstate
94 if (pread(kd->pmfd, &vmst->hdr,
95 sizeof(vmst->hdr), 0) != sizeof(vmst->hdr)) {
100 if (strncmp(MINIDUMP_MAGIC, vmst->hdr.magic,
101 sizeof(vmst->hdr.magic)) != 0) {
105 vmst->hdr.version = _kvm32toh(kd, vmst->hdr.version);
106 if (vmst->hdr.version != MINIDUMP_VERSION) {
108 "Expected %d got %d", MINIDUMP_VERSION, vmst->hdr
[all...]
H A Dkvm_minidump_i386.c51 struct minidumphdr hdr; member in struct:vmstate
89 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) !=
90 sizeof(vmst->hdr)) {
94 if (strncmp(MINIDUMP_MAGIC, vmst->hdr.magic, sizeof(vmst->hdr.magic)) != 0) {
98 vmst->hdr.version = le32toh(vmst->hdr.version);
99 if (vmst->hdr.version != MINIDUMP_VERSION) {
101 MINIDUMP_VERSION, vmst->hdr
[all...]
H A Dkvm_minidump_amd64.c51 struct minidumphdr hdr; member in struct:vmstate
89 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) !=
90 sizeof(vmst->hdr)) {
94 if (strncmp(MINIDUMP_MAGIC, vmst->hdr.magic, sizeof(vmst->hdr.magic)) != 0) {
103 vmst->hdr.version = le32toh(vmst->hdr.version);
104 if (vmst->hdr.version != MINIDUMP_VERSION && vmst->hdr
[all...]
H A Dkvm_minidump_mips.c54 struct minidumphdr hdr; member in struct:vmstate
105 if (pread(kd->pmfd, &vmst->hdr,
106 sizeof(vmst->hdr), 0) != sizeof(vmst->hdr)) {
111 if (strncmp(MINIDUMP_MAGIC, vmst->hdr.magic,
112 sizeof(vmst->hdr.magic)) != 0) {
116 vmst->hdr.version = _kvm32toh(kd, vmst->hdr.version);
117 if (vmst->hdr.version != MINIDUMP_VERSION) {
119 "Expected %d got %d", MINIDUMP_VERSION, vmst->hdr
[all...]
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-pflog.c89 pflog_print(netdissect_options *ndo, const struct pfloghdr *hdr) argument
93 rulenr = EXTRACT_32BITS(&hdr->rulenr);
94 subrulenr = EXTRACT_32BITS(&hdr->subrulenr);
98 ND_PRINT((ndo, "rule %u.%s.%u/", rulenr, hdr->ruleset, subrulenr));
100 ND_PRINT((ndo, "%s", tok2str(pf_reasons, "unkn(%u)", hdr->reason)));
102 if (hdr->uid != UID_MAX)
103 ND_PRINT((ndo, " [uid %u]", (unsigned)hdr->uid));
106 tok2str(pf_actions, "unkn(%u)", hdr->action),
107 tok2str(pf_directions, "unkn(%u)", hdr->dir),
108 hdr
118 const struct pfloghdr *hdr; local
[all...]
H A Dprint-ipnet.c39 const ipnet_hdr_t *hdr; local
40 hdr = (const ipnet_hdr_t *)bp;
42 ND_TCHECK(*hdr);
43 ND_PRINT((ndo, "%d > %d", EXTRACT_32BITS(hdr->iph_zsrc),
44 EXTRACT_32BITS(hdr->iph_zdst)));
49 EXTRACT_8BITS(&hdr->iph_family)),
50 EXTRACT_8BITS(&hdr->iph_family)));
55 EXTRACT_8BITS(&hdr->iph_family))));
67 const ipnet_hdr_t *hdr; local
77 hdr
[all...]
/freebsd-11-stable/stand/libsa/
H A Dgpt.c55 gptupdate(const char *which, struct dsk *dskp, struct gpt_hdr *hdr, argument
69 entries_per_sec = DEV_BSIZE / hdr->hdr_entsz;
73 slba += hdr->hdr_lba_table;
79 hdr->hdr_crc_table = crc32(table, hdr->hdr_entries * hdr->hdr_entsz);
80 hdr->hdr_crc_self = 0;
81 hdr->hdr_crc_self = crc32(hdr, hdr
183 gptread_hdr(const char *which, struct dsk *dskp, struct gpt_hdr *hdr, uint64_t hdrlba) argument
231 gptbootconv(const char *which, struct dsk *dskp, struct gpt_hdr *hdr, struct gpt_ent *table) argument
278 gptread_table(const char *which, const uuid_t *uuid, struct dsk *dskp, struct gpt_hdr *hdr, struct gpt_ent *table) argument
[all...]
/freebsd-11-stable/lib/libc/arm/aeabi/
H A Daeabi_unwind_exidx.c68 const Elf_Phdr *hdr; local
73 hdr = info.dlpi_phdr;
74 for (i = 0; i < info.dlpi_phnum; i++, hdr++) {
75 if (hdr->p_type == PT_ARM_EXIDX) {
76 *pcount = hdr->p_memsz / sizeof(exidx_entry);
77 return ((void *)(info.dlpi_addr + hdr->p_vaddr));
/freebsd-11-stable/sys/netgraph/bluetooth/l2cap/
H A Dng_l2cap_cmds.h54 ng_l2cap_cmd_hdr_t hdr; \
64 c->hdr.code = NG_L2CAP_CMD_REJ; \
65 c->hdr.ident = (_ident); \
66 c->hdr.length = sizeof(c->param); \
72 c->hdr.length += sizeof(c->data.mtu); \
76 c->hdr.length += sizeof(c->data.cid); \
79 (_m)->m_pkthdr.len = (_m)->m_len = sizeof(c->hdr) + \
80 c->hdr.length; \
82 c->hdr.length = htole16(c->hdr
[all...]
/freebsd-11-stable/contrib/wpa/src/eap_common/
H A Deap_common.c27 const struct eap_hdr *hdr; local
33 hdr = wpabuf_head(msg);
35 if (wpabuf_len(msg) < sizeof(*hdr)) {
40 len = be_to_host16(hdr->length);
41 if (len < sizeof(*hdr) + min_payload || len > wpabuf_len(msg)) {
69 const struct eap_hdr *hdr; local
76 hdr = wpabuf_head(msg);
77 len = be_to_host16(hdr->length);
78 pos = (const u8 *) (hdr + 1);
83 if (len < sizeof(*hdr)
132 struct eap_hdr *hdr; local
169 struct eap_hdr *hdr; local
[all...]
/freebsd-11-stable/lib/libc/db/hash/
H A Dhash.h90 HASHHDR hdr; /* Header */ member in struct:htab
271 #define BSIZE hdr.bsize
272 #define BSHIFT hdr.bshift
273 #define DSIZE hdr.dsize
274 #define SGSIZE hdr.ssize
275 #define SSHIFT hdr.sshift
276 #define LORDER hdr.lorder
277 #define OVFL_POINT hdr.ovfl_point
278 #define LAST_FREED hdr.last_freed
279 #define MAX_BUCKET hdr
[all...]
/freebsd-11-stable/contrib/elftoolchain/libpe/
H A Dlibpe_dos.c40 libpe_parse_msdos_header(PE *pe, char *hdr) argument
51 memcpy(pe->pe_stub, hdr, sizeof(PE_DosHdr));
60 memcpy(dh->dh_magic, hdr, 2);
61 hdr += 2;
62 PE_READ16(hdr, dh->dh_lastsize);
63 PE_READ16(hdr, dh->dh_nblock);
64 PE_READ16(hdr, dh->dh_nreloc);
65 PE_READ16(hdr, dh->dh_hdrsize);
66 PE_READ16(hdr, dh->dh_minalloc);
67 PE_READ16(hdr, d
211 char tmp[sizeof(PE_DosHdr)], *hdr; local
[all...]
/freebsd-11-stable/contrib/libpcap/
H A Dsf-pcap.c111 static int pcap_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **datap);
157 struct pcap_file_header hdr; local
189 hdr.magic = magic_int;
190 amt_read = fread(((char *)&hdr) + sizeof hdr.magic, 1,
191 sizeof(hdr) - sizeof(hdr.magic), fp);
192 if (amt_read != sizeof(hdr) - sizeof(hdr.magic)) {
199 sizeof(hdr), amt_rea
442 pcap_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **data) argument
719 struct pcap_file_header hdr; local
[all...]

Completed in 211 milliseconds

1234567891011>>