/third_party/musl/porting/liteos_a/user/src/network/ |
D | ent.c | 37 static struct hostdata *hd = NULL; variable 43 if (hd->buf[0] == '#') in gethostent_resolv() 46 ch = strchr(hd->buf, '#'); in gethostent_resolv() 49 ch = strtok_r(hd->buf, " \t\n", &ptr); in gethostent_resolv() 53 if (inet_pton(AF_INET, ch, hd->addr_list[0]) == 1) { in gethostent_resolv() 54 hd->he.h_addrtype = AF_INET; in gethostent_resolv() 55 hd->he.h_length = INET_ADDR_LEN; in gethostent_resolv() 56 hd->addr_list[0][INET_ADDR_LEN] = '\0'; in gethostent_resolv() 57 } else if (inet_pton(AF_INET6, ch, hd->addr_list[0]) == 1) { in gethostent_resolv() 58 hd->he.h_addrtype = AF_INET6; in gethostent_resolv() [all …]
|
/third_party/node/deps/nghttp2/lib/ |
D | nghttp2_frame.c | 37 void nghttp2_frame_pack_frame_hd(uint8_t *buf, const nghttp2_frame_hd *hd) { in nghttp2_frame_pack_frame_hd() argument 38 nghttp2_put_uint32be(&buf[0], (uint32_t)(hd->length << 8)); in nghttp2_frame_pack_frame_hd() 39 buf[3] = hd->type; in nghttp2_frame_pack_frame_hd() 40 buf[4] = hd->flags; in nghttp2_frame_pack_frame_hd() 41 nghttp2_put_uint32be(&buf[5], (uint32_t)hd->stream_id); in nghttp2_frame_pack_frame_hd() 45 void nghttp2_frame_unpack_frame_hd(nghttp2_frame_hd *hd, const uint8_t *buf) { in nghttp2_frame_unpack_frame_hd() argument 46 hd->length = nghttp2_get_uint32(&buf[0]) >> 8; in nghttp2_frame_unpack_frame_hd() 47 hd->type = buf[3]; in nghttp2_frame_unpack_frame_hd() 48 hd->flags = buf[4]; in nghttp2_frame_unpack_frame_hd() 49 hd->stream_id = nghttp2_get_uint32(&buf[5]) & NGHTTP2_STREAM_ID_MASK; in nghttp2_frame_unpack_frame_hd() [all …]
|
D | nghttp2_session.c | 95 if (!stream || frame->hd.type != NGHTTP2_HEADERS) { in session_trailer_headers() 304 switch (iframe->frame.hd.type) { in session_inbound_frame_reset() 341 iframe->frame.hd.type)) { in session_inbound_frame_reset() 344 switch (iframe->frame.hd.type) { in session_inbound_frame_reset() 854 stream = nghttp2_session_get_stream(session, frame->hd.stream_id); in nghttp2_session_add_item() 856 switch (frame->hd.type) { in nghttp2_session_add_item() 935 } else if (frame->hd.stream_id == 0) { in nghttp2_session_add_item() 982 assert(headers_frame->hd.type == NGHTTP2_HEADERS); in nghttp2_session_add_rst_stream() 984 if (headers_frame->hd.stream_id <= stream_id) { in nghttp2_session_add_rst_stream() 989 if (item->frame.hd.stream_id < stream_id) { in nghttp2_session_add_rst_stream() [all …]
|
/third_party/nghttp2/lib/ |
D | nghttp2_frame.c | 37 void nghttp2_frame_pack_frame_hd(uint8_t *buf, const nghttp2_frame_hd *hd) { in nghttp2_frame_pack_frame_hd() argument 38 nghttp2_put_uint32be(&buf[0], (uint32_t)(hd->length << 8)); in nghttp2_frame_pack_frame_hd() 39 buf[3] = hd->type; in nghttp2_frame_pack_frame_hd() 40 buf[4] = hd->flags; in nghttp2_frame_pack_frame_hd() 41 nghttp2_put_uint32be(&buf[5], (uint32_t)hd->stream_id); in nghttp2_frame_pack_frame_hd() 45 void nghttp2_frame_unpack_frame_hd(nghttp2_frame_hd *hd, const uint8_t *buf) { in nghttp2_frame_unpack_frame_hd() argument 46 hd->length = nghttp2_get_uint32(&buf[0]) >> 8; in nghttp2_frame_unpack_frame_hd() 47 hd->type = buf[3]; in nghttp2_frame_unpack_frame_hd() 48 hd->flags = buf[4]; in nghttp2_frame_unpack_frame_hd() 49 hd->stream_id = nghttp2_get_uint32(&buf[5]) & NGHTTP2_STREAM_ID_MASK; in nghttp2_frame_unpack_frame_hd() [all …]
|
D | nghttp2_session.c | 96 if (!stream || frame->hd.type != NGHTTP2_HEADERS) { in session_trailer_headers() 310 switch (iframe->frame.hd.type) { in session_inbound_frame_reset() 347 iframe->frame.hd.type)) { in session_inbound_frame_reset() 350 switch (iframe->frame.hd.type) { in session_inbound_frame_reset() 1118 stream = nghttp2_session_get_stream(session, frame->hd.stream_id); in nghttp2_session_add_item() 1120 switch (frame->hd.type) { in nghttp2_session_add_item() 1199 } else if (frame->hd.stream_id == 0) { in nghttp2_session_add_item() 1246 assert(headers_frame->hd.type == NGHTTP2_HEADERS); in nghttp2_session_add_rst_stream() 1248 if (headers_frame->hd.stream_id <= stream_id) { in nghttp2_session_add_rst_stream() 1253 if (item->frame.hd.stream_id < stream_id) { in nghttp2_session_add_rst_stream() [all …]
|
/third_party/nghttp2/src/ |
D | HttpServer.cc | 126 auto hd = stream->handler; in stream_timeout_cb() local 127 auto config = hd->get_config(); in stream_timeout_cb() 129 ev_timer_stop(hd->get_loop(), &stream->rtimer); in stream_timeout_cb() 130 ev_timer_stop(hd->get_loop(), &stream->wtimer); in stream_timeout_cb() 133 print_session_id(hd->session_id()); in stream_timeout_cb() 138 hd->submit_rst_stream(stream, NGHTTP2_INTERNAL_ERROR); in stream_timeout_cb() 140 rv = hd->on_write(); in stream_timeout_cb() 142 delete_handler(hd); in stream_timeout_cb() 149 auto hd = stream->handler; in add_stream_read_timeout() local 150 ev_timer_again(hd->get_loop(), &stream->rtimer); in add_stream_read_timeout() [all …]
|
D | app_helper.cc | 176 void print_frame_hd(const nghttp2_frame_hd &hd) { in print_frame_hd() argument 177 fprintf(outfile, "<length=%zu, flags=0x%02x, stream_id=%d>\n", hd.length, in print_frame_hd() 178 hd.flags, hd.stream_id); in print_frame_hd() 183 void print_flags(const nghttp2_frame_hd &hd) { in print_flags() argument 185 switch (hd.type) { in print_flags() 187 if (hd.flags & NGHTTP2_FLAG_END_STREAM) { in print_flags() 190 if (hd.flags & NGHTTP2_FLAG_PADDED) { in print_flags() 198 if (hd.flags & NGHTTP2_FLAG_END_STREAM) { in print_flags() 201 if (hd.flags & NGHTTP2_FLAG_END_HEADERS) { in print_flags() 207 if (hd.flags & NGHTTP2_FLAG_PADDED) { in print_flags() [all …]
|
D | shrpx_quic_connection_handler.cc | 171 ngtcp2_pkt_hd hd; in handle_packet() local 176 switch (ngtcp2_accept(&hd, data, datalen)) { in handle_packet() 200 send_connection_close(faddr, hd.version, hd.dcid, hd.scid, remote_addr, in handle_packet() 206 if (hd.tokenlen == 0) { in handle_packet() 217 switch (hd.token[0]) { in handle_packet() 228 if (verify_retry_token(odcid, hd.token, hd.tokenlen, hd.version, in handle_packet() 229 hd.dcid, &remote_addr.su.sa, remote_addr.len, in handle_packet() 238 send_connection_close(faddr, hd.version, hd.dcid, hd.scid, in handle_packet() 250 token = hd.token; in handle_packet() 251 tokenlen = hd.tokenlen; in handle_packet() [all …]
|
D | shrpx_mruby_module.cc | 91 for (auto &hd : headers) { in create_headers_hash() local 92 if (hd.name.empty() || hd.name[0] == ':') { in create_headers_hash() 97 auto key = mrb_str_new(mrb, hd.name.c_str(), hd.name.size()); in create_headers_hash() 103 mrb_ary_push(mrb, ary, mrb_str_new(mrb, hd.value.c_str(), hd.value.size())); in create_headers_hash()
|
D | h2load_http2_session.cc | 50 if (frame->hd.type != NGHTTP2_HEADERS || in on_header_callback() 54 client->on_header(frame->hd.stream_id, name, namelen, value, valuelen); in on_header_callback() 58 std::cout << "[stream_id=" << frame->hd.stream_id << "] "; in on_header_callback() 73 if (frame->hd.type != NGHTTP2_HEADERS || in on_frame_recv_callback() 78 frame->hd.length - frame->headers.padlen - in on_frame_recv_callback() 79 ((frame->hd.flags & NGHTTP2_FLAG_PRIORITY) ? 5 : 0); in on_frame_recv_callback() 80 if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) { in on_frame_recv_callback() 111 if (frame->hd.type != NGHTTP2_HEADERS || in before_frame_send_callback() 117 auto req_stat = client->get_req_stat(frame->hd.stream_id); in before_frame_send_callback()
|
D | shrpx_http2_session.cc | 906 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id)); in on_header_callback2() 918 switch (frame->hd.type) { in on_header_callback2() 1016 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id)); in on_invalid_header_callback2() 1023 if (frame->hd.type == NGHTTP2_PUSH_PROMISE) { in on_invalid_header_callback2() 1026 stream_id = frame->hd.stream_id; in on_invalid_header_callback2() 1035 << " in frame type=" << static_cast<uint32_t>(frame->hd.type) in on_invalid_header_callback2() 1051 switch (frame->hd.type) { in on_begin_headers_callback() 1058 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id)); in on_begin_headers_callback() 1060 http2session->submit_rst_stream(frame->hd.stream_id, in on_begin_headers_callback() 1069 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id)); in on_begin_headers_callback() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | crypto_gnutls.c | 23 gcry_md_hd_t hd; in gnutls_digest_vector() local 30 if (gcry_md_open(&hd, algo, 0) != GPG_ERR_NO_ERROR) in gnutls_digest_vector() 33 gcry_md_write(hd, addr[i], len[i]); in gnutls_digest_vector() 34 p = gcry_md_read(hd, algo); in gnutls_digest_vector() 37 gcry_md_close(hd); in gnutls_digest_vector() 50 gcry_cipher_hd_t hd; in des_encrypt() local 63 gcry_cipher_open(&hd, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_ECB, 0); in des_encrypt() 64 gcry_err_code(gcry_cipher_setkey(hd, pkey, 8)); in des_encrypt() 65 gcry_cipher_encrypt(hd, cypher, 8, clear, 8); in des_encrypt() 66 gcry_cipher_close(hd); in des_encrypt() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | crypto_gnutls.c | 23 gcry_md_hd_t hd; in gnutls_digest_vector() local 30 if (gcry_md_open(&hd, algo, 0) != GPG_ERR_NO_ERROR) in gnutls_digest_vector() 33 gcry_md_write(hd, addr[i], len[i]); in gnutls_digest_vector() 34 p = gcry_md_read(hd, algo); in gnutls_digest_vector() 37 gcry_md_close(hd); in gnutls_digest_vector() 50 gcry_cipher_hd_t hd; in des_encrypt() local 63 gcry_cipher_open(&hd, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_ECB, 0); in des_encrypt() 64 gcry_err_code(gcry_cipher_setkey(hd, pkey, 8)); in des_encrypt() 65 gcry_cipher_encrypt(hd, cypher, 8, clear, 8); in des_encrypt() 66 gcry_cipher_close(hd); in des_encrypt() [all …]
|
/third_party/protobuf/ruby/ext/google/protobuf_c/ |
D | encode_decode.c | 73 static void *stringsink_start(void *_sink, const void *hd, size_t size_hint) { in stringsink_start() argument 79 static size_t stringsink_string(void *_sink, const void *hd, const char *ptr, in stringsink_string() argument 84 UPB_UNUSED(hd); in stringsink_string() 131 field_handlerdata_t *hd = ALLOC(field_handlerdata_t); in newhandlerdata() local 132 hd->ofs = ofs; in newhandlerdata() 133 hd->hasbit = hasbit; in newhandlerdata() 134 upb_handlers_addcleanup(h, hd, xfree); in newhandlerdata() 135 return hd; in newhandlerdata() 151 submsg_handlerdata_t *hd = ALLOC(submsg_handlerdata_t); in newsubmsghandlerdata() local 153 hd->ofs = ofs; in newsubmsghandlerdata() [all …]
|
/third_party/ntfs-3g/libntfs-3g/ |
D | device.c | 663 hd_t *hd, *devlist, *partlist = NULL; in ntfs_device_get_geo() local 685 for (hd = devlist; hd; hd = hd->next) { in ntfs_device_get_geo() 686 if (hd->unix_dev_name && !strncmp(dev->d_name, in ntfs_device_get_geo() 687 hd->unix_dev_name, d_name_len)) in ntfs_device_get_geo() 689 if (hd->unix_dev_name2 && !strncmp(dev->d_name, in ntfs_device_get_geo() 690 hd->unix_dev_name2, d_name_len)) in ntfs_device_get_geo() 692 for (names = hd->unix_dev_names; names; in ntfs_device_get_geo() 705 for (hd = partlist; hd; hd = hd->next) { in ntfs_device_get_geo() 706 if (hd->unix_dev_name && !strncmp(dev->d_name, in ntfs_device_get_geo() 707 hd->unix_dev_name, d_name_len)) in ntfs_device_get_geo() [all …]
|
/third_party/nghttp2/tests/ |
D | nghttp2_session_test.c | 197 const nghttp2_frame_hd *hd, in on_begin_frame_callback() argument 201 (void)hd; in on_begin_frame_callback() 213 ud->recv_frame_type = frame->hd.type; in on_frame_recv_callback() 214 ud->recv_frame_hd = frame->hd; in on_frame_recv_callback() 237 ud->sent_frame_type = frame->hd.type; in on_frame_send_callback() 248 ud->not_sent_frame_type = frame->hd.type; in on_frame_not_send_callback() 299 return (ssize_t)nghttp2_min(max_payloadlen, frame->hd.length + ud->padlen); in select_padding_callback() 602 const nghttp2_frame_hd *hd, in on_extension_chunk_recv_callback() argument 608 (void)hd; in on_extension_chunk_recv_callback() 616 const nghttp2_frame_hd *hd, in cancel_on_extension_chunk_recv_callback() argument [all …]
|
D | nghttp2_frame_test.c | 63 int32_t stream_id, nghttp2_frame_hd *hd) { in check_frame_header() argument 64 CU_ASSERT(length == hd->length); in check_frame_header() 65 CU_ASSERT(type == hd->type); in check_frame_header() 66 CU_ASSERT(flags == hd->flags); in check_frame_header() 67 CU_ASSERT(stream_id == hd->stream_id); in check_frame_header() 68 CU_ASSERT(0 == hd->reserved); in check_frame_header() 110 1000000007, &oframe.hd); in test_nghttp2_frame_pack_headers() 129 frame.hd.flags |= NGHTTP2_FLAG_PRIORITY; in test_nghttp2_frame_pack_headers() 141 1000000007, &oframe.hd); in test_nghttp2_frame_pack_headers() 148 nghttp2_frame_priority_len(oframe.hd.flags); in test_nghttp2_frame_pack_headers() [all …]
|
/third_party/ffmpeg/libavformat/ |
D | gopher.c | 35 URLContext *hd; member 41 return ffurl_write(s->hd, buf, size); in gopher_write() 74 ffurl_closep(&s->hd); in gopher_close() 99 s->hd = NULL; in gopher_open() 100 err = ffurl_open_whitelist(&s->hd, buf, AVIO_FLAG_READ_WRITE, in gopher_open() 116 int len = ffurl_read(s->hd, buf, size); in gopher_read()
|
D | http.c | 64 URLContext *hd; member 252 if (!s->hd) { in http_open_cnx_internal() 253 err = ffurl_open_whitelist(&s->hd, buf, AVIO_FLAG_READ_WRITE, in http_open_cnx_internal() 332 ffurl_closep(&s->hd); in http_open_cnx() 340 ffurl_closep(&s->hd); in http_open_cnx() 348 ffurl_closep(&s->hd); in http_open_cnx() 357 ffurl_closep(&s->hd); in http_open_cnx() 370 if (s->hd) in http_open_cnx() 371 ffurl_closep(&s->hd); in http_open_cnx() 384 read_ret = ffurl_read(s->hd, buf, sizeof(buf)); in ff_http_get_shutdown_status() [all …]
|
D | crypto.c | 35 URLContext *hd; member 143 if ((ret = ffurl_open_whitelist(&c->hd, nested_url, flags, in crypto_open2() 161 if (c->hd->is_streamed) in crypto_open2() 162 h->is_streamed = c->hd->is_streamed; in crypto_open2() 201 int n = ffurl_read(c->hd, c->inbuffer + c->indata, in crypto_read() 256 newpos = ffurl_seek( c->hd, pos, AVSEEK_SIZE ); in crypto_seek() 265 return ffurl_seek( c->hd, pos, AVSEEK_SIZE ); in crypto_seek() 293 newpos = ffurl_seek( c->hd, c->position, SEEK_SET ); in crypto_seek() 357 ret = ffurl_write(c->hd, c->write_buf, out_size); in crypto_write() 381 ret = ffurl_write(c->hd, out_buf, BLOCKSIZE); in crypto_close() [all …]
|
/third_party/gstreamer/gstplugins_bad/ext/openaptx/ |
D | openaptx-plugin.h | 50 static inline const char* aptx_name(gboolean hd) in aptx_name() argument 52 return hd ? "aptX-HD" : "aptX"; in aptx_name() 56 static inline gsize aptx_frame_size(gboolean hd) in aptx_frame_size() argument 58 return hd ? APTX_HD_FRAME_SIZE : APTX_FRAME_SIZE; in aptx_frame_size()
|
D | gstopenaptxenc.c | 104 enc->hd = gst_structure_has_name (s, "audio/aptx-hd"); in gst_openaptx_enc_set_format() 108 output_caps = gst_caps_new_simple (enc->hd ? "audio/aptx-hd" : "audio/aptx", in gst_openaptx_enc_set_format() 118 GST_INFO_OBJECT (enc, "Initialize %s codec", aptx_name (enc->hd)); in gst_openaptx_enc_set_format() 119 enc->aptx_c = aptx_init (enc->hd); in gst_openaptx_enc_set_format() 159 frame_len = aptx_frame_size (enc->hd); in gst_openaptx_enc_handle_frame() 197 aptx_name (enc->hd)); in gst_openaptx_enc_handle_frame() 212 aptx_name (enc->hd), processed, written, frames * frame_len); in gst_openaptx_enc_handle_frame() 218 aptx_name (enc->hd), written); in gst_openaptx_enc_handle_frame()
|
D | gstopenaptxdec.c | 90 frame_len = aptx_frame_size (dec->hd); in gst_openaptx_dec_handle_frame() 146 aptx_name (dec->hd)); in gst_openaptx_dec_handle_frame() 151 aptx_name (dec->hd), dropped); in gst_openaptx_dec_handle_frame() 159 aptx_name (dec->hd), processed, written, input_size); in gst_openaptx_dec_handle_frame() 165 aptx_name (dec->hd), written); in gst_openaptx_dec_handle_frame() 223 dec->hd = gst_structure_has_name (s, "audio/aptx-hd"); in gst_openaptx_dec_set_format() 229 GST_INFO_OBJECT (dec, "Initialize %s codec", aptx_name (dec->hd)); in gst_openaptx_dec_set_format() 230 dec->aptx_c = aptx_init (dec->hd); in gst_openaptx_dec_set_format()
|
/third_party/ffmpeg/tests/ref/vsynth/ |
D | vsynth_lena-dv-hd | 1 f17abb38ed2f416d57f3b956fae5dc82 *tests/data/fate/vsynth_lena-dv-hd.dv 2 14400000 tests/data/fate/vsynth_lena-dv-hd.dv 3 4db4175c80ea1f16b7ec303611b8873a *tests/data/fate/vsynth_lena-dv-hd.out.rawvideo
|
D | vsynth1-dv-hd | 1 b2bcafc74dec5f9ca516cb25dd07459b *tests/data/fate/vsynth1-dv-hd.dv 2 14400000 tests/data/fate/vsynth1-dv-hd.dv 3 34b78cf725346c7f819c9d6209b8299a *tests/data/fate/vsynth1-dv-hd.out.rawvideo
|