Home
last modified time | relevance | path

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

1234

/dpdk/examples/fips_validation/
H A Dfips_validation_ccm.c67 val->len = vec.pt.len; in parse_dvpt_ct_hex_str()
119 {PLEN_PREFIX, parser_read_uint32_val, &vec.pt},
122 {KEY_STR, parse_uint8_hex_str, &vec.aead.key},
137 {KEY_STR, parse_uint8_hex_str, &vec.aead.key},
153 {KEY_STR, parse_uint8_hex_str, &vec.aead.key},
169 {KEY_STR, parse_uint8_hex_str, &vec.aead.key},
177 {CT_STR, parse_dvpt_ct_hex_str, &vec.ct},
183 {PLEN_PREFIX, parser_dvpt_interim, &vec.pt},
184 {IVLEN_PREFIX, parser_dvpt_interim, &vec.iv},
222 tmp_val.len = vec.pt.len; in parse_test_ccm_writeback()
[all …]
H A Dfips_validation_gcm.c56 if (vec.pt.len == 0) { in parser_read_gcm_pt_len()
75 vec.pt.len = vec.aead.aad.len; in parse_gcm_aad_str()
88 if (!vec.iv.val) { in parse_gcm_pt_ct_str()
89 vec.iv.val = rte_malloc(0, vec.iv.len, 0); in parse_gcm_pt_ct_str()
90 if (!vec.iv.val) in parse_gcm_pt_ct_str()
113 &vec.aead.digest},
127 &vec.aead.digest},
150 tmp_val.val = vec.iv.val; in parse_test_gcm_writeback()
154 rte_free(vec.iv.val); in parse_test_gcm_writeback()
155 vec.iv.val = NULL; in parse_test_gcm_writeback()
[all …]
H A Dfips_dev_self_test.c1018 memcpy(key, vec->key.data, vec->key.len); in prepare_cipher_xform()
1075 memcpy(key, vec->key.data, vec->key.len); in prepare_auth_xform()
1131 memcpy(key, vec->key.data, vec->key.len); in prepare_aead_xform()
1195 memcpy(iv, vec->iv.data, vec->iv.len); in prepare_cipher_op()
1224 -ENOMEM, vec->input.len + vec->digest.len); in prepare_auth_op()
1237 memcpy(dst, vec->input.data, vec->input.len); in prepare_auth_op()
1244 memcpy(dst + vec->input.len, vec->digest.data, vec->digest.len); in prepare_auth_op()
1273 memcpy(iv + 1, vec->iv.data, vec->iv.len); in prepare_aead_op()
1275 memcpy(iv, vec->iv.data, vec->iv.len); in prepare_aead_op()
1377 ret = memcmp(data, vec->digest.data, vec->digest.len); in check_auth_result()
[all …]
H A Dmain.c610 memcpy(iv, vec.iv.val, vec.iv.len); in prepare_cipher_op()
642 if (vec.iv.len) { in prepare_auth_op()
646 if (vec.iv.val) in prepare_auth_op()
647 memcpy(iv, vec.iv.val, vec.iv.len); in prepare_auth_op()
691 if (vec.iv.val) in prepare_aead_op()
692 memcpy(iv, vec.iv.val, vec.iv.len); in prepare_aead_op()
1312 memcpy(vec.pt.val, vec.iv.val, in fips_mct_tdes_test()
1323 memcpy(vec.iv.val, vec.ct.val, in fips_mct_tdes_test()
1347 memcpy(vec.iv.val, vec.ct.val, in fips_mct_tdes_test()
1552 memcpy(vec.pt.val, vec.iv.val, in fips_mct_aes_test()
[all …]
H A Dfips_validation.c55 free(info.vec[i]); in fips_test_fetch_one_block()
56 info.vec[i] = NULL; in fips_test_fetch_one_block()
86 free(info.vec[i]); in fips_test_fetch_one_block()
87 info.vec[i] = NULL; in fips_test_fetch_one_block()
99 char *ptr = info.vec[0]; in fips_test_parse_version()
220 strlcpy(tmp_output, info.vec[i], tmp - info.vec[i] + 1); in fips_test_parse_header()
232 strlcpy(tmp_output, info.vec[i], tmp - info.vec[i] + 1); in fips_test_parse_header()
244 strlcpy(tmp_output, info.vec[i], tmp - info.vec[i] + 1); in fips_test_parse_header()
352 free(info.vec[i]); in fips_test_clear()
378 info.vec[i], in fips_test_parse_one_case()
[all …]
H A Dfips_validation_cmac.c46 struct fips_val tmp_val = {val->val + vec.pt.len, in parse_test_cmac_writeback()
47 vec.cipher_auth.digest.len}; in parse_test_cmac_writeback()
54 if (vec.status == RTE_CRYPTO_OP_STATUS_SUCCESS) in parse_test_cmac_writeback()
56 else if (vec.status == RTE_CRYPTO_OP_STATUS_AUTH_FAILED) in parse_test_cmac_writeback()
66 {KLEN_STR, parser_read_uint32_val, &vec.cipher_auth.key},
67 {PTLEN_STR, parser_read_uint32_val, &vec.pt},
68 {TAGLEN_STR, parser_read_uint32_val, &vec.cipher_auth.digest},
69 {KEY_STR, parse_uint8_hex_str, &vec.cipher_auth.key},
70 {PT_STR, parse_uint8_known_len_hex_str, &vec.pt},
72 &vec.cipher_auth.digest},
[all …]
H A Dfips_validation_xts.c42 {KEY_STR, parse_uint8_hex_str, &vec.cipher_auth.key},
43 {IV_STR, parse_uint8_hex_str, &vec.iv},
44 {PT_STR, parse_uint8_hex_str, &vec.pt},
45 {CT_STR, parse_uint8_hex_str, &vec.ct},
58 {IV_STR, writeback_hex_str, &vec.iv},
59 {KEY_STR, writeback_hex_str, &vec.cipher_auth.key},
60 {PT_STR, writeback_hex_str, &vec.pt},
61 {CT_STR, writeback_hex_str, &vec.ct},
82 data = &vec.ct; in rsp_test_xts_check()
84 data = &vec.pt; in rsp_test_xts_check()
[all …]
H A Dfips_validation_hmac.c55 {KEYLEN_STR, parser_read_uint32_val, &vec.cipher_auth.key},
56 {TAGLEN_STR, parser_read_uint32_val, &vec.cipher_auth.digest},
57 {KEY_STR, parse_uint8_hex_str, &vec.cipher_auth.key},
58 {PT_STR, parse_uint8_hex_str, &vec.pt},
59 {TAG_STR, parse_uint8_hex_str, &vec.cipher_auth.digest},
75 val_local.val = val->val + vec.pt.len; in parse_test_hmac_writeback()
76 val_local.len = vec.cipher_auth.digest.len; in parse_test_hmac_writeback()
85 if (memcmp(val->val + vec.pt.len, vec.cipher_auth.digest.val, in rsp_test_hmac_check()
86 vec.cipher_auth.digest.len) == 0) in rsp_test_hmac_check()
H A Dfips_validation_sha.c42 text, &vec.cipher_auth.digest); in parse_interim_algo()
54 {MSGLEN_STR, parser_read_uint32_bit_val, &vec.pt},
55 {MSG_STR, parse_uint8_known_len_hex_str, &vec.pt},
56 {SEED_STR, parse_uint8_hex_str, &vec.cipher_auth.digest},
72 val_local.val = val->val + vec.pt.len; in parse_test_sha_writeback()
73 val_local.len = vec.cipher_auth.digest.len; in parse_test_sha_writeback()
82 if (memcmp(val->val + vec.pt.len, vec.cipher_auth.digest.val, in rsp_test_sha_check()
83 vec.cipher_auth.digest.len) == 0) in rsp_test_sha_check()
98 char *line = info.vec[i]; in parse_test_sha_init()
H A Dfips_validation_tdes.c69 {IV_STR, parse_uint8_hex_str, &vec.iv},
70 {PT_STR, parse_uint8_hex_str, &vec.pt},
71 {CT_STR, parse_uint8_hex_str, &vec.ct},
85 {IV_STR, writeback_hex_str, &vec.iv},
86 {KEY1_STR, writeback_tdes_hex_str, &vec.cipher_auth.key},
87 {KEY2_STR, writeback_tdes_hex_str, &vec.cipher_auth.key},
90 {PT_STR, writeback_hex_str, &vec.pt},
91 {CT_STR, writeback_hex_str, &vec.ct},
229 data = &vec.ct; in rsp_test_tdes_check()
231 data = &vec.pt; in rsp_test_tdes_check()
[all …]
H A Dfips_validation_aes.c72 {KEY_STR, parse_uint8_hex_str, &vec.cipher_auth.key},
73 {IV_STR, parse_uint8_hex_str, &vec.iv},
74 {PT_STR, parse_uint8_hex_str, &vec.pt},
75 {CT_STR, parse_uint8_hex_str, &vec.ct},
88 {IV_STR, writeback_hex_str, &vec.iv},
89 {KEY_STR, writeback_hex_str, &vec.cipher_auth.key},
90 {PT_STR, writeback_hex_str, &vec.pt},
91 {CT_STR, writeback_hex_str, &vec.ct},
114 data = &vec.ct; in rsp_test_aes_check()
116 data = &vec.pt; in rsp_test_aes_check()
[all …]
/dpdk/drivers/common/cnxk/
H A Droc_irq.c69 irq_set->start = vec; in irq_config()
129 void *data, unsigned int vec) in dev_irq_register() argument
143 vec, plt_intr_max_intr_get(intr_handle)); in dev_irq_register()
179 return irq_config(intr_handle, vec); in dev_irq_register()
184 void *data, unsigned int vec) in dev_irq_unregister() argument
226 plt_intr_efds_index_set(intr_handle, vec, -1); in dev_irq_unregister()
228 irq_config(intr_handle, vec); in dev_irq_unregister()
235 void *data, unsigned int vec) in dev_irq_register() argument
240 PLT_SET_USED(vec); in dev_irq_register()
247 void *data, unsigned int vec) in dev_irq_unregister() argument
[all …]
H A Droc_npa_irq.c28 int rc, vec; in npa_register_err_irq() local
30 vec = lf->npa_msixoff + NPA_LF_INT_VEC_ERR_INT; in npa_register_err_irq()
47 int vec; in npa_unregister_err_irq() local
49 vec = lf->npa_msixoff + NPA_LF_INT_VEC_ERR_INT; in npa_unregister_err_irq()
53 dev_irq_unregister(handle, npa_err_irq, lf, vec); in npa_unregister_err_irq()
76 int rc, vec; in npa_register_ras_irq() local
78 vec = lf->npa_msixoff + NPA_LF_INT_VEC_POISON; in npa_register_ras_irq()
93 int vec; in npa_unregister_ras_irq() local
96 vec = lf->npa_msixoff + NPA_LF_INT_VEC_POISON; in npa_unregister_ras_irq()
202 int vec, q, qs, rc = 0; in npa_register_queue_irqs() local
[all …]
H A Droc_tim_irq.c31 unsigned int vec; in tim_lf_register_irq() local
34 vec = msix_offset + TIM_LF_INT_VEC_NRSPERR_INT; in tim_lf_register_irq()
39 rc = dev_irq_register(handle, tim_lf_irq, (void *)base, vec); in tim_lf_register_irq()
43 vec = msix_offset + TIM_LF_INT_VEC_RAS_INT; in tim_lf_register_irq()
48 rc = dev_irq_register(handle, tim_lf_irq, (void *)base, vec); in tim_lf_register_irq()
75 unsigned int vec; in tim_lf_unregister_irq() local
77 vec = msix_offset + TIM_LF_INT_VEC_NRSPERR_INT; in tim_lf_unregister_irq()
81 dev_irq_unregister(handle, tim_lf_irq, (void *)base, vec); in tim_lf_unregister_irq()
83 vec = msix_offset + TIM_LF_INT_VEC_RAS_INT; in tim_lf_unregister_irq()
87 dev_irq_unregister(handle, tim_lf_irq, (void *)base, vec); in tim_lf_unregister_irq()
H A Droc_sso_irq.c28 int rc, vec; in sso_hwgrp_register_irq() local
30 vec = ggrp_msixoff + SSO_LF_INT_VEC_GRP; in sso_hwgrp_register_irq()
35 rc = dev_irq_register(handle, sso_hwgrp_irq, (void *)rsrc, vec); in sso_hwgrp_register_irq()
62 int rc, vec; in sso_hws_register_irq() local
64 vec = hws_msixoff + SSOW_LF_INT_VEC_IOP; in sso_hws_register_irq()
69 rc = dev_irq_register(handle, sso_hws_irq, (void *)rsrc, vec); in sso_hws_register_irq()
127 int vec; in sso_hwgrp_unregister_irq() local
129 vec = ggrp_msixoff + SSO_LF_INT_VEC_GRP; in sso_hwgrp_unregister_irq()
140 int vec; in sso_hws_unregister_irq() local
142 vec = gws_msixoff + SSOW_LF_INT_VEC_IOP; in sso_hws_unregister_irq()
[all …]
H A Droc_nix_irq.c86 int rc, vec; in nix_lf_register_err_irq() local
103 int vec; in nix_lf_unregister_err_irq() local
135 int rc, vec; in nix_lf_register_ras_irq() local
152 int vec; in nix_lf_unregister_ras_irq() local
365 vec); in roc_nix_register_queue_irqs()
383 int vec, q; in roc_nix_unregister_queue_irqs() local
400 vec); in roc_nix_unregister_queue_irqs()
412 uint8_t rc = 0, vec, q; in roc_nix_register_cq_irqs() local
442 vec); in roc_nix_register_cq_irqs()
481 int vec, q; in roc_nix_unregister_cq_irqs() local
[all …]
/dpdk/drivers/crypto/qat/dev/
H A Dqat_sym_pmd_gen1.c532 vec->src_sgl[i].vec, vec->src_sgl[i].num, in qat_sym_dp_enqueue_cipher_jobs_gen1()
533 vec->dest_sgl[i].vec, vec->dest_sgl[i].num); in qat_sym_dp_enqueue_cipher_jobs_gen1()
537 vec->src_sgl[i].vec, in qat_sym_dp_enqueue_cipher_jobs_gen1()
640 vec->src_sgl[i].vec, vec->src_sgl[i].num, in qat_sym_dp_enqueue_auth_jobs_gen1()
641 vec->dest_sgl[i].vec, vec->dest_sgl[i].num); in qat_sym_dp_enqueue_auth_jobs_gen1()
645 vec->src_sgl[i].vec, in qat_sym_dp_enqueue_auth_jobs_gen1()
750 vec->src_sgl[i].vec, vec->src_sgl[i].num, in qat_sym_dp_enqueue_chain_jobs_gen1()
751 vec->dest_sgl[i].vec, vec->dest_sgl[i].num); in qat_sym_dp_enqueue_chain_jobs_gen1()
763 vec->src_sgl[i].vec, vec->src_sgl[i].num, in qat_sym_dp_enqueue_chain_jobs_gen1()
865 vec->src_sgl[i].vec, vec->src_sgl[i].num, in qat_sym_dp_enqueue_aead_jobs_gen1()
[all …]
H A Dqat_crypto_pmd_gen3.c291 in_sgl.vec, in_sgl.num, out_sgl.vec, out_sgl.num); in qat_sym_build_op_aead_gen3()
337 in_sgl.vec, in_sgl.num, out_sgl.vec, out_sgl.num); in qat_sym_build_op_auth_gen3()
477 vec->src_sgl[i].vec, vec->src_sgl[i].num, in qat_sym_dp_enqueue_aead_jobs_gen3()
478 vec->dest_sgl[i].vec, vec->dest_sgl[i].num); in qat_sym_dp_enqueue_aead_jobs_gen3()
482 vec->src_sgl[i].vec, in qat_sym_dp_enqueue_aead_jobs_gen3()
490 &vec->digest[i], &vec->aad[i], ofs, in qat_sym_dp_enqueue_aead_jobs_gen3()
497 vec->src_sgl[i].num, &vec->iv[i], NULL, in qat_sym_dp_enqueue_aead_jobs_gen3()
498 &vec->aad[i], &vec->digest[i]); in qat_sym_dp_enqueue_aead_jobs_gen3()
584 vec->src_sgl[i].vec, vec->src_sgl[i].num, in qat_sym_dp_enqueue_auth_jobs_gen3()
585 vec->dest_sgl[i].vec, vec->dest_sgl[i].num); in qat_sym_dp_enqueue_auth_jobs_gen3()
[all …]
H A Dqat_crypto_pmd_gen4.c154 in_sgl.vec = in_vec; in qat_sym_build_op_aead_gen4()
168 in_sgl.vec, in_sgl.num, out_sgl.vec, out_sgl.num); in qat_sym_build_op_aead_gen4()
288 qat_sym_dp_fill_vec_status(vec->status, -1, vec->num); in qat_sym_dp_enqueue_aead_jobs_gen4()
303 if (vec->dest_sgl) { in qat_sym_dp_enqueue_aead_jobs_gen4()
306 vec->src_sgl[i].vec, vec->src_sgl[i].num, in qat_sym_dp_enqueue_aead_jobs_gen4()
307 vec->dest_sgl[i].vec, vec->dest_sgl[i].num); in qat_sym_dp_enqueue_aead_jobs_gen4()
311 vec->src_sgl[i].vec, in qat_sym_dp_enqueue_aead_jobs_gen4()
319 &vec->digest[i], &vec->aad[i], ofs, in qat_sym_dp_enqueue_aead_jobs_gen4()
325 qat_sym_debug_log_dump(req, ctx, vec->src_sgl[i].vec, in qat_sym_dp_enqueue_aead_jobs_gen4()
326 vec->src_sgl[i].num, &vec->iv[i], NULL, in qat_sym_dp_enqueue_aead_jobs_gen4()
[all …]
/dpdk/drivers/net/mlx4/
H A Dmlx4_utils.c60 int fill = !vec[0].addr; in mlx4_mallocv_inline()
66 size_t align = (uintptr_t)vec[i].align; in mlx4_mallocv_inline()
77 size = align + vec[i].size; in mlx4_mallocv_inline()
78 if (fill && vec[i].addr) in mlx4_mallocv_inline()
79 *vec[i].addr = data + align; in mlx4_mallocv_inline()
94 if (vec[i].addr) in mlx4_mallocv_inline()
95 *vec[i].addr = NULL; in mlx4_mallocv_inline()
141 return mlx4_mallocv_inline(type, vec, cnt, 0, SOCKET_ID_ANY); in mlx4_mallocv()
154 return mlx4_mallocv_inline(type, vec, cnt, 1, SOCKET_ID_ANY); in mlx4_zmallocv()
173 return mlx4_mallocv_inline(type, vec, cnt, 0, socket); in mlx4_mallocv_socket()
[all …]
/dpdk/drivers/crypto/dpaa_sec/
H A Ddpaa_sec_raw_dp.c116 total_len += sgl->vec[i].len; in build_dpaa_raw_dp_auth_fd()
243 data_len += sgl->vec[i].len; in build_raw_cipher_auth_gcm_sg()
405 data_len += sgl->vec[i].len; in build_dpaa_raw_dp_chain_fd()
738 in_len = sgl->vec[0].len; in build_dpaa_raw_proto_sg()
801 while (vec->num) { in dpaa_sec_raw_enqueue_burst()
824 &vec->src_sgl[loop], in dpaa_sec_raw_enqueue_burst()
825 &vec->dest_sgl[loop], in dpaa_sec_raw_enqueue_burst()
826 &vec->iv[loop], in dpaa_sec_raw_enqueue_burst()
827 &vec->digest[loop], in dpaa_sec_raw_enqueue_burst()
828 &vec->auth_iv[loop], in dpaa_sec_raw_enqueue_burst()
[all …]
/dpdk/drivers/crypto/dpaa2_sec/
H A Ddpaa2_sec_raw_dp.c54 data_len += sgl->vec[i].len; in build_raw_dp_chain_fd()
121 sge->length = sgl->vec[i].len; in build_raw_dp_chain_fd()
159 sge->length = sgl->vec[i].len; in build_raw_dp_chain_fd()
205 data_len += sgl->vec[i].len; in build_raw_dp_aead_fd()
357 total_len += sgl->vec[i].len; in build_raw_dp_auth_fd()
734 if (unlikely(vec->num == 0)) in dpaa2_sec_raw_enqueue_burst()
758 while (vec->num) { in dpaa2_sec_raw_enqueue_burst()
768 &vec->iv[loop], in dpaa2_sec_raw_enqueue_burst()
769 &vec->digest[loop], in dpaa2_sec_raw_enqueue_burst()
793 vec->num -= loop; in dpaa2_sec_raw_enqueue_burst()
[all …]
/dpdk/drivers/crypto/ipsec_mb/
H A Dpmd_aesni_gcm.c541 for (i = 0; i < vec->num; i++) in aesni_gcm_fill_error_code()
542 vec->status[i] = errnum; in aesni_gcm_fill_error_code()
592 struct rte_crypto_vec *vec = &sgl->vec[i]; in aesni_gcm_process_gcm_sgl_op() local
597 vec->base, vec->base, vec->len); in aesni_gcm_process_gcm_sgl_op()
601 vec->base, vec->base, vec->len); in aesni_gcm_process_gcm_sgl_op()
618 sgl->vec[0].len); in aesni_gcm_process_gmac_sgl_op()
632 vec->iv[i].va, vec->aad[i].va, in aesni_gcm_sgl_encrypt()
653 vec->iv[i].va, vec->aad[i].va, in aesni_gcm_sgl_decrypt()
674 vec->status[i] = ENOTSUP; in aesni_gmac_sgl_generate()
679 vec->iv[i].va, ops); in aesni_gmac_sgl_generate()
[all …]
/dpdk/examples/ipsec-secgw/
H A Dipsec_worker.c72 vec->attr_valid = 1; in ev_vector_attr_init()
73 vec->port = 0xFFFF; in ev_vector_attr_init()
74 vec->queue = 0; in ev_vector_attr_init()
81 vec->port = pkt->port; in ev_vector_attr_update()
84 if (vec->attr_valid && (vec->port != pkt->port)) in ev_vector_attr_update()
85 vec->attr_valid = 0; in ev_vector_attr_update()
689 struct rte_event_vector *vec = ev->vec; in ipsec_ev_vector_process() local
709 rte_mempool_put(rte_mempool_from_obj(vec), vec); in ipsec_ev_vector_process()
718 struct rte_event_vector *vec = ev->vec; in ipsec_ev_vector_drv_mode_process() local
724 vec->nb_elem = process_ipsec_ev_drv_mode_outbound_vector(vec, in ipsec_ev_vector_drv_mode_process()
[all …]
/dpdk/examples/l3fwd/
H A Dl3fwd_event.h86 event_vector_attr_validate(struct rte_event_vector *vec, struct rte_mbuf *mbuf) in event_vector_attr_validate() argument
89 if (vec->attr_valid && (vec->port != mbuf->port)) in event_vector_attr_validate()
90 vec->attr_valid = 0; in event_vector_attr_validate()
94 event_vector_txq_set(struct rte_event_vector *vec, uint16_t txq) in event_vector_txq_set() argument
96 if (vec->attr_valid) { in event_vector_txq_set()
97 vec->queue = txq; in event_vector_txq_set()
101 for (i = 0; i < vec->nb_elem; i++) in event_vector_txq_set()
102 rte_event_eth_tx_adapter_txq_set(vec->mbufs[i], txq); in event_vector_txq_set()

1234