Home
last modified time | relevance | path

Searched refs:vec (Results 1 – 15 of 15) sorted by relevance

/Zephyr-Core-3.7.0/tests/crypto/tinycrypt_hmac_prng/src/
Dhmac_prng.c66 hmac_prng_test_vector * vec) in do_hmac_prng_pr_false_test() argument
79 if (vec->entropyinputlen > 0) { in do_hmac_prng_pr_false_test()
80 memcpy(p, vec->entropyinput, vec->entropyinputlen); in do_hmac_prng_pr_false_test()
81 p += vec->entropyinputlen; in do_hmac_prng_pr_false_test()
84 if (vec->noncelen > 0) { in do_hmac_prng_pr_false_test()
85 memcpy(p, vec->nonce, vec->noncelen); in do_hmac_prng_pr_false_test()
86 p += vec->noncelen; in do_hmac_prng_pr_false_test()
89 if (vec->personalizationstringlen > 0) { in do_hmac_prng_pr_false_test()
90 memcpy(p, vec->personalizationstring, in do_hmac_prng_pr_false_test()
91 vec->personalizationstringlen); in do_hmac_prng_pr_false_test()
[all …]
/Zephyr-Core-3.7.0/arch/x86/include/ia32/
Dexception.h27 #define __EXCEPTION_STUB_NAME(handler, vec) \ argument
28 _ ## handler ## _vector_ ## vec ## _stub
30 #define _EXCEPTION_STUB_NAME(handler, vec) \ argument
31 __EXCEPTION_STUB_NAME(handler, vec) \
/Zephyr-Core-3.7.0/arch/x86/
Dgen_idt.py141 for handler, irq, prio, vec, dpl, tss in intlist:
142 if vec == -1:
147 if vec >= max_vec:
149 (vec, max_vec))
151 if vectors[vec] is not None:
152 error("Multiple assignments for vector %d" % vec)
154 vectors[vec] = (handler, tss, dpl)
155 update_irq_vec_map(irq_vec_map, irq, vec, max_irq)
158 for handler, irq, prio, vec, dpl, tss in intlist:
159 if vec != -1:
[all …]
/Zephyr-Core-3.7.0/tests/lib/cmsis_dsp/matrix/src/
Dunary_q7.c101 q7_t *tmp1, *vec, *output_buf, *output; in test_op2v() local
110 vec = malloc(2 * MAX_MATRIX_DIM * sizeof(q7_t)); in test_op2v()
111 zassert_not_null(vec, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_op2v()
132 memcpy(vec, in_vec1, 2 * internal * sizeof(q7_t)); in test_op2v()
137 arm_mat_vec_mult_q7(&mat_in1, vec, output); in test_op2v()
158 free(vec); in test_op2v()
Dunary_q15.c196 q15_t *tmp1, *vec, *output_buf, *output; in test_op2v() local
205 vec = malloc(2 * MAX_MATRIX_DIM * sizeof(q15_t)); in test_op2v()
206 zassert_not_null(vec, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_op2v()
227 memcpy(vec, in_vec1, 2 * internal * sizeof(q15_t)); in test_op2v()
232 arm_mat_vec_mult_q15(&mat_in1, vec, output); in test_op2v()
253 free(vec); in test_op2v()
Dunary_q31.c196 q31_t *tmp1, *vec, *output_buf, *output; in test_op2v() local
205 vec = malloc(2 * MAX_MATRIX_DIM * sizeof(q31_t)); in test_op2v()
206 zassert_not_null(vec, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_op2v()
227 memcpy(vec, in_vec1, 2 * internal * sizeof(q31_t)); in test_op2v()
232 arm_mat_vec_mult_q31(&mat_in1, vec, output); in test_op2v()
253 free(vec); in test_op2v()
Dunary_f32.c275 float32_t *tmp1, *vec, *output_buf, *output; in test_op2v() local
284 vec = malloc(2 * MAX_MATRIX_DIM * sizeof(float32_t)); in test_op2v()
285 zassert_not_null(vec, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_op2v()
306 memcpy(vec, in_vec1, 2 * internal * sizeof(float32_t)); in test_op2v()
311 arm_mat_vec_mult_f32(&mat_in1, vec, output); in test_op2v()
334 free(vec); in test_op2v()
Dunary_f16.c279 float16_t *tmp1, *vec, *output_buf, *output; in test_op2v() local
288 vec = malloc(2 * MAX_MATRIX_DIM * sizeof(float16_t)); in test_op2v()
289 zassert_not_null(vec, ASSERT_MSG_BUFFER_ALLOC_FAILED); in test_op2v()
310 memcpy(vec, in_vec1, 2 * internal * sizeof(float16_t)); in test_op2v()
315 arm_mat_vec_mult_f16(&mat_in1, vec, output); in test_op2v()
338 free(vec); in test_op2v()
/Zephyr-Core-3.7.0/tests/subsys/lorawan/frag_decoder/src/
Dfrag_encoder.c51 void lorawan_fec_parity_matrix_vector(int m, int n, uint8_t *vec) in lorawan_fec_parity_matrix_vector() argument
55 memset(vec, 0, m); in lorawan_fec_parity_matrix_vector()
75 vec[r] = 1; in lorawan_fec_parity_matrix_vector()
/Zephyr-Core-3.7.0/include/zephyr/arch/x86/ia32/
Darch.h88 unsigned int vec; member
128 .vec = (v), \
153 .vec = (vec_p), \
/Zephyr-Core-3.7.0/drivers/crypto/
Dcrypto_stm32.c174 uint32_t vec[BLOCK_LEN_WORDS]; in crypto_stm32_cbc_encrypt() local
179 (void)copy_reverse_words((uint8_t *)vec, sizeof(vec), iv, BLOCK_LEN_BYTES); in crypto_stm32_cbc_encrypt()
181 session->config.pInitVect = vec; in crypto_stm32_cbc_encrypt()
202 uint32_t vec[BLOCK_LEN_WORDS]; in crypto_stm32_cbc_decrypt() local
207 (void)copy_reverse_words((uint8_t *)vec, sizeof(vec), iv, BLOCK_LEN_BYTES); in crypto_stm32_cbc_decrypt()
209 session->config.pInitVect = vec; in crypto_stm32_cbc_decrypt()
/Zephyr-Core-3.7.0/drivers/pwm/
Dpwm_sam0_tcc.c68 bool inverted = ((regs->DRVCTRL.vec.INVEN & invert_mask) != 0); in pwm_sam0_set_cycles()
95 regs->DRVCTRL.vec.INVEN ^= invert_mask; in pwm_sam0_set_cycles()
/Zephyr-Core-3.7.0/subsys/lorawan/services/
Dfrag_decoder_lowmem.c144 static void frag_dec_parity_matrix_vector(size_t m, size_t n, struct sys_bitarray *vec) in frag_dec_parity_matrix_vector() argument
150 ret = sys_bitarray_clear_region(vec, m, 0); in frag_dec_parity_matrix_vector()
171 ret = sys_bitarray_set_bit(vec, r); in frag_dec_parity_matrix_vector()
/Zephyr-Core-3.7.0/subsys/net/lib/sockets/
Dsockets_tls.c2458 struct iovec *vec = msg->msg_iov + i; in dtls_sendmsg_merge_and_send() local
2460 if (vec->iov_len > 0) { in dtls_sendmsg_merge_and_send()
2461 if (len + vec->iov_len > sizeof(sendmsg_buf)) { in dtls_sendmsg_merge_and_send()
2467 memcpy(sendmsg_buf + len, vec->iov_base, vec->iov_len); in dtls_sendmsg_merge_and_send()
2468 len += vec->iov_len; in dtls_sendmsg_merge_and_send()
2490 struct iovec *vec = msg->msg_iov + i; in tls_sendmsg_loop_and_send() local
2493 if (vec->iov_len == 0) { in tls_sendmsg_loop_and_send()
2497 while (sent < vec->iov_len) { in tls_sendmsg_loop_and_send()
2498 uint8_t *ptr = (uint8_t *)vec->iov_base + sent; in tls_sendmsg_loop_and_send()
2500 ret = ztls_sendto_ctx(ctx, ptr, vec->iov_len - sent, in tls_sendmsg_loop_and_send()
/Zephyr-Core-3.7.0/tests/net/socket/tls/src/
Dmain.c133 struct iovec *vec = msg->msg_iov + i; in test_sendmsg() local
135 total_len += vec->iov_len; in test_sendmsg()