/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_acl_flex_keys.c | 121 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() 206 struct mlxsw_afk_key_info *key_info) in mlxsw_afk_picker_key_info_add() argument 210 if (key_info->blocks_count == mlxsw_afk->max_blocks) in mlxsw_afk_picker_key_info_add() 215 key_info->element_to_block[element] = key_info in mlxsw_afk_picker_key_info_add() 228 mlxsw_afk_keys_fill(struct mlxsw_afk * mlxsw_afk,unsigned long * chosen_blocks_bm,struct mlxsw_afk_picker * picker,struct mlxsw_afk_key_info * key_info) mlxsw_afk_keys_fill() argument 256 mlxsw_afk_picker(struct mlxsw_afk * mlxsw_afk,struct mlxsw_afk_key_info * key_info,struct mlxsw_afk_element_usage * elusage) mlxsw_afk_picker() argument 327 struct mlxsw_afk_key_info *key_info; mlxsw_afk_key_info_create() local 346 mlxsw_afk_key_info_destroy(struct mlxsw_afk_key_info * key_info) mlxsw_afk_key_info_destroy() argument 356 struct mlxsw_afk_key_info *key_info; mlxsw_afk_key_info_get() local 367 mlxsw_afk_key_info_put(struct mlxsw_afk_key_info * key_info) mlxsw_afk_key_info_put() argument 375 mlxsw_afk_key_info_subset(struct mlxsw_afk_key_info * key_info,struct mlxsw_afk_element_usage * elusage) mlxsw_afk_key_info_subset() argument 399 mlxsw_afk_key_info_elinst_get(struct mlxsw_afk_key_info * key_info,enum mlxsw_afk_element element,int * p_block_index) mlxsw_afk_key_info_elinst_get() argument 421 mlxsw_afk_key_info_block_encoding_get(const struct mlxsw_afk_key_info * key_info,int block_index) mlxsw_afk_key_info_block_encoding_get() argument 429 mlxsw_afk_key_info_blocks_count_get(const struct mlxsw_afk_key_info * key_info) mlxsw_afk_key_info_blocks_count_get() argument 517 mlxsw_afk_encode(struct mlxsw_afk * mlxsw_afk,struct mlxsw_afk_key_info * key_info,struct mlxsw_afk_element_values * values,char * key,char * mask) mlxsw_afk_encode() argument [all...] |
H A D | core_acl_flex_keys.h | 203 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 D | spectrum_acl_tcam.c | 154 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() [all...] |
H A D | spectrum_acl_ctcam.c | 65 mlxsw_afk_encode(afk, region->key_info, &rulei->values, key, mask); in mlxsw_sp_acl_ctcam_region_entry_insert()
|
H A D | spectrum_acl_tcam.h | 84 struct mlxsw_afk_key_info *key_info; member
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | sta_cmd.c | 527 key_param_set->key_info = in mwifiex_set_keyparamset_wep() 583 km->key_param_set.key_info &= cpu_to_le16(~KEY_MCAST); in mwifiex_set_aes_key_v2() 584 km->key_param_set.key_info |= cpu_to_le16(KEY_IGTK); in mwifiex_set_aes_key_v2() 634 u16 key_info, len = KEY_PARAMS_FIXED_LEN; in mwifiex_cmd_802_11_key_material_v2() local 650 key_info = KEY_UNICAST; in mwifiex_cmd_802_11_key_material_v2() 652 key_info = KEY_MCAST; in mwifiex_cmd_802_11_key_material_v2() 655 key_info |= KEY_IGTK; in mwifiex_cmd_802_11_key_material_v2() 657 km->key_param_set.key_info = cpu_to_le16(key_info); in mwifiex_cmd_802_11_key_material_v2() 674 key_info in mwifiex_cmd_802_11_key_material_v2() [all...] |
H A D | sta_cmdresp.c | 579 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 D | fw.h | 965 __le16 key_info; member 1012 __le16 key_info; member
|
H A D | sta_ioctl.c | 1022 ibss_key->key_param_set.key_info = cpu_to_le16(KEY_ENABLED); in mwifiex_sec_ioctl_set_wpa_key()
|
/linux/drivers/mfd/ |
H A D | macsmc.c | 206 u8 key_info[6]; in apple_smc_get_key_info() local 211 memcpy_fromio(key_info, smc->shmem.iomem, sizeof(key_info)); in apple_smc_get_key_info() 212 info->size = key_info[0]; in apple_smc_get_key_info() 213 info->type_code = get_unaligned_be32(&key_info[1]); in apple_smc_get_key_info() 214 info->flags = key_info[5]; in apple_smc_get_key_info()
|
/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | wow.c | 278 struct rtw89_wow_key_info *key_info = &rtw_wow->key_info; in rtw89_wow_get_key_info_iter() local 294 key_info->ptk_tx_iv); in rtw89_wow_get_key_info_iter() 298 key_info->ptk_rx_iv); in rtw89_wow_get_key_info_iter() 306 key_info->gtk_rx_iv[key->keyidx]); in rtw89_wow_get_key_info_iter() 311 key_info->gtk_keyidx = key->keyidx; in rtw89_wow_get_key_info_iter() 327 key_info->gtk_keyidx = key->keyidx; in rtw89_wow_get_key_info_iter() 415 memset(&rtw_wow->key_info, 0, sizeof(rtw_wow->key_info)); in rtw89_wow_key_clear() 423 struct rtw89_wow_key_info *key_info in rtw89_wow_construct_key_info() local [all...] |
H A D | cam.c | 923 u8 *ptk_tx_iv = rtw_wow->key_info.ptk_tx_iv; in rtw89_cam_fill_dctl_sec_cam_info_v1() 1008 u8 *ptk_tx_iv = rtw_wow->key_info.ptk_tx_iv; in rtw89_cam_fill_dctl_sec_cam_info_v2()
|
H A D | fw.h | 1951 struct rtw89_wow_key_info key_info; member
|
H A D | fw.c | 8424 h2c->key_info = rtw_wow->key_info; in rtw89_fw_h2c_wow_global()
|
H A D | core.h | 5751 struct rtw89_wow_key_info key_info; member
|
/linux/drivers/net/wireless/microchip/wilc1000/ |
H A D | cfg80211.c | 515 static int wilc_wfi_cfg_copy_wpa_info(struct wilc_wfi_key *key_info, in wilc_wfi_cfg_copy_wpa_info() argument 518 kfree(key_info->key); in wilc_wfi_cfg_copy_wpa_info() 520 key_info->key = kmemdup(params->key, params->key_len, GFP_KERNEL); in wilc_wfi_cfg_copy_wpa_info() 521 if (!key_info->key) in wilc_wfi_cfg_copy_wpa_info() 524 kfree(key_info->seq); in wilc_wfi_cfg_copy_wpa_info() 527 key_info->seq = kmemdup(params->seq, params->seq_len, in wilc_wfi_cfg_copy_wpa_info() 529 if (!key_info->seq) in wilc_wfi_cfg_copy_wpa_info() 533 key_info->cipher = params->cipher; in wilc_wfi_cfg_copy_wpa_info() 534 key_info->key_len = params->key_len; in wilc_wfi_cfg_copy_wpa_info() 535 key_info in wilc_wfi_cfg_copy_wpa_info() [all...] |
/linux/drivers/accessibility/speakup/ |
H A D | speakup.h | 50 int spk_set_key_info(const u_char *key_info, u_char *k_buffer);
|
H A D | main.c | 1220 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()
|
/linux/drivers/net/wireless/ath/wil6210/ |
H A D | txrx.c | 725 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 D | txrx.h | 449 __be16 key_info; member
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_main.h | 631 struct key_info { struct 632 key_typekey_info global() argument 633 key_lengthkey_info global() argument 634 key_optkey_info global() argument 635 offsetkey_info global() argument 636 moffsetkey_info global() argument
|
H A D | hclge_main.c | 314 static const struct key_info meta_data_key_info[] = { 325 static const struct key_info tuple_key_info[] = {
|
/linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | mcu.c | 2914 static u32 mt7996_patch_sec_mode(u32 key_info) in mt7996_patch_sec_mode() argument 2916 u32 sec = u32_get_bits(key_info, MT7996_PATCH_SEC), key = 0; in mt7996_patch_sec_mode() 2918 if (key_info == GENMASK(31, 0) || sec == MT7996_SEC_MODE_PLAIN) in mt7996_patch_sec_mode() 2922 key = u32_get_bits(key_info, MT7996_PATCH_AES_KEY); in mt7996_patch_sec_mode() 2924 key = u32_get_bits(key_info, MT7996_PATCH_SCRAMBLE_KEY); in mt7996_patch_sec_mode()
|
/linux/drivers/net/wireless/marvell/ |
H A D | mwl8k.c | 4235 __le32 key_info; member 4316 cmd->key_info = cpu_to_le32(MWL8K_KEY_FLAG_WEP_TXKEY); in mwl8k_encryption_set_cmd_info() 4321 cmd->key_info = (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) in mwl8k_encryption_set_cmd_info() 4324 cmd->key_info |= cpu_to_le32(MWL8K_KEY_FLAG_MICKEY_VALID in mwl8k_encryption_set_cmd_info() 4329 cmd->key_info = (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) in mwl8k_encryption_set_cmd_info()
|