Home
last modified time | relevance | path

Searched refs:num_elem (Results 1 – 25 of 33) sorted by relevance

12

/external/eigen/unsupported/test/
Dcxx11_tensor_of_float16_cuda.cu28 int num_elem = 101; in test_cuda_numext() local
30 float* d_float = (float*)gpu_device.allocate(num_elem * sizeof(float)); in test_cuda_numext()
31 bool* d_res_half = (bool*)gpu_device.allocate(num_elem * sizeof(bool)); in test_cuda_numext()
32 bool* d_res_float = (bool*)gpu_device.allocate(num_elem * sizeof(bool)); in test_cuda_numext()
35 d_float, num_elem); in test_cuda_numext()
37 d_res_half, num_elem); in test_cuda_numext()
39 d_res_float, num_elem); in test_cuda_numext()
45 Tensor<bool, 1> half_prec(num_elem); in test_cuda_numext()
46 Tensor<bool, 1> full_prec(num_elem); in test_cuda_numext()
47 gpu_device.memcpyDeviceToHost(half_prec.data(), d_res_half, num_elem*sizeof(bool)); in test_cuda_numext()
[all …]
Dcxx11_tensor_cast_float16_cuda.cu27 int num_elem = 101; in test_cuda_conversion() local
29 Tensor<float, 1> floats(num_elem); in test_cuda_conversion()
32 float* d_float = (float*)gpu_device.allocate(num_elem * sizeof(float)); in test_cuda_conversion()
33 Eigen::half* d_half = (Eigen::half*)gpu_device.allocate(num_elem * sizeof(Eigen::half)); in test_cuda_conversion()
34 float* d_conv = (float*)gpu_device.allocate(num_elem * sizeof(float)); in test_cuda_conversion()
37 d_float, num_elem); in test_cuda_conversion()
39 d_half, num_elem); in test_cuda_conversion()
41 d_conv, num_elem); in test_cuda_conversion()
43 gpu_device.memcpyHostToDevice(d_float, floats.data(), num_elem*sizeof(float)); in test_cuda_conversion()
48 Tensor<float, 1> initial(num_elem); in test_cuda_conversion()
[all …]
/external/wpa_supplicant_8/src/crypto/
Daes-siv.c65 size_t num_elem, const u8 *addr[], size_t *len, u8 *mac) in aes_s2v() argument
74 if (!num_elem) { in aes_s2v()
88 for (i = 0; i < num_elem - 1; i++) { in aes_s2v()
122 size_t num_elem, const u8 *addr[], const size_t *len, in aes_siv_encrypt() argument
132 if (num_elem > ARRAY_SIZE(_addr) - 1 || in aes_siv_encrypt()
140 for (i = 0; i < num_elem; i++) { in aes_siv_encrypt()
144 _addr[num_elem] = pw; in aes_siv_encrypt()
145 _len[num_elem] = pwlen; in aes_siv_encrypt()
147 if (aes_s2v(k1, key_len, num_elem + 1, _addr, _len, v)) in aes_siv_encrypt()
165 size_t num_elem, const u8 *addr[], const size_t *len, in aes_siv_decrypt() argument
[all …]
Dsha384.c26 int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha384_vector() argument
34 if (num_elem > 5) { in hmac_sha384_vector()
69 for (i = 0; i < num_elem; i++) { in hmac_sha384_vector()
73 if (sha384_vector(1 + num_elem, _addr, _len, mac) < 0) in hmac_sha384_vector()
Dsha256.c26 int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha256_vector() argument
34 if (num_elem > 5) { in hmac_sha256_vector()
69 for (i = 0; i < num_elem; i++) { in hmac_sha256_vector()
73 if (sha256_vector(1 + num_elem, _addr, _len, mac) < 0) in hmac_sha256_vector()
Dsha1.c26 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha1_vector() argument
35 if (num_elem > 5) { in hmac_sha1_vector()
70 for (i = 0; i < num_elem; i++) { in hmac_sha1_vector()
74 if (sha1_vector(1 + num_elem, _addr, _len, mac)) in hmac_sha1_vector()
Dmd5.c26 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_md5_vector() argument
35 if (num_elem > 5) { in hmac_md5_vector()
71 for (i = 0; i < num_elem; i++) { in hmac_md5_vector()
75 if (md5_vector(1 + num_elem, _addr, _len, mac)) in hmac_md5_vector()
Dcrypto_openssl.c116 static int openssl_digest_vector(const EVP_MD *type, size_t num_elem, in openssl_digest_vector() argument
135 for (i = 0; i < num_elem; i++) { in openssl_digest_vector()
157 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument
159 return openssl_digest_vector(EVP_md4(), num_elem, addr, len, mac); in md4_vector()
227 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument
229 return openssl_digest_vector(EVP_md5(), num_elem, addr, len, mac); in md5_vector()
234 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument
236 return openssl_digest_vector(EVP_sha1(), num_elem, addr, len, mac); in sha1_vector()
241 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha256_vector() argument
244 return openssl_digest_vector(EVP_sha256(), num_elem, addr, len, mac); in sha256_vector()
[all …]
Daes-omac1.c43 int omac1_aes_vector(const u8 *key, size_t key_len, size_t num_elem, in omac1_aes_vector() argument
60 for (e = 0; e < num_elem; e++) in omac1_aes_vector()
133 int omac1_aes_128_vector(const u8 *key, size_t num_elem, in omac1_aes_128_vector() argument
136 return omac1_aes_vector(key, 16, num_elem, addr, len, mac); in omac1_aes_128_vector()
Dcrypto.h32 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac);
42 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac);
53 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len,
79 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len,
90 int sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len,
101 int sha512_vector(size_t num_elem, const u8 *addr[], const size_t *len,
Dcrypto_gnutls.c15 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument
23 for (i = 0; i < num_elem; i++) in md4_vector()
55 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument
63 for (i = 0; i < num_elem; i++) in md5_vector()
73 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument
81 for (i = 0; i < num_elem; i++) in sha1_vector()
Daes_siv.h14 size_t num_elem, const u8 *addr[], const size_t *len,
18 size_t num_elem, const u8 *addr[], const size_t *len,
Dsha384-internal.c24 int sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha384_vector() argument
31 for (i = 0; i < num_elem; i++) in sha384_vector()
Dcrypto_libtomcrypt.c25 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument
31 for (i = 0; i < num_elem; i++) in md4_vector()
59 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument
65 for (i = 0; i < num_elem; i++) in md5_vector()
72 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument
78 for (i = 0; i < num_elem; i++) in sha1_vector()
Daes_wrap.h26 size_t num_elem, const u8 *addr[],
28 int __must_check omac1_aes_128_vector(const u8 *key, size_t num_elem,
Dcrypto_none.c15 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument
Dmd5.h14 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem,
Dsha256-internal.c25 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha256_vector() argument
35 for (i = 0; i < num_elem; i++) in sha256_vector()
Dsha384.h14 int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem,
Dsha1.h14 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem,
Dsha256.h14 int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem,
Dsha512-internal.c24 int sha512_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha512_vector() argument
31 for (i = 0; i < num_elem; i++) in sha512_vector()
/external/wpa_supplicant_8/src/common/
Dwpa_common.c240 size_t num_elem; in fils_rmsk_to_pmk() local
262 num_elem = 1; in fils_rmsk_to_pmk()
266 num_elem++; in fils_rmsk_to_pmk()
269 res = hmac_sha384_vector(nonces, 2 * FILS_NONCE_LEN, num_elem, in fils_rmsk_to_pmk()
272 res = hmac_sha256_vector(nonces, 2 * FILS_NONCE_LEN, num_elem, in fils_rmsk_to_pmk()
379 size_t num_elem = 4; in fils_key_auth_sk() local
400 num_elem = 6; in fils_key_auth_sk()
405 res = hmac_sha384_vector(ick, ick_len, num_elem, addr, len, in fils_key_auth_sk()
409 res = hmac_sha256_vector(ick, ick_len, num_elem, addr, len, in fils_key_auth_sk()
434 res = hmac_sha384_vector(ick, ick_len, num_elem, addr, len, in fils_key_auth_sk()
[all …]
/external/wpa_supplicant_8/src/eap_common/
Deap_eke_common.c212 size_t num_elem = 1; in eap_eke_prf() local
217 num_elem++; in eap_eke_prf()
223 return hmac_sha1_vector(key, key_len, num_elem, addr, len, res); in eap_eke_prf()
225 return hmac_sha256_vector(key, key_len, num_elem, addr, len, in eap_eke_prf()
/external/libpcap/
Dpcap-dos.c1405 if (!q || !q->num_elem || !q->buf_start) in pktq_check()
1411 for (i = 0; i < q->num_elem; i++) in pktq_check()
1426 q->num_elem = num; in pktq_init()
1457 if (q->out_index >= q->num_elem) in pktq_inc_out()
1470 if (index >= q->num_elem) in pktq_in_index()

12