/system/core/mkbootimg/ |
mkbootimg_dummy.cpp | 19 void mkbootimg_dummy(boot_img_hdr* hdr) { 21 if (hdr) { 22 hdr--;
|
/external/clang/test/CodeGenCXX/ |
2007-10-01-StructResize.cpp | 10 int Foo(Bork *hdr) { 11 hdr->f1 = 7; 12 hdr->f2 = 927;
|
/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")
|
/external/wpa_supplicant_8/src/tls/ |
tlsv1_client_ocsp.c | 116 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) < 0 | 323 struct asn1_hdr hdr; local 357 struct asn1_hdr hdr; local 682 struct asn1_hdr hdr; local [all...] |
pkcs8.c | 21 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.class, hdr.tag) 124 struct asn1_hdr hdr; local [all...] |
tlsv1_cred.c | 446 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) < 0 | 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...] |
asn1.c | 25 int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr) 30 os_memset(hdr, 0, sizeof(*hdr)); 34 hdr->identifier = *pos++; 35 hdr->class = hdr->identifier >> 6; 36 hdr->constructed = !!(hdr->identifier & (1 << 5)); 38 if ((hdr->identifier & 0x1f) == 0x1f) { 39 hdr->tag = 0 137 struct asn1_hdr hdr; local [all...] |
x509v3.c | 185 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.length 223 struct asn1_hdr hdr; local 294 struct asn1_hdr hdr; local 651 struct asn1_hdr hdr; local 734 struct asn1_hdr hdr; local 771 struct asn1_hdr hdr; local 954 struct asn1_hdr hdr; local 1032 struct asn1_hdr hdr; local 1059 struct asn1_hdr hdr; local 1135 struct asn1_hdr hdr; local 1223 struct asn1_hdr hdr; local 1305 struct asn1_hdr hdr; local 1335 struct asn1_hdr hdr; local 1620 struct asn1_hdr hdr; local 1741 struct asn1_hdr hdr; local [all...] |
pkcs5.c | 93 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) < 0 | 280 struct asn1_hdr hdr; local [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
u_debug_memory.c | 105 data_from_header(struct debug_memory_header *hdr) 107 if(hdr) 108 return (void *)((char *)hdr + sizeof(struct debug_memory_header)); 114 footer_from_header(struct debug_memory_header *hdr) 116 if(hdr) 117 return (struct debug_memory_footer *)((char *)hdr + sizeof(struct debug_memory_header) + hdr->size); 127 struct debug_memory_header *hdr; local 130 hdr = os_malloc(sizeof(*hdr) + size + sizeof(*ftr)) 167 struct debug_memory_header *hdr; local 309 struct debug_memory_header *hdr; local 360 struct debug_memory_header *hdr; local 381 struct debug_memory_header *hdr; local 416 struct debug_memory_header *hdr; local [all...] |
/external/strace/ |
s390.c | 494 print_sthyi_machine(struct tcb *tcp, struct sthyi_machine *hdr, uint16_t size, 499 CHECK_SIZE(hdr, size, "machine structure"); 503 if (hdr->infmflg1) { /* Reserved */ 504 PRINT_FIELD_0X("", *hdr, infmflg1); 507 if (hdr->infmflg2) { /* Reserved */ 508 PRINT_FIELD_0X(", ", *hdr, infmflg2); 513 PRINT_FIELD_0X("", *hdr, infmval1); 514 cnt_val = !!(hdr->infmval1 & 0x80); 515 id_val = !!(hdr->infmval1 & 0x40); 516 name_val = !!(hdr->infmval1 & 0x20) 901 struct sthyi_hdr *hdr = (struct sthyi_hdr *) data; local [all...] |
/libcore/luni/src/main/java/android/system/ |
StructIcmpHdr.java | 49 StructIcmpHdr hdr = new StructIcmpHdr(); local 50 hdr.packet[0] = ipv4 ? (byte) ICMP_ECHO : (byte) ICMP6_ECHO_REQUEST; 54 hdr.packet[6] = (byte) (seq >> 8); 55 hdr.packet[7] = (byte) seq; 56 return hdr;
|
/system/core/libmemunreachable/ |
LeakPipe.cpp | 27 struct msghdr hdr {}; struct 32 hdr.msg_iov = &iov; 33 hdr.msg_iovlen = 1; 37 hdr.msg_control = cmsgbuf; 38 hdr.msg_controllen = CMSG_LEN(sizeof(int)); 40 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&hdr); 47 int ret = sendmsg(sock, &hdr, 0); 61 struct msghdr hdr {}; struct 66 hdr.msg_iov = &iov; 67 hdr.msg_iovlen = 1 [all...] |
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/ |
bcmcdc.h | 60 #define CDC_GET_IF_IDX(hdr) \ 61 ((int)((((hdr)->flags) & CDCF_IOC_IF_MASK) >> CDCF_IOC_IF_SHIFT)) 62 #define CDC_SET_IF_IDX(hdr, idx) \ 63 ((hdr)->flags = (((hdr)->flags & ~CDCF_IOC_IF_MASK) | ((idx) << CDCF_IOC_IF_SHIFT))) 106 #define BDC_GET_IF_IDX(hdr) \ 107 ((int)((((hdr)->flags2) & BDC_FLAG2_IF_MASK) >> BDC_FLAG2_IF_SHIFT)) 108 #define BDC_SET_IF_IDX(hdr, idx) \ 109 ((hdr)->flags2 = (((hdr)->flags2 & ~BDC_FLAG2_IF_MASK) | ((idx) << BDC_FLAG2_IF_SHIFT)) [all...] |
/system/core/fastboot/ |
bootimg_utils.cpp | 55 boot_img_hdr_v1* hdr = reinterpret_cast<boot_img_hdr_v1*>(calloc(*bootimg_size, 1)); local 56 if (hdr == nullptr) { 57 return hdr; 60 memcpy(hdr->magic, BOOT_MAGIC, BOOT_MAGIC_SIZE); 62 hdr->kernel_size = kernel_size; 63 hdr->ramdisk_size = ramdisk_size; 64 hdr->second_size = second_size; 66 hdr->kernel_addr = base + kernel_offset; 67 hdr->ramdisk_addr = base + ramdisk_offset; 68 hdr->second_addr = base + second_offset [all...] |
/system/netd/libnetdutils/ |
Netlink.cpp | 30 nlmsghdr hdr = {}; local 31 extract(tail, hdr); 32 const auto len = std::max<size_t>(hdr.nlmsg_len, sizeof(hdr)); 33 onMsg(hdr, drop(take(tail, len), sizeof(hdr))); 42 nlattr hdr = {}; local 43 extract(tail, hdr); 44 const auto len = std::max<size_t>(hdr.nla_len, sizeof(hdr)); [all...] |
/bionic/libc/bionic/ |
bionic_netlink.cpp | 69 nlmsghdr hdr; member in struct:NetlinkMessage 73 request.hdr.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST; 74 request.hdr.nlmsg_type = type; 75 request.hdr.nlmsg_len = sizeof(request); 84 nlmsghdr* hdr = reinterpret_cast<nlmsghdr*>(data_); local 85 for (; NLMSG_OK(hdr, static_cast<size_t>(bytes_read)); hdr = NLMSG_NEXT(hdr, bytes_read)) { 86 if (hdr->nlmsg_type == NLMSG_DONE) return true; 87 if (hdr->nlmsg_type == NLMSG_ERROR) [all...] |
/external/syslinux/core/lwip/src/include/ipv4/lwip/ |
ip.h | 144 #define IPH_V(hdr) (ntohs((hdr)->_v_hl_tos) >> 12) 145 #define IPH_HL(hdr) ((ntohs((hdr)->_v_hl_tos) >> 8) & 0x0f) 146 #define IPH_TOS(hdr) (ntohs((hdr)->_v_hl_tos) & 0xff) 147 #define IPH_LEN(hdr) ((hdr)->_len) 148 #define IPH_ID(hdr) ((hdr)->_id [all...] |
/device/google/cuttlefish_common/host/commands/record_audio/ |
main.cc | 83 gce_audio_message hdr; local 84 std::memcpy(&hdr, buffer, sizeof(gce_audio_message)); 86 if (hdr.message_type != gce_audio_message::DATA_SAMPLES) { 95 << hdr.stream_number 97 << hdr.frame_num 99 << hdr.frame_rate 101 << hdr.channel_mask 103 << hdr.format 110 const size_t numChannels = hdr.frame_size / sizeof(int16_t); 113 new WaveWriter(FLAGS_output_file.c_str(), numChannels, hdr.frame_rate)) [all...] |
/external/tcpdump/ |
print-pflog.c | 89 pflog_print(netdissect_options *ndo, const struct pfloghdr *hdr) 93 rulenr = EXTRACT_32BITS(&hdr->rulenr); 94 subrulenr = EXTRACT_32BITS(&hdr->subrulenr); 98 ND_PRINT((ndo, "rule %u.%s.%u/", rulenr, hdr->ruleset, subrulenr)); 101 tok2str(pf_reasons, "unkn(%u)", hdr->reason), 102 tok2str(pf_actions, "unkn(%u)", hdr->action), 103 tok2str(pf_directions, "unkn(%u)", hdr->dir), 104 hdr->ifname)); 114 const struct pfloghdr *hdr; local 124 hdr = (const struct pfloghdr *)p [all...] |
/external/syslinux/gpxe/src/net/infiniband/ |
ib_mi.c | 76 struct ib_mad_hdr *hdr = &mad->hdr; local 82 if ( memcmp ( &hdr->tid, &madx->mad.hdr.tid, 83 sizeof ( hdr->tid ) ) != 0 ) 93 ( hdr->mgmt_class & IB_MGMT_CLASS_MASK ) ) || 94 ( agent->class_version != hdr->class_version ) || 95 ( agent->attr_id != hdr->attr_id ) ) 104 mi, ntohl ( hdr->tid[0] ), ntohl ( hdr->tid[1] ) ) 124 struct ib_mad_hdr *hdr; local 177 struct ib_mad_hdr *hdr = &mad->hdr; local 247 struct ib_mad_hdr *hdr = &madx->mad.hdr; local [all...] |
/bionic/libc/kernel/uapi/scsi/ |
scsi_netlink.h | 50 #define INIT_SCSI_NL_HDR(hdr,t,mtype,mlen) { (hdr)->version = SCSI_NL_VERSION; (hdr)->transport = t; (hdr)->magic = SCSI_NL_MAGIC; (hdr)->msgtype = mtype; (hdr)->msglen = mlen; }
|
/external/kernel-headers/original/uapi/scsi/ |
scsi_netlink.h | 114 #define INIT_SCSI_NL_HDR(hdr, t, mtype, mlen) \ 116 (hdr)->version = SCSI_NL_VERSION; \ 117 (hdr)->transport = t; \ 118 (hdr)->magic = SCSI_NL_MAGIC; \ 119 (hdr)->msgtype = mtype; \ 120 (hdr)->msglen = mlen; \
|
/external/vboot_reference/firmware/lib/ |
region-fw.c | 23 VbPublicKey hdr, *key; local 28 sizeof(VbPublicKey), &hdr); 33 size = hdr.key_offset + hdr.key_size; 34 if (size < sizeof(hdr)) 35 size = sizeof(hdr);
|
/external/fio/ |
verify.c | 31 struct verify_header *hdr, unsigned int header_num, 34 struct verify_header *hdr, unsigned int header_num, 37 struct verify_header *hdr, unsigned int header_num, 104 struct verify_header *hdr; local 112 hdr = p; 113 populate_hdr(td, io_u, hdr, header_num, hdr_inc); 205 struct verify_header *hdr) 210 return __hdr_size(hdr->verify_type); 213 static void *hdr_priv(struct verify_header *hdr) 215 void *priv = hdr; 886 struct verify_header *hdr; local 1674 struct verify_state_hdr hdr; local 1789 struct verify_state_hdr hdr; local [all...] |