key_info 370 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c static const struct key_info meta_data_key_info[] = { key_info 381 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c static const struct key_info tuple_key_info[] = { key_info 79 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c mlxsw_afk_key_info_elements_eq(struct mlxsw_afk_key_info *key_info, key_info 82 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c return memcmp(&key_info->elusage, elusage, sizeof(*elusage)) == 0; key_info 89 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c struct mlxsw_afk_key_info *key_info; key_info 91 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c list_for_each_entry(key_info, &mlxsw_afk->key_info_list, list) { key_info 92 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c if (mlxsw_afk_key_info_elements_eq(key_info, elusage)) key_info 93 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c return key_info; key_info 165 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c struct mlxsw_afk_key_info *key_info) key_info 169 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c if (key_info->blocks_count == mlxsw_afk->max_blocks) key_info 174 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c key_info->element_to_block[element] = key_info->blocks_count; key_info 175 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c mlxsw_afk_element_usage_add(&key_info->elusage, element); key_info 178 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c key_info->blocks[key_info->blocks_count] = key_info 180 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c key_info->blocks_count++; key_info 185 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c struct mlxsw_afk_key_info *key_info, key_info 223 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c block_index, key_info); key_info 227 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c } while (!mlxsw_afk_key_info_elements_eq(key_info, elusage)); key_info 239 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c struct mlxsw_afk_key_info *key_info; key_info 242 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c key_info = kzalloc(struct_size(key_info, blocks, mlxsw_afk->max_blocks), key_info 244 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c if (!key_info) key_info 246 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c err = mlxsw_afk_picker(mlxsw_afk, key_info, elusage); key_info 249 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c list_add(&key_info->list, &mlxsw_afk->key_info_list); key_info 250 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c key_info->ref_count = 1; key_info 251 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c return key_info; key_info 254 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c kfree(key_info); key_info 258 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c static void mlxsw_afk_key_info_destroy(struct mlxsw_afk_key_info *key_info) key_info 260 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c list_del(&key_info->list); key_info 261 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c kfree(key_info); key_info 268 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c struct mlxsw_afk_key_info *key_info; key_info 270 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c key_info = mlxsw_afk_key_info_find(mlxsw_afk, elusage); key_info 271 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c if (key_info) { key_info 272 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c key_info->ref_count++; key_info 273 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c return key_info; key_info 279 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c void mlxsw_afk_key_info_put(struct mlxsw_afk_key_info *key_info) key_info 281 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c if (--key_info->ref_count) key_info 283 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c mlxsw_afk_key_info_destroy(key_info); key_info 287 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c bool mlxsw_afk_key_info_subset(struct mlxsw_afk_key_info *key_info, key_info 290 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c return mlxsw_afk_element_usage_subset(elusage, &key_info->elusage); key_info 311 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c mlxsw_afk_key_info_elinst_get(struct mlxsw_afk_key_info *key_info, key_info 319 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c if (WARN_ON(!test_bit(element, key_info->elusage.usage))) key_info 321 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c block_index = key_info->element_to_block[element]; key_info 322 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c block = key_info->blocks[block_index]; key_info 333 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c mlxsw_afk_key_info_block_encoding_get(const struct mlxsw_afk_key_info *key_info, key_info 336 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c return key_info->blocks[block_index]->encoding; key_info 341 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c mlxsw_afk_key_info_blocks_count_get(const struct mlxsw_afk_key_info *key_info) key_info 343 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c return key_info->blocks_count; key_info 426 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c struct mlxsw_afk_key_info *key_info, key_info 431 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c mlxsw_afk_key_info_blocks_count_get(key_info); key_info 443 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c elinst = mlxsw_afk_key_info_elinst_get(key_info, key_info 222 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h void mlxsw_afk_key_info_put(struct mlxsw_afk_key_info *key_info); key_info 223 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h bool mlxsw_afk_key_info_subset(struct mlxsw_afk_key_info *key_info, key_info 227 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h mlxsw_afk_key_info_block_encoding_get(const struct mlxsw_afk_key_info *key_info, key_info 230 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h mlxsw_afk_key_info_blocks_count_get(const struct mlxsw_afk_key_info *key_info); key_info 248 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h struct mlxsw_afk_key_info *key_info, key_info 302 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c blocks_count = mlxsw_afk_key_info_blocks_count_get(region->key_info); key_info 484 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c mlxsw_afk_encode(afk, region->key_info, &rulei->values, key_info 123 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c struct mlxsw_afk_key_info *key_info = aregion->region->key_info; key_info 128 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c block_count = mlxsw_afk_key_info_blocks_count_get(key_info); key_info 65 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_ctcam.c mlxsw_afk_encode(afk, region->key_info, &rulei->values, key, mask); key_info 211 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c struct mlxsw_afk_key_info *key_info; key_info 547 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c issubset = mlxsw_afk_key_info_subset(vregion->key_info, key_info 610 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c struct mlxsw_afk_key_info *key_info = region->key_info; key_info 620 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c encodings_count = mlxsw_afk_key_info_blocks_count_get(key_info); key_info 624 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c encoding = mlxsw_afk_key_info_block_encoding_get(key_info, i); key_info 683 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c region->key_info = vregion->key_info; key_info 815 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c vregion->key_info = mlxsw_afk_key_info_get(afk, elusage); key_info 816 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c if (IS_ERR(vregion->key_info)) { key_info 817 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c err = PTR_ERR(vregion->key_info); key_info 848 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c mlxsw_afk_key_info_put(vregion->key_info); key_info 872 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c mlxsw_afk_key_info_put(vregion->key_info); key_info 1082 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c if (WARN_ON(!mlxsw_afk_key_info_subset(vchunk->vregion->key_info, key_info 87 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.h struct mlxsw_afk_key_info *key_info; key_info 739 drivers/net/wireless/ath/wil6210/txrx.c u16 key_info; key_info 764 drivers/net/wireless/ath/wil6210/txrx.c key_info = be16_to_cpu(key->key_info); key_info 765 drivers/net/wireless/ath/wil6210/txrx.c if (!(key_info & WIL_KEY_INFO_KEY_TYPE)) /* check if pairwise */ key_info 774 drivers/net/wireless/ath/wil6210/txrx.c u16 key_info; key_info 780 drivers/net/wireless/ath/wil6210/txrx.c key_info = be16_to_cpu(key->key_info); key_info 781 drivers/net/wireless/ath/wil6210/txrx.c if (key_info & (WIL_KEY_INFO_MIC | key_info 457 drivers/net/wireless/ath/wil6210/txrx.h __be16 key_info; key_info 975 drivers/net/wireless/marvell/libertas/cfg.c int key_type, int key_info, key_info 1002 drivers/net/wireless/marvell/libertas/cfg.c cmd.param.keyinfo = cpu_to_le16(key_info); key_info 1464 drivers/net/wireless/marvell/libertas/cfg.c u16 key_info; key_info 1499 drivers/net/wireless/marvell/libertas/cfg.c key_info = KEY_INFO_WPA_ENABLED | ((idx == 0) key_info 1507 drivers/net/wireless/marvell/libertas/cfg.c key_info, key_info 930 drivers/net/wireless/marvell/mwifiex/fw.h __le16 key_info; key_info 977 drivers/net/wireless/marvell/mwifiex/fw.h __le16 key_info; key_info 550 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_param_set->key_info = key_info 606 drivers/net/wireless/marvell/mwifiex/sta_cmd.c km->key_param_set.key_info &= cpu_to_le16(~KEY_MCAST); key_info 607 drivers/net/wireless/marvell/mwifiex/sta_cmd.c km->key_param_set.key_info |= cpu_to_le16(KEY_IGTK); key_info 657 drivers/net/wireless/marvell/mwifiex/sta_cmd.c u16 key_info, len = KEY_PARAMS_FIXED_LEN; key_info 673 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_info = KEY_UNICAST; key_info 675 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_info = KEY_MCAST; key_info 678 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_info |= KEY_IGTK; key_info 680 drivers/net/wireless/marvell/mwifiex/sta_cmd.c km->key_param_set.key_info = cpu_to_le16(key_info); key_info 697 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_info = KEY_MCAST | KEY_UNICAST; key_info 698 drivers/net/wireless/marvell/mwifiex/sta_cmd.c km->key_param_set.key_info = cpu_to_le16(key_info); key_info 709 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_info = KEY_ENABLED; key_info 719 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_info |= KEY_MCAST | KEY_UNICAST; key_info 722 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_info |= KEY_MCAST | KEY_UNICAST; key_info 725 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_info |= KEY_DEFAULT; key_info 728 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_info |= KEY_MCAST; key_info 730 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_info |= KEY_UNICAST | KEY_DEFAULT; key_info 733 drivers/net/wireless/marvell/mwifiex/sta_cmd.c km->key_param_set.key_info = cpu_to_le16(key_info); key_info 746 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_info |= KEY_MCAST | KEY_RX_KEY; key_info 748 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_info |= KEY_UNICAST | KEY_TX_KEY | KEY_RX_KEY; key_info 763 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_info |= KEY_DEFAULT; key_info 764 drivers/net/wireless/marvell/mwifiex/sta_cmd.c km->key_param_set.key_info = cpu_to_le16(key_info); key_info 774 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_info |= KEY_DEFAULT; key_info 778 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_info |= KEY_UNICAST; key_info 782 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_info |= KEY_DEFAULT; key_info 785 drivers/net/wireless/marvell/mwifiex/sta_cmd.c km->key_param_set.key_info = cpu_to_le16(key_info); key_info 860 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key_info = key_info 863 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key_info = key_info 875 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key_info |= key_info 878 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key_info |= key_info 906 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key_info = key_info 909 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key_info = key_info 912 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key_info |= key_info 919 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key_info = key_info 922 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key_info = key_info 927 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key_info |= key_info 930 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key_info |= key_info 937 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key_info = key_info 942 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key_info |= key_info 945 drivers/net/wireless/marvell/mwifiex/sta_cmd.c key_material->key_param_set.key_info |= key_info 585 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c if ((le16_to_cpu(key->key_param_set.key_info) & KEY_MCAST)) { key_info 617 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c if ((le16_to_cpu(key_v2->key_param_set.key_info) & KEY_MCAST)) { key_info 1037 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c ibss_key->key_param_set.key_info = cpu_to_le16(KEY_ENABLED); key_info 4220 drivers/net/wireless/marvell/mwl8k.c __le32 key_info; key_info 4299 drivers/net/wireless/marvell/mwl8k.c cmd->key_info = cpu_to_le32(MWL8K_KEY_FLAG_WEP_TXKEY); key_info 4304 drivers/net/wireless/marvell/mwl8k.c cmd->key_info = (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) key_info 4307 drivers/net/wireless/marvell/mwl8k.c cmd->key_info |= cpu_to_le32(MWL8K_KEY_FLAG_MICKEY_VALID key_info 4312 drivers/net/wireless/marvell/mwl8k.c cmd->key_info = (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) key_info 42 drivers/staging/ks7010/eap_packet.h __be16 key_info; key_info 1165 drivers/staging/ks7010/ks_hostif.c keyinfo = ntohs(eap_key->key_info); key_info 1221 drivers/staging/speakup/main.c int spk_set_key_info(const u_char *key_info, u_char *k_buffer) key_info 1224 drivers/staging/speakup/main.c const u_char *cp = key_info; key_info 2102 drivers/staging/speakup/main.c u_char *key_info; key_info 2127 drivers/staging/speakup/main.c key_info = spk_our_keys[keycode]; key_info 2128 drivers/staging/speakup/main.c if (!key_info) key_info 2148 drivers/staging/speakup/main.c new_key = key_info[offset]; key_info 2167 drivers/staging/speakup/main.c if (offset && key_info[offset]) key_info 2168 drivers/staging/speakup/main.c new_key = key_info[offset]; key_info 50 drivers/staging/speakup/speakup.h int spk_set_key_info(const u_char *key_info, u_char *k_buffer); key_info 483 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c static int wilc_wfi_cfg_copy_wpa_info(struct wilc_wfi_key *key_info, key_info 486 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c kfree(key_info->key); key_info 488 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c key_info->key = kmemdup(params->key, params->key_len, GFP_KERNEL); key_info 489 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c if (!key_info->key) key_info 492 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c kfree(key_info->seq); key_info 495 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c key_info->seq = kmemdup(params->seq, params->seq_len, key_info 497 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c if (!key_info->seq) key_info 501 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c key_info->cipher = params->cipher; key_info 502 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c key_info->key_len = params->key_len; key_info 503 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c key_info->seq_len = params->seq_len;