Home
last modified time | relevance | path

Searched refs:key_info (Results 1 – 22 of 22) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dcore_acl_flex_keys.c79 mlxsw_afk_key_info_elements_eq(struct mlxsw_afk_key_info *key_info, in mlxsw_afk_key_info_elements_eq() argument
82 return memcmp(&key_info->elusage, elusage, sizeof(*elusage)) == 0; in mlxsw_afk_key_info_elements_eq()
89 struct mlxsw_afk_key_info *key_info; in mlxsw_afk_key_info_find() local
91 list_for_each_entry(key_info, &mlxsw_afk->key_info_list, list) { in mlxsw_afk_key_info_find()
92 if (mlxsw_afk_key_info_elements_eq(key_info, elusage)) in mlxsw_afk_key_info_find()
93 return key_info; in mlxsw_afk_key_info_find()
165 struct mlxsw_afk_key_info *key_info) in mlxsw_afk_picker_key_info_add() argument
169 if (key_info->blocks_count == mlxsw_afk->max_blocks) in mlxsw_afk_picker_key_info_add()
174 key_info->element_to_block[element] = key_info->blocks_count; in mlxsw_afk_picker_key_info_add()
175 mlxsw_afk_element_usage_add(&key_info->elusage, element); in mlxsw_afk_picker_key_info_add()
[all …]
Dcore_acl_flex_keys.h222 void mlxsw_afk_key_info_put(struct mlxsw_afk_key_info *key_info);
223 bool mlxsw_afk_key_info_subset(struct mlxsw_afk_key_info *key_info,
227 mlxsw_afk_key_info_block_encoding_get(const struct mlxsw_afk_key_info *key_info,
230 mlxsw_afk_key_info_blocks_count_get(const struct mlxsw_afk_key_info *key_info);
248 struct mlxsw_afk_key_info *key_info,
Dspectrum_acl_bloom_filter.c123 struct mlxsw_afk_key_info *key_info = aregion->region->key_info; in mlxsw_sp_acl_bf_key_encode() local
128 block_count = mlxsw_afk_key_info_blocks_count_get(key_info); in mlxsw_sp_acl_bf_key_encode()
Dspectrum_acl_tcam.c211 struct mlxsw_afk_key_info *key_info; member
547 issubset = mlxsw_afk_key_info_subset(vregion->key_info, in mlxsw_sp_acl_tcam_vgroup_vregion_find()
610 struct mlxsw_afk_key_info *key_info = region->key_info; in mlxsw_sp_acl_tcam_region_alloc() local
620 encodings_count = mlxsw_afk_key_info_blocks_count_get(key_info); in mlxsw_sp_acl_tcam_region_alloc()
624 encoding = mlxsw_afk_key_info_block_encoding_get(key_info, i); in mlxsw_sp_acl_tcam_region_alloc()
683 region->key_info = vregion->key_info; in mlxsw_sp_acl_tcam_region_create()
815 vregion->key_info = mlxsw_afk_key_info_get(afk, elusage); in mlxsw_sp_acl_tcam_vregion_create()
816 if (IS_ERR(vregion->key_info)) { in mlxsw_sp_acl_tcam_vregion_create()
817 err = PTR_ERR(vregion->key_info); in mlxsw_sp_acl_tcam_vregion_create()
848 mlxsw_afk_key_info_put(vregion->key_info); in mlxsw_sp_acl_tcam_vregion_create()
[all …]
Dspectrum_acl_ctcam.c65 mlxsw_afk_encode(afk, region->key_info, &rulei->values, key, mask); in mlxsw_sp_acl_ctcam_region_entry_insert()
Dspectrum_acl_atcam.c302 blocks_count = mlxsw_afk_key_info_blocks_count_get(region->key_info); in mlxsw_sp_acl_atcam_region_type_init()
484 mlxsw_afk_encode(afk, region->key_info, &rulei->values, in __mlxsw_sp_acl_atcam_entry_add()
Dspectrum_acl_tcam.h87 struct mlxsw_afk_key_info *key_info; member
/Linux-v5.4/drivers/net/wireless/marvell/mwifiex/
Dsta_cmd.c550 key_param_set->key_info = in mwifiex_set_keyparamset_wep()
606 km->key_param_set.key_info &= cpu_to_le16(~KEY_MCAST); in mwifiex_set_aes_key_v2()
607 km->key_param_set.key_info |= cpu_to_le16(KEY_IGTK); in mwifiex_set_aes_key_v2()
657 u16 key_info, len = KEY_PARAMS_FIXED_LEN; in mwifiex_cmd_802_11_key_material_v2() local
673 key_info = KEY_UNICAST; in mwifiex_cmd_802_11_key_material_v2()
675 key_info = KEY_MCAST; in mwifiex_cmd_802_11_key_material_v2()
678 key_info |= KEY_IGTK; in mwifiex_cmd_802_11_key_material_v2()
680 km->key_param_set.key_info = cpu_to_le16(key_info); in mwifiex_cmd_802_11_key_material_v2()
697 key_info = KEY_MCAST | KEY_UNICAST; in mwifiex_cmd_802_11_key_material_v2()
698 km->key_param_set.key_info = cpu_to_le16(key_info); in mwifiex_cmd_802_11_key_material_v2()
[all …]
Dsta_cmdresp.c585 if ((le16_to_cpu(key->key_param_set.key_info) & KEY_MCAST)) { in mwifiex_ret_802_11_key_material_v1()
617 if ((le16_to_cpu(key_v2->key_param_set.key_info) & KEY_MCAST)) { in mwifiex_ret_802_11_key_material_v2()
Dfw.h930 __le16 key_info; member
977 __le16 key_info; member
Dsta_ioctl.c1027 ibss_key->key_param_set.key_info = cpu_to_le16(KEY_ENABLED); in mwifiex_sec_ioctl_set_wpa_key()
/Linux-v5.4/drivers/staging/ks7010/
Deap_packet.h42 __be16 key_info; member
Dks_hostif.c1165 keyinfo = ntohs(eap_key->key_info); in hostif_data_request()
/Linux-v5.4/drivers/staging/wilc1000/
Dwilc_wfi_cfgoperations.c483 static int wilc_wfi_cfg_copy_wpa_info(struct wilc_wfi_key *key_info, in wilc_wfi_cfg_copy_wpa_info() argument
486 kfree(key_info->key); in wilc_wfi_cfg_copy_wpa_info()
488 key_info->key = kmemdup(params->key, params->key_len, GFP_KERNEL); in wilc_wfi_cfg_copy_wpa_info()
489 if (!key_info->key) in wilc_wfi_cfg_copy_wpa_info()
492 kfree(key_info->seq); in wilc_wfi_cfg_copy_wpa_info()
495 key_info->seq = kmemdup(params->seq, params->seq_len, in wilc_wfi_cfg_copy_wpa_info()
497 if (!key_info->seq) in wilc_wfi_cfg_copy_wpa_info()
501 key_info->cipher = params->cipher; in wilc_wfi_cfg_copy_wpa_info()
502 key_info->key_len = params->key_len; in wilc_wfi_cfg_copy_wpa_info()
503 key_info->seq_len = params->seq_len; in wilc_wfi_cfg_copy_wpa_info()
/Linux-v5.4/drivers/staging/speakup/
Dspeakup.h50 int spk_set_key_info(const u_char *key_info, u_char *k_buffer);
Dmain.c1221 int spk_set_key_info(const u_char *key_info, u_char *k_buffer) in spk_set_key_info() argument
1224 const u_char *cp = key_info; in spk_set_key_info()
2102 u_char *key_info; in speakup_key() local
2127 key_info = spk_our_keys[keycode]; in speakup_key()
2128 if (!key_info) in speakup_key()
2148 new_key = key_info[offset]; in speakup_key()
2167 if (offset && key_info[offset]) in speakup_key()
2168 new_key = key_info[offset]; in speakup_key()
/Linux-v5.4/drivers/net/wireless/ath/wil6210/
Dtxrx.c739 u16 key_info; in wil_is_ptk_eapol_key() local
764 key_info = be16_to_cpu(key->key_info); in wil_is_ptk_eapol_key()
765 if (!(key_info & WIL_KEY_INFO_KEY_TYPE)) /* check if pairwise */ in wil_is_ptk_eapol_key()
774 u16 key_info; in wil_skb_is_eap_3() local
780 key_info = be16_to_cpu(key->key_info); in wil_skb_is_eap_3()
781 if (key_info & (WIL_KEY_INFO_MIC | in wil_skb_is_eap_3()
Dtxrx.h457 __be16 key_info; member
/Linux-v5.4/drivers/net/wireless/marvell/libertas/
Dcfg.c971 int key_type, int key_info, in lbs_set_key_material() argument
998 cmd.param.keyinfo = cpu_to_le16(key_info); in lbs_set_key_material()
1460 u16 key_info; in lbs_cfg_add_key() local
1495 key_info = KEY_INFO_WPA_ENABLED | ((idx == 0) in lbs_cfg_add_key()
1503 key_info, in lbs_cfg_add_key()
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.h542 struct key_info { struct
Dhclge_main.c370 static const struct key_info meta_data_key_info[] = {
381 static const struct key_info tuple_key_info[] = {
/Linux-v5.4/drivers/net/wireless/marvell/
Dmwl8k.c4220 __le32 key_info; member
4299 cmd->key_info = cpu_to_le32(MWL8K_KEY_FLAG_WEP_TXKEY); in mwl8k_encryption_set_cmd_info()
4304 cmd->key_info = (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) in mwl8k_encryption_set_cmd_info()
4307 cmd->key_info |= cpu_to_le32(MWL8K_KEY_FLAG_MICKEY_VALID in mwl8k_encryption_set_cmd_info()
4312 cmd->key_info = (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) in mwl8k_encryption_set_cmd_info()