Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_acl_flex_keys.c121 mlxsw_afk_key_info_elements_eq(struct mlxsw_afk_key_info *key_info, in mlxsw_afk_key_info_elements_eq() argument
124 return memcmp(&key_info->elusage, elusage, sizeof(*elusage)) == 0; in mlxsw_afk_key_info_elements_eq()
131 struct mlxsw_afk_key_info *key_info; in mlxsw_afk_key_info_find() local
133 list_for_each_entry(key_info, &mlxsw_afk->key_info_list, list) { in mlxsw_afk_key_info_find()
134 if (mlxsw_afk_key_info_elements_eq(key_info, elusage)) in mlxsw_afk_key_info_find()
135 return key_info; in mlxsw_afk_key_info_find()
205 struct mlxsw_afk_key_info *key_info) in mlxsw_afk_picker_key_info_add() argument
209 if (key_info->blocks_count == mlxsw_afk->max_blocks) in mlxsw_afk_picker_key_info_add()
214 key_info->element_to_block[element] = key_info->blocks_count; in mlxsw_afk_picker_key_info_add()
215 mlxsw_afk_element_usage_add(&key_info->elusage, element); in mlxsw_afk_picker_key_info_add()
[all …]
H A Dcore_acl_flex_keys.h203 void mlxsw_afk_key_info_put(struct mlxsw_afk_key_info *key_info);
204 bool mlxsw_afk_key_info_subset(struct mlxsw_afk_key_info *key_info,
208 mlxsw_afk_key_info_block_encoding_get(const struct mlxsw_afk_key_info *key_info,
211 mlxsw_afk_key_info_blocks_count_get(const struct mlxsw_afk_key_info *key_info);
229 struct mlxsw_afk_key_info *key_info,
H A Dspectrum_acl_bloom_filter.c237 struct mlxsw_afk_key_info *key_info = aregion->region->key_info; in __mlxsw_sp_acl_bf_key_encode() local
242 block_count = mlxsw_afk_key_info_blocks_count_get(key_info); in __mlxsw_sp_acl_bf_key_encode()
377 struct mlxsw_afk_key_info *key_info = aregion->region->key_info; in mlxsw_sp4_acl_bf_key_encode() local
378 u8 block_count = mlxsw_afk_key_info_blocks_count_get(key_info); in mlxsw_sp4_acl_bf_key_encode()
H A Dspectrum_acl_tcam.c154 struct mlxsw_afk_key_info *key_info; member
510 issubset = mlxsw_afk_key_info_subset(vregion->key_info, in mlxsw_sp_acl_tcam_vgroup_vregion_find()
573 struct mlxsw_afk_key_info *key_info = region->key_info; in mlxsw_sp_acl_tcam_region_alloc() local
583 encodings_count = mlxsw_afk_key_info_blocks_count_get(key_info); in mlxsw_sp_acl_tcam_region_alloc()
587 encoding = mlxsw_afk_key_info_block_encoding_get(key_info, i); in mlxsw_sp_acl_tcam_region_alloc()
646 region->key_info = vregion->key_info; in mlxsw_sp_acl_tcam_region_create()
791 vregion->key_info = mlxsw_afk_key_info_get(afk, elusage); in mlxsw_sp_acl_tcam_vregion_create()
792 if (IS_ERR(vregion->key_info)) { in mlxsw_sp_acl_tcam_vregion_create()
793 err = PTR_ERR(vregion->key_info); in mlxsw_sp_acl_tcam_vregion_create()
824 mlxsw_afk_key_info_put(vregion->key_info); in mlxsw_sp_acl_tcam_vregion_create()
[all …]
H A Dspectrum_acl_ctcam.c65 mlxsw_afk_encode(afk, region->key_info, &rulei->values, key, mask); in mlxsw_sp_acl_ctcam_region_entry_insert()
H A Dspectrum_acl_atcam.c300 blocks_count = mlxsw_afk_key_info_blocks_count_get(region->key_info); in mlxsw_sp_acl_atcam_region_type_init()
483 mlxsw_afk_encode(afk, region->key_info, &rulei->values, in __mlxsw_sp_acl_atcam_entry_add()
H A Dspectrum_acl_tcam.h84 struct mlxsw_afk_key_info *key_info; member
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsta_cmd.c542 key_param_set->key_info = in mwifiex_set_keyparamset_wep()
598 km->key_param_set.key_info &= cpu_to_le16(~KEY_MCAST); in mwifiex_set_aes_key_v2()
599 km->key_param_set.key_info |= cpu_to_le16(KEY_IGTK); in mwifiex_set_aes_key_v2()
649 u16 key_info, len = KEY_PARAMS_FIXED_LEN; in mwifiex_cmd_802_11_key_material_v2() local
665 key_info = KEY_UNICAST; in mwifiex_cmd_802_11_key_material_v2()
667 key_info = KEY_MCAST; in mwifiex_cmd_802_11_key_material_v2()
670 key_info |= KEY_IGTK; in mwifiex_cmd_802_11_key_material_v2()
672 km->key_param_set.key_info = cpu_to_le16(key_info); in mwifiex_cmd_802_11_key_material_v2()
689 key_info = KEY_MCAST | KEY_UNICAST; in mwifiex_cmd_802_11_key_material_v2()
690 km->key_param_set.key_info = cpu_to_le16(key_info); in mwifiex_cmd_802_11_key_material_v2()
[all …]
H A Dsta_cmdresp.c579 if ((le16_to_cpu(key->key_param_set.key_info) & KEY_MCAST)) { in mwifiex_ret_802_11_key_material_v1()
615 if ((le16_to_cpu(key_v2->key_param_set.key_info) & KEY_MCAST)) { in mwifiex_ret_802_11_key_material_v2()
H A Dfw.h920 __le16 key_info; member
967 __le16 key_info; member
H A Dsta_ioctl.c1025 ibss_key->key_param_set.key_info = cpu_to_le16(KEY_ENABLED); in mwifiex_sec_ioctl_set_wpa_key()
/openbmc/u-boot/cmd/
H A Dotp.c160 const struct otpkey_type *key_info; member
194 const struct otpkey_type *key_info; member
1369 const struct otpkey_type *key_info_array = info_cb.key_info; in _otp_print_key()
1370 struct otpkey_type key_info = { .value = -1 }; in _otp_print_key() local
1386 key_info = key_info_array[i]; in _otp_print_key()
1390 if (key_info.value == -1) in _otp_print_key()
1394 printf("%s\n", key_info.information); in _otp_print_key()
1396 if (key_info.key_type == OTP_KEY_TYPE_HMAC) { in _otp_print_key()
1412 } else if (key_info.key_type == OTP_KEY_TYPE_RSA_PRIV || in _otp_print_key()
1413 key_info.key_type == OTP_KEY_TYPE_RSA_PUB) { in _otp_print_key()
[all …]
/openbmc/linux/drivers/staging/ks7010/
H A Deap_packet.h42 __be16 key_info; member
H A Dks_hostif.c1151 keyinfo = ntohs(eap_key->key_info); in hostif_data_request()
/openbmc/linux/drivers/net/wireless/microchip/wilc1000/
H A Dcfg80211.c518 static int wilc_wfi_cfg_copy_wpa_info(struct wilc_wfi_key *key_info, in wilc_wfi_cfg_copy_wpa_info() argument
521 kfree(key_info->key); in wilc_wfi_cfg_copy_wpa_info()
523 key_info->key = kmemdup(params->key, params->key_len, GFP_KERNEL); in wilc_wfi_cfg_copy_wpa_info()
524 if (!key_info->key) in wilc_wfi_cfg_copy_wpa_info()
527 kfree(key_info->seq); in wilc_wfi_cfg_copy_wpa_info()
530 key_info->seq = kmemdup(params->seq, params->seq_len, in wilc_wfi_cfg_copy_wpa_info()
532 if (!key_info->seq) in wilc_wfi_cfg_copy_wpa_info()
536 key_info->cipher = params->cipher; in wilc_wfi_cfg_copy_wpa_info()
537 key_info->key_len = params->key_len; in wilc_wfi_cfg_copy_wpa_info()
538 key_info->seq_len = params->seq_len; in wilc_wfi_cfg_copy_wpa_info()
/openbmc/linux/drivers/accessibility/speakup/
H A Dspeakup.h50 int spk_set_key_info(const u_char *key_info, u_char *k_buffer);
H A Dmain.c1220 int spk_set_key_info(const u_char *key_info, u_char *k_buffer) in spk_set_key_info() argument
1223 const u_char *cp = key_info; in spk_set_key_info()
2113 u_char *key_info; in speakup_key() local
2139 key_info = spk_our_keys[keycode]; in speakup_key()
2140 if (!key_info) in speakup_key()
2160 new_key = key_info[offset]; in speakup_key()
2179 if (offset && key_info[offset]) in speakup_key()
2180 new_key = key_info[offset]; in speakup_key()
/openbmc/linux/drivers/net/wireless/ath/wil6210/
H A Dtxrx.c725 u16 key_info; in wil_is_ptk_eapol_key() local
750 key_info = be16_to_cpu(key->key_info); in wil_is_ptk_eapol_key()
751 if (!(key_info & WIL_KEY_INFO_KEY_TYPE)) /* check if pairwise */ in wil_is_ptk_eapol_key()
760 u16 key_info; in wil_skb_is_eap_3() local
766 key_info = be16_to_cpu(key->key_info); in wil_skb_is_eap_3()
767 if (key_info & (WIL_KEY_INFO_MIC | in wil_skb_is_eap_3()
H A Dtxrx.h448 __be16 key_info; member
/openbmc/linux/drivers/net/wireless/marvell/libertas/
H A Dcfg.c1024 int key_type, int key_info, in lbs_set_key_material() argument
1051 cmd.param.keyinfo = cpu_to_le16(key_info); in lbs_set_key_material()
1511 u16 key_info; in lbs_cfg_add_key() local
1546 key_info = KEY_INFO_WPA_ENABLED | ((idx == 0) in lbs_cfg_add_key()
1554 key_info, in lbs_cfg_add_key()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmcu.c2184 static u32 mt7996_patch_sec_mode(u32 key_info) in mt7996_patch_sec_mode() argument
2186 u32 sec = u32_get_bits(key_info, MT7996_PATCH_SEC), key = 0; in mt7996_patch_sec_mode()
2188 if (key_info == GENMASK(31, 0) || sec == MT7996_SEC_MODE_PLAIN) in mt7996_patch_sec_mode()
2192 key = u32_get_bits(key_info, MT7996_PATCH_AES_KEY); in mt7996_patch_sec_mode()
2194 key = u32_get_bits(key_info, MT7996_PATCH_SCRAMBLE_KEY); in mt7996_patch_sec_mode()
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.h613 struct key_info { struct
H A Dhclge_main.c310 static const struct key_info meta_data_key_info[] = {
321 static const struct key_info tuple_key_info[] = {
/openbmc/linux/drivers/net/wireless/marvell/
H A Dmwl8k.c4225 __le32 key_info; member
4306 cmd->key_info = cpu_to_le32(MWL8K_KEY_FLAG_WEP_TXKEY); in mwl8k_encryption_set_cmd_info()
4311 cmd->key_info = (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) in mwl8k_encryption_set_cmd_info()
4314 cmd->key_info |= cpu_to_le32(MWL8K_KEY_FLAG_MICKEY_VALID in mwl8k_encryption_set_cmd_info()
4319 cmd->key_info = (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) in mwl8k_encryption_set_cmd_info()