Home
last modified time | relevance | path

Searched refs:keyid (Results 1 – 25 of 47) 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/rtl8188eu/core/
Drtw_ioctl_set.c472 int keyid, res; in rtw_set_802_11_add_wep() local
476 keyid = wep->KeyIndex & 0x3fffffff; in rtw_set_802_11_add_wep()
478 if (keyid >= 4) { in rtw_set_802_11_add_wep()
500 wep->KeyLength, wep->KeyIndex, keyid)); in rtw_set_802_11_add_wep()
502 memcpy(&psecuritypriv->dot11DefKey[keyid].skey[0], in rtw_set_802_11_add_wep()
505 psecuritypriv->dot11DefKeylen[keyid] = wep->KeyLength; in rtw_set_802_11_add_wep()
507 psecuritypriv->dot11PrivacyKeyIndex = keyid; in rtw_set_802_11_add_wep()
511 psecuritypriv->dot11DefKey[keyid].skey[0], in rtw_set_802_11_add_wep()
512 psecuritypriv->dot11DefKey[keyid].skey[1], in rtw_set_802_11_add_wep()
513 psecuritypriv->dot11DefKey[keyid].skey[2], in rtw_set_802_11_add_wep()
[all …]
Drtw_pwrctrl.c160 int keyid; in ips_leave() local
179 for (keyid = 0; keyid < 4; keyid++) { in ips_leave()
180 if (pmlmepriv->key_mask & BIT(keyid)) { in ips_leave()
181 if (keyid == psecuritypriv->dot11PrivacyKeyIndex) in ips_leave()
182 result = rtw_set_key(padapter, psecuritypriv, keyid, 1); in ips_leave()
184 result = rtw_set_key(padapter, psecuritypriv, keyid, 0); in ips_leave()
Drtw_mlme.c1550 int rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, int keyid, u8 set_tx) in rtw_set_key() argument
1580 psetkeyparm->keyid = (u8)keyid;/* 0~3 */ in rtw_set_key()
1582 pmlmepriv->key_mask |= BIT(psetkeyparm->keyid); in rtw_set_key()
1584 __func__, psetkeyparm->algorithm, psetkeyparm->keyid, in rtw_set_key()
1588 __func__, psetkeyparm->algorithm, keyid)); in rtw_set_key()
1594 &psecuritypriv->dot11DefKey[keyid].skey[0], keylen); in rtw_set_key()
1599 &psecuritypriv->dot11DefKey[keyid].skey[0], keylen); in rtw_set_key()
1603 memcpy(&psetkeyparm->key, &psecuritypriv->dot118021XGrpKey[keyid], keylen); in rtw_set_key()
1608 memcpy(&psetkeyparm->key, &psecuritypriv->dot118021XGrpKey[keyid], keylen); in rtw_set_key()
/drivers/staging/rtl8723bs/core/
Drtw_ioctl_set.c578 sint keyid, res; in rtw_set_802_11_add_wep() local
582 keyid = wep->KeyIndex & 0x3fffffff; in rtw_set_802_11_add_wep()
584 if (keyid >= 4) { in rtw_set_802_11_add_wep()
607 wep->KeyLength, wep->KeyIndex, keyid)); in rtw_set_802_11_add_wep()
609 memcpy(&(psecuritypriv->dot11DefKey[keyid].skey[0]), &(wep->KeyMaterial), wep->KeyLength); in rtw_set_802_11_add_wep()
611 psecuritypriv->dot11DefKeylen[keyid] = wep->KeyLength; in rtw_set_802_11_add_wep()
613 psecuritypriv->dot11PrivacyKeyIndex = keyid; in rtw_set_802_11_add_wep()
616 …psecuritypriv->dot11DefKey[keyid].skey[0], psecuritypriv->dot11DefKey[keyid].skey[1], psecuritypri… in rtw_set_802_11_add_wep()
617 …psecuritypriv->dot11DefKey[keyid].skey[3], psecuritypriv->dot11DefKey[keyid].skey[4], psecuritypri… in rtw_set_802_11_add_wep()
618 …psecuritypriv->dot11DefKey[keyid].skey[6], psecuritypriv->dot11DefKey[keyid].skey[7], psecuritypri… in rtw_set_802_11_add_wep()
[all …]
Drtw_security.c1929 u16 keyid = 0; in rtw_BIP_verify() local
1941 keyid = le16_to_cpu(le_tmp); in rtw_BIP_verify()
1942 if (keyid != padapter->securitypriv.dot11wBIPKeyid) { in rtw_BIP_verify()
2353 sint keyid; in rtw_sec_restore_wep_key() local
2356 for (keyid = 0; keyid < 4; keyid++) { in rtw_sec_restore_wep_key()
2357 if (securitypriv->key_mask & BIT(keyid)) { in rtw_sec_restore_wep_key()
2358 if (keyid == securitypriv->dot11PrivacyKeyIndex) in rtw_sec_restore_wep_key()
2359 rtw_set_key(adapter, securitypriv, keyid, 1, false); in rtw_sec_restore_wep_key()
2361 rtw_set_key(adapter, securitypriv, keyid, 0, false); in rtw_sec_restore_wep_key()
Drtw_ap.c1482 int keyid, in rtw_ap_set_key() argument
1506 psetkeyparm->keyid = (u8)keyid; in rtw_ap_set_key()
1508 padapter->securitypriv.key_mask |= BIT(psetkeyparm->keyid); in rtw_ap_set_key()
1545 int rtw_ap_set_group_key(struct adapter *padapter, u8 *key, u8 alg, int keyid) in rtw_ap_set_group_key() argument
1549 return rtw_ap_set_key(padapter, key, alg, keyid, 1); in rtw_ap_set_group_key()
1556 int keyid, in rtw_ap_set_wep_key() argument
1575 return rtw_ap_set_key(padapter, key, alg, keyid, set_tx); in rtw_ap_set_wep_key()
Drtw_mlme.c2166 sint rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, sint keyid, u8 set_t… in rtw_set_key() argument
2188 psetkeyparm->keyid = (u8)keyid;/* 0~3 */ in rtw_set_key()
2191 adapter->securitypriv.key_mask |= BIT(psetkeyparm->keyid); in rtw_set_key()
2193 …thm(%x), keyid(%x), key_mask(%x)\n", psetkeyparm->algorithm, psetkeyparm->keyid, adapter->security… in rtw_set_key()
2194 …: psetkeyparm->algorithm =%d psetkeyparm->keyid =(u8)keyid =%d\n", psetkeyparm->algorithm, keyid)); in rtw_set_key()
2200 memcpy(&(psetkeyparm->key[0]), &(psecuritypriv->dot11DefKey[keyid].skey[0]), keylen); in rtw_set_key()
2204 memcpy(&(psetkeyparm->key[0]), &(psecuritypriv->dot11DefKey[keyid].skey[0]), keylen); in rtw_set_key()
2208 memcpy(&psetkeyparm->key, &psecuritypriv->dot118021XGrpKey[keyid], keylen); in rtw_set_key()
2213 memcpy(&psetkeyparm->key, &psecuritypriv->dot118021XGrpKey[keyid], keylen); in rtw_set_key()
/drivers/staging/rtl8712/
Drtl871x_ioctl_set.c333 sint keyid; in r8712_set_802_11_add_wep() local
336 keyid = wep->KeyIndex & 0x3fffffff; in r8712_set_802_11_add_wep()
337 if (keyid >= WEP_KEYS) in r8712_set_802_11_add_wep()
350 memcpy(psecuritypriv->DefKey[keyid].skey, &wep->KeyMaterial, in r8712_set_802_11_add_wep()
352 psecuritypriv->DefKeylen[keyid] = wep->KeyLength; in r8712_set_802_11_add_wep()
353 psecuritypriv->PrivacyKeyIndex = keyid; in r8712_set_802_11_add_wep()
354 return r8712_set_key(padapter, psecuritypriv, keyid); in r8712_set_802_11_add_wep()
Drtl871x_mlme.c1175 sint keyid) in r8712_set_key() argument
1198 psetkeyparm->keyid = (u8)keyid; in r8712_set_key()
1204 psecuritypriv->DefKey[keyid].skey, keylen); in r8712_set_key()
1209 psecuritypriv->DefKey[keyid].skey, keylen); in r8712_set_key()
1212 if (keyid < 1 || keyid > 2) { in r8712_set_key()
1218 &psecuritypriv->XGrpKey[keyid - 1], keylen); in r8712_set_key()
1222 if (keyid < 1 || keyid > 2) { in r8712_set_key()
1228 &psecuritypriv->XGrpKey[keyid - 1], keylen); in r8712_set_key()
Drtl871x_cmd.h178 u8 keyid; member
199 u8 keyid; member
/drivers/nvdimm/
Dsecurity.c242 static int security_disable(struct nvdimm *nvdimm, unsigned int keyid) in security_disable() argument
261 data = nvdimm_get_user_key_payload(nvdimm, keyid, in security_disable()
275 static int security_update(struct nvdimm *nvdimm, unsigned int keyid, in security_update() argument
296 data = nvdimm_get_user_key_payload(nvdimm, keyid, in security_update()
325 static int security_erase(struct nvdimm *nvdimm, unsigned int keyid, in security_erase() argument
352 data = nvdimm_get_user_key_payload(nvdimm, keyid, in security_erase()
367 static int security_overwrite(struct nvdimm *nvdimm, unsigned int keyid) in security_overwrite() argument
386 data = nvdimm_get_user_key_payload(nvdimm, keyid, in security_overwrite()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_vxlan.c122 if (!enc_keyid.mask->keyid) in mlx5e_tc_tun_parse_vxlan()
137 be32_to_cpu(enc_keyid.mask->keyid)); in mlx5e_tc_tun_parse_vxlan()
139 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()
Dtc_tun_mplsoudp.c81 if (!enc_keyid.mask->keyid) in parse_tunnel()
/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.h303 u8 keyid; member
321 u8 keyid; member
327 u8 keyid; member
/drivers/staging/rtl8188eu/include/
Drtw_cmd.h155 u8 keyid; member
183 u8 keyid; member
/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()
457 struct keyid { in cca_clr2seckey() struct
461 } 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/ethernet/netronome/nfp/flower/
Dmatch.c386 vni = be32_to_cpu(match.key->keyid) << NFP_FL_TUN_VNI_OFFSET; in nfp_flower_compile_tun_udp_key()
388 vni = be32_to_cpu(match.mask->keyid) << NFP_FL_TUN_VNI_OFFSET; in nfp_flower_compile_tun_udp_key()
401 *key = match.key->keyid; in nfp_flower_compile_tun_gre_key()
402 *key_msk = match.mask->keyid; in nfp_flower_compile_tun_gre_key()
/drivers/net/wireless/st/cw1200/
Dwsm.h1021 u8 keyid; /* Unique per key identifier (0..3) */ member
1036 u8 keyid; /* Key ID */ member
1047 u8 keyid; /* Key ID */ member
1053 u8 keyid; /* Key ID */ member
1061 u8 keyid; /* Key ID */ member
/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.h181 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,

12