/external/expat/conftools/ |
get-version.sh | 25 hdr="$1" 26 if test ! -r "$hdr"; then 27 echo "ERROR: '$hdr' does not exist, or is not readable." 31 MAJOR_VERSION="`sed -n -e '/MAJOR_VERSION/s/[^0-9]*//gp' $hdr`" 32 MINOR_VERSION="`sed -n -e '/MINOR_VERSION/s/[^0-9]*//gp' $hdr`" 33 MICRO_VERSION="`sed -n -e '/MICRO_VERSION/s/[^0-9]*//gp' $hdr`"
|
/system/core/fastboot/ |
bootimg.c | 50 boot_img_hdr *hdr; local 60 hdr = calloc(*bootimg_size, 1); 62 if(hdr == 0) { 63 return hdr; 66 memcpy(hdr->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE); 68 hdr->kernel_size = kernel_size; 69 hdr->ramdisk_size = ramdisk_size; 70 hdr->second_size = second_size; 71 hdr->kernel_addr = base + 0x00008000; 72 hdr->ramdisk_addr = base + 0x01000000 [all...] |
/external/wpa_supplicant/ |
asn1_test.c | 46 struct asn1_hdr hdr; local 60 if (asn1_get_next(pos, end - pos, &hdr) < 0) 64 pos = hdr.payload; 68 prefix, hdr.class, asn1_class_str(hdr.class), 69 hdr.constructed, 70 hdr.constructed ? "Constructed" : "Primitive", 71 hdr.tag, hdr.length); 73 if (hdr.class == ASN1_CLASS_CONTEXT_SPECIFIC & [all...] |
x509v3.c | 187 struct asn1_hdr hdr; local 197 if (asn1_get_next(buf, len, &hdr) < 0 || 198 hdr.class != ASN1_CLASS_UNIVERSAL || 199 hdr.tag != ASN1_TAG_SEQUENCE) { 202 hdr.class, hdr.tag); 205 pos = hdr.payload; 206 end = pos + hdr.length; 226 struct asn1_hdr hdr; local 239 if (asn1_get_next(pos, end - pos, &hdr) < 0 | 298 struct asn1_hdr hdr; local 625 struct asn1_hdr hdr; local 699 struct asn1_hdr hdr; local 736 struct asn1_hdr hdr; local 848 struct asn1_hdr hdr; local 930 struct asn1_hdr hdr; local 960 struct asn1_hdr hdr; local 1199 struct asn1_hdr hdr; local 1310 struct asn1_hdr hdr; local [all...] |
asn1.c | 23 int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr) 28 os_memset(hdr, 0, sizeof(*hdr)); 32 hdr->identifier = *pos++; 33 hdr->class = hdr->identifier >> 6; 34 hdr->constructed = !!(hdr->identifier & (1 << 5)); 36 if ((hdr->identifier & 0x1f) == 0x1f) { 37 hdr->tag = 0 91 struct asn1_hdr hdr; local [all...] |
eap_tlv.c | 34 struct eap_hdr *hdr; local 37 hdr = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TLV, resp_len, 39 if (hdr == NULL) 55 return (u8 *) hdr; 71 struct eap_hdr *hdr; local 74 hdr = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TLV, resp_len, 76 if (hdr == NULL) 87 return (u8 *) hdr; 95 * @hdr: EAP-TLV request to be processed. The caller must have validated that 96 * the buffer is large enough to contain full request (hdr->length bytes) an [all...] |
rsa.c | 41 struct asn1_hdr hdr; local 46 if (asn1_get_next(pos, end - pos, &hdr) < 0 || 47 hdr.class != ASN1_CLASS_UNIVERSAL || hdr.tag != ASN1_TAG_INTEGER) { 49 "tag 0x%x", hdr.class, hdr.tag); 53 if (bignum_set_unsigned_bin(num, hdr.payload, hdr.length) < 0) { 58 return hdr.payload + hdr.length 72 struct asn1_hdr hdr; local 137 struct asn1_hdr hdr; local [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/tls/ |
asn1_test.c | 46 struct asn1_hdr hdr; local 60 if (asn1_get_next(pos, end - pos, &hdr) < 0) 64 pos = hdr.payload; 68 prefix, hdr.class, asn1_class_str(hdr.class), 69 hdr.constructed, 70 hdr.constructed ? "Constructed" : "Primitive", 71 hdr.tag, hdr.length); 73 if (hdr.class == ASN1_CLASS_CONTEXT_SPECIFIC & [all...] |
x509v3.c | 187 struct asn1_hdr hdr; local 197 if (asn1_get_next(buf, len, &hdr) < 0 || 198 hdr.class != ASN1_CLASS_UNIVERSAL || 199 hdr.tag != ASN1_TAG_SEQUENCE) { 202 hdr.class, hdr.tag); 205 pos = hdr.payload; 206 end = pos + hdr.length; 226 struct asn1_hdr hdr; local 239 if (asn1_get_next(pos, end - pos, &hdr) < 0 | 298 struct asn1_hdr hdr; local 625 struct asn1_hdr hdr; local 699 struct asn1_hdr hdr; local 736 struct asn1_hdr hdr; local 848 struct asn1_hdr hdr; local 930 struct asn1_hdr hdr; local 960 struct asn1_hdr hdr; local 1214 struct asn1_hdr hdr; local 1325 struct asn1_hdr hdr; local [all...] |
asn1.c | 23 int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr) 28 os_memset(hdr, 0, sizeof(*hdr)); 32 hdr->identifier = *pos++; 33 hdr->class = hdr->identifier >> 6; 34 hdr->constructed = !!(hdr->identifier & (1 << 5)); 36 if ((hdr->identifier & 0x1f) == 0x1f) { 37 hdr->tag = 0 91 struct asn1_hdr hdr; local [all...] |
/sdk/emulator/qtools/ |
read_elf.cpp | 34 void SwapElfHeader(Elf32_Ehdr *hdr) 36 hdr->e_type = SwapHalf(hdr->e_type); 37 hdr->e_machine = SwapHalf(hdr->e_machine); 38 hdr->e_version = SwapWord(hdr->e_version); 39 hdr->e_entry = SwapAddr(hdr->e_entry); 40 hdr->e_phoff = SwapOff(hdr->e_phoff) 116 Elf32_Ehdr *hdr = new Elf32_Ehdr; local [all...] |
read_elf.h | 8 Elf32_Shdr *ReadSectionHeaders(Elf32_Ehdr *hdr, FILE *fobj); 9 char *ReadStringTable(Elf32_Ehdr *hdr, Elf32_Shdr *shdr, FILE *fobj); 10 Elf32_Shdr *FindSymbolTableSection(Elf32_Ehdr *hdr, 13 Elf32_Shdr *FindSymbolStringTableSection(Elf32_Ehdr *hdr, 17 void AdjustElfSymbols(Elf32_Ehdr *hdr, Elf32_Sym *elf_symbols,
|
/system/core/mkbootimg/ |
mkbootimg.c | 96 boot_img_hdr hdr; local 115 memset(&hdr, 0, sizeof(hdr)); 118 hdr.kernel_addr = 0x10008000; 119 hdr.ramdisk_addr = 0x11000000; 120 hdr.second_addr = 0x10F00000; 121 hdr.tags_addr = 0x10000100; 123 hdr.page_size = pagesize; 145 hdr.kernel_addr = base + 0x00008000; 146 hdr.ramdisk_addr = base + 0x01000000 [all...] |
/external/iproute2/ip/ |
link_veth.c | 28 struct nlmsghdr *hdr) 39 data = NLMSG_TAIL(hdr); 40 addattr_l(hdr, 1024, VETH_INFO_PEER, NULL, 0); 42 hdr->nlmsg_len += sizeof(struct ifinfomsg); 44 err = iplink_parse(argc - 1, argv + 1, (struct iplink_req *)hdr, 53 addattr_l(hdr, 1024, IFLA_IFNAME, name, len); 56 data->rta_len = (void *)NLMSG_TAIL(hdr) - (void *)data;
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/ |
eap_common.c | 40 const struct eap_hdr *hdr; local 44 hdr = wpabuf_head(msg); 46 if (wpabuf_len(msg) < sizeof(*hdr)) { 51 len = be_to_host16(hdr->length); 52 if (len < sizeof(*hdr) + 1 || len > wpabuf_len(msg)) { 57 pos = (const u8 *) (hdr + 1); 62 if (len < sizeof(*hdr) + 8) { 78 *plen = len - sizeof(*hdr) - 8; 85 *plen = len - sizeof(*hdr) - 1; 111 struct eap_hdr *hdr; local 148 struct eap_hdr *hdr; local [all...] |
/external/tcpdump/ |
print-pflog.c | 98 pflog_print(const struct pfloghdr *hdr) 102 rulenr = ntohl(hdr->rulenr); 103 subrulenr = ntohl(hdr->subrulenr); 107 printf("rule %u.%s.%u/", rulenr, hdr->ruleset, subrulenr); 110 tok2str(pf_reasons, "unkn(%u)", hdr->reason), 111 tok2str(pf_actions, "unkn(%u)", hdr->action), 112 tok2str(pf_directions, "unkn(%u)", hdr->dir), 113 hdr->ifname); 122 const struct pfloghdr *hdr; local 132 hdr = (struct pfloghdr *)p [all...] |
print-igrp.c | 82 register struct igrphdr *hdr; local 86 hdr = (struct igrphdr *)bp; 87 cp = (u_char *)(hdr + 1); 91 TCHECK(*hdr); 92 nint = EXTRACT_16BITS(&hdr->ig_ni); 93 nsys = EXTRACT_16BITS(&hdr->ig_ns); 94 next = EXTRACT_16BITS(&hdr->ig_nx); 97 tok2str(op2str, "op-#%d", IGRP_OP(hdr->ig_vop)), 98 IGRP_V(hdr->ig_vop), 99 hdr->ig_ed [all...] |
/hardware/broadcom/wlan/bcm4329/src/include/ |
bcmcdc.h | 59 #define CDC_GET_IF_IDX(hdr) \ 60 ((int)((((hdr)->flags) & CDCF_IOC_IF_MASK) >> CDCF_IOC_IF_SHIFT)) 61 #define CDC_SET_IF_IDX(hdr, idx) \ 62 ((hdr)->flags = (((hdr)->flags & ~CDCF_IOC_IF_MASK) | ((idx) << CDCF_IOC_IF_SHIFT))) 90 #define BDC_GET_IF_IDX(hdr) \ 91 ((int)((((hdr)->flags2) & BDC_FLAG2_IF_MASK) >> BDC_FLAG2_IF_SHIFT)) 92 #define BDC_SET_IF_IDX(hdr, idx) \ 93 ((hdr)->flags2 = (((hdr)->flags2 & ~BDC_FLAG2_IF_MASK) | ((idx) << BDC_FLAG2_IF_SHIFT)) [all...] |
/external/bluetooth/bluez/sbc/ |
sbcinfo.c | 63 static int calc_frame_len(struct sbc_frame_hdr *hdr) 67 nrof_subbands = (hdr->subbands + 1) * 4; 68 nrof_blocks = (hdr->blocks + 1) * 4; 70 switch (hdr->channel_mode) { 73 tmp = nrof_blocks * hdr->bitpool; 76 tmp = nrof_blocks * hdr->bitpool * 2; 79 tmp = nrof_blocks * hdr->bitpool; 82 tmp = nrof_blocks * hdr->bitpool + nrof_subbands; 91 static double calc_bit_rate(struct sbc_frame_hdr *hdr) 96 nrof_subbands = (hdr->subbands + 1) * 4 172 struct sbc_frame_hdr hdr; local [all...] |
/external/bluetooth/hcidump/parser/ |
avdtp.c | 69 static char *pt2str(uint8_t hdr) 71 switch (hdr & 0x0c) { 85 static char *mt2str(uint8_t hdr) 87 switch (hdr & 0x03) { 285 static inline void discover(int level, uint8_t hdr, struct frame *frm) 289 switch (hdr & 0x03) { 307 static inline void get_capabilities(int level, uint8_t hdr, struct frame *frm) 309 switch (hdr & 0x03) { 322 static inline void set_configuration(int level, uint8_t hdr, struct frame *frm) 326 switch (hdr & 0x03) 425 uint8_t hdr, sid, nsp, type; local [all...] |
hidp.c | 139 uint8_t hdr; local 142 hdr = get_u8(frm); 144 switch (hdr & 0xf0) { 146 param = result2str(hdr); 149 param = operation2str(hdr); 153 param = protocol2str(hdr); 159 param = report2str(hdr); 168 printf("HIDP: %s: %s\n", type2str(hdr), param);
|
/device/htc/dream-sapphire/tools/ |
btconfig.c | 34 hci_command_hdr hdr; local 41 hdr.opcode = 0xFD06; 67 hdr.plen = sizeof(cmd); 70 { &hdr, sizeof(hdr) }, 73 int total_len = 1 + sizeof(hdr) + sizeof(cmd); 88 hci_command_hdr hdr; local 90 hdr.opcode = 0xFE1F; 92 hdr.plen = sizeof(cmd); 95 { &hdr, sizeof(hdr) } 113 hci_command_hdr hdr; local 147 hci_command_hdr hdr; local 171 hci_command_hdr hdr; local 217 hci_command_hdr hdr; local 258 hci_command_hdr hdr; local 284 hci_command_hdr hdr; local 312 hci_command_hdr hdr; local 339 hci_command_hdr hdr; local [all...] |
/external/e2fsprogs/e2fsck/ |
mtrace.c | 86 __ptr_t hdr; local 89 hdr = (__ptr_t) malloc (size); 93 fprintf (mallstream, "+ %p %d\n", hdr, size); 95 if (hdr == mallwatch) 98 return hdr; 107 __ptr_t hdr; local 115 hdr = (__ptr_t) realloc (ptr, size); 119 if (hdr == NULL) 123 fprintf (mallstream, "< %p\n> %p %d\n", ptr, hdr, size); 125 if (hdr == mallwatch [all...] |
/system/extras/sound/ |
playwav.c | 153 struct wav_header hdr; local 161 if (read(fd, &hdr, sizeof(hdr)) != sizeof(hdr)) { 166 hdr.num_channels, hdr.sample_rate, hdr.bits_per_sample, 167 hdr.audio_format == FORMAT_PCM ? "PCM" : "unknown"); 169 if ((hdr.riff_id != ID_RIFF) || 170 (hdr.riff_fmt != ID_WAVE) | 193 struct wav_header hdr; local [all...] |
/system/wlan/ti/wilink_6_1/stad/src/Sta_Management/ |
templates.c | 95 MAC_COPY (pBuffer->hdr.DA, pPrimarySite->bssid); 98 MAC_COPY (pBuffer->hdr.BSSID, pPrimarySite->bssid); 103 MAC_COPY (pBuffer->hdr.SA, param.content.ctrlDataDeviceMacAddress); 108 COPY_WLAN_WORD(&pBuffer->hdr.fc, &fc); /* copy with endianess handling. */ 149 MAC_COPY (pBuffer->hdr.DA, pPrimarySite->bssid); 152 MAC_COPY (pBuffer->hdr.BSSID, pPrimarySite->bssid); 157 MAC_COPY (pBuffer->hdr.SA, param.content.ctrlDataDeviceMacAddress); 162 COPY_WLAN_WORD(&pBuffer->hdr.fc, &fc); /* copy with endianess handling. */ 247 pBuffer->hdr.DA[i] = 0xFF; 252 pBuffer->hdr.BSSID[i] = 0xFF [all...] |