/external/strace/ |
D | s390.c | 482 print_sthyi_machine(struct tcb *tcp, struct sthyi_machine *hdr, uint16_t size, in print_sthyi_machine() argument 487 CHECK_SIZE(hdr, size, "machine structure"); in print_sthyi_machine() 491 if (hdr->infmflg1) { /* Reserved */ in print_sthyi_machine() 492 PRINT_FIELD_0X("", *hdr, infmflg1); in print_sthyi_machine() 495 if (hdr->infmflg2) { /* Reserved */ in print_sthyi_machine() 496 PRINT_FIELD_0X(", ", *hdr, infmflg2); in print_sthyi_machine() 501 PRINT_FIELD_0X("", *hdr, infmval1); in print_sthyi_machine() 502 cnt_val = !!(hdr->infmval1 & 0x80); in print_sthyi_machine() 503 id_val = !!(hdr->infmval1 & 0x40); in print_sthyi_machine() 504 name_val = !!(hdr->infmval1 & 0x20); in print_sthyi_machine() [all …]
|
/external/wpa_supplicant_8/src/tls/ |
D | tlsv1_client_ocsp.c | 116 struct asn1_hdr hdr; in tls_process_ocsp_single_response() local 141 if (asn1_get_next(resp, len, &hdr) < 0 || in tls_process_ocsp_single_response() 142 hdr.class != ASN1_CLASS_UNIVERSAL || in tls_process_ocsp_single_response() 143 hdr.tag != ASN1_TAG_SEQUENCE) { in tls_process_ocsp_single_response() 146 hdr.class, hdr.tag); in tls_process_ocsp_single_response() 149 pos = hdr.payload; in tls_process_ocsp_single_response() 150 end = hdr.payload + hdr.length; in tls_process_ocsp_single_response() 165 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in tls_process_ocsp_single_response() 166 hdr.class != ASN1_CLASS_UNIVERSAL || in tls_process_ocsp_single_response() 167 hdr.tag != ASN1_TAG_OCTETSTRING) { in tls_process_ocsp_single_response() [all …]
|
D | tlsv1_cred.c | 446 struct asn1_hdr hdr; in pkcs12_certbag() local 458 if (asn1_get_next(buf, len, &hdr) < 0 || in pkcs12_certbag() 459 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs12_certbag() 460 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs12_certbag() 463 hdr.class, hdr.tag); in pkcs12_certbag() 467 pos = hdr.payload; in pkcs12_certbag() 468 end = hdr.payload + hdr.length; in pkcs12_certbag() 485 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs12_certbag() 486 hdr.class != ASN1_CLASS_CONTEXT_SPECIFIC || in pkcs12_certbag() 487 hdr.tag != 0) { in pkcs12_certbag() [all …]
|
D | x509v3.c | 185 struct asn1_hdr hdr; in x509_parse_algorithm_identifier() local 195 if (asn1_get_next(buf, len, &hdr) < 0 || in x509_parse_algorithm_identifier() 196 hdr.class != ASN1_CLASS_UNIVERSAL || in x509_parse_algorithm_identifier() 197 hdr.tag != ASN1_TAG_SEQUENCE) { in x509_parse_algorithm_identifier() 200 hdr.class, hdr.tag); in x509_parse_algorithm_identifier() 203 if (hdr.length > buf + len - hdr.payload) in x509_parse_algorithm_identifier() 205 pos = hdr.payload; in x509_parse_algorithm_identifier() 206 end = pos + hdr.length; in x509_parse_algorithm_identifier() 223 struct asn1_hdr hdr; in x509_parse_public_key() local 236 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in x509_parse_public_key() [all …]
|
D | pkcs8.c | 21 struct asn1_hdr hdr; in pkcs8_key_import() local 30 if (asn1_get_next(buf, len, &hdr) < 0 || in pkcs8_key_import() 31 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs8_key_import() 32 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs8_key_import() 37 pos = hdr.payload; in pkcs8_key_import() 38 end = pos + hdr.length; in pkcs8_key_import() 41 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs8_key_import() 42 hdr.class != ASN1_CLASS_UNIVERSAL || hdr.tag != ASN1_TAG_INTEGER) { in pkcs8_key_import() 45 hdr.class, hdr.tag); in pkcs8_key_import() 53 if (bignum_set_unsigned_bin(zero, hdr.payload, hdr.length) < 0) { in pkcs8_key_import() [all …]
|
D | pkcs5.c | 93 struct asn1_hdr hdr; in pkcs5_get_params_pbes2() local 109 if (asn1_get_next(pos, enc_alg_end - pos, &hdr) < 0 || in pkcs5_get_params_pbes2() 110 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs5_get_params_pbes2() 111 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs5_get_params_pbes2() 114 hdr.class, hdr.tag); in pkcs5_get_params_pbes2() 117 pos = hdr.payload; in pkcs5_get_params_pbes2() 118 end = hdr.payload + hdr.length; in pkcs5_get_params_pbes2() 120 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs5_get_params_pbes2() 121 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs5_get_params_pbes2() 122 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs5_get_params_pbes2() [all …]
|
D | asn1.c | 25 int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr) in asn1_get_next() argument 30 os_memset(hdr, 0, sizeof(*hdr)); in asn1_get_next() 38 hdr->identifier = *pos++; in asn1_get_next() 39 hdr->class = hdr->identifier >> 6; in asn1_get_next() 40 hdr->constructed = !!(hdr->identifier & (1 << 5)); in asn1_get_next() 42 if ((hdr->identifier & 0x1f) == 0x1f) { in asn1_get_next() 43 hdr->tag = 0; in asn1_get_next() 53 hdr->tag = (hdr->tag << 7) | (tmp & 0x7f); in asn1_get_next() 56 hdr->tag = hdr->identifier & 0x1f; in asn1_get_next() 70 hdr->length = 0; in asn1_get_next() [all …]
|
D | pkcs1.c | 205 struct asn1_hdr hdr; in pkcs1_v15_sig_ver() local 234 if (asn1_get_next(decrypted, decrypted_len, &hdr) < 0 || in pkcs1_v15_sig_ver() 235 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs1_v15_sig_ver() 236 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs1_v15_sig_ver() 239 hdr.class, hdr.tag); in pkcs1_v15_sig_ver() 244 pos = hdr.payload; in pkcs1_v15_sig_ver() 245 end = pos + hdr.length; in pkcs1_v15_sig_ver() 255 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs1_v15_sig_ver() 256 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs1_v15_sig_ver() 257 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs1_v15_sig_ver() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_debug_memory.c | 105 data_from_header(struct debug_memory_header *hdr) in data_from_header() argument 107 if(hdr) in data_from_header() 108 return (void *)((char *)hdr + sizeof(struct debug_memory_header)); in data_from_header() 114 footer_from_header(struct debug_memory_header *hdr) in footer_from_header() argument 116 if(hdr) in footer_from_header() 117 …return (struct debug_memory_footer *)((char *)hdr + sizeof(struct debug_memory_header) + hdr->size… in footer_from_header() 127 struct debug_memory_header *hdr; in debug_malloc() local 130 hdr = os_malloc(sizeof(*hdr) + size + sizeof(*ftr)); in debug_malloc() 131 if (!hdr) { in debug_malloc() 138 hdr->no = last_no++; in debug_malloc() [all …]
|
/external/u-boot/common/ |
D | image-android.c | 17 static ulong android_image_get_kernel_addr(const struct andr_img_hdr *hdr) in android_image_get_kernel_addr() argument 30 if (hdr->kernel_addr == ANDROID_IMAGE_DEFAULT_KERNEL_ADDR) in android_image_get_kernel_addr() 31 return (ulong)hdr + hdr->page_size; in android_image_get_kernel_addr() 33 return hdr->kernel_addr; in android_image_get_kernel_addr() 51 int android_image_get_kernel(const struct andr_img_hdr *hdr, int verify, in android_image_get_kernel() argument 54 u32 kernel_addr = android_image_get_kernel_addr(hdr); in android_image_get_kernel() 61 strncpy(andr_tmp_str, hdr->name, ANDR_BOOT_NAME_SIZE); in android_image_get_kernel() 67 kernel_addr, DIV_ROUND_UP(hdr->kernel_size, 1024)); in android_image_get_kernel() 70 if (*hdr->cmdline) { in android_image_get_kernel() 71 printf("Kernel command line: %s\n", hdr->cmdline); in android_image_get_kernel() [all …]
|
/external/u-boot/lib/ |
D | trace.c | 41 static struct trace_hdr *hdr; /* Pointer to start of trace buffer */ variable 62 if (hdr->depth > hdr->depth_limit) { in add_ftrace() 63 hdr->ftrace_too_deep_count++; in add_ftrace() 66 if (hdr->ftrace_count < hdr->ftrace_size) { in add_ftrace() 67 struct trace_call *rec = &hdr->ftrace[hdr->ftrace_count]; in add_ftrace() 73 hdr->ftrace_count++; in add_ftrace() 78 if (hdr->ftrace_count < hdr->ftrace_size) { in add_textbase() 79 struct trace_call *rec = &hdr->ftrace[hdr->ftrace_count]; in add_textbase() 85 hdr->ftrace_count++; in add_textbase() 105 if (func < hdr->func_count) { in __cyg_profile_func_enter() [all …]
|
/external/u-boot/tools/ |
D | lpc32xximage.c | 85 struct nand_page_0_boot_header *hdr = in lpc32xximage_verify_header() local 92 if (hdr->data[0] != (0xff & LPC32XX_BOOT_ICR)) in lpc32xximage_verify_header() 94 if (hdr->data[1] != (0xff & ~LPC32XX_BOOT_ICR)) in lpc32xximage_verify_header() 96 if (hdr->data[2] != (0xff & LPC32XX_BOOT_ICR)) in lpc32xximage_verify_header() 98 if (hdr->data[3] != (0xff & ~LPC32XX_BOOT_ICR)) in lpc32xximage_verify_header() 100 if (hdr->data[4] != (0xff & image_size_in_pages)) in lpc32xximage_verify_header() 102 if (hdr->data[5] != (0xff & ~image_size_in_pages)) in lpc32xximage_verify_header() 104 if (hdr->data[6] != (0xff & image_size_in_pages)) in lpc32xximage_verify_header() 106 if (hdr->data[7] != (0xff & ~image_size_in_pages)) in lpc32xximage_verify_header() 108 if (hdr->data[8] != (0xff & image_size_in_pages)) in lpc32xximage_verify_header() [all …]
|
D | vybridimage.c | 64 struct nand_page_0_boot_header *hdr = in vybridimage_verify_header() local 68 if (hdr->fcb[1] != 0x46434220) in vybridimage_verify_header() 70 if (hdr->fcb[2] != 1) in vybridimage_verify_header() 72 if (hdr->fcb[7] != 64) in vybridimage_verify_header() 74 if (hdr->fcb[14] != 6) in vybridimage_verify_header() 76 if (hdr->fcb[30] != 0x0001ff00) in vybridimage_verify_header() 78 if (hdr->fcb[43] != 1) in vybridimage_verify_header() 80 if (hdr->fcb[54] != 0) in vybridimage_verify_header() 82 if (hdr->fcb[55] != 8) in vybridimage_verify_header() 86 for (idx = 0; idx < sizeof(hdr->fcb_bytes); idx++) { in vybridimage_verify_header() [all …]
|
D | default_image.c | 48 image_header_t *hdr = &header; in image_verify_header() local 55 memcpy(hdr, ptr, sizeof(image_header_t)); in image_verify_header() 57 if (be32_to_cpu(hdr->ih_magic) != IH_MAGIC) { in image_verify_header() 63 data = (const unsigned char *)hdr; in image_verify_header() 66 checksum = be32_to_cpu(hdr->ih_hcrc); in image_verify_header() 67 hdr->ih_hcrc = cpu_to_be32(0); /* clear for re-calculation */ in image_verify_header() 78 checksum = be32_to_cpu(hdr->ih_dcrc); in image_verify_header() 96 image_header_t * hdr = (image_header_t *)ptr; in image_set_header() local 114 addr = optee_image_get_load_addr(hdr); in image_set_header() 115 ep = optee_image_get_entry_point(hdr); in image_set_header() [all …]
|
/external/u-boot/cmd/x86/ |
D | fsp.c | 29 struct fsp_header *hdr = find_fsp_header(); in do_hdr() local 30 u32 img_addr = hdr->img_base; in do_hdr() 31 char *sign = (char *)&hdr->sign; in do_hdr() 35 CONFIG_FSP_ADDR, (int)hdr); in do_hdr() 37 for (i = 0; i < sizeof(hdr->sign); i++) in do_hdr() 39 printf(", size %d, rev %d\n", hdr->hdr_len, hdr->hdr_rev); in do_hdr() 41 if (hdr->hdr_rev == FSP_HEADER_REVISION_1) { in do_hdr() 43 (hdr->img_rev >> 8) & 0xff, hdr->img_rev & 0xff); in do_hdr() 46 (hdr->img_rev >> 24) & 0xff, (hdr->img_rev >> 16) & 0xff, in do_hdr() 47 (hdr->img_rev >> 8) & 0xff, hdr->img_rev & 0xff); in do_hdr() [all …]
|
/external/ltp/testcases/network/stress/ns-tools/ |
D | ns-icmp_redirector.c | 293 ntohs(rcvarp_p->hdr.ar_op)); in return_arp_reply() 294 if (rcvarp_p->hdr.ar_op != htons(ARPOP_REQUEST)) in return_arp_reply() 326 memcpy(sndeth.hdr.h_dest, rcveth_p->hdr.h_source, ETH_ALEN); in return_arp_reply() 327 memcpy(sndeth.hdr.h_source, gateway_p->hd_addr, ETH_ALEN); in return_arp_reply() 328 sndeth.hdr.h_proto = htons(ETH_P_ARP); in return_arp_reply() 331 sndarp_p->hdr.ar_hrd = htons(ARPHRD_ETHER); in return_arp_reply() 332 sndarp_p->hdr.ar_pro = htons(ETH_P_IP); in return_arp_reply() 333 sndarp_p->hdr.ar_hln = ETH_ALEN; in return_arp_reply() 334 sndarp_p->hdr.ar_pln = 4; in return_arp_reply() 335 sndarp_p->hdr.ar_op = htons(ARPOP_REPLY); in return_arp_reply() [all …]
|
/external/libpcap/ |
D | sf-pcap.c | 110 static int pcap_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **datap); 141 struct pcap_file_header hdr; in pcap_check_header() local 170 hdr.magic = magic; in pcap_check_header() 171 amt_read = fread(((char *)&hdr) + sizeof hdr.magic, 1, in pcap_check_header() 172 sizeof(hdr) - sizeof(hdr.magic), fp); in pcap_check_header() 173 if (amt_read != sizeof(hdr) - sizeof(hdr.magic)) { in pcap_check_header() 180 (unsigned long)sizeof(hdr), in pcap_check_header() 191 hdr.version_major = SWAPSHORT(hdr.version_major); in pcap_check_header() 192 hdr.version_minor = SWAPSHORT(hdr.version_minor); in pcap_check_header() 193 hdr.thiszone = SWAPLONG(hdr.thiszone); in pcap_check_header() [all …]
|
/external/u-boot/arch/x86/lib/ |
D | zimage.c | 72 static int kernel_magic_ok(struct setup_header *hdr) in kernel_magic_ok() argument 74 if (KERNEL_MAGIC != hdr->boot_flag) { in kernel_magic_ok() 77 hdr->boot_flag, KERNEL_MAGIC); in kernel_magic_ok() 85 static int get_boot_protocol(struct setup_header *hdr) in get_boot_protocol() argument 87 if (hdr->header == KERNEL_V2_MAGIC) { in get_boot_protocol() 89 return hdr->version; in get_boot_protocol() 97 static int setup_device_tree(struct setup_header *hdr, const void *fdt_blob) in setup_device_tree() argument 99 int bootproto = get_boot_protocol(hdr); in setup_device_tree() 120 sd->next = hdr->setup_data; in setup_device_tree() 124 hdr->setup_data = (unsigned long)sd; in setup_device_tree() [all …]
|
/external/vboot_reference/tests/ |
D | vboot_common3_tests.c | 34 VbKeyBlockHeader *hdr; in KeyBlockVerifyTest() local 38 hdr = KeyBlockCreate(data_key, private_key, 0x1234); in KeyBlockVerifyTest() 39 TEST_NEQ((size_t)hdr, 0, "KeyBlockVerify() prerequisites"); in KeyBlockVerifyTest() 40 if (!hdr) in KeyBlockVerifyTest() 42 hsize = (unsigned) hdr->key_block_size; in KeyBlockVerifyTest() 45 TEST_EQ(KeyBlockVerify(hdr, hsize, NULL, 1), 0, in KeyBlockVerifyTest() 47 TEST_EQ(KeyBlockVerify(hdr, hsize, public_key, 0), 0, in KeyBlockVerifyTest() 49 TEST_NEQ(KeyBlockVerify(hdr, hsize, NULL, 0), 0, in KeyBlockVerifyTest() 52 TEST_NEQ(KeyBlockVerify(hdr, hsize - 1, NULL, 1), 0, in KeyBlockVerifyTest() 54 TEST_EQ(KeyBlockVerify(hdr, hsize + 1, NULL, 1), 0, in KeyBlockVerifyTest() [all …]
|
D | vb20_common3_tests.c | 40 struct vb2_keyblock *hdr; in test_verify_keyblock() local 51 hdr = (struct vb2_keyblock *) in test_verify_keyblock() 53 TEST_NEQ((size_t)hdr, 0, "vb2_verify_keyblock() prerequisites"); in test_verify_keyblock() 54 if (!hdr) in test_verify_keyblock() 56 hsize = hdr->keyblock_size; in test_verify_keyblock() 59 Memcpy(h, hdr, hsize); in test_verify_keyblock() 63 Memcpy(h, hdr, hsize); in test_verify_keyblock() 68 Memcpy(h, hdr, hsize); in test_verify_keyblock() 72 Memcpy(h, hdr, hsize); in test_verify_keyblock() 78 Memcpy(h, hdr, hsize); in test_verify_keyblock() [all …]
|
/external/u-boot/arch/x86/lib/fsp/ |
D | fsp_support.c | 219 const struct hob_header *hdr; in fsp_get_usable_lowmem_top() local 229 hdr = hob_list; in fsp_get_usable_lowmem_top() 233 while (!end_of_hob(hdr)) { in fsp_get_usable_lowmem_top() 234 if (hdr->type == HOB_TYPE_RES_DESC) { in fsp_get_usable_lowmem_top() 235 res_desc = (struct hob_res_desc *)hdr; in fsp_get_usable_lowmem_top() 250 if (hdr->type == HOB_TYPE_MEM_ALLOC) { in fsp_get_usable_lowmem_top() 251 res_mem = (struct hob_mem_alloc *)hdr; in fsp_get_usable_lowmem_top() 259 hdr = get_next_hob(hdr); in fsp_get_usable_lowmem_top() 281 const struct hob_header *hdr; in fsp_get_usable_highmem_top() local 287 hdr = hob_list; in fsp_get_usable_highmem_top() [all …]
|
/external/vboot_reference/firmware/lib/ |
D | vboot_audio.c | 66 VbDevMusic *hdr = CUSTOM_MUSIC_NOTES; in VbGetDevMusicNotes() local 73 "maxsize is %d\n", use_short, hdr, maxsize)); in VbGetDevMusicNotes() 88 if (!hdr || maxsize < sizeof(VbDevMusic)) in VbGetDevMusicNotes() 91 if (0 != Memcmp(hdr->sig, "$SND", sizeof(hdr->sig))) { in VbGetDevMusicNotes() 101 if (hdr->count == 0 || hdr->count > maxnotes) { in VbGetDevMusicNotes() 103 hdr->count, maxnotes)); in VbGetDevMusicNotes() 112 if ((sizeof(VbDevMusicNote) > UINT_MAX / hdr->count) || in VbGetDevMusicNotes() 113 (sizeof(hdr->count) > in VbGetDevMusicNotes() 114 UINT_MAX - hdr->count * sizeof(VbDevMusicNote))) { in VbGetDevMusicNotes() 116 hdr->count)); in VbGetDevMusicNotes() [all …]
|
/external/u-boot/lib/optee/ |
D | optee.c | 16 int optee_verify_image(struct optee_header *hdr, unsigned long tzdram_start, in optee_verify_image() argument 22 tee_file_size = hdr->init_size + hdr->paged_size + in optee_verify_image() 25 if (hdr->magic != OPTEE_MAGIC || in optee_verify_image() 26 hdr->version != OPTEE_VERSION || in optee_verify_image() 27 hdr->init_load_addr_hi > tzdram_end || in optee_verify_image() 28 hdr->init_load_addr_lo < tzdram_start || in optee_verify_image() 31 (hdr->init_load_addr_lo + tee_file_size) > tzdram_end) { in optee_verify_image() 42 struct optee_header *hdr = (struct optee_header *)image_addr; in optee_verify_bootm_image() local 48 ret = optee_verify_image(hdr, tzdram_start, tzdram_len, image_len); in optee_verify_bootm_image() 52 if (image_load_addr + sizeof(*hdr) != hdr->init_load_addr_lo) { in optee_verify_bootm_image() [all …]
|
/external/scapy/scapy/contrib/ |
D | http2.uts | 1102 hdr = pf.hdrs[0] 1103 assert(isinstance(hdr, h2.HPackLitHdrFldWithIncrIndexing)) 1104 assert(hdr.magic == 1) 1105 assert(hdr.index == 0) 1106 assert(isinstance(hdr.hdr_name, h2.HPackHdrString)) 1107 assert(hdr.hdr_name.type == 1) 1108 assert(hdr.hdr_name.len == 12) 1109 assert(hdr.hdr_name.getfieldval('data').origin() == 'X-Requested-With') 1110 assert(isinstance(hdr.hdr_value, h2.HPackHdrString)) 1111 assert(hdr.hdr_value.type == 0) [all …]
|
/external/mesa3d/src/mesa/main/ |
D | program_binary.c | 77 struct program_binary_header *hdr = binary; in write_program_binary() local 79 if (binary_size < sizeof(*hdr)) in write_program_binary() 85 if (payload_size > binary_size - sizeof(*hdr)) in write_program_binary() 88 hdr->internal_format = 0; in write_program_binary() 89 memcpy(hdr->sha1, sha1, sizeof(hdr->sha1)); in write_program_binary() 90 memcpy(hdr + 1, payload, payload_size); in write_program_binary() 91 hdr->size = payload_size; in write_program_binary() 93 hdr->crc32 = util_hash_crc32(hdr + 1, payload_size); in write_program_binary() 100 simple_header_checks(const struct program_binary_header *hdr, unsigned length) in simple_header_checks() argument 102 if (hdr == NULL || length < sizeof(*hdr)) in simple_header_checks() [all …]
|