| /f-stack/dpdk/examples/fips_validation/ |
| H A D | fips_validation_ccm.c | 67 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 D | fips_validation_gcm.c | 56 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 D | fips_dev_self_test.c | 1018 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 D | main.c | 593 memcpy(iv, vec.iv.val, vec.iv.len); in prepare_cipher_op() 625 if (vec.iv.len) { in prepare_auth_op() 629 if (vec.iv.val) in prepare_auth_op() 630 memcpy(iv, vec.iv.val, vec.iv.len); in prepare_auth_op() 675 if (vec.iv.val) in prepare_aead_op() 676 memcpy(iv, vec.iv.val, vec.iv.len); in prepare_aead_op() 1297 memcpy(vec.pt.val, vec.iv.val, in fips_mct_tdes_test() 1308 memcpy(vec.iv.val, vec.ct.val, in fips_mct_tdes_test() 1332 memcpy(vec.iv.val, vec.ct.val, in fips_mct_tdes_test() 1539 memcpy(vec.pt.val, vec.iv.val, in fips_mct_aes_test() [all …]
|
| H A D | fips_validation.c | 55 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() 353 free(info.vec[i]); in fips_test_clear() 379 info.vec[i], in fips_test_parse_one_case() [all …]
|
| H A D | fips_validation_cmac.c | 46 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 D | fips_validation_xts.c | 42 {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 D | fips_validation_hmac.c | 55 {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 D | fips_validation_sha.c | 42 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 D | fips_validation_tdes.c | 69 {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 D | fips_validation_aes.c | 72 {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 …]
|
| /f-stack/dpdk/drivers/common/octeontx2/ |
| H A D | otx2_irq.c | 61 if (vec > intr_handle->max_intr) { in irq_config() 72 irq_set->start = vec; in irq_config() 80 fd_ptr[0] = intr_handle->efds[vec]; in irq_config() 155 if (vec > intr_handle->max_intr) { in otx2_register_irq() 176 vec : intr_handle->nb_efd; in otx2_register_irq() 201 vec, intr_handle->max_intr); in otx2_unregister_irq() 222 vec, rc); in otx2_unregister_irq() 229 if (intr_handle->efds[vec] != -1) in otx2_unregister_irq() 230 close(intr_handle->efds[vec]); in otx2_unregister_irq() 232 intr_handle->efds[vec] = -1; in otx2_unregister_irq() [all …]
|
| /f-stack/dpdk/drivers/net/mlx4/ |
| H A D | mlx4_utils.c | 60 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 …]
|
| /f-stack/dpdk/drivers/event/octeontx2/ |
| H A D | otx2_evdev_irq.c | 33 int rc, vec; in sso_lf_register_irq() local 35 vec = ggrp_msixoff + SSO_LF_INT_VEC_GRP; in sso_lf_register_irq() 70 int rc, vec; in ssow_lf_register_irq() local 72 vec = gws_msixoff + SSOW_LF_INT_VEC_IOP; in ssow_lf_register_irq() 90 int vec; in sso_lf_unregister_irq() local 92 vec = ggrp_msixoff + SSO_LF_INT_VEC_GRP; in sso_lf_unregister_irq() 105 int vec; in ssow_lf_unregister_irq() local 107 vec = gws_msixoff + SSOW_LF_INT_VEC_IOP; in ssow_lf_unregister_irq() 202 int rc, vec; in tim_lf_register_irq() local 213 vec = tim_msixoff + TIM_LF_INT_VEC_RAS_INT; in tim_lf_register_irq() [all …]
|
| /f-stack/app/nginx-1.16.1/src/os/unix/ |
| H A D | ngx_writev_chain.c | 20 ngx_iovec_t vec; in ngx_writev_chain() local 48 vec.iovs = iovs; in ngx_writev_chain() 49 vec.nalloc = NGX_IOVS_PREALLOCATE; in ngx_writev_chain() 81 send += vec.size; in ngx_writev_chain() 83 n = ngx_writev(c, &vec); in ngx_writev_chain() 160 if (n == vec->nalloc) { in ngx_output_chain_to_iovec() 164 iov = &vec->iovs[n++]; in ngx_output_chain_to_iovec() 174 vec->count = n; in ngx_output_chain_to_iovec() 175 vec->size = total; in ngx_output_chain_to_iovec() 182 ngx_writev(ngx_connection_t *c, ngx_iovec_t *vec) in ngx_writev() argument [all …]
|
| H A D | ngx_udp_sendmsg_chain.c | 25 ngx_iovec_t vec; in ngx_udp_unix_sendmsg_chain() local 53 vec.iovs = iovs; in ngx_udp_unix_sendmsg_chain() 89 send += vec.size; in ngx_udp_unix_sendmsg_chain() 91 n = ngx_sendmsg(c, &vec); in ngx_udp_unix_sendmsg_chain() 174 iov = &vec->iovs[n++]; in ngx_udp_output_chain_to_iovec() 186 vec->size = 0; in ngx_udp_output_chain_to_iovec() 187 vec->count = 0; in ngx_udp_output_chain_to_iovec() 192 vec->count = n; in ngx_udp_output_chain_to_iovec() 193 vec->size = total; in ngx_udp_output_chain_to_iovec() 227 msg.msg_iov = vec->iovs; in ngx_sendmsg() [all …]
|
| H A D | ngx_readv_chain.c | 19 ngx_array_t vec; in ngx_readv_chain() local 74 vec.elts = iovs; in ngx_readv_chain() 75 vec.nelts = 0; in ngx_readv_chain() 76 vec.size = sizeof(struct iovec); in ngx_readv_chain() 77 vec.nalloc = NGX_IOVS_PREALLOCATE; in ngx_readv_chain() 78 vec.pool = c->pool; in ngx_readv_chain() 99 if (vec.nelts >= IOV_MAX) { in ngx_readv_chain() 103 iov = ngx_array_push(&vec); in ngx_readv_chain() 118 "readv: %ui, last:%uz", vec.nelts, iov->iov_len); in ngx_readv_chain() 121 n = readv(c->fd, (struct iovec *) vec.elts, vec.nelts); in ngx_readv_chain()
|
| H A D | ngx_files.c | 297 ngx_iovec_t vec; in ngx_write_chain_to_file() local 310 vec.iovs = iovs; in ngx_write_chain_to_file() 319 if (vec.count == 1) { in ngx_write_chain_to_file() 374 iov = &vec->iovs[n++]; in ngx_chain_to_iovec() 384 vec->count = n; in ngx_chain_to_iovec() 385 vec->size = total; in ngx_chain_to_iovec() 404 n = pwritev(file->fd, vec->iovs, vec->count, offset); in ngx_writev_file() 420 if ((size_t) n != vec->size) { in ngx_writev_file() 441 n = writev(file->fd, vec->iovs, vec->count); in ngx_writev_file() 547 ngx_iovec_t vec; in ngx_thread_write_chain_to_file_handler() local [all …]
|
| /f-stack/dpdk/drivers/mempool/octeontx2/ |
| H A D | otx2_mempool_irq.c | 34 int rc, vec; in npa_lf_register_err_irq() local 36 vec = lf->npa_msixoff + NPA_LF_INT_VEC_ERR_INT; in npa_lf_register_err_irq() 53 int vec; in npa_lf_unregister_err_irq() local 55 vec = lf->npa_msixoff + NPA_LF_INT_VEC_ERR_INT; in npa_lf_unregister_err_irq() 59 otx2_unregister_irq(handle, npa_lf_err_irq, lf, vec); in npa_lf_unregister_err_irq() 82 int rc, vec; in npa_lf_register_ras_irq() local 84 vec = lf->npa_msixoff + NPA_LF_INT_VEC_POISON; in npa_lf_register_ras_irq() 99 int vec; in npa_lf_unregister_ras_irq() local 102 vec = lf->npa_msixoff + NPA_LF_INT_VEC_POISON; in npa_lf_unregister_ras_irq() 209 int vec, q, qs, rc = 0; in npa_lf_register_queue_irqs() local [all …]
|
| /f-stack/dpdk/drivers/net/octeontx2/ |
| H A D | otx2_ethdev_irq.c | 39 int rc, vec; in nix_lf_register_err_irq() local 59 int vec; in nix_lf_unregister_err_irq() local 95 int rc, vec; in nix_lf_register_ras_irq() local 115 int vec; in nix_lf_unregister_ras_irq() local 268 int vec, q, sqs, rqs, qs, rc = 0; in oxt2_nix_register_queue_irqs() local 294 &dev->qints_mem[q], vec); in oxt2_nix_register_queue_irqs() 313 int vec, q; in oxt2_nix_unregister_queue_irqs() local 327 &dev->qints_mem[q], vec); in oxt2_nix_unregister_queue_irqs() 337 uint8_t rc = 0, vec, q; in oxt2_nix_register_cq_irqs() local 400 int vec, q; in oxt2_nix_unregister_cq_irqs() local [all …]
|
| /f-stack/dpdk/drivers/crypto/aesni_gcm/ |
| H A D | aesni_gcm_pmd.c | 465 vec->status[i] = errnum; in aesni_gcm_fill_error_code() 513 struct rte_crypto_vec *vec = &sgl->vec[i]; in aesni_gcm_process_gcm_sgl_op() local 515 s->ops.update(&s->gdata_key, gdata_ctx, vec->base, vec->base, in aesni_gcm_process_gcm_sgl_op() 516 vec->len); in aesni_gcm_process_gcm_sgl_op() 526 sgl->vec[0].len); in aesni_gcm_process_gmac_sgl_op() 538 &vec->sgl[i], vec->iv[i].va, in aesni_gcm_sgl_encrypt() 539 vec->aad[i].va); in aesni_gcm_sgl_encrypt() 557 &vec->sgl[i], vec->iv[i].va, in aesni_gcm_sgl_decrypt() 558 vec->aad[i].va); in aesni_gcm_sgl_decrypt() 581 &vec->sgl[i], vec->iv[i].va); in aesni_gmac_sgl_generate() [all …]
|
| /f-stack/dpdk/drivers/crypto/qat/ |
| H A D | qat_sym_hw_dp.c | 271 qat_sym_dp_fill_vec_status(vec->status, -1, vec->num); in qat_sym_dp_enqueue_aead_jobs() 283 data_len = qat_sym_dp_parse_data_vec(qp, req, vec->sgl[i].vec, in qat_sym_dp_enqueue_aead_jobs() 288 enqueue_one_aead_job(ctx, req, &vec->iv[i], &vec->digest[i], in qat_sym_dp_enqueue_aead_jobs() 370 qat_sym_dp_fill_vec_status(vec->status, -1, vec->num); in qat_sym_dp_enqueue_cipher_jobs() 382 data_len = qat_sym_dp_parse_data_vec(qp, req, vec->sgl[i].vec, in qat_sym_dp_enqueue_cipher_jobs() 491 qat_sym_dp_fill_vec_status(vec->status, -1, vec->num); in qat_sym_dp_enqueue_auth_jobs() 503 data_len = qat_sym_dp_parse_data_vec(qp, req, vec->sgl[i].vec, in qat_sym_dp_enqueue_auth_jobs() 674 qat_sym_dp_fill_vec_status(vec->status, -1, vec->num); in qat_sym_dp_enqueue_chain_jobs() 686 data_len = qat_sym_dp_parse_data_vec(qp, req, vec->sgl[i].vec, in qat_sym_dp_enqueue_chain_jobs() 691 if (unlikely(enqueue_one_chain_job(ctx, req, vec->sgl[i].vec, in qat_sym_dp_enqueue_chain_jobs() [all …]
|
| /f-stack/freebsd/contrib/device-tree/Bindings/display/ |
| H A D | brcm,bcm2835-vec.yaml | 4 $id: http://devicetree.org/schemas/display/brcm,bcm2835-vec.yaml# 14 const: brcm,bcm2835-vec 37 vec: vec@7e806000 { 38 compatible = "brcm,bcm2835-vec";
|
| /f-stack/dpdk/lib/librte_cryptodev/ |
| H A D | rte_crypto_sym.h | 48 struct rte_crypto_vec *vec; member 930 struct rte_crypto_vec vec[], uint32_t num) in rte_crypto_mbuf_to_vec() argument 943 vec[0].base = rte_pktmbuf_mtod_offset(mb, void *, ofs); in rte_crypto_mbuf_to_vec() 944 vec[0].iova = rte_pktmbuf_iova_offset(mb, ofs); in rte_crypto_mbuf_to_vec() 949 vec[0].len = len; in rte_crypto_mbuf_to_vec() 954 vec[0].len = seglen; in rte_crypto_mbuf_to_vec() 958 vec[i].base = rte_pktmbuf_mtod(nseg, void *); in rte_crypto_mbuf_to_vec() 959 vec[i].iova = rte_pktmbuf_iova(nseg); in rte_crypto_mbuf_to_vec() 964 vec[i].len = left; in rte_crypto_mbuf_to_vec() 970 vec[i].len = seglen; in rte_crypto_mbuf_to_vec()
|
| /f-stack/freebsd/contrib/openzfs/lib/libzfs/os/freebsd/ |
| H A D | libzfs_ioctl_compat.c | 203 zfs_ioctl_compat_pre(zfs_cmd_t *zc, int *vec, const int cflag) in zfs_ioctl_compat_pre() argument 208 if (*vec == ZFS_IOC_CREATE && zc->zc_value[0] != '\0') in zfs_ioctl_compat_pre() 209 *vec = ZFS_IOC_CLONE; in zfs_ioctl_compat_pre() 212 switch (*vec) { in zfs_ioctl_compat_pre() 224 zfs_ioctl_compat_post(zfs_cmd_t *zc, int vec, const int cflag) in zfs_ioctl_compat_post() argument 227 switch (vec) { in zfs_ioctl_compat_post() 231 zfs_ioctl_compat_fix_stats(zc, vec); in zfs_ioctl_compat_post() 241 zfs_ioctl_compat_innvl(zfs_cmd_t *zc, nvlist_t *innvl, const int vec, in zfs_ioctl_compat_innvl() argument 254 switch (vec) { in zfs_ioctl_compat_innvl() 397 zfs_ioctl_compat_outnvl(zfs_cmd_t *zc, nvlist_t *outnvl, const int vec, in zfs_ioctl_compat_outnvl() argument [all …]
|