Searched refs:hdr (Results 101 - 125 of 737) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/libpcap/
H A Dpcap-common.h50 extern void swap_pseudo_headers(int linktype, struct pcap_pkthdr *hdr,
/freebsd-11-stable/contrib/serf/buckets/
H A Dheaders_buckets.c83 header_list_t *hdr; local
93 hdr = serf_bucket_mem_alloc(bkt->allocator, sizeof(*hdr));
94 hdr->header_size = header_size;
95 hdr->value_size = value_size;
96 hdr->alloc_flags = 0;
97 hdr->next = NULL;
100 hdr->header = serf_bstrmemdup(bkt->allocator, header, header_size);
101 hdr->alloc_flags |= ALLOC_HEADER;
104 hdr
[all...]
/freebsd-11-stable/sys/geom/part/
H A Dg_part_gpt.c82 struct gpt_hdr *hdr; member in struct:g_part_gpt_table
404 struct gpt_hdr *buf, *hdr; local
426 hdr = NULL;
435 hdr = g_malloc(sz, M_WAITOK | M_ZERO);
436 bcopy(buf, hdr, sz);
437 hdr->hdr_size = sz;
443 hdr->hdr_crc_self = crc;
446 hdr->hdr_revision = le32toh(buf->hdr_revision);
447 if (hdr->hdr_revision < GPT_HDR_REVISION)
449 hdr
504 gpt_read_tbl(struct g_part_gpt_table *table, struct g_consumer *cp, enum gpt_elt elt, struct gpt_hdr *hdr) argument
[all...]
/freebsd-11-stable/sys/dev/ocs_fc/
H A Docs_fcp.h474 fcct_iu_header_t hdr; member in struct:__anon7536
484 fcct_iu_header_t hdr; member in struct:__anon7537
497 fcct_iu_header_t hdr; member in struct:__anon7538
509 fcct_iu_header_t hdr; member in struct:__anon7539
524 fcct_iu_header_t hdr; member in struct:__anon7540
536 fcct_iu_header_t hdr; member in struct:__anon7541
551 static inline void fcct_build_req_header(fcct_iu_header_t *hdr, uint16_t cmd, uint16_t max_size) argument
554 hdr->revision = 1;
555 hdr->in_id = 0;
556 hdr
569 fcct_iu_header_t hdr; member in struct:fcct_rftid_req_s
578 fcct_iu_header_t hdr; member in struct:fcct_rffid_req_s
586 fcct_iu_header_t hdr; member in struct:fcct_gnnid_req_s
592 fcct_iu_header_t hdr; member in struct:fcct_gpnid_req_s
598 fcct_iu_header_t hdr; member in struct:fcct_gffid_req_s
604 fcct_iu_header_t hdr; member in struct:fcct_gidft_req_s
612 fcct_iu_header_t hdr; member in struct:fcct_gidpt_req_s
620 fcct_iu_header_t hdr; member in struct:fcct_gnnid_acc_s
625 fcct_iu_header_t hdr; member in struct:fcct_gpnid_acc_s
630 fcct_iu_header_t hdr; member in struct:fcct_gffid_acc_s
635 fcct_iu_header_t hdr; member in struct:fcct_gidft_acc_s
643 fcct_iu_header_t hdr; member in struct:fcct_gidpt_acc_s
[all...]
H A Docs_unsol.c49 #define frame_printf(ocs, hdr, fmt, ...) \
52 ocs_node_fcid_display(fc_be24toh((hdr)->s_id), s_id_text, sizeof(s_id_text)); \
53 ocs_log_debug(ocs, "[%06x.%s] %02x/%04x/%04x: " fmt, fc_be24toh((hdr)->d_id), s_id_text, \
54 (hdr)->r_ctl, ocs_be16toh((hdr)->ox_id), ocs_be16toh((hdr)->rx_id), ##__VA_ARGS__); \
175 fc_header_t *hdr = seq->header->dma.virt; local
176 uint32_t ox_id = ocs_be16toh(hdr->ox_id);
581 fc_header_t *hdr; local
591 hdr
674 fc_header_t *hdr = seq->header->dma.virt; local
1239 fc_header_le_t hdr; local
[all...]
/freebsd-11-stable/lib/libutil/
H A Dhexdump.c45 hexdump(const void *ptr, int length, const char *hdr, int flags) argument
64 if (hdr != NULL)
65 printf("%s", hdr);
/freebsd-11-stable/sys/dev/smartpqi/
H A Dsmartpqi_cmd.c40 iu_header_t *hdr = (iu_header_t *)req; local
41 uint32_t iu_len = hdr->iu_length + 4 ; /* header size */
67 ib_q->pi_local, hdr->iu_length);
/freebsd-11-stable/sys/geom/vinum/
H A Dgeom_vinum_events.c103 struct gv_hdr *hdr; local
108 hdr = NULL;
137 hdr = g_malloc(GV_HDR_LEN, M_WAITOK | M_ZERO);
139 error = gv_read_header(cp, hdr);
149 d = gv_find_drive(sc, hdr->label.name);
152 strlcpy(d->name, hdr->label.name, sizeof(d->name));
164 d->hdr = hdr;
185 if (hdr != NULL)
186 g_free(hdr);
[all...]
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c228 } hdr; local
233 bzero(&hdr.ctf, sizeof (hdr));
238 if ((nbytes = pread64(fd, &hdr.ctf, sizeof (hdr), 0)) <= 0)
246 hdr.ctf.ctp_magic == CTF_MAGIC) {
247 if (hdr.ctf.ctp_version > CTF_VERSION)
276 bcmp(&hdr.e32.e_ident[EI_MAG0], ELFMAG, SELFMAG) == 0) {
288 if (hdr.e32.e_ident[EI_DATA] != order)
290 if (hdr
[all...]
/freebsd-11-stable/contrib/ofed/librdmacm/examples/
H A Drcopy.c83 struct msg_hdr hdr; member in struct:msg_open
88 struct msg_hdr hdr; member in struct:msg_write
134 static int msg_recv_hdr(int rs, struct msg_hdr *hdr) argument
138 ret = _recv(rs, (char *) hdr, sizeof *hdr);
139 if (ret != sizeof *hdr)
142 if (hdr->version || hdr->len < sizeof *hdr) {
144 hdr
[all...]
/freebsd-11-stable/usr.sbin/fwcontrol/
H A Dfwdv.c266 u_int32_t iso_data, iso_empty, hdr[TNBUF + NEMPTY][3]; local
303 bzero(hdr[0], sizeof(hdr[0]));
304 hdr[0][0] = iso_data;
305 ciph = (struct ciphdr *)&hdr[0][1];
313 bcopy(hdr[0], hdr[i], sizeof(hdr[0]));
318 htonl(hdr[0]), htonl(hdr[
[all...]
/freebsd-11-stable/sys/x86/x86/
H A Ducode.c57 static int ucode_intel_verify(struct ucode_intel_header *hdr,
146 ucode_intel_verify(struct ucode_intel_header *hdr, size_t resid) argument
153 size = hdr->total_size;
158 if (hdr->header_version != 1)
166 data = (uint32_t *)hdr;
177 struct ucode_intel_header *hdr; local
192 hdr = (struct ucode_intel_header *)data;
193 if (ucode_intel_verify(hdr, resid) != 0) {
198 data_size = hdr->data_size;
199 total_size = hdr
[all...]
/freebsd-11-stable/sys/compat/ndis/
H A Dsubr_pe.c77 pe_get_dos_header(imgbase, hdr)
79 image_dos_header *hdr;
83 if (imgbase == 0 || hdr == NULL)
90 bcopy ((char *)imgbase, (char *)hdr, sizeof(image_dos_header));
127 pe_get_optional_header(imgbase, hdr)
129 image_optional_header *hdr;
134 if (imgbase == 0 || hdr == NULL)
143 bcopy ((char *)&nt_hdr->inh_optionalhdr, (char *)hdr,
155 pe_get_file_header(imgbase, hdr)
157 image_file_header *hdr;
[all...]
/freebsd-11-stable/sys/dev/hyperv/utilities/
H A Dvmbus_heartbeat.c87 struct vmbus_icmsg_hdr *hdr; local
102 if (dlen < sizeof(*hdr)) {
106 hdr = data;
111 switch (hdr->ic_type) {
130 device_printf(sc->ic_dev, "got 0x%08x icmsg\n", hdr->ic_type);
/freebsd-11-stable/stand/uboot/fdt/
H A Duboot_fdt.c45 struct fdt_header *hdr; local
53 hdr = (struct fdt_header *)strtoul(s, &p, 16);
57 if (fdt_load_dtb_addr(hdr) == 0) {
59 "address %p.\n", hdr);
71 struct fdt_header *hdr; local
/freebsd-11-stable/lib/libc/gmon/
H A Dgmon.c123 struct gmonhdr gmonhdr, *hdr; local
173 hdr = (struct gmonhdr *)&gmonhdr;
174 bzero(hdr, sizeof(*hdr));
175 hdr->lpc = p->lowpc;
176 hdr->hpc = p->highpc;
177 hdr->ncnt = p->kcountsize + sizeof(gmonhdr);
178 hdr->version = GMONVERSION;
179 hdr->profrate = clockinfo.profhz;
180 _write(fd, (char *)hdr, sizeo local
[all...]
/freebsd-11-stable/contrib/wpa/wpa_supplicant/
H A Dpreauth_test.c48 struct ieee802_1x_hdr *hdr; local
50 *msg_len = sizeof(*hdr) + data_len;
51 hdr = os_malloc(*msg_len);
52 if (hdr == NULL)
55 hdr->version = wpa_s->conf->eapol_version;
56 hdr->type = type;
57 hdr->length = htons(data_len);
60 os_memcpy(hdr + 1, data, data_len);
62 os_memset(hdr + 1, 0, data_len);
65 *data_pos = hdr
[all...]
/freebsd-11-stable/sys/dev/oce/
H A Doce_mbox.c101 mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0,
228 * @param hdr mailbox header
237 mbx_common_req_hdr_init(struct mbx_hdr *hdr, argument
243 hdr->u0.req.opcode = opcode;
244 hdr->u0.req.subsystem = subsys;
245 hdr->u0.req.port_number = port;
246 hdr->u0.req.domain = dom;
248 hdr->u0.req.timeout = timeout;
249 hdr->u0.req.request_length = pyld_len - sizeof(struct mbx_hdr);
250 hdr
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_procmaps_mac.cpp159 mach_header *hdr = (mach_header *)address; local
160 if ((hdr->magic == MH_MAGIC || hdr->magic == MH_MAGIC_64) &&
161 hdr->filetype == MH_DYLINKER) {
162 return hdr;
297 const mach_header *hdr = (data_.current_image == kDyldImageIdx) local
300 if (!hdr) continue;
303 data_.current_load_cmd_count = hdr->ncmds;
304 data_.current_magic = hdr->magic;
305 data_.current_filetype = hdr
[all...]
/freebsd-11-stable/sys/dev/e1000/
H A De1000_manage.c131 struct e1000_host_mng_dhcp_cookie *hdr = &hw->mng_cookie; local
162 hdr_csum = hdr->checksum;
163 hdr->checksum = 0;
164 csum = e1000_calculate_checksum((u8 *)hdr,
170 if ((hdr_csum != csum) || (hdr->signature != E1000_IAMT_SIGNATURE)) {
176 if (!(hdr->status & E1000_MNG_DHCP_COOKIE_STATUS_PARSING))
185 * @hdr: pointer to the host interface command header
190 struct e1000_host_mng_command_header *hdr)
198 hdr->checksum = e1000_calculate_checksum((u8 *)hdr, lengt
189 e1000_mng_write_cmd_header_generic(struct e1000_hw *hw, struct e1000_host_mng_command_header *hdr) argument
298 struct e1000_host_mng_command_header hdr; local
[all...]
/freebsd-11-stable/usr.bin/mkuzip/
H A Dmkuzip.c108 struct cloop_header hdr; local
124 memset(&hdr, 0, sizeof(hdr));
196 magiclen = strlcpy(hdr.magic, cfs.handler->magic, sizeof(hdr.magic));
197 assert(magiclen < sizeof(hdr.magic));
200 hdr.magic[CLOOP_OFS_VERSN] = CLOOP_MAJVER_3;
201 hdr.magic[CLOOP_OFS_COMPR] =
202 tolower(hdr.magic[CLOOP_OFS_COMPR]);
233 hdr
[all...]
/freebsd-11-stable/sbin/ggate/ggatec/
H A Dggatec.c95 struct g_gate_hdr hdr; local
142 hdr.gh_cmd = GGATE_CMD_READ;
145 hdr.gh_cmd = GGATE_CMD_WRITE;
162 hdr.gh_seq = ggio.gctl_seq;
163 hdr.gh_offset = ggio.gctl_offset;
164 hdr.gh_length = ggio.gctl_length;
165 hdr.gh_error = 0;
166 g_gate_swap2n_hdr(&hdr);
168 data = g_gate_send(sendfd, &hdr, sizeof(hdr), MSG_NOSIGNA
203 struct g_gate_hdr hdr; local
[all...]
/freebsd-11-stable/tests/sys/netmap/
H A Dctrl-api-test.c168 nmreq_hdr_init(struct nmreq_header *hdr, const char *ifname) argument
170 memset(hdr, 0, sizeof(*hdr));
171 hdr->nr_version = NETMAP_API;
172 strncpy(hdr->nr_name, ifname, sizeof(hdr->nr_name) - 1);
180 struct nmreq_header hdr; local
186 nmreq_hdr_init(&hdr, ctx->ifname_ext);
187 hdr.nr_reqtype = NETMAP_REQ_PORT_INFO_GET;
188 hdr
224 struct nmreq_header hdr; local
490 struct nmreq_header hdr; local
524 struct nmreq_header hdr; local
570 struct nmreq_header hdr; local
641 struct nmreq_header hdr; local
686 struct nmreq_header hdr; local
803 struct nmreq_header hdr; local
835 struct nmreq_header hdr; local
1246 struct nmreq_header hdr; local
1266 struct nmreq_header hdr; local
1427 struct nmreq_header hdr; local
[all...]
/freebsd-11-stable/contrib/binutils/bfd/
H A Delf.c295 Elf_Internal_Shdr *hdr; local
303 hdr = elf_elfsections (abfd)[shindex];
305 if (hdr->contents == NULL
309 if (strindex >= hdr->sh_size)
314 abfd, strindex, (unsigned long) hdr->sh_size,
315 (shindex == shstrndx && strindex == hdr->sh_name
317 : bfd_elf_string_from_elf_section (abfd, shstrndx, hdr->sh_name)));
321 return ((char *) hdr->contents) + strindex;
475 Elf_Internal_Shdr *hdr; local
482 hdr
499 setup_group(bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect) argument
779 _bfd_elf_make_section_from_shdr(bfd *abfd, Elf_Internal_Shdr *hdr, const char *name, int shindex) argument
1843 Elf_Internal_Shdr *hdr = elf_elfsections (abfd)[shindex]; local
2600 _bfd_elf_make_section_from_phdr(bfd *abfd, Elf_Internal_Phdr *hdr, int index, const char *typename) argument
2673 bfd_section_from_phdr(bfd *abfd, Elf_Internal_Phdr *hdr, int index) argument
3616 Elf_Internal_Shdr *hdr; local
3947 asection *hdr; local
4717 Elf_Internal_Shdr *hdr; local
4802 Elf_Internal_Shdr *hdr; local
4906 Elf_Internal_Shdr *hdr; local
6541 Elf_Internal_Shdr *hdr = &elf_tdata (abfd)->symtab_hdr; local
6556 Elf_Internal_Shdr *hdr = &elf_tdata (abfd)->dynsymtab_hdr; local
6715 Elf_Internal_Shdr *hdr; local
6828 Elf_Internal_Shdr *hdr; local
7296 Elf_Internal_Shdr *hdr; local
8791 Elf_Internal_Shdr *hdr; local
[all...]
/freebsd-11-stable/sbin/camcontrol/
H A Dpersist.c67 struct scsi_transportid_header *hdr; member in struct:persist_transport_id
178 persist_print_res(struct scsi_per_res_in_header *hdr, uint32_t valid_len) argument
183 length = scsi_4btoul(hdr->length);
186 res = (struct scsi_per_res_in_rsrv *)hdr;
214 persist_print_keys(struct scsi_per_res_in_header *hdr, uint32_t valid_len) argument
219 length = scsi_4btoul(hdr->length);
224 fprintf(stdout, "PRgeneration: %#x\n", scsi_4btoul(hdr->generation));
228 for (i = 0, key = (struct scsi_per_res_key *)&hdr[1]; i < num_keys;
373 persist_print_full(struct scsi_per_res_in_header *hdr, uint32_t valid_len) argument
380 length = scsi_4btoul(hdr
883 struct scsi_per_res_in_header *hdr; local
[all...]

Completed in 227 milliseconds

1234567891011>>