Home
last modified time | relevance | path

Searched refs:keyid (Results 1 – 25 of 42) sorted by relevance

12

/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_hw.c118 static int chtls_set_tcb_keyid(struct sock *sk, int keyid) in chtls_set_tcb_keyid() argument
120 return chtls_set_tcb_field(sk, 31, 0xFFFFFFFFULL, keyid); in chtls_set_tcb_keyid()
184 int keyid; in get_new_keyid() local
190 keyid = find_first_zero_bit(cdev->kmap.addr, cdev->kmap.size); in get_new_keyid()
191 if (keyid < cdev->kmap.size) { in get_new_keyid()
192 __set_bit(keyid, cdev->kmap.addr); in get_new_keyid()
194 hws->rxkey = keyid; in get_new_keyid()
196 hws->txkey = keyid; in get_new_keyid()
199 keyid = -1; in get_new_keyid()
202 return keyid; in get_new_keyid()
[all …]
/drivers/staging/rtl8712/
Drtl871x_ioctl_set.c332 sint keyid; in r8712_set_802_11_add_wep() local
335 keyid = wep->KeyIndex & 0x3fffffff; in r8712_set_802_11_add_wep()
336 if (keyid >= WEP_KEYS) in r8712_set_802_11_add_wep()
349 memcpy(psecuritypriv->DefKey[keyid].skey, &wep->KeyMaterial, in r8712_set_802_11_add_wep()
351 psecuritypriv->DefKeylen[keyid] = wep->KeyLength; in r8712_set_802_11_add_wep()
352 psecuritypriv->PrivacyKeyIndex = keyid; in r8712_set_802_11_add_wep()
353 return r8712_set_key(padapter, psecuritypriv, keyid); in r8712_set_802_11_add_wep()
Drtl871x_mlme.c1147 sint keyid) in r8712_set_key() argument
1170 psetkeyparm->keyid = (u8)keyid; in r8712_set_key()
1176 psecuritypriv->DefKey[keyid].skey, keylen); in r8712_set_key()
1181 psecuritypriv->DefKey[keyid].skey, keylen); in r8712_set_key()
1184 if (keyid < 1 || keyid > 2) { in r8712_set_key()
1190 &psecuritypriv->XGrpKey[keyid - 1], keylen); in r8712_set_key()
1194 if (keyid < 1 || keyid > 2) { in r8712_set_key()
1200 &psecuritypriv->XGrpKey[keyid - 1], keylen); in r8712_set_key()
Drtl871x_cmd.h177 u8 keyid; member
198 u8 keyid; member
Drtl871x_mlme.h176 struct security_priv *psecuritypriv, sint keyid);
/drivers/staging/rtl8723bs/core/
Drtw_ioctl_set.c427 signed int keyid, res; in rtw_set_802_11_add_wep() local
431 keyid = wep->key_index & 0x3fffffff; in rtw_set_802_11_add_wep()
433 if (keyid >= 4) { in rtw_set_802_11_add_wep()
450 memcpy(&(psecuritypriv->dot11DefKey[keyid].skey[0]), &(wep->key_material), wep->key_length); in rtw_set_802_11_add_wep()
452 psecuritypriv->dot11DefKeylen[keyid] = wep->key_length; in rtw_set_802_11_add_wep()
454 psecuritypriv->dot11PrivacyKeyIndex = keyid; in rtw_set_802_11_add_wep()
456 res = rtw_set_key(padapter, psecuritypriv, keyid, 1, true); in rtw_set_802_11_add_wep()
Drtw_security.c1401 u16 keyid = 0; in rtw_BIP_verify() local
1412 keyid = le16_to_cpu(le_tmp); in rtw_BIP_verify()
1413 if (keyid != padapter->securitypriv.dot11wBIPKeyid) in rtw_BIP_verify()
1555 signed int keyid; in rtw_sec_restore_wep_key() local
1558 for (keyid = 0; keyid < 4; keyid++) { in rtw_sec_restore_wep_key()
1559 if (securitypriv->key_mask & BIT(keyid)) { in rtw_sec_restore_wep_key()
1560 if (keyid == securitypriv->dot11PrivacyKeyIndex) in rtw_sec_restore_wep_key()
1561 rtw_set_key(adapter, securitypriv, keyid, 1, false); in rtw_sec_restore_wep_key()
1563 rtw_set_key(adapter, securitypriv, keyid, 0, false); in rtw_sec_restore_wep_key()
Drtw_ap.c1305 int keyid, in rtw_ap_set_key() argument
1327 psetkeyparm->keyid = (u8)keyid; in rtw_ap_set_key()
1329 padapter->securitypriv.key_mask |= BIT(psetkeyparm->keyid); in rtw_ap_set_key()
1366 int rtw_ap_set_group_key(struct adapter *padapter, u8 *key, u8 alg, int keyid) in rtw_ap_set_group_key() argument
1368 return rtw_ap_set_key(padapter, key, alg, keyid, 1); in rtw_ap_set_group_key()
1375 int keyid, in rtw_ap_set_wep_key() argument
1392 return rtw_ap_set_key(padapter, key, alg, keyid, set_tx); in rtw_ap_set_wep_key()
Drtw_mlme.c1916 …(struct adapter *adapter, struct security_priv *psecuritypriv, signed int keyid, u8 set_tx, bool e… in rtw_set_key() argument
1935 psetkeyparm->keyid = (u8)keyid;/* 0~3 */ in rtw_set_key()
1938 adapter->securitypriv.key_mask |= BIT(psetkeyparm->keyid); in rtw_set_key()
1944 memcpy(&(psetkeyparm->key[0]), &(psecuritypriv->dot11DefKey[keyid].skey[0]), keylen); in rtw_set_key()
1948 memcpy(&(psetkeyparm->key[0]), &(psecuritypriv->dot11DefKey[keyid].skey[0]), keylen); in rtw_set_key()
1952 memcpy(&psetkeyparm->key, &psecuritypriv->dot118021XGrpKey[keyid], keylen); in rtw_set_key()
1957 memcpy(&psetkeyparm->key, &psecuritypriv->dot118021XGrpKey[keyid], keylen); in rtw_set_key()
/drivers/nvdimm/
Dsecurity.c248 static int security_disable(struct nvdimm *nvdimm, unsigned int keyid, in security_disable() argument
273 data = nvdimm_get_user_key_payload(nvdimm, keyid, in security_disable()
296 static int security_update(struct nvdimm *nvdimm, unsigned int keyid, in security_update() argument
317 data = nvdimm_get_user_key_payload(nvdimm, keyid, in security_update()
346 static int security_erase(struct nvdimm *nvdimm, unsigned int keyid, in security_erase() argument
373 data = nvdimm_get_user_key_payload(nvdimm, keyid, in security_erase()
390 static int security_overwrite(struct nvdimm *nvdimm, unsigned int keyid) in security_overwrite() argument
409 data = nvdimm_get_user_key_payload(nvdimm, keyid, in security_overwrite()
/drivers/staging/rtl8723bs/include/
Drtw_ap.h25 int rtw_ap_set_group_key(struct adapter *padapter, u8 *key, u8 alg, int keyid);
26 int rtw_ap_set_wep_key(struct adapter *padapter, u8 *key, u8 keylen, int keyid, u8 set_tx);
Drtw_cmd.h276 u8 keyid; member
294 u8 keyid; member
300 u8 keyid; member
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_vxlan.c176 if (!enc_keyid.mask->keyid) in mlx5e_tc_tun_parse_vxlan()
199 be32_to_cpu(enc_keyid.mask->keyid)); in mlx5e_tc_tun_parse_vxlan()
201 be32_to_cpu(enc_keyid.key->keyid)); in mlx5e_tc_tun_parse_vxlan()
Dtc_tun_gre.c78 gre_key.key, be32_to_cpu(enc_keyid.mask->keyid)); in mlx5e_tc_tun_parse_gretap()
80 gre_key.key, be32_to_cpu(enc_keyid.key->keyid)); in mlx5e_tc_tun_parse_gretap()
Dtc_tun_geneve.c140 if (!enc_keyid.mask->keyid) in mlx5e_tc_tun_parse_geneve_vni()
149 MLX5_SET(fte_match_set_misc, misc_c, geneve_vni, be32_to_cpu(enc_keyid.mask->keyid)); in mlx5e_tc_tun_parse_geneve_vni()
150 MLX5_SET(fte_match_set_misc, misc_v, geneve_vni, be32_to_cpu(enc_keyid.key->keyid)); in mlx5e_tc_tun_parse_geneve_vni()
/drivers/net/ethernet/netronome/nfp/flower/
Dmatch.c462 vni = be32_to_cpu((match.key->keyid & match.mask->keyid)) << in nfp_flower_compile_tun_udp_key()
465 vni = be32_to_cpu(match.mask->keyid) << NFP_FL_TUN_VNI_OFFSET; in nfp_flower_compile_tun_udp_key()
478 *key |= match.key->keyid & match.mask->keyid; in nfp_flower_compile_tun_gre_key()
479 *key_msk |= match.mask->keyid; in nfp_flower_compile_tun_gre_key()
/drivers/s390/crypto/
Dzcrypt_ccamisc.c317 struct keyid { in cca_genseckey() struct
321 } keyid[6]; in cca_genseckey() member
378 preqparm->lv2.keyid[i].len = sizeof(struct keyid); in cca_genseckey()
379 preqparm->lv2.keyid[i].attr = (i == 2 ? 0x30 : 0x10); in cca_genseckey()
459 struct keyid { in cca_clr2seckey() struct
463 } keyid; in cca_clr2seckey() member
517 plv2->keyid.len = sizeof(struct keyid); in cca_clr2seckey()
518 plv2->keyid.attr = 0x30; in cca_clr2seckey()
/drivers/net/wireless/st/cw1200/
Dwsm.h1016 u8 keyid; /* Unique per key identifier (0..3) */ member
1031 u8 keyid; /* Key ID */ member
1042 u8 keyid; /* Key ID */ member
1048 u8 keyid; /* Key ID */ member
1056 u8 keyid; /* Key ID */ member
Dsta.c730 wsm_key->wep_group.keyid = key->keyidx; in cw1200_set_key()
764 wsm_key->tkip_group.keyid = key->keyidx; in cw1200_set_key()
788 wsm_key->aes_group.keyid = key->keyidx; in cw1200_set_key()
800 wsm_key->wapi_pairwise.keyid = key->keyidx; in cw1200_set_key()
807 wsm_key->wapi_group.keyid = key->keyidx; in cw1200_set_key()
/drivers/crypto/
Datmel-i2c.c88 void atmel_i2c_init_genkey_cmd(struct atmel_i2c_cmd *cmd, u16 keyid) in atmel_i2c_init_genkey_cmd() argument
95 cmd->param2 = cpu_to_le16(keyid); in atmel_i2c_init_genkey_cmd()
Datmel-i2c.h182 void atmel_i2c_init_genkey_cmd(struct atmel_i2c_cmd *cmd, u16 keyid);
/drivers/net/wireless/ath/ath6kl/
Dcfg80211.h46 void ath6kl_cfg80211_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid,
Dmain.c676 void ath6kl_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid, bool ismcast) in ath6kl_tkip_micerr_event() argument
687 sta = ath6kl_find_sta_by_aid(ar, (keyid >> 2)); in ath6kl_tkip_micerr_event()
692 "ap tkip mic error received from aid=%d\n", keyid); in ath6kl_tkip_micerr_event()
696 NL80211_KEYTYPE_PAIRWISE, keyid, in ath6kl_tkip_micerr_event()
699 ath6kl_cfg80211_tkip_micerr_event(vif, keyid, ismcast); in ath6kl_tkip_micerr_event()
/drivers/net/wireless/intel/iwlwifi/mvm/
Drxmq.c280 u8 keyid; in iwl_mvm_rx_mgmt_prot() local
331 keyid = frame[len - key->icv_len - IEEE80211_GMAC_PN_LEN - 2]; in iwl_mvm_rx_mgmt_prot()
333 if (keyid != key->keyidx) { in iwl_mvm_rx_mgmt_prot()
338 if (keyid != 6 && keyid != 7) in iwl_mvm_rx_mgmt_prot()
340 key = rcu_dereference(mvmvif->bcn_prot.keys[keyid - 6]); in iwl_mvm_rx_mgmt_prot()
/drivers/net/wireless/admtek/
Dadm8211.h484 u8 keyid; member

12