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

1234567891011>>

/freebsd-head/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-head/sys/kern/
H A Dsubr_module.c53 uint32_t *hdr; local
60 hdr = (uint32_t *)curp;
61 if (hdr[0] == 0 && hdr[1] == 0)
65 if ((hdr[0] == MODINFO_NAME) &&
70 next = sizeof(uint32_t) * 2 + hdr[1];
85 uint32_t *hdr; local
93 hdr = (uint32_t *)curp;
94 if (hdr[0] == 0 && hdr[
122 uint32_t *hdr; local
164 uint32_t *hdr; local
211 uint32_t *hdr, sz; local
282 uint32_t *hdr; local
[all...]
/freebsd-head/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-head/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-head/lib/libkvm/
H A Dkvm_minidump_powerpc64.c70 struct minidumphdr *hdr; local
80 hdr = &vmst->hdr;
84 if (pread(kd->pmfd, hdr, sizeof(*hdr), 0) != sizeof(*hdr)) {
89 if (strncmp(MINIDUMP_MAGIC, hdr->magic, sizeof(hdr->magic)) != 0) {
94 hdr->version = be32toh(hdr
[all...]
H A Dkvm_minidump_aarch64.c53 struct minidumphdr hdr; member in struct:vmstate
93 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) !=
94 sizeof(vmst->hdr)) {
98 if (strncmp(MINIDUMP_MAGIC, vmst->hdr.magic,
99 sizeof(vmst->hdr.magic)) != 0) {
104 vmst->hdr.version = le32toh(vmst->hdr.version);
105 if (vmst->hdr.version != MINIDUMP_VERSION) {
107 "Expected %d got %d", MINIDUMP_VERSION, vmst->hdr
[all...]
H A Dkvm_minidump_riscv.c54 struct minidumphdr hdr; member in struct:vmstate
94 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) !=
95 sizeof(vmst->hdr)) {
99 if (strncmp(MINIDUMP_MAGIC, vmst->hdr.magic,
100 sizeof(vmst->hdr.magic)) != 0) {
105 vmst->hdr.version = le32toh(vmst->hdr.version);
106 if (vmst->hdr.version != MINIDUMP_VERSION) {
108 "Expected %d got %d", MINIDUMP_VERSION, vmst->hdr
[all...]
H A Dkvm_minidump_arm.c56 struct minidumphdr hdr; member in struct:vmstate
99 if (pread(kd->pmfd, &vmst->hdr,
100 sizeof(vmst->hdr), 0) != sizeof(vmst->hdr)) {
105 if (strncmp(MINIDUMP_MAGIC, vmst->hdr.magic,
106 sizeof(vmst->hdr.magic)) != 0) {
110 vmst->hdr.version = _kvm32toh(kd, vmst->hdr.version);
111 if (vmst->hdr.version != MINIDUMP_VERSION) {
113 "Expected %d got %d", MINIDUMP_VERSION, vmst->hdr
[all...]
/freebsd-head/tools/tools/intel-ucode-split/
H A Dintel-ucode-split.c80 dump_header(const struct microcode_update_header *hdr) argument
86 sig_str = format_signature(hdr->processor_signature);
87 printf("header version\t0x%x\n", hdr->header_version);
88 printf("revision\t0x%x\n", hdr->update_revision);
89 printf("date\t\t0x%x\t%04x-%02x-%02x\n", hdr->date,
90 hdr->date & 0xffff, (hdr->date & 0xff000000) >> 24,
91 (hdr->date & 0xff0000) >> 16);
92 printf("signature\t0x%x\t\t%s\n", hdr->processor_signature, sig_str);
93 printf("checksum\t0x%x\n", hdr
122 struct microcode_update_header hdr; local
[all...]
/freebsd-head/contrib/libedit/
H A Dmakelist56 hdr="_h_`basename $1`"
60 printf("#ifndef %s\n#define %s\n", "'$hdr'", "'$hdr'");
75 printf("#endif /* %s */\n", "'$hdr'");
/freebsd-head/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(0, Z_NULL, 0);
80 hdr->hdr_crc_table = crc32(hdr->hdr_crc_table, (const Bytef *)table,
81 hdr->hdr_entries * hdr->hdr_entsz);
82 hdr->hdr_crc_self = crc32(0, Z_NULL, 0);;
83 hdr
186 gptread_hdr(const char *which, struct dsk *dskp, struct gpt_hdr *hdr, uint64_t hdrlba) argument
235 gptbootconv(const char *which, struct dsk *dskp, struct gpt_hdr *hdr, struct gpt_ent *table) argument
285 gptread_table(const char *which, struct dsk *dskp, struct gpt_hdr *hdr, struct gpt_ent *table) argument
[all...]
/freebsd-head/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-head/sys/fs/ext2fs/
H A Dext2_extents.h107 #define EXT_FIRST_EXTENT(hdr) ((struct ext4_extent *)(((char *)(hdr)) + \
109 #define EXT_FIRST_INDEX(hdr) ((struct ext4_extent_index *)(((char *)(hdr)) + \
111 #define EXT_LAST_EXTENT(hdr) (EXT_FIRST_EXTENT((hdr)) + le16toh((hdr)->eh_ecount) - 1)
112 #define EXT_LAST_INDEX(hdr) (EXT_FIRST_INDEX((hdr)) + le16toh((hdr)
[all...]
/freebsd-head/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-head/sys/netgraph/bluetooth/l2cap/
H A Dng_l2cap_cmds.h56 ng_l2cap_cmd_hdr_t hdr; \
66 c->hdr.code = NG_L2CAP_CMD_REJ; \
67 c->hdr.ident = (_ident); \
68 c->hdr.length = sizeof(c->param); \
74 c->hdr.length += sizeof(c->data.mtu); \
78 c->hdr.length += sizeof(c->data.cid); \
81 (_m)->m_pkthdr.len = (_m)->m_len = sizeof(c->hdr) + \
82 c->hdr.length; \
84 c->hdr.length = htole16(c->hdr
[all...]
/freebsd-head/usr.sbin/fstyp/
H A Dhfsplus.c104 struct hfsp_vol_hdr *hdr; local
108 hdr = read_buf(fp, VOL_HDR_OFF, sizeof(*hdr));
109 if (hdr == NULL)
112 if ((strncmp(hdr->hp_signature, "H+", 2) != 0 || hdr->hp_version != 4)
114 (strncmp(hdr->hp_signature, "HX", 2) != 0 || hdr->hp_version != 5))
123 free(hdr);
/freebsd-head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Darc.c200 * arc_buf_hdr_t is cached. If the hdr is cached then the ARC allocates a new
202 * existing uncompressed arc_buf_t, decompresses the hdr's b_pabd buffer into a
203 * new data buffer, or shares the hdr's b_pabd buffer, depending on whether the
204 * hdr is compressed and the desired compression characteristics of the
207 * the last buffer in the hdr's b_buf list, however a shared compressed buf can
208 * be anywhere in the hdr's list.
210 * The diagram below shows an example of an uncompressed ARC hdr that is
241 * Writing to the ARC requires that the ARC first discard the hdr's b_pabd
248 * buffers which have been released (and hence have their own hdr, if there
249 * were originally other readers of the buf's original hdr)
1599 l2arc_trim(const arc_buf_hdr_t *hdr) argument
1632 buf_discard_identity(arc_buf_hdr_t *hdr) argument
1646 arc_buf_hdr_t *hdr; local
1669 buf_hash_insert(arc_buf_hdr_t *hdr, kmutex_t **lockp) argument
1713 buf_hash_remove(arc_buf_hdr_t *hdr) argument
1767 arc_buf_hdr_t *hdr = vbuf; local
1783 arc_buf_hdr_t *hdr = vbuf; local
1812 arc_buf_hdr_t *hdr = vbuf; local
1826 arc_buf_hdr_t *hdr = vbuf; local
1952 arc_cksum_free(arc_buf_hdr_t *hdr) argument
1967 arc_hdr_has_uncompressed_buf(arc_buf_hdr_t *hdr) argument
1985 arc_buf_hdr_t *hdr = buf->b_hdr; local
2012 arc_cksum_is_equal(arc_buf_hdr_t *hdr, zio_t *zio) argument
2090 arc_buf_hdr_t *hdr = buf->b_hdr; local
2164 arc_buf_type(arc_buf_hdr_t *hdr) argument
2201 arc_buf_hdr_t *hdr = buf->b_hdr; local
2240 arc_buf_hdr_t *hdr = buf->b_hdr; local
2271 arc_hdr_set_flags(arc_buf_hdr_t *hdr, arc_flags_t flags) argument
2278 arc_hdr_clear_flags(arc_buf_hdr_t *hdr, arc_flags_t flags) argument
2292 arc_hdr_set_compress(arc_buf_hdr_t *hdr, enum zio_compress cmp) argument
2323 arc_buf_hdr_t *hdr = buf->b_hdr; local
2369 arc_buf_hdr_t *hdr = buf->b_hdr; local
2471 arc_hdr_size(arc_buf_hdr_t *hdr) argument
2491 arc_evictable_space_increment(arc_buf_hdr_t *hdr, arc_state_t *state) argument
2526 arc_evictable_space_decrement(arc_buf_hdr_t *hdr, arc_state_t *state) argument
2562 add_reference(arc_buf_hdr_t *hdr, void *tag) argument
2592 remove_reference(arc_buf_hdr_t *hdr, kmutex_t *hash_lock, void *tag) argument
2624 arc_buf_hdr_t *hdr = ab->b_hdr; local
2668 arc_change_state(arc_state_t *new_state, arc_buf_hdr_t *hdr, kmutex_t *hash_lock) argument
2944 arc_can_share(arc_buf_hdr_t *hdr, arc_buf_t *buf) argument
2982 arc_buf_alloc_impl(arc_buf_hdr_t *hdr, void *tag, boolean_t compressed, boolean_t fill, arc_buf_t **ret) argument
3105 arc_buf_hdr_t *hdr = buf->b_hdr; local
3119 arc_buf_hdr_t *hdr = buf->b_hdr; local
3143 arc_hdr_free_on_write(arc_buf_hdr_t *hdr) argument
3174 arc_share_buf(arc_buf_hdr_t *hdr, arc_buf_t *buf) argument
3205 arc_unshare_buf(arc_buf_hdr_t *hdr, arc_buf_t *buf) argument
3239 arc_buf_remove(arc_buf_hdr_t *hdr, arc_buf_t *buf) argument
3281 arc_buf_hdr_t *hdr = buf->b_hdr; local
3372 arc_hdr_alloc_pabd(arc_buf_hdr_t *hdr, boolean_t do_adapt) argument
3388 arc_hdr_free_pabd(arc_buf_hdr_t *hdr) argument
3417 arc_buf_hdr_t *hdr; local
3457 arc_hdr_realloc(arc_buf_hdr_t *hdr, kmem_cache_t *old, kmem_cache_t *new) argument
3564 arc_buf_hdr_t *hdr = arc_hdr_alloc(spa_load_guid(spa), size, size, local
3588 arc_buf_hdr_t *hdr = arc_hdr_alloc(spa_load_guid(spa), psize, lsize, local
3613 arc_hdr_l2hdr_destroy(arc_buf_hdr_t *hdr) argument
3634 arc_hdr_destroy(arc_buf_hdr_t *hdr) argument
3704 arc_buf_hdr_t *hdr = buf->b_hdr; local
3740 arc_evict_hdr(arc_buf_hdr_t *hdr, kmutex_t *hash_lock) argument
3856 arc_buf_hdr_t *hdr; local
5165 arc_get_data_abd(arc_buf_hdr_t *hdr, uint64_t size, void *tag, boolean_t do_adapt) argument
5179 arc_get_data_buf(arc_buf_hdr_t *hdr, uint64_t size, void *tag) argument
5199 arc_get_data_impl(arc_buf_hdr_t *hdr, uint64_t size, void *tag, boolean_t do_adapt) argument
5288 arc_free_data_abd(arc_buf_hdr_t *hdr, abd_t *abd, uint64_t size, void *tag) argument
5295 arc_free_data_buf(arc_buf_hdr_t *hdr, void *buf, uint64_t size, void *tag) argument
5312 arc_free_data_impl(arc_buf_hdr_t *hdr, uint64_t size, void *tag) argument
5341 arc_access(arc_buf_hdr_t *hdr, kmutex_t *hash_lock) argument
5486 arc_buf_hdr_t *hdr = buf->b_hdr; local
5554 arc_hdr_verify(arc_buf_hdr_t *hdr, blkptr_t *bp) argument
5572 arc_buf_hdr_t *hdr = zio->io_private; local
5773 arc_buf_hdr_t *hdr = NULL; local
6197 arc_buf_hdr_t *hdr; local
6249 arc_buf_hdr_t *hdr = buf->b_hdr; local
6475 arc_buf_hdr_t *hdr = buf->b_hdr; local
6592 arc_buf_hdr_t *hdr = buf->b_hdr; local
6678 arc_buf_hdr_t *hdr = buf->b_hdr; local
6929 arc_buf_hdr_t *hdr = obj; local
7548 l2arc_write_eligible(uint64_t spa_guid, arc_buf_hdr_t *hdr) argument
7717 arc_buf_hdr_t *head, *hdr, *hdr_prev; local
7832 arc_buf_hdr_t *hdr; local
7983 arc_buf_hdr_t *hdr, *hdr_prev; local
8094 arc_buf_hdr_t *hdr, *hdr_prev, *head; local
[all...]
/freebsd-head/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...]

Completed in 142 milliseconds

1234567891011>>