Home
last modified time | relevance | path

Searched refs:out_bytes (Results 1 – 25 of 40) sorted by relevance

12

/external/boringssl/src/decrepit/blowfish/
Dblowfish_test.cc70 int out_bytes, final_bytes; in TEST() local
76 ASSERT_TRUE(EVP_EncryptUpdate(ctx.get(), out, &out_bytes, test.plaintext, in TEST()
78 ASSERT_TRUE(EVP_EncryptFinal_ex(ctx.get(), out + out_bytes, &final_bytes)); in TEST()
79 EXPECT_EQ(static_cast<size_t>(out_bytes + final_bytes), in TEST()
88 ASSERT_TRUE(EVP_DecryptUpdate(decrypt_ctx.get(), out, &out_bytes, in TEST()
92 EVP_DecryptFinal_ex(decrypt_ctx.get(), out + out_bytes, &final_bytes)); in TEST()
93 EXPECT_EQ(static_cast<size_t>(out_bytes + final_bytes), in TEST()
106 int out_bytes, final_bytes; in TEST() local
111 ASSERT_TRUE(EVP_EncryptUpdate(ctx.get(), out, &out_bytes, test.plaintext, in TEST()
113 EXPECT_TRUE(EVP_EncryptFinal_ex(ctx.get(), out + out_bytes, &final_bytes)); in TEST()
[all …]
/external/boringssl/src/decrepit/cast/
Dcast_test.cc65 int out_bytes, final_bytes; in TEST() local
71 ASSERT_TRUE(EVP_EncryptUpdate(ctx.get(), out, &out_bytes, test.plaintext, in TEST()
73 ASSERT_TRUE(EVP_EncryptFinal_ex(ctx.get(), out + out_bytes, &final_bytes)); in TEST()
74 EXPECT_EQ(static_cast<size_t>(out_bytes + final_bytes), in TEST()
83 ASSERT_TRUE(EVP_DecryptUpdate(decrypt_ctx.get(), out, &out_bytes, in TEST()
87 EVP_DecryptFinal_ex(decrypt_ctx.get(), out + out_bytes, &final_bytes)); in TEST()
88 EXPECT_EQ(static_cast<size_t>(out_bytes + final_bytes), in TEST()
101 int out_bytes, final_bytes; in TEST() local
106 ASSERT_TRUE(EVP_EncryptUpdate(ctx.get(), out, &out_bytes, test.plaintext, in TEST()
108 EXPECT_TRUE(EVP_EncryptFinal_ex(ctx.get(), out + out_bytes, &final_bytes)); in TEST()
[all …]
/external/curl/src/
Dtool_convert.c53 size_t res, in_bytes, out_bytes; in convert_to_network() local
65 in_bytes = out_bytes = length; in convert_to_network()
67 &output_ptr, &out_bytes); in convert_to_network()
83 size_t res, in_bytes, out_bytes; in convert_from_network() local
95 in_bytes = out_bytes = length; in convert_from_network()
97 &output_ptr, &out_bytes); in convert_from_network()
/external/eigen/unsupported/test/
Dcxx11_tensor_argmax_cuda.cu35 std::size_t out_bytes = out_max.size() * sizeof(DenseIndex); in test_cuda_simple_argmax() local
41 cudaMalloc((void**)(&d_out_max), out_bytes); in test_cuda_simple_argmax()
42 cudaMalloc((void**)(&d_out_min), out_bytes); in test_cuda_simple_argmax()
56 …assert(cudaMemcpyAsync(out_max.data(), d_out_max, out_bytes, cudaMemcpyDeviceToHost, gpu_device.st… in test_cuda_simple_argmax()
57 …assert(cudaMemcpyAsync(out_min.data(), d_out_min, out_bytes, cudaMemcpyDeviceToHost, gpu_device.st… in test_cuda_simple_argmax()
99 std::size_t out_bytes = tensor_arg.size() * sizeof(DenseIndex); in test_cuda_argmax_dim() local
104 cudaMalloc((void**)(&d_out), out_bytes); in test_cuda_argmax_dim()
116 …assert(cudaMemcpyAsync(tensor_arg.data(), d_out, out_bytes, cudaMemcpyDeviceToHost, gpu_device.str… in test_cuda_argmax_dim()
144 …assert(cudaMemcpyAsync(tensor_arg.data(), d_out, out_bytes, cudaMemcpyDeviceToHost, gpu_device.str… in test_cuda_argmax_dim()
188 std::size_t out_bytes = tensor_arg.size() * sizeof(DenseIndex); in test_cuda_argmin_dim() local
[all …]
Dcxx11_tensor_random_cuda.cu28 std::size_t out_bytes = out.size() * sizeof(float); in test_cuda_random_uniform() local
31 cudaMalloc((void**)(&d_out), out_bytes); in test_cuda_random_uniform()
40 …assert(cudaMemcpyAsync(out.data(), d_out, out_bytes, cudaMemcpyDeviceToHost, gpu_device.stream()) … in test_cuda_random_uniform()
53 std::size_t out_bytes = out.size() * sizeof(float); in test_cuda_random_normal() local
56 cudaMalloc((void**)(&d_out), out_bytes); in test_cuda_random_normal()
66 …assert(cudaMemcpyAsync(out.data(), d_out, out_bytes, cudaMemcpyDeviceToHost, gpu_device.stream()) … in test_cuda_random_normal()
Dcxx11_tensor_complex_cuda.cu89 std::size_t out_bytes = full_redux.size() * sizeof(std::complex<float>); in test_cuda_sum_reductions() local
91 …d::complex<float>* gpu_out_ptr = static_cast<std::complex<float>*>(gpu_device.allocate(out_bytes)); in test_cuda_sum_reductions()
100 gpu_device.memcpyDeviceToHost(full_redux_gpu.data(), gpu_out_ptr, out_bytes); in test_cuda_sum_reductions()
126 std::size_t out_bytes = full_redux.size() * sizeof(std::complex<float>); in test_cuda_product_reductions() local
128 …d::complex<float>* gpu_out_ptr = static_cast<std::complex<float>*>(gpu_device.allocate(out_bytes)); in test_cuda_product_reductions()
137 gpu_device.memcpyDeviceToHost(full_redux_gpu.data(), gpu_out_ptr, out_bytes); in test_cuda_product_reductions()
Dcxx11_tensor_cuda.cu77 std::size_t out_bytes = out.size() * sizeof(float); in test_cuda_elementwise_small() local
84 cudaMalloc((void**)(&d_out), out_bytes); in test_cuda_elementwise_small()
101 assert(cudaMemcpyAsync(out.data(), d_out, out_bytes, cudaMemcpyDeviceToHost, in test_cuda_elementwise_small()
129 std::size_t out_bytes = out.size() * sizeof(float); in test_cuda_elementwise() local
138 cudaMalloc((void**)(&d_out), out_bytes); in test_cuda_elementwise()
154 …assert(cudaMemcpyAsync(out.data(), d_out, out_bytes, cudaMemcpyDeviceToHost, gpu_device.stream()) … in test_cuda_elementwise()
177 std::size_t out_bytes = out.size() * sizeof(bool); in test_cuda_props() local
182 cudaMalloc((void**)(&d_out), out_bytes); in test_cuda_props()
196 assert(cudaMemcpyAsync(out.data(), d_out, out_bytes, cudaMemcpyDeviceToHost, in test_cuda_props()
215 std::size_t out_bytes = out.size() * sizeof(float); in test_cuda_reduction() local
[all …]
Dcxx11_tensor_device.cu281 std::size_t out_bytes = out.size() * sizeof(float); in test_gpu() local
288 cudaMalloc((void**)(&d_out), out_bytes); in test_gpu()
299 assert(cudaMemcpy(out.data(), d_out, out_bytes, cudaMemcpyDeviceToHost) == cudaSuccess); in test_gpu()
309 assert(cudaMemcpy(out.data(), d_out, out_bytes, cudaMemcpyDeviceToHost) == cudaSuccess); in test_gpu()
319 assert(cudaMemcpy(out.data(), d_out, out_bytes, cudaMemcpyDeviceToHost) == cudaSuccess); in test_gpu()
329 assert(cudaMemcpy(out.data(), d_out, out_bytes, cudaMemcpyDeviceToHost) == cudaSuccess); in test_gpu()
344 …assert(cudaMemcpyAsync(out.data(), d_out, out_bytes, cudaMemcpyDeviceToHost, context.device().stre… in test_gpu()
355 …assert(cudaMemcpyAsync(out.data(), d_out, out_bytes, cudaMemcpyDeviceToHost, context.device().stre… in test_gpu()
369 …assert(cudaMemcpyAsync(out.data(), d_out, out_bytes, cudaMemcpyDeviceToHost, context.device().stre… in test_gpu()
Dcxx11_tensor_reduction_cuda.cu38 std::size_t out_bytes = full_redux.size() * sizeof(Type); in test_full_reductions() local
40 Type* gpu_out_ptr = static_cast<Type*>(gpu_device.allocate(out_bytes)); in test_full_reductions()
49 gpu_device.memcpyDeviceToHost(full_redux_gpu.data(), gpu_out_ptr, out_bytes); in test_full_reductions()
/external/curl/lib/
Dnon-ascii.c106 size_t in_bytes, out_bytes, rc; in Curl_convert_to_network() local
125 in_bytes = out_bytes = length; in Curl_convert_to_network()
127 &output_ptr, &out_bytes); in Curl_convert_to_network()
172 size_t in_bytes, out_bytes, rc; in Curl_convert_from_network() local
191 in_bytes = out_bytes = length; in Curl_convert_from_network()
193 &output_ptr, &out_bytes); in Curl_convert_from_network()
239 size_t in_bytes, out_bytes, rc; in Curl_convert_from_utf8() local
258 in_bytes = out_bytes = length; in Curl_convert_from_utf8()
260 &output_ptr, &out_bytes); in Curl_convert_from_utf8()
/external/u-boot/drivers/misc/
Dcros_ec_i2c.c51 static int cros_ec_i2c_packet(struct udevice *udev, int out_bytes, int in_bytes) in cros_ec_i2c_packet() argument
68 i2c_msg[0].len = out_bytes + 1; in cros_ec_i2c_packet()
72 memmove(&ec_request_i2c->ec_request, dev->dout, out_bytes); in cros_ec_i2c_packet()
117 int out_bytes = dout_len + 4; in cros_ec_i2c_command() local
129 if (out_bytes > sizeof(dev->dout)) { in cros_ec_i2c_command()
141 i2c_msg[0].len = out_bytes; in cros_ec_i2c_command()
183 cros_ec_dump_data("out", -1, dev->dout, out_bytes); in cros_ec_i2c_command()
Dcros_ec.c91 int out_bytes = dout_len + sizeof(*rq); in create_proto3_request() local
94 if (out_bytes > (int)sizeof(dev->dout)) { in create_proto3_request()
111 rq->checksum = (uint8_t)(-cros_ec_calc_checksum(dev->dout, out_bytes)); in create_proto3_request()
113 cros_ec_dump_data("out", cmd, dev->dout, out_bytes); in create_proto3_request()
116 return out_bytes; in create_proto3_request()
206 int out_bytes, in_bytes; in send_command_proto3() local
210 out_bytes = create_proto3_request(dev, cmd, cmd_version, in send_command_proto3()
212 if (out_bytes < 0) in send_command_proto3()
213 return out_bytes; in send_command_proto3()
221 rv = ops->packet ? ops->packet(dev->dev, out_bytes, in_bytes) : -ENOSYS; in send_command_proto3()
Dcros_ec_spi.c21 int cros_ec_spi_packet(struct udevice *udev, int out_bytes, int in_bytes) in cros_ec_spi_packet() argument
35 rv = spi_xfer(slave, out_bytes * 8, dev->dout, NULL, SPI_XFER_BEGIN); in cros_ec_spi_packet()
/external/webrtc/webrtc/modules/audio_processing/transient/
Dfile_utils.cc51 int ConvertFloatToByteArray(float value, uint8_t out_bytes[4]) { in ConvertFloatToByteArray()
52 if (!out_bytes) { in ConvertFloatToByteArray()
58 out_bytes[i] = binary_value; in ConvertFloatToByteArray()
65 int ConvertDoubleToByteArray(double value, uint8_t out_bytes[8]) { in ConvertDoubleToByteArray()
66 if (!out_bytes) { in ConvertDoubleToByteArray()
72 out_bytes[i] = binary_value; in ConvertDoubleToByteArray()
Dfile_utils.h47 int ConvertFloatToByteArray(float value, uint8_t out_bytes[4]);
52 int ConvertDoubleToByteArray(double value, uint8_t out_bytes[8]);
/external/u-boot/drivers/spi/
Dexynos_spi.c102 uint out_bytes, in_bytes; in spi_rx_tx() local
108 out_bytes = in_bytes = todo; in spi_rx_tx()
144 while (tx_lvl < priv->fifo_size/2 && out_bytes) { in spi_rx_tx()
152 out_bytes -= step; in spi_rx_tx()
185 assert(!out_bytes); in spi_rx_tx()
186 out_bytes = in_bytes; in spi_rx_tx()
193 in_bytes, out_bytes); in spi_rx_tx()
/external/eigen/test/
Dcuda_common.h39 std::ptrdiff_t out_bytes = out.size() * sizeof(typename Output::Scalar); in run_on_cuda() local
42 cudaMalloc((void**)(&d_out), out_bytes); in run_on_cuda()
45 cudaMemcpy(d_out, out.data(), out_bytes, cudaMemcpyHostToDevice); in run_on_cuda()
58 cudaMemcpy(out.data(), d_out, out_bytes, cudaMemcpyDeviceToHost); in run_on_cuda()
/external/u-boot/scripts/
Dcleanpatch130 $out_bytes = 0;
153 $out_bytes += length($line);
230 $out_bytes += length($l);
245 if ($in_bytes != $out_bytes) {
/external/boringssl/src/decrepit/cfb/
Dcfb_test.cc69 int out_bytes; in TEST() local
70 ASSERT_TRUE(EVP_EncryptUpdate(ctx.get(), out.get() + done, &out_bytes, in TEST()
72 ASSERT_EQ(static_cast<size_t>(out_bytes), todo); in TEST()
/external/u-boot/arch/arm/mach-exynos/
Dspl_boot.c69 uint out_bytes, in_bytes; in spi_rx_tx() local
71 out_bytes = todo; in spi_rx_tx()
84 while (tx_lvl < 32 && out_bytes) { in spi_rx_tx()
87 out_bytes -= 4; in spi_rx_tx()
/external/libxaac/decoder/
Dixheaacd_decode_main.c82 WORD32 *out_bytes, WORD32 num_channel_out) { in ixheaacd_samples_sat() argument
105 *out_bytes = num * sizeof(WORD16); in ixheaacd_samples_sat()
123 *out_bytes = num * 3 * sizeof(WORD8); in ixheaacd_samples_sat()
219 WORD32 *out_bytes, WORD32 frames_done, WORD32 pcmsize, in ixheaacd_dec_main() argument
391 out_bytes, *num_channel_out); in ixheaacd_dec_main()
/external/boringssl/src/crypto/rsa_extra/
Drsa_asn1.c139 int RSA_public_key_to_bytes(uint8_t **out_bytes, size_t *out_len, in RSA_public_key_to_bytes() argument
145 !CBB_finish(&cbb, out_bytes, out_len)) { in RSA_public_key_to_bytes()
235 int RSA_private_key_to_bytes(uint8_t **out_bytes, size_t *out_len, in RSA_private_key_to_bytes() argument
241 !CBB_finish(&cbb, out_bytes, out_len)) { in RSA_private_key_to_bytes()
/external/libchrome/base/strings/
Dstring_number_conversions_fuzzer.cc49 std::vector<uint8_t> out_bytes; in LLVMFuzzerTestOneInput() local
50 base::HexStringToBytes(string_piece_input, &out_bytes); in LLVMFuzzerTestOneInput()
/external/tensorflow/tensorflow/core/util/
Dexample_proto_fast_parsing.cc2021 string* out_bytes = nullptr; in FastParseSequenceExample() local
2026 out_bytes = context_result->dense_values[t].flat<string>().data(); in FastParseSequenceExample()
2063 *out_bytes++ = *in_bytes++; in FastParseSequenceExample()
2093 num_added = ParseBytesFeature(&stream, out_bytes); in FastParseSequenceExample()
2094 out_bytes += num_added; in FastParseSequenceExample()
2130 string* out_bytes = nullptr; in FastParseSequenceExample() local
2135 out_bytes = context_result->sparse_values[t].flat<string>().data(); in FastParseSequenceExample()
2165 num_added = ParseBytesFeature(&stream, out_bytes); in FastParseSequenceExample()
2166 out_bytes += num_added; in FastParseSequenceExample()
2219 string* out_bytes = nullptr; in FastParseSequenceExample() local
[all …]
/external/boringssl/src/crypto/ecdsa_extra/
Decdsa_asn1.c193 int ECDSA_SIG_to_bytes(uint8_t **out_bytes, size_t *out_len, in ECDSA_SIG_to_bytes() argument
199 !CBB_finish(&cbb, out_bytes, out_len)) { in ECDSA_SIG_to_bytes()

12