/freebsd-10.0-release/sys/dev/nand/ |
H A D | nand_bbt.c | 56 struct bbt_header *hdr; member in struct:nand_bbt 92 bbt->hdr = malloc(sizeof(struct bbt_header) + bbt->tab_len, M_NAND, 94 if (!bbt->hdr) { 100 bbt->hdr->seq_nr = 0; 101 bbt->table = (uint32_t *)((uint8_t *)bbt->hdr + 130 free(chip->bbt->hdr, M_NAND); 154 bbt->hdr->pattern = BBT_SECONDARY_PATTERN; 158 bbt->hdr->pattern = BBT_PRIMARY_PATTERN; 167 bbt->hdr->seq_nr++; 169 err = nand_prog_pages_raw(bbt->chip, addr, bbt->hdr, 179 nand_bbt_load_hdr(struct nand_bbt *bbt, struct bbt_header *hdr, int8_t primary) argument [all...] |
/freebsd-10.0-release/contrib/tcpdump/ |
H A D | print-bt.c | 54 const pcap_bluetooth_h4_header* hdr = (const pcap_bluetooth_h4_header*)p; local 64 (void)printf("hci length %d, direction %s, ", length, (EXTRACT_32BITS(&hdr->direction)&0x1)?"in":"out");
|
/freebsd-10.0-release/lib/libc++/ |
H A D | Makefile | 166 .for hdr in ${STD_HEADERS} 167 STD+= ${HDRDIR}/${hdr} 168 INCSLINKS+= ${CXXINCLUDEDIR}/${hdr} ${CXXINCLUDEDIR}/tr1/${hdr} 170 .for hdr in ${RT_HEADERS} 171 STD+= ${LIBCXXRTDIR}/${hdr} 179 .for hdr in ${EXT_HEADERS} 180 EXT+= ${HDRDIR}/ext/${hdr}
|
/freebsd-10.0-release/sys/net/ |
H A D | pf_mtag.h | 44 void *hdr; /* saved hdr pos in mbuf, for ECN */ member in struct:pf_mtag
|
/freebsd-10.0-release/lib/libutil/ |
H A D | hexdump.c | 45 hexdump(const void *ptr, int length, const char *hdr, int flags) argument 64 if (hdr != NULL) 65 printf("%s", hdr);
|
/freebsd-10.0-release/sys/geom/vinum/ |
H A D | geom_vinum_events.c | 103 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-10.0-release/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_lib.c | 228 } 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-10.0-release/usr.sbin/fwcontrol/ |
H A D | fwdv.c | 266 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-10.0-release/contrib/serf/buckets/ |
H A D | headers_buckets.c | 75 header_list_t *hdr; local 85 hdr = serf_bucket_mem_alloc(bkt->allocator, sizeof(*hdr)); 86 hdr->header_size = header_size; 87 hdr->value_size = value_size; 88 hdr->alloc_flags = 0; 89 hdr->next = NULL; 92 hdr->header = serf_bstrmemdup(bkt->allocator, header, header_size); 93 hdr->alloc_flags |= ALLOC_HEADER; 96 hdr [all...] |
/freebsd-10.0-release/contrib/wpa/src/radius/ |
H A D | radius.c | 28 * hdr - Pointer to the RADIUS header in buf 30 struct radius_hdr *hdr; member in struct:radius_msg 54 return msg->hdr; 74 msg->hdr->code = code; 75 msg->hdr->identifier = identifier; 115 msg->hdr = wpabuf_put(msg->buf, sizeof(struct radius_hdr)); 261 static void radius_msg_dump_attr(struct radius_attr_hdr *hdr) argument 267 attr = radius_get_attr_type(hdr->type); 270 hdr->type, attr ? attr->name : "?Unknown?", hdr 626 struct radius_hdr *hdr; local [all...] |
/freebsd-10.0-release/contrib/wpa/src/rsn_supp/ |
H A D | wpa_ie.c | 43 struct wpa_ie_hdr *hdr; local 46 if (wpa_ie_len < sizeof(*hdr) + WPA_SELECTOR_LEN + 50 hdr = (struct wpa_ie_hdr *) wpa_ie; 51 hdr->elem_id = WLAN_EID_VENDOR_SPECIFIC; 52 RSN_SELECTOR_PUT(hdr->oui, WPA_OUI_TYPE); 53 WPA_PUT_LE16(hdr->version, WPA_VERSION); 54 pos = (u8 *) (hdr + 1); 97 hdr->len = (pos - wpa_ie) - 2; 112 struct rsn_ie_hdr *hdr; local 116 if (rsn_ie_len < sizeof(*hdr) [all...] |
/freebsd-10.0-release/sys/compat/ndis/ |
H A D | subr_pe.c | 77 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-10.0-release/contrib/wpa/wpa_supplicant/ |
H A D | preauth_test.c | 51 struct ieee802_1x_hdr *hdr; local 53 *msg_len = sizeof(*hdr) + data_len; 54 hdr = os_malloc(*msg_len); 55 if (hdr == NULL) 58 hdr->version = wpa_s->conf->eapol_version; 59 hdr->type = type; 60 hdr->length = htons(data_len); 63 os_memcpy(hdr + 1, data, data_len); 65 os_memset(hdr + 1, 0, data_len); 68 *data_pos = hdr [all...] |
/freebsd-10.0-release/lib/libc/gmon/ |
H A D | gmon.c | 131 struct gmonhdr gmonhdr, *hdr; local 181 hdr = (struct gmonhdr *)&gmonhdr; 182 bzero(hdr, sizeof(*hdr)); 183 hdr->lpc = p->lowpc; 184 hdr->hpc = p->highpc; 185 hdr->ncnt = p->kcountsize + sizeof(gmonhdr); 186 hdr->version = GMONVERSION; 187 hdr->profrate = clockinfo.profhz; 188 _write(fd, (char *)hdr, sizeo local [all...] |
/freebsd-10.0-release/lib/libkvm/ |
H A D | kvm_sparc64.c | 144 struct sparc64_dump_hdr hdr; local 157 if (!_kvm_read_phys(kd, 0, &hdr, sizeof(hdr))) 159 pa = hdr.dh_tsb_pa; 161 regsz = hdr.dh_nregions * sizeof(*regs); 167 if (!_kvm_read_phys(kd, sizeof(hdr), regs, regsz)) 169 qsort(regs, hdr.dh_nregions, sizeof(*regs), _kvm_reg_cmp); 171 vm->vm_tsb_mask = hdr.dh_tsb_mask; 173 vm->vm_nregions = hdr.dh_nregions; 174 vm->vm_tsb_off = _kvm_find_off(vm, hdr [all...] |
/freebsd-10.0-release/sys/dev/oce/ |
H A D | oce_mbox.c | 63 mbx_common_req_hdr_init(&fwcmd->hdr, 0, 0, 191 * @param hdr mailbox header 200 mbx_common_req_hdr_init(struct mbx_hdr *hdr, argument 206 hdr->u0.req.opcode = opcode; 207 hdr->u0.req.subsystem = subsys; 208 hdr->u0.req.port_number = port; 209 hdr->u0.req.domain = dom; 211 hdr->u0.req.timeout = timeout; 212 hdr->u0.req.request_length = pyld_len - sizeof(struct mbx_hdr); 213 hdr [all...] |
/freebsd-10.0-release/contrib/wpa/src/crypto/ |
H A D | crypto_cryptoapi.c | 161 BLOBHEADER hdr; member in struct:__anon4491 167 key_blob.hdr.bType = PLAINTEXTKEYBLOB; 168 key_blob.hdr.bVersion = CUR_BLOB_VERSION; 169 key_blob.hdr.reserved = 0; 170 key_blob.hdr.aiKeyAlg = CALG_DES; 240 BLOBHEADER hdr; member in struct:__anon4492 249 key_blob.hdr.bType = PLAINTEXTKEYBLOB; 250 key_blob.hdr.bVersion = CUR_BLOB_VERSION; 251 key_blob.hdr.reserved = 0; 252 key_blob.hdr 358 BLOBHEADER hdr; member in struct:__anon4493 513 BLOBHEADER hdr; member in struct:__anon4494 [all...] |
/freebsd-10.0-release/contrib/binutils/bfd/ |
H A D | elf.c | 295 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-10.0-release/sys/ofed/drivers/infiniband/util/ |
H A D | madeye.c | 400 struct ib_mad_hdr *hdr = send_buf->mad; local 402 if (!smp && hdr->mgmt_class != mgmt_class) 404 if (attr_id && be16_to_cpu(hdr->attr_id) != attr_id) 445 struct ib_mad_hdr *hdr = send_buf->mad; local 447 if (!gmp && hdr->mgmt_class != mgmt_class) 449 if (attr_id && be16_to_cpu(hdr->attr_id) != attr_id) 453 print_mad_hdr(hdr); 455 if (is_rmpp_mad(hdr)) 456 print_rmpp_hdr(&((struct ib_rmpp_mad *) hdr)->rmpp_hdr); 462 struct ib_mad_hdr *hdr local [all...] |
/freebsd-10.0-release/contrib/wpa/src/eap_server/ |
H A D | ikev2.c | 447 const struct ikev2_hdr *hdr, 458 hdr, encrypted, encrypted_len, 482 const struct ikev2_hdr *hdr, 490 os_memcpy(data->r_spi, hdr->r_spi, IKEV2_SPI_LEN); 498 if (ikev2_process_sa_init_encr(data, hdr, pl->encrypted, 713 const struct ikev2_hdr *hdr, 722 &data->keys, 0, hdr, pl->encrypted, 796 const struct ikev2_hdr *hdr; local 804 if (wpabuf_len(buf) < sizeof(*hdr)) { 809 hdr 446 ikev2_process_sa_init_encr(struct ikev2_initiator_data *data, const struct ikev2_hdr *hdr, const u8 *encrypted, size_t encrypted_len, u8 next_payload) argument 481 ikev2_process_sa_init(struct ikev2_initiator_data *data, const struct ikev2_hdr *hdr, struct ikev2_payloads *pl) argument 712 ikev2_process_sa_auth(struct ikev2_initiator_data *data, const struct ikev2_hdr *hdr, struct ikev2_payloads *pl) argument 888 struct ikev2_hdr *hdr; local [all...] |
/freebsd-10.0-release/usr.sbin/kldxref/ |
H A D | ef_obj.c | 332 Elf_Ehdr *hdr; local 359 hdr = (Elf_Ehdr *)&ef->ef_hdr; 361 res = read(fd, hdr, sizeof(*hdr)); 363 if (res != sizeof(*hdr)) 365 if (!IS_ELF(*hdr)) 367 if (hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || 368 hdr->e_ident[EI_DATA] != ELF_TARG_DATA || 369 hdr->e_ident[EI_VERSION] != EV_CURRENT || 370 hdr [all...] |
/freebsd-10.0-release/usr.sbin/ppp/ |
H A D | lcp.c | 85 struct fsm_opt_hdr hdr; member in struct:lqrreq 625 nak.hdr.id = TY_AUTHPROTO; 628 nak.hdr.len = 4; 635 nak.hdr.len = 5; 677 while (end - cp >= (int)sizeof(opt->hdr)) { 681 snprintf(request, sizeof request, " %s[%d]", protoname(opt->hdr.id), 682 opt->hdr.len); 684 switch (opt->hdr.id) { 695 lcp->his_reject &= ~(1 << opt->hdr.id); 700 nak.hdr [all...] |
H A D | pap.c | 202 ntohs(authp->in.hdr.length) == 0) { 207 if (authp->in.hdr.code == 0 || authp->in.hdr.code > MAXPAPCODE) { 208 log_Printf(LogPHASE, "Pap Input: %d: Bad PAP code !\n", authp->in.hdr.code); 213 if (authp->in.hdr.code != PAP_REQUEST && authp->id != authp->in.hdr.id && 217 papcodes[authp->in.hdr.code], authp->in.hdr.id, authp->id); 222 authp->id = authp->in.hdr.id; /* We respond with this id */ 226 if (authp->in.hdr [all...] |
/freebsd-10.0-release/sys/geom/part/ |
H A D | g_part_ldm.c | 403 ldm_privhdr_parse(struct g_consumer *cp, struct ldm_privhdr *hdr, argument 409 memset(hdr, 0, sizeof(*hdr)); 418 error = parse_uuid(buf + LDM_PH_DISKGUID_OFF, &hdr->disk_guid); 421 error = parse_uuid(buf + LDM_PH_DGGUID_OFF, &hdr->dg_guid); 424 strncpy(hdr->dg_name, buf + LDM_PH_DGNAME_OFF, sizeof(hdr->dg_name)); 425 hdr->start = be64dec(buf + LDM_PH_START_OFF); 426 hdr->size = be64dec(buf + LDM_PH_SIZE_OFF); 427 hdr 441 struct ldm_privhdr hdr; local 580 struct ldm_tochdr hdr; local [all...] |
/freebsd-10.0-release/sys/sparc64/sparc64/ |
H A D | dump_machdep.c | 148 struct sparc64_dump_hdr hdr; local 158 hdrsize = roundup2(sizeof(hdr) + sizeof(struct sparc64_dump_reg) * nreg, 186 hdr.dh_hdr_size = hdrsize; 187 hdr.dh_tsb_pa = tsb_kernel_phys; 188 hdr.dh_tsb_size = tsb_kernel_size; 189 hdr.dh_tsb_mask = tsb_kernel_mask; 190 hdr.dh_nregions = nreg; 192 if (buf_write(di, (char *)&hdr, sizeof(hdr)) != 0)
|