/external/wpa_supplicant_8/src/tls/ |
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 | x509v3.c | 184 struct asn1_hdr hdr; in x509_parse_algorithm_identifier() local 194 if (asn1_get_next(buf, len, &hdr) < 0 || in x509_parse_algorithm_identifier() 195 hdr.class != ASN1_CLASS_UNIVERSAL || in x509_parse_algorithm_identifier() 196 hdr.tag != ASN1_TAG_SEQUENCE) { in x509_parse_algorithm_identifier() 199 hdr.class, hdr.tag); in x509_parse_algorithm_identifier() 202 pos = hdr.payload; in x509_parse_algorithm_identifier() 203 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() 237 hdr.class != ASN1_CLASS_UNIVERSAL || in x509_parse_public_key() [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() 34 hdr->identifier = *pos++; in asn1_get_next() 35 hdr->class = hdr->identifier >> 6; in asn1_get_next() 36 hdr->constructed = !!(hdr->identifier & (1 << 5)); in asn1_get_next() 38 if ((hdr->identifier & 0x1f) == 0x1f) { in asn1_get_next() 39 hdr->tag = 0; in asn1_get_next() 49 hdr->tag = (hdr->tag << 7) | (tmp & 0x7f); in asn1_get_next() 52 hdr->tag = hdr->identifier & 0x1f; in asn1_get_next() 62 hdr->length = 0; in asn1_get_next() [all …]
|
D | pkcs5.c | 48 struct asn1_hdr hdr; in pkcs5_get_params() local 81 if (asn1_get_next(pos, enc_alg_end - pos, &hdr) < 0 || in pkcs5_get_params() 82 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs5_get_params() 83 hdr.tag != ASN1_TAG_SEQUENCE) { in pkcs5_get_params() 86 hdr.class, hdr.tag); in pkcs5_get_params() 89 pos = hdr.payload; in pkcs5_get_params() 90 end = hdr.payload + hdr.length; in pkcs5_get_params() 93 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in pkcs5_get_params() 94 hdr.class != ASN1_CLASS_UNIVERSAL || in pkcs5_get_params() 95 hdr.tag != ASN1_TAG_OCTETSTRING || in pkcs5_get_params() [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 …]
|
D | tlsv1_cred.c | 355 struct asn1_hdr hdr; in tlsv1_set_dhparams_der() local 369 if (asn1_get_next(pos, len, &hdr) < 0 || in tlsv1_set_dhparams_der() 370 hdr.class != ASN1_CLASS_UNIVERSAL || in tlsv1_set_dhparams_der() 371 hdr.tag != ASN1_TAG_SEQUENCE) { in tlsv1_set_dhparams_der() 374 hdr.class, hdr.tag); in tlsv1_set_dhparams_der() 377 pos = hdr.payload; in tlsv1_set_dhparams_der() 380 if (asn1_get_next(pos, end - pos, &hdr) < 0) in tlsv1_set_dhparams_der() 383 if (hdr.class != ASN1_CLASS_UNIVERSAL || in tlsv1_set_dhparams_der() 384 hdr.tag != ASN1_TAG_INTEGER) { in tlsv1_set_dhparams_der() 386 "class=%d tag=0x%x", hdr.class, hdr.tag); in tlsv1_set_dhparams_der() [all …]
|
/external/mesa3d/src/mesa/program/ |
D | symbol_table.c | 50 struct symbol_header *hdr; member 108 struct symbol_header *hdr; member 145 const struct symbol_header *const hdr = sym->hdr; in check_symbol_table() local 148 for (sym2 = hdr->symbols in check_symbol_table() 151 assert(sym2->hdr == hdr); in check_symbol_table() 171 struct symbol_header *const hdr = sym->hdr; in _mesa_symbol_table_pop_scope() local 173 assert(hdr->symbols == sym); in _mesa_symbol_table_pop_scope() 175 hdr->symbols = sym->next_with_same_name; in _mesa_symbol_table_pop_scope() 209 struct symbol_header *const hdr = find_symbol(table, name); in _mesa_symbol_table_iterator_ctor() local 213 if (hdr != NULL) { in _mesa_symbol_table_iterator_ctor() [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/program/ |
D | symbol_table.c | 50 struct symbol_header *hdr; member 108 struct symbol_header *hdr; member 145 const struct symbol_header *const hdr = sym->hdr; in check_symbol_table() local 148 for (sym2 = hdr->symbols in check_symbol_table() 151 assert(sym2->hdr == hdr); in check_symbol_table() 171 struct symbol_header *const hdr = sym->hdr; in _mesa_symbol_table_pop_scope() local 173 assert(hdr->symbols == sym); in _mesa_symbol_table_pop_scope() 175 hdr->symbols = sym->next_with_same_name; in _mesa_symbol_table_pop_scope() 209 struct symbol_header *const hdr = find_symbol(table, name); in _mesa_symbol_table_iterator_ctor() local 213 if (hdr != NULL) { in _mesa_symbol_table_iterator_ctor() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
D | u_debug_memory.c | 91 data_from_header(struct debug_memory_header *hdr) in data_from_header() argument 93 if(hdr) in data_from_header() 94 return (void *)((char *)hdr + sizeof(struct debug_memory_header)); in data_from_header() 100 footer_from_header(struct debug_memory_header *hdr) in footer_from_header() argument 102 if(hdr) in footer_from_header() 103 …return (struct debug_memory_footer *)((char *)hdr + sizeof(struct debug_memory_header) + hdr->size… in footer_from_header() 113 struct debug_memory_header *hdr; in debug_malloc() local 116 hdr = os_malloc(sizeof(*hdr) + size + sizeof(*ftr)); in debug_malloc() 117 if(!hdr) { in debug_malloc() 124 hdr->no = last_no++; in debug_malloc() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_debug_memory.c | 91 data_from_header(struct debug_memory_header *hdr) in data_from_header() argument 93 if(hdr) in data_from_header() 94 return (void *)((char *)hdr + sizeof(struct debug_memory_header)); in data_from_header() 100 footer_from_header(struct debug_memory_header *hdr) in footer_from_header() argument 102 if(hdr) in footer_from_header() 103 …return (struct debug_memory_footer *)((char *)hdr + sizeof(struct debug_memory_header) + hdr->size… in footer_from_header() 113 struct debug_memory_header *hdr; in debug_malloc() local 116 hdr = os_malloc(sizeof(*hdr) + size + sizeof(*ftr)); in debug_malloc() 117 if(!hdr) { in debug_malloc() 124 hdr->no = last_no++; in debug_malloc() [all …]
|
/external/fio/ |
D | verify.c | 29 struct verify_header *hdr, unsigned int header_num, 106 struct verify_header *hdr; in fill_pattern_headers() local 114 hdr = p; in fill_pattern_headers() 115 populate_hdr(td, io_u, hdr, header_num, hdr_inc); in fill_pattern_headers() 196 static inline unsigned int hdr_size(struct verify_header *hdr) in hdr_size() argument 198 return __hdr_size(hdr->verify_type); in hdr_size() 201 static void *hdr_priv(struct verify_header *hdr) in hdr_priv() argument 203 void *priv = hdr; in hdr_priv() 283 static void dump_verify_buffers(struct verify_header *hdr, struct vcont *vc) in dump_verify_buffers() argument 297 hdr_offset = vc->hdr_num * hdr->len; in dump_verify_buffers() [all …]
|
/external/libpcap/ |
D | sf-pcap.c | 123 static int pcap_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **datap); 154 struct pcap_file_header hdr; in pcap_check_header() local 183 hdr.magic = magic; in pcap_check_header() 184 amt_read = fread(((char *)&hdr) + sizeof hdr.magic, 1, in pcap_check_header() 185 sizeof(hdr) - sizeof(hdr.magic), fp); in pcap_check_header() 186 if (amt_read != sizeof(hdr) - sizeof(hdr.magic)) { in pcap_check_header() 194 (unsigned long)sizeof(hdr), in pcap_check_header() 205 hdr.version_major = SWAPSHORT(hdr.version_major); in pcap_check_header() 206 hdr.version_minor = SWAPSHORT(hdr.version_minor); in pcap_check_header() 207 hdr.thiszone = SWAPLONG(hdr.thiszone); in pcap_check_header() [all …]
|
/external/chromium_org/ui/gfx/ |
D | gdi_util.cc | 12 void CreateBitmapHeader(int width, int height, BITMAPINFOHEADER* hdr) { in CreateBitmapHeader() argument 13 CreateBitmapHeaderWithColorDepth(width, height, 32, hdr); in CreateBitmapHeader() 17 BITMAPINFOHEADER* hdr) { in CreateBitmapHeaderWithColorDepth() argument 19 hdr->biSize = sizeof(BITMAPINFOHEADER); in CreateBitmapHeaderWithColorDepth() 20 hdr->biWidth = width; in CreateBitmapHeaderWithColorDepth() 21 hdr->biHeight = -height; // minus means top-down bitmap in CreateBitmapHeaderWithColorDepth() 22 hdr->biPlanes = 1; in CreateBitmapHeaderWithColorDepth() 23 hdr->biBitCount = color_depth; in CreateBitmapHeaderWithColorDepth() 24 hdr->biCompression = BI_RGB; // no compression in CreateBitmapHeaderWithColorDepth() 25 hdr->biSizeImage = 0; in CreateBitmapHeaderWithColorDepth() [all …]
|
/external/chromium_org/net/tools/quic/ |
D | quic_socket_utils.cc | 26 IPAddressNumber QuicSocketUtils::GetAddressFromMsghdr(struct msghdr *hdr) { in GetAddressFromMsghdr() argument 27 if (hdr->msg_controllen > 0) { in GetAddressFromMsghdr() 28 for (cmsghdr* cmsg = CMSG_FIRSTHDR(hdr); in GetAddressFromMsghdr() 30 cmsg = CMSG_NXTHDR(hdr, cmsg)) { in GetAddressFromMsghdr() 54 bool QuicSocketUtils::GetOverflowFromMsghdr(struct msghdr *hdr, in GetOverflowFromMsghdr() argument 56 if (hdr->msg_controllen > 0) { in GetOverflowFromMsghdr() 58 for (cmsg = CMSG_FIRSTHDR(hdr); in GetOverflowFromMsghdr() 60 cmsg = CMSG_NXTHDR(hdr, cmsg)) { in GetOverflowFromMsghdr() 113 msghdr hdr; in ReadPacket() local 115 hdr.msg_name = &raw_address; in ReadPacket() [all …]
|
/external/fio/engines/ |
D | sg.c | 33 static void sgio_hdr_init(struct sgio_data *sd, struct sg_io_hdr *hdr, in sgio_hdr_init() argument 38 memset(hdr, 0, sizeof(*hdr)); in sgio_hdr_init() 41 hdr->interface_id = 'S'; in sgio_hdr_init() 42 hdr->cmdp = sc->cdb; in sgio_hdr_init() 43 hdr->cmd_len = sizeof(sc->cdb); in sgio_hdr_init() 44 hdr->pack_id = io_u->index; in sgio_hdr_init() 45 hdr->usr_ptr = io_u; in sgio_hdr_init() 48 hdr->dxferp = io_u->xfer_buf; in sgio_hdr_init() 49 hdr->dxfer_len = io_u->xfer_buflen; in sgio_hdr_init() 140 struct sg_io_hdr *hdr = (struct sg_io_hdr *) buf + i; in fio_sgio_getevents() local [all …]
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_common.c | 27 const struct eap_hdr *hdr; in eap_hdr_len_valid() local 33 hdr = wpabuf_head(msg); in eap_hdr_len_valid() 35 if (wpabuf_len(msg) < sizeof(*hdr)) { in eap_hdr_len_valid() 40 len = be_to_host16(hdr->length); in eap_hdr_len_valid() 41 if (len < sizeof(*hdr) + min_payload || len > wpabuf_len(msg)) { in eap_hdr_len_valid() 69 const struct eap_hdr *hdr; in eap_hdr_validate() local 76 hdr = wpabuf_head(msg); in eap_hdr_validate() 77 len = be_to_host16(hdr->length); in eap_hdr_validate() 78 pos = (const u8 *) (hdr + 1); in eap_hdr_validate() 83 if (len < sizeof(*hdr) + 8) { in eap_hdr_validate() [all …]
|
/external/skia/third_party/ktx/ |
D | ktx.cpp | 324 Header hdr; in WriteETC1ToKTX() local 325 hdr.fGLType = 0; in WriteETC1ToKTX() 326 hdr.fGLTypeSize = 1; in WriteETC1ToKTX() 327 hdr.fGLFormat = 0; in WriteETC1ToKTX() 328 hdr.fGLInternalFormat = GR_GL_COMPRESSED_RGB8_ETC1; in WriteETC1ToKTX() 329 hdr.fGLBaseInternalFormat = GR_GL_RGB; in WriteETC1ToKTX() 330 hdr.fPixelWidth = width; in WriteETC1ToKTX() 331 hdr.fPixelHeight = height; in WriteETC1ToKTX() 332 hdr.fNumberOfArrayElements = 0; in WriteETC1ToKTX() 333 hdr.fNumberOfFaces = 1; in WriteETC1ToKTX() [all …]
|
/external/tcpdump/ |
D | print-pflog.c | 94 pflog_print(const struct pfloghdr *hdr) in pflog_print() argument 98 rulenr = EXTRACT_32BITS(&hdr->rulenr); in pflog_print() 99 subrulenr = EXTRACT_32BITS(&hdr->subrulenr); in pflog_print() 103 printf("rule %u.%s.%u/", rulenr, hdr->ruleset, subrulenr); in pflog_print() 106 tok2str(pf_reasons, "unkn(%u)", hdr->reason), in pflog_print() 107 tok2str(pf_actions, "unkn(%u)", hdr->action), in pflog_print() 108 tok2str(pf_directions, "unkn(%u)", hdr->dir), in pflog_print() 109 hdr->ifname); in pflog_print() 118 const struct pfloghdr *hdr; in pflog_if_print() local 128 hdr = (struct pfloghdr *)p; in pflog_if_print() [all …]
|
/external/srtp/test/ |
D | srtp_driver.c | 96 srtp_packet_to_string(srtp_hdr_t *hdr, int packet_len); 381 srtp_hdr_t *hdr; in srtp_create_test_packet() local 385 hdr = (srtp_hdr_t*) malloc(pkt_octet_len + bytes_in_hdr in srtp_create_test_packet() 387 if (!hdr) in srtp_create_test_packet() 390 hdr->version = 2; /* RTP version two */ in srtp_create_test_packet() 391 hdr->p = 0; /* no padding needed */ in srtp_create_test_packet() 392 hdr->x = 0; /* no header extension */ in srtp_create_test_packet() 393 hdr->cc = 0; /* no CSRCs */ in srtp_create_test_packet() 394 hdr->m = 0; /* marker bit */ in srtp_create_test_packet() 395 hdr->pt = 0xf; /* payload type */ in srtp_create_test_packet() [all …]
|
/external/chromium_org/third_party/skia/third_party/ktx/ |
D | ktx.cpp | 384 Header hdr; in WriteETC1ToKTX() local 385 hdr.fGLType = 0; in WriteETC1ToKTX() 386 hdr.fGLTypeSize = 1; in WriteETC1ToKTX() 387 hdr.fGLFormat = 0; in WriteETC1ToKTX() 388 hdr.fGLInternalFormat = GR_GL_COMPRESSED_RGB8_ETC1; in WriteETC1ToKTX() 389 hdr.fGLBaseInternalFormat = GR_GL_RGB; in WriteETC1ToKTX() 390 hdr.fPixelWidth = width; in WriteETC1ToKTX() 391 hdr.fPixelHeight = height; in WriteETC1ToKTX() 392 hdr.fNumberOfArrayElements = 0; in WriteETC1ToKTX() 393 hdr.fNumberOfFaces = 1; in WriteETC1ToKTX() [all …]
|
/external/chromium_org/third_party/libsrtp/srtp/test/ |
D | srtp_driver.c | 102 srtp_packet_to_string(srtp_hdr_t *hdr, int packet_len); 411 srtp_hdr_t *hdr; in srtp_create_test_packet() local 415 hdr = (srtp_hdr_t*) malloc(pkt_octet_len + bytes_in_hdr in srtp_create_test_packet() 417 if (!hdr) in srtp_create_test_packet() 420 hdr->version = 2; /* RTP version two */ in srtp_create_test_packet() 421 hdr->p = 0; /* no padding needed */ in srtp_create_test_packet() 422 hdr->x = 0; /* no header extension */ in srtp_create_test_packet() 423 hdr->cc = 0; /* no CSRCs */ in srtp_create_test_packet() 424 hdr->m = 0; /* marker bit */ in srtp_create_test_packet() 425 hdr->pt = 0xf; /* payload type */ in srtp_create_test_packet() [all …]
|
/external/chromium_org/third_party/sqlite/src/src/ |
D | mem3.c | 86 } hdr; member 170 assert( (mem3.aPool[i-1].u.hdr.size4x & 1)==0 ); in memsys3Unlink() 172 size = mem3.aPool[i-1].u.hdr.size4x/4; in memsys3Unlink() 173 assert( size==mem3.aPool[i+size-1].u.hdr.prevSize ); in memsys3Unlink() 205 assert( (mem3.aPool[i-1].u.hdr.size4x & 1)==0 ); in memsys3Link() 206 size = mem3.aPool[i-1].u.hdr.size4x/4; in memsys3Link() 207 assert( size==mem3.aPool[i+size-1].u.hdr.prevSize ); in memsys3Link() 256 assert( mem3.aPool[i-1].u.hdr.size4x/4==nBlock ); in memsys3Checkout() 257 assert( mem3.aPool[i+nBlock-1].u.hdr.prevSize==nBlock ); in memsys3Checkout() 258 x = mem3.aPool[i-1].u.hdr.size4x; in memsys3Checkout() [all …]
|
/external/bluetooth/bluedroid/bta/dm/ |
D | bta_dm_int.h | 162 BT_HDR hdr; member 169 BT_HDR hdr; member 176 BT_HDR hdr; member 186 BT_HDR hdr; member 194 BT_HDR hdr; member 213 BT_HDR hdr; member 227 BT_HDR hdr; member 243 BT_HDR hdr; member 253 BT_HDR hdr; member 261 BT_HDR hdr; member [all …]
|
/external/bluetooth/bluedroid/bta/av/ |
D | bta_av_api.c | 70 p_buf->hdr.event = BTA_AV_API_ENABLE_EVT; in BTA_AvEnable() 119 p_buf->hdr.layer_specific = chnl; in BTA_AvRegister() 120 p_buf->hdr.event = BTA_AV_API_REGISTER_EVT; in BTA_AvRegister() 175 p_buf->hdr.event = BTA_AV_API_OPEN_EVT; in BTA_AvOpen() 176 p_buf->hdr.layer_specific = handle; in BTA_AvOpen() 222 p_buf->hdr.event = BTA_AV_API_DISCONNECT_EVT; in BTA_AvDisconnect() 290 p_buf->hdr.event = BTA_AV_API_STOP_EVT; in BTA_AvStop() 317 p_buf->hdr.layer_specific = hndl; in BTA_AvReconfig() 318 p_buf->hdr.event = BTA_AV_API_RECONFIG_EVT; in BTA_AvReconfig() 345 p_buf->hdr.layer_specific = hndl; in BTA_AvProtectReq() [all …]
|
/external/bluetooth/bluedroid/bta/jv/ |
D | bta_jv_int.h | 83 BT_HDR hdr; member 90 BT_HDR hdr; member 98 BT_HDR hdr; member 105 BT_HDR hdr; member 112 BT_HDR hdr; member 119 BT_HDR hdr; member 131 BT_HDR hdr; member 139 BT_HDR hdr; member 147 BT_HDR hdr; member 154 BT_HDR hdr; member [all …]
|