/drivers/net/ethernet/netronome/nfp/flower/ |
D | offload.c | 155 u32 *key_layer_two, int *key_size, bool ipv6, in nfp_flower_calc_opt_layer() argument 166 *key_size += sizeof(struct nfp_flower_geneve_options); in nfp_flower_calc_opt_layer() 175 u32 *key_layer_two, u8 *key_layer, int *key_size, in nfp_flower_calc_udp_tun_layer() argument 189 *key_size += sizeof(struct nfp_flower_ext_meta); in nfp_flower_calc_udp_tun_layer() 191 *key_size += sizeof(struct nfp_flower_ipv6_udp_tun); in nfp_flower_calc_udp_tun_layer() 193 *key_size += sizeof(struct nfp_flower_ipv4_udp_tun); in nfp_flower_calc_udp_tun_layer() 208 *key_size += sizeof(struct nfp_flower_ext_meta); in nfp_flower_calc_udp_tun_layer() 213 *key_size += sizeof(struct nfp_flower_ipv6_udp_tun); in nfp_flower_calc_udp_tun_layer() 215 *key_size += sizeof(struct nfp_flower_ipv4_udp_tun); in nfp_flower_calc_udp_tun_layer() 224 err = nfp_flower_calc_opt_layer(enc_op, key_layer_two, key_size, in nfp_flower_calc_udp_tun_layer() [all …]
|
D | conntrack.c | 414 int key_size; in nfp_fl_calc_key_layers_sz() local 417 key_size = sizeof(struct nfp_flower_meta_tci); in nfp_fl_calc_key_layers_sz() 421 map[FLOW_PAY_EXT_META] = key_size; in nfp_fl_calc_key_layers_sz() 422 key_size += sizeof(struct nfp_flower_ext_meta); in nfp_fl_calc_key_layers_sz() 425 map[FLOW_PAY_INPORT] = key_size; in nfp_fl_calc_key_layers_sz() 426 key_size += sizeof(struct nfp_flower_in_port); in nfp_fl_calc_key_layers_sz() 429 map[FLOW_PAY_MAC_MPLS] = key_size; in nfp_fl_calc_key_layers_sz() 430 key_size += sizeof(struct nfp_flower_mac_mpls); in nfp_fl_calc_key_layers_sz() 433 map[FLOW_PAY_L4] = key_size; in nfp_fl_calc_key_layers_sz() 434 key_size += sizeof(struct nfp_flower_tp_ports); in nfp_fl_calc_key_layers_sz() [all …]
|
/drivers/mmc/host/ |
D | cqhci-crypto.c | 17 enum cqhci_crypto_key_size key_size; member 21 .key_size = CQHCI_CRYPTO_KEY_SIZE_256, 79 ccap_array[i].key_size == alg->key_size && in cqhci_crypto_keyslot_program() 148 cqhci_crypto_algs[i].key_size == cap.key_size) in cqhci_find_blk_crypto_mode()
|
/drivers/md/ |
D | dm-crypt.c | 201 unsigned int key_size; member 456 int subkey_size = cc->key_size / cc->key_parts; in crypt_iv_lmk_init() 588 if (cc->key_size <= (cc->iv_size + TCW_WHITENING_SIZE)) { in crypt_iv_tcw_ctr() 614 int key_offset = cc->key_size - cc->iv_size - TCW_WHITENING_SIZE; in crypt_iv_tcw_init() 1038 int key_offset = cc->key_size - cc->key_extra_size; in crypt_iv_elephant_init() 2350 return (cc->key_size - cc->key_extra_size) >> ilog2(cc->tfms_count); in crypt_subkey_size() 2437 if (cc->key_size != ukp->datalen) in set_key_user() 2440 memcpy(cc->key, ukp->data, cc->key_size); in set_key_user() 2453 if (cc->key_size != ekp->decrypted_datalen) in set_key_encrypted() 2456 memcpy(cc->key, ekp->decrypted_data, cc->key_size); in set_key_encrypted() [all …]
|
D | dm-default-key.c | 17 int key_size; member 22 .key_size = 64, 26 .key_size = 32,
|
/drivers/hv/ |
D | hv_kvp.c | 460 message->body.kvp_set.data.key_size = in kvp_send_key() 463 in_msg->body.kvp_set.data.key_size, in kvp_send_key() 471 message->body.kvp_get.data.key_size = in kvp_send_key() 474 in_msg->body.kvp_get.data.key_size, in kvp_send_key() 481 message->body.kvp_delete.key_size = in kvp_send_key() 484 in_msg->body.kvp_delete.key_size, in kvp_send_key() 600 kvp_data->key_size = 2*(keylen + 1); /* utf16 encoding */ in kvp_respond_to_host()
|
/drivers/net/ethernet/netronome/nfp/bpf/ |
D | cmsg.c | 95 req->key_size = cpu_to_be32(map->key_size); in nfp_bpf_ctrl_alloc_map() 231 if (memcmp(cached_key, key, map->key_size)) in nfp_bpf_ctrl_op_cache_get() 243 map->key_size); in nfp_bpf_ctrl_op_cache_get() 328 memcpy(nfp_bpf_ctrl_req_key(bpf, req, 0), key, map->key_size); in nfp_bpf_ctrl_entry_op() 368 map->key_size); in nfp_bpf_ctrl_entry_op()
|
D | offload.c | 363 if (round_up(offmap->map.key_size, 8) + in nfp_bpf_map_alloc() 366 round_up(offmap->map.key_size, 8) + in nfp_bpf_map_alloc() 371 if (offmap->map.key_size > bpf->maps.max_key_sz) { in nfp_bpf_map_alloc() 373 offmap->map.key_size, bpf->maps.max_key_sz); in nfp_bpf_map_alloc()
|
D | fw.h | 80 __be32 key_size; /* in bytes */ member
|
/drivers/infiniband/sw/rxe/ |
D | rxe_pool.c | 80 .key_size = sizeof(union ib_gid), 156 pool->key.key_size = rxe_type_info[type].key_size; in rxe_pool_init() 226 (u8 *)new + pool->key.key_offset, pool->key.key_size); in rxe_insert_key() 250 memcpy((u8 *)elem + pool->key.key_offset, key, pool->key.key_size); in __rxe_add_key_locked() 468 key, pool->key.key_size); in rxe_pool_get_key_locked()
|
D | rxe_pool.h | 44 size_t key_size; member 87 size_t key_size; member
|
/drivers/crypto/amcc/ |
D | crypto4xx_sa.h | 38 u32 key_size:4; member 279 offset = cts->sa_contents.bf.key_size in get_dynamic_sa_offset_state_ptr_field() 306 cts->sa_contents.bf.key_size * 4); in get_dynamic_sa_inner_digest()
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-ethtool.c | 557 rule_cfg.key_size = dpaa2_eth_cls_key_size(DPAA2_ETH_DIST_ALL); in dpaa2_eth_do_cls_rule() 560 key_buf = kzalloc(rule_cfg.key_size * 2, GFP_KERNEL); in dpaa2_eth_do_cls_rule() 565 err = dpaa2_eth_prep_cls_rule(fs, key_buf, key_buf + rule_cfg.key_size, &fields); in dpaa2_eth_do_cls_rule() 592 rule_cfg.key_size = dpaa2_eth_cls_key_size(fields); in dpaa2_eth_do_cls_rule() 595 key_iova = dma_map_single(dev, key_buf, rule_cfg.key_size * 2, in dpaa2_eth_do_cls_rule() 604 rule_cfg.mask_iova = key_iova + rule_cfg.key_size; in dpaa2_eth_do_cls_rule() 625 dma_unmap_single(dev, key_iova, rule_cfg.key_size * 2, DMA_TO_DEVICE); in dpaa2_eth_do_cls_rule()
|
D | dpni-cmd.h | 561 u8 key_size; member 576 u8 key_size; member 599 u8 key_size; member 608 u8 key_size; member
|
D | dpni.c | 1890 cmd_params->key_size = cfg->key_size; in dpni_add_fs_entry() 1928 cmd_params->key_size = cfg->key_size; in dpni_remove_fs_entry() 2002 cmd_params->key_size = cfg->key_size; in dpni_add_qos_entry() 2033 cmd_params->key_size = cfg->key_size; in dpni_remove_qos_entry()
|
/drivers/crypto/keembay/ |
D | ocs-aes.c | 477 int ocs_aes_set_key(struct ocs_aes_dev *aes_dev, u32 key_size, const u8 *key, in ocs_aes_set_key() argument 485 if (cipher == OCS_AES && !(key_size == 32 || key_size == 16)) { in ocs_aes_set_key() 488 key_size * 8); in ocs_aes_set_key() 492 if (cipher == OCS_SM4 && key_size != 16) { in ocs_aes_set_key() 495 key_size * 8); in ocs_aes_set_key() 505 for (i = 0; i < (key_size / sizeof(u32)); i++) { in ocs_aes_set_key() 517 val = (key_size == 16) ? AES_128_BIT_KEY : AES_256_BIT_KEY; in ocs_aes_set_key()
|
/drivers/scsi/ufs/ |
D | ufs-qcom-ice.c | 224 cap.key_size != UFS_CRYPTO_KEY_SIZE_256) { in ufs_qcom_ice_program_key() 227 cap.algorithm_id, cap.key_size); in ufs_qcom_ice_program_key()
|
D | ufshcd-crypto.c | 71 ccap_array[i].key_size == alg->ufs_key_size && in ufshcd_crypto_keyslot_program() 153 ufs_crypto_algs[i].ufs_key_size == cap.key_size) { in ufshcd_find_blk_crypto_mode()
|
/drivers/net/netdevsim/ |
D | bpf.c | 334 return e->key && !memcmp(key, e->key, map->key_size); in nsim_map_key_match() 354 nmap->entry[idx].key = kmalloc(offmap->map.key_size, in nsim_map_alloc_elem() 388 offmap->map.key_size); in nsim_map_get_next_key() 450 memcpy(nmap->entry[idx].key, key, offmap->map.key_size); in nsim_map_update_elem()
|
/drivers/firmware/ |
D | qcom_scm.c | 1021 int qcom_scm_ice_set_key(u32 index, const u8 *key, u32 key_size, in qcom_scm_ice_set_key() argument 1031 .args[2] = key_size, in qcom_scm_ice_set_key() 1050 keybuf = dma_alloc_coherent(__scm->dev, key_size, &key_phys, in qcom_scm_ice_set_key() 1054 memcpy(keybuf, key, key_size); in qcom_scm_ice_set_key() 1059 memzero_explicit(keybuf, key_size); in qcom_scm_ice_set_key() 1061 dma_free_coherent(__scm->dev, key_size, keybuf, key_phys); in qcom_scm_ice_set_key()
|
/drivers/net/wireless/ti/wlcore/ |
D | cmd.h | 63 u8 key_size, const u8 *key, const u8 *addr, 67 u8 key_size, const u8 *key, u8 hlid, u32 tx_seq_32, 497 u8 key_size; member
|
/drivers/crypto/ccp/ |
D | ccp-crypto-rsa.c | 52 req->dst_len = rctx->cmd.u.rsa.key_size >> 3; in ccp_rsa_complete() 75 rctx->cmd.u.rsa.key_size = ctx->u.rsa.key_len; /* in bits */ in ccp_rsa_crypt()
|
/drivers/crypto/hisilicon/hpre/ |
D | hpre_crypto.c | 716 memcpy(ctx->dh.xa_p + (ctx->key_sz - params.key_size), params.key, in hpre_dh_set_secret() 717 params.key_size); in hpre_dh_set_secret() 1279 if (params->key_size == cur_sz && memcmp(params->key, n, cur_sz) >= 0) { in hpre_ecdh_fill_curve() 1315 if (!curve_sz || params->key_size > curve_sz) in hpre_ecdh_set_param() 1365 params->key_size); in ecdh_gen_privkey() 1389 if (!params.key || !params.key_size) { in hpre_ecdh_set_secret() 1391 params.key_size = hpre_ecdh_get_curvesz(ctx->curve_id); in hpre_ecdh_set_secret() 1397 if (hpre_key_is_zero(params.key, params.key_size)) { in hpre_ecdh_set_secret() 1411 sz_shift = (sz << 1) + sz - params.key_size; in hpre_ecdh_set_secret() 1412 memcpy(ctx->ecdh.p + sz_shift, params.key, params.key_size); in hpre_ecdh_set_secret()
|
/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | crypto.c | 43 MLX5_SET(encryption_key_obj, obj, key_size, general_obj_key_size); in mlx5_create_encryption_key()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_acl_erp.c | 389 enum mlxsw_reg_perpt_key_size key_size; in mlxsw_sp_acl_erp_table_erp_add() local 394 key_size = (enum mlxsw_reg_perpt_key_size) erp_table->aregion->type; in mlxsw_sp_acl_erp_table_erp_add() 395 mlxsw_reg_perpt_pack(perpt_pl, erpt_bank, erpt_index, key_size, erp->id, in mlxsw_sp_acl_erp_table_erp_add() 409 enum mlxsw_reg_perpt_key_size key_size; in mlxsw_sp_acl_erp_table_erp_del() local 414 key_size = (enum mlxsw_reg_perpt_key_size) erp_table->aregion->type; in mlxsw_sp_acl_erp_table_erp_del() 415 mlxsw_reg_perpt_pack(perpt_pl, erpt_bank, erpt_index, key_size, erp->id, in mlxsw_sp_acl_erp_table_erp_del()
|