| /f-stack/dpdk/app/test/ |
| H A D | test_cryptodev_ecdsa_test_vectors.h | 102 .length = sizeof(scalar_secp192r1), 106 .length = sizeof(digest_secp192r1), 110 .length = sizeof(sign_secp192r1_r), 114 .length = sizeof(sign_secp192r1_s), 118 .length = sizeof(pkey_secp192r1), 187 .length = sizeof(scalar_secp224r1), 191 .length = sizeof(digest_secp224r1), 203 .length = sizeof(pkey_secp224r1), 288 .length = sizeof(pkey_secp256r1), 385 .length = sizeof(pkey_secp384r1), [all …]
|
| H A D | test_cryptodev_ecpm_test_vectors.h | 53 .length = sizeof(gen_x_secp192r1), 57 .length = sizeof(gen_y_secp192r1), 61 .length = sizeof(privkey_secp192r1), 65 .length = sizeof(pubkey_x_secp192r1), 69 .length = sizeof(pubkey_y_secp192r1), 114 .length = sizeof(gen_x_secp224r1), 118 .length = sizeof(gen_y_secp224r1), 175 .length = sizeof(gen_x_secp256r1), 179 .length = sizeof(gen_y_secp256r1), 246 .length = sizeof(gen_x_secp384r1), [all …]
|
| /f-stack/dpdk/drivers/common/sfc_efx/base/ |
| H A D | ef10_tlv_layout.h | 106 uint32_t length; member 124 uint32_t length; member 146 uint32_t length; member 163 uint32_t length; member 182 uint32_t length; member 200 uint32_t length; member 220 uint32_t length; member 228 uint32_t length; member 245 uint32_t length; member 253 uint32_t length; member [all …]
|
| /f-stack/dpdk/drivers/common/dpaax/caamflib/ |
| H A D | rta.h | 353 #define FIFOLOAD(program, data, src, length, flags) \ argument 354 rta_fifo_load(program, data, src, length, flags) 373 #define SEQFIFOLOAD(program, data, length, flags) \ argument 448 #define SEQINPTR(program, src, length, flags) \ argument 449 rta_seq_in_ptr(program, src, length, flags) 464 #define SEQOUTPTR(program, dst, length, flags) \ argument 465 rta_seq_out_ptr(program, dst, length, flags) 613 rta_load(program, addr, dst, offset, length, flags) 653 rta_store(program, src, offset, dst, length, flags) 701 length, opt) [all …]
|
| /f-stack/freebsd/libkern/ |
| H A D | bcopy.c | 103 t = length; in memcpy() 108 length -= t; in memcpy() 114 t = length / wsize; in memcpy() 117 t = length & wmask; in memcpy() 125 src += length; in memcpy() 126 dst += length; in memcpy() 131 t = length; in memcpy() 136 length -= t; in memcpy() 139 t = length / wsize; in memcpy() 142 t = length & wmask; in memcpy() [all …]
|
| H A D | gsb_crc32.c | 679 uint32_t length, in crc32c_sb8_64_bit() argument 687 running_length = rounddown(length - init_bytes, 8); in crc32c_sb8_64_bit() 688 end_bytes = length - init_bytes - running_length; in crc32c_sb8_64_bit() 736 unsigned int length) in multitable_crc32c() argument 740 if (length == 0) { in multitable_crc32c() 750 unsigned int length) in calculate_crc32c() argument 756 return (sse42_crc32c(crc32c, buffer, length)); in calculate_crc32c() 761 return (armv8_crc32c(crc32c, buffer, length)); in calculate_crc32c() 766 if (length < 4) { in calculate_crc32c() 769 return (multitable_crc32c(crc32c, buffer, length)); in calculate_crc32c() [all …]
|
| H A D | jenkins_hash.c | 161 while (length > 3) in jenkins_hash32() 167 length -= 3; in jenkins_hash32() 226 while (length > 12) in jenkins_hash() 232 length -= 12; in jenkins_hash() 247 switch(length) in jenkins_hash() 275 length -= 12; in jenkins_hash() 281 switch(length) in jenkins_hash() 330 length -= 12; in jenkins_hash() 385 length -= 12; in jenkins_hash() 400 switch(length) in jenkins_hash() [all …]
|
| /f-stack/dpdk/drivers/common/dpaax/caamflib/rta/ |
| H A D | load_cmd.h | 156 if ((length > 3) || (offset)) in load_check_len_offset() 160 if ((length != 4) || (offset != 0)) in load_check_len_offset() 175 if ((length < 1) || (length > 8) || (offset != 0)) in load_check_len_offset() 179 if ((length > 32) || (offset > 32) || ((offset + length) > 32)) in load_check_len_offset() 183 if ((length > 24) || (offset > 24) || ((offset + length) > 24)) in load_check_len_offset() 187 if ((length > 16) || (offset > 16) || ((offset + length) > 16)) in load_check_len_offset() 191 if ((length > 8) || (offset > 8) || ((offset + length) > 8)) in load_check_len_offset() 196 ((offset + length) > 128)) in load_check_len_offset() 200 if ((length < 1) || (length > 256) || ((length + offset) > 256)) in load_check_len_offset() 273 opcode |= (length >> 2); in rta_load() [all …]
|
| /f-stack/dpdk/app/test-crypto-perf/ |
| H A D | cperf_ops.c | 109 sym_op->cipher.data.length = in cperf_set_ops_null_cipher() 148 sym_op->auth.data.length = in cperf_set_ops_null_auth() 187 sym_op->cipher.data.length = in cperf_set_ops_cipher() 287 sym_op->auth.data.length = in cperf_set_ops_auth() 393 sym_op->auth.data.length = in cperf_set_ops_cipher_auth() 461 sym_op->aead.data.length = in cperf_set_ops_aead() 570 cipher_xform.cipher.key.length = test_vector->cipher_key.length; in cperf_create_session() 588 auth_xform.auth.key.length = test_vector->auth_key.length; in cperf_create_session() 590 auth_xform.auth.iv.length = test_vector->auth_iv.length; in cperf_create_session() 766 auth_xform.auth.iv.length = test_vector->auth_iv.length; in cperf_create_session() [all …]
|
| H A D | cperf_test_vectors.h | 13 uint32_t length; member 18 uint16_t length; member 23 uint16_t length; member 28 uint16_t length; member 33 uint16_t length; member 38 uint16_t length; member 43 uint16_t length; member 48 uint32_t length; member 54 uint16_t length; member 60 uint16_t length; member
|
| H A D | cperf_test_vector_parsing.c | 52 if (i == test_vector->plaintext.length - 1) in show_test_vector() 309 vector->plaintext.length = data_length; in parse_entry() 323 vector->cipher_key.length = data_length; in parse_entry() 337 vector->auth_key.length = data_length; in parse_entry() 351 vector->aead_key.length = data_length; in parse_entry() 365 vector->cipher_iv.length = data_length; in parse_entry() 379 vector->auth_iv.length = data_length; in parse_entry() 393 vector->aead_iv.length = data_length; in parse_entry() 422 vector->aad.length = data_length; in parse_entry() 429 vector->aad.length = opts->aead_aad_sz; in parse_entry() [all …]
|
| H A D | cperf_test_vectors.c | 417 t_vec->cipher_key.length = 0; in cperf_test_vector_get_dummy() 444 t_vec->auth_key.length = 0; in cperf_test_vector_get_dummy() 447 t_vec->digest.length = 0; in cperf_test_vector_get_dummy() 462 t_vec->digest.length = options->digest_sz; in cperf_test_vector_get_dummy() 475 t_vec->cipher_key.length = 0; in cperf_test_vector_get_dummy() 508 t_vec->auth_key.length = 0; in cperf_test_vector_get_dummy() 511 t_vec->digest.length = 0; in cperf_test_vector_get_dummy() 526 t_vec->digest.length = options->digest_sz; in cperf_test_vector_get_dummy() 559 t_vec->aad.length = options->aead_aad_sz; in cperf_test_vector_get_dummy() 562 t_vec->aad.length = 0; in cperf_test_vector_get_dummy() [all …]
|
| /f-stack/app/redis-5.0.5/deps/lua/src/ |
| H A D | strbuf.h | 37 int length; member 80 s->length = 0; in strbuf_reset() 103 return s->buf + s->length; in strbuf_empty_ptr() 108 s->length += len; in strbuf_extend_length() 113 return s->length; in strbuf_length() 119 s->buf[s->length++] = c; in strbuf_append_char() 124 s->buf[s->length++] = c; in strbuf_append_char_unsafe() 131 s->length += len; in strbuf_append_mem() 137 s->length += len; in strbuf_append_mem_unsafe() 142 s->buf[s->length] = 0; in strbuf_ensure_null() [all …]
|
| /f-stack/dpdk/drivers/net/e1000/base/ |
| H A D | e1000_manage.c | 26 for (i = 0; i < length; i++) in e1000_calculate_checksum() 172 length >>= 2; in e1000_mng_write_cmd_header_generic() 207 if (length == 0 || offset + length > E1000_HI_MAX_MNG_DATA_LENGTH) in e1000_mng_host_if_write_generic() 225 remaining = length & 0x3; in e1000_mng_host_if_write_generic() 226 length -= remaining; in e1000_mng_host_if_write_generic() 229 length >>= 2; in e1000_mng_host_if_write_generic() 268 u16 length) in e1000_mng_write_dhcp_info_generic() argument 382 if (length == 0 || length & 0x3 || in e1000_host_interface_command() 396 length >>= 2; in e1000_host_interface_command() 462 if (length == 0 || length & 0x3 || length > E1000_HI_FW_MAX_LENGTH) { in e1000_load_firmware() [all …]
|
| /f-stack/dpdk/drivers/net/igc/base/ |
| H A D | igc_manage.c | 26 for (i = 0; i < length; i++) in igc_calculate_checksum() 172 length >>= 2; in igc_mng_write_cmd_header_generic() 207 if (length == 0 || offset + length > IGC_HI_MAX_MNG_DATA_LENGTH) in igc_mng_host_if_write_generic() 225 remaining = length & 0x3; in igc_mng_host_if_write_generic() 226 length -= remaining; in igc_mng_host_if_write_generic() 229 length >>= 2; in igc_mng_host_if_write_generic() 268 u16 length) in igc_mng_write_dhcp_info_generic() argument 382 if (length == 0 || length & 0x3 || in igc_host_interface_command() 396 length >>= 2; in igc_host_interface_command() 462 if (length == 0 || length & 0x3 || length > IGC_HI_FW_MAX_LENGTH) { in igc_load_firmware() [all …]
|
| /f-stack/freebsd/arm/nvidia/drm2/ |
| H A D | hdmi.c | 93 size_t length; in hdmi_avi_infoframe_pack() local 95 length = HDMI_INFOFRAME_HEADER_SIZE + frame->length; in hdmi_avi_infoframe_pack() 154 return length; in hdmi_avi_infoframe_pack() 200 size_t length; in hdmi_spd_infoframe_pack() local 202 length = HDMI_INFOFRAME_HEADER_SIZE + frame->length; in hdmi_spd_infoframe_pack() 224 return length; in hdmi_spd_infoframe_pack() 265 size_t length; in hdmi_audio_infoframe_pack() local 267 length = HDMI_INFOFRAME_HEADER_SIZE + frame->length; in hdmi_audio_infoframe_pack() 299 return length; in hdmi_audio_infoframe_pack() 362 length = HDMI_INFOFRAME_HEADER_SIZE + frame->length; in hdmi_vendor_infoframe_pack() [all …]
|
| /f-stack/dpdk/drivers/common/cpt/ |
| H A D | cpt_ucode_asym.h | 86 len = (((mod_len / 2) < qt.p.length) ? len : qt.p.length); in cpt_fill_rsa_params() 116 rsa->qt.q.length = qt.q.length; in cpt_fill_rsa_params() 117 rsa->qt.dQ.length = qt.dQ.length; in cpt_fill_rsa_params() 118 rsa->qt.p.length = qt.p.length; in cpt_fill_rsa_params() 119 rsa->qt.dP.length = qt.dP.length; in cpt_fill_rsa_params() 120 rsa->qt.qInv.length = qt.qInv.length; in cpt_fill_rsa_params() 502 .length = 24 513 .length = 28 522 .length = 28 533 .length = 32 [all …]
|
| /f-stack/freebsd/contrib/ncsw/inc/Peripherals/ |
| H A D | dpaa_ext.h | 84 volatile uint32_t length; /**< Frame length */ 121 #define DPAA_FD_GET_FORMAT(fd) ((((t_DpaaFD *)fd)->length & DPAA_FD_FORMAT_MASK) >> (31-2)) … 122 #define DPAA_FD_GET_OFFSET(fd) ((((t_DpaaFD *)fd)->length & DPAA_FD_OFFSET_MASK) >> (31-11))… 123 #define DPAA_FD_GET_LENGTH(fd) (((t_DpaaFD *)fd)->length & DPAA_FD_LENGTH_MASK) … 135 #define DPAA_FD_SET_FORMAT(fd,val) (((t_DpaaFD *)fd)->length = ((((t_DpaaFD *)fd)->length & ~DPA… 136 #define DPAA_FD_SET_OFFSET(fd,val) (((t_DpaaFD *)fd)->length = ((((t_DpaaFD *)fd)->length & ~DPA… 137 #define DPAA_FD_SET_LENGTH(fd,val) (((t_DpaaFD *)fd)->length = (((t_DpaaFD *)fd)->length & ~DPAA… 147 volatile uint32_t length; /**< Buffer length */ 203 …DPAA_SGTE_SET_EXTENSION(sgte,val) (((t_DpaaSGTE *)sgte)->length = ((((t_DpaaSGTE *)sgte)->length &… 204 …DPAA_SGTE_SET_FINAL(sgte,val) (((t_DpaaSGTE *)sgte)->length = ((((t_DpaaSGTE *)sgte)->length &… [all …]
|
| /f-stack/dpdk/drivers/crypto/qat/ |
| H A D | qat_asym.c | 93 if (n.length < 8) { in qat_asym_check_nonzero() 103 if (i == n.length - 1) in qat_asym_check_nonzero() 107 n.length - 8] == 0) { in qat_asym_check_nonzero() 114 if (i == n.length - 8) in qat_asym_check_nonzero() 304 xform->rsa.e.length in qat_asym_fill_arrays() 306 xform->rsa.e.length); in qat_asym_fill_arrays() 309 xform->rsa.n.length, in qat_asym_fill_arrays() 547 n.length), in qat_asym_collect_response() 549 - n.length, n.length in qat_asym_collect_response() 568 - n.length), in qat_asym_collect_response() [all …]
|
| /f-stack/dpdk/drivers/crypto/dpaa_sec/ |
| H A D | dpaa_sec.c | 1268 length += sg->length; in build_cipher_auth_gcm() 1282 length += sg->length; in build_cipher_auth_gcm() 1288 length += sg->length; in build_cipher_auth_gcm() 1302 length += sg->length; in build_cipher_auth_gcm() 1311 length += sg->length; in build_cipher_auth_gcm() 1327 length = sg->length; in build_cipher_auth_gcm() 1334 length += sg->length; in build_cipher_auth_gcm() 1505 length += sg->length; in build_cipher_auth() 1511 length += sg->length; in build_cipher_auth() 1517 length += sg->length; in build_cipher_auth() [all …]
|
| /f-stack/freebsd/contrib/ck/src/ |
| H A D | ck_array.c | 44 active->length = length; in ck_array_create() 59 length == 0) in ck_array_init() 62 active = ck_array_create(allocator, length); in ck_array_init() 86 if (array->n_entries == target->length) { in ck_array_put() 87 size = target->length << 1; in ck_array_put() 97 ck_pr_store_uint(&target->length, size); in ck_array_put() 109 if (array->n_entries == target->length) { in ck_array_put() 110 size = target->length << 1; in ck_array_put() 120 target->length = size; in ck_array_put() 194 target->length = array->n_entries; in ck_array_remove() [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/icp/algs/aes/ |
| H A D | aes_modes.c | 72 aes_encrypt_contiguous_blocks(void *ctx, char *data, size_t length, in aes_encrypt_contiguous_blocks() argument 79 rv = ctr_mode_contiguous_blocks(ctx, data, length, out, in aes_encrypt_contiguous_blocks() 82 rv = ccm_mode_encrypt_contiguous_blocks(ctx, data, length, in aes_encrypt_contiguous_blocks() 86 rv = gcm_mode_encrypt_contiguous_blocks(ctx, data, length, in aes_encrypt_contiguous_blocks() 91 data, length, out, AES_BLOCK_LEN, aes_encrypt_block, in aes_encrypt_contiguous_blocks() 94 rv = ecb_cipher_contiguous_blocks(ctx, data, length, out, in aes_encrypt_contiguous_blocks() 112 rv = ctr_mode_contiguous_blocks(ctx, data, length, out, in aes_decrypt_contiguous_blocks() 117 rv = ccm_mode_decrypt_contiguous_blocks(ctx, data, length, in aes_decrypt_contiguous_blocks() 121 rv = gcm_mode_decrypt_contiguous_blocks(ctx, data, length, in aes_decrypt_contiguous_blocks() 125 rv = cbc_decrypt_contiguous_blocks(ctx, data, length, out, in aes_decrypt_contiguous_blocks() [all …]
|
| /f-stack/freebsd/netgraph/bluetooth/l2cap/ |
| H A D | ng_l2cap_cmds.h | 82 c->hdr.length; \ 84 c->hdr.length = htole16(c->hdr.length); \ 162 c->hdr.length += l; \ 166 c->hdr.length = htole16(c->hdr.length); \ 197 c->hdr.length += l; \ 201 c->hdr.length = htole16(c->hdr.length); \ 357 c->length = 0; \ 361 c->length += (_size); \ 364 c->length = htole16(c->length); \ 420 c->hdr.length; \ [all …]
|
| /f-stack/dpdk/drivers/crypto/dpaa2_sec/ |
| H A D | dpaa2_sec_dpseci.c | 392 sge->length = sess->iv.length; in build_authenc_gcm_sg_fd() 518 sge->length = sym_op->aead.data.length; in build_authenc_gcm_fd() 542 sge->length = sess->iv.length; in build_authenc_gcm_fd() 684 sge->length = sess->iv.length; in build_authenc_sg_fd() 840 sge->length = sess->iv.length; in build_authenc_fd() 939 sge->length = sess->iv.length; in build_auth_sg_fd() 942 ip_fle->length += sge->length; in build_auth_sg_fd() 1069 sge->length = sess->iv.length; in build_auth_fd() 1073 fle->length = fle->length + sge->length; in build_auth_fd() 1194 sge->length = sess->iv.length; in build_cipher_sg_fd() [all …]
|
| /f-stack/dpdk/drivers/crypto/bcmfs/ |
| H A D | bcmfs_sym_session.c | 55 if (cipher_xform->key.length > BCMFS_MAX_KEY_SIZE) { in crypto_set_session_cipher_parameters() 60 sess->cipher.key.length = cipher_xform->key.length; in crypto_set_session_cipher_parameters() 62 sess->cipher.iv.length = cipher_xform->iv.length; in crypto_set_session_cipher_parameters() 67 sess->cipher.key.length, in crypto_set_session_cipher_parameters() 78 if (auth_xform->key.length > BCMFS_MAX_KEY_SIZE) { in crypto_set_session_auth_parameters() 84 sess->auth.key.length = auth_xform->key.length; in crypto_set_session_auth_parameters() 86 sess->auth.iv.length = auth_xform->iv.length; in crypto_set_session_auth_parameters() 91 auth_xform->key.length, in crypto_set_session_auth_parameters() 108 sess->aead.iv.length = aead_xform->aead.iv.length; in crypto_set_session_aead_parameters() 110 sess->aead.key.length = aead_xform->aead.key.length; in crypto_set_session_aead_parameters() [all …]
|