Home
last modified time | relevance | path

Searched refs:hw_key_idx (Results 1 – 25 of 70) sorted by relevance

123

/linux-6.1.9/drivers/net/wireless/realtek/rtw88/
Dsec.c26 u8 hw_key_type, u8 hw_key_idx) in rtw_sec_write_cam() argument
28 struct rtw_cam_entry *cam = &sec->cam_table[hw_key_idx]; in rtw_sec_write_cam()
35 set_bit(hw_key_idx, sec->cam_map); in rtw_sec_write_cam()
46 addr = hw_key_idx << RTW_SEC_CAM_ENTRY_SHIFT; in rtw_sec_write_cam()
84 u8 hw_key_idx) in rtw_sec_clear_cam() argument
86 struct rtw_cam_entry *cam = &sec->cam_table[hw_key_idx]; in rtw_sec_clear_cam()
91 clear_bit(hw_key_idx, sec->cam_map); in rtw_sec_clear_cam()
97 addr = hw_key_idx << RTW_SEC_CAM_ENTRY_SHIFT; in rtw_sec_clear_cam()
Dsec.h33 u8 hw_key_type, u8 hw_key_idx);
36 u8 hw_key_idx);
Dmac80211.c515 u8 hw_key_idx; in rtw_ops_set_key() local
551 hw_key_idx = rtw_sec_get_free_cam(sec); in rtw_ops_set_key()
554 hw_key_idx = key->keyidx; in rtw_ops_set_key()
557 if (hw_key_idx > sec->total_cam_num) { in rtw_ops_set_key()
566 key->hw_key_idx = hw_key_idx; in rtw_ops_set_key()
568 hw_key_type, hw_key_idx); in rtw_ops_set_key()
573 rtw_sec_clear_cam(rtwdev, sec, key->hw_key_idx); in rtw_ops_set_key()
/linux-6.1.9/drivers/net/wireless/ath/
Dkey.c584 void ath_key_delete(struct ath_common *common, u8 hw_key_idx) in ath_key_delete() argument
591 if (test_bit(hw_key_idx, common->ccmp_keymap) || in ath_key_delete()
592 test_bit(hw_key_idx, common->tkip_keymap)) in ath_key_delete()
593 ath_hw_keysetmac(common, hw_key_idx, NULL); in ath_key_delete()
595 ath_hw_keyreset(common, hw_key_idx); in ath_key_delete()
596 if (hw_key_idx < IEEE80211_WEP_NKID) in ath_key_delete()
599 clear_bit(hw_key_idx, common->keymap); in ath_key_delete()
600 clear_bit(hw_key_idx, common->ccmp_keymap); in ath_key_delete()
601 if (!test_bit(hw_key_idx, common->tkip_keymap)) in ath_key_delete()
604 clear_bit(hw_key_idx + 64, common->keymap); in ath_key_delete()
[all …]
Dath.h200 void ath_key_delete(struct ath_common *common, u8 hw_key_idx);
/linux-6.1.9/drivers/staging/vt6656/
Dkey.c56 key->hw_key_idx = i; in vnt_set_keymode()
57 entry = key->hw_key_idx; in vnt_set_keymode()
67 key->hw_key_idx = entry; in vnt_set_keymode()
Dmain_usb.c910 if (test_bit(key->hw_key_idx, &priv->key_entry_inuse)) { in vnt_set_key()
911 clear_bit(key->hw_key_idx, &priv->key_entry_inuse); in vnt_set_key()
913 vnt_mac_disable_keyentry(priv, key->hw_key_idx); in vnt_set_key()
/linux-6.1.9/drivers/net/wireless/mediatek/mt7601u/
Dmain.c66 mvif->group_wcid.hw_key_idx = -1; in mt7601u_add_interface()
227 msta->wcid.hw_key_idx = -1; in mt7601u_sta_add()
315 key->hw_key_idx = wcid->idx; in mt7601u_set_key()
316 wcid->hw_key_idx = idx; in mt7601u_set_key()
318 if (idx == wcid->hw_key_idx) in mt7601u_set_key()
319 wcid->hw_key_idx = -1; in mt7601u_set_key()
325 if (key || wcid->hw_key_idx == idx) { in mt7601u_set_key()
/linux-6.1.9/drivers/staging/vt6655/
Dkey.c39 key->hw_key_idx = i; in vnt_set_keymode()
40 entry = key->hw_key_idx; in vnt_set_keymode()
50 key->hw_key_idx = entry; in vnt_set_keymode()
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/
Dmt76x02_util.c186 dev->mt76.global_wcid.hw_key_idx = -1; in mt76x02_init_device()
256 msta->wcid.hw_key_idx = -1; in mt76x02_sta_add()
291 mvif->group_wcid.hw_key_idx = -1; in mt76x02_vif_init()
459 key->hw_key_idx = wcid->idx; in mt76x02_set_key()
460 wcid->hw_key_idx = idx; in mt76x02_set_key()
466 if (idx == wcid->hw_key_idx) { in mt76x02_set_key()
467 wcid->hw_key_idx = -1; in mt76x02_set_key()
476 if (key || wcid->hw_key_idx == idx) { in mt76x02_set_key()
Dmt76x02_txrx.c172 if (!wcid || wcid->hw_key_idx == 0xff || wcid->sw_iv) in mt76x02_tx_prepare_skb()
/linux-6.1.9/drivers/net/wireless/silabs/wfx/
Dkey.c203 key->hw_key_idx = idx; in wfx_add_key()
209 WARN(key->hw_key_idx >= MAX_KEY_ENTRIES, "corrupted hw_key_idx"); in wfx_remove_key()
210 wfx_free_key(wvif->wdev, key->hw_key_idx); in wfx_remove_key()
211 return wfx_hif_remove_key(wvif->wdev, key->hw_key_idx); in wfx_remove_key()
/linux-6.1.9/drivers/net/wireless/ralink/rt2x00/
Drt73usb.c284 key->hw_key_idx += reg ? ffz(reg) : 0; in rt73usb_config_shared_key()
296 reg = SHARED_KEY_ENTRY(key->hw_key_idx); in rt73usb_config_shared_key()
307 if (key->hw_key_idx < 8) { in rt73usb_config_shared_key()
308 field.bit_offset = (3 * key->hw_key_idx); in rt73usb_config_shared_key()
315 field.bit_offset = (3 * (key->hw_key_idx - 8)); in rt73usb_config_shared_key()
341 mask = 1 << key->hw_key_idx; in rt73usb_config_shared_key()
374 key->hw_key_idx = 32; in rt73usb_config_pairwise_key()
380 key->hw_key_idx += reg ? ffz(reg) : 0; in rt73usb_config_pairwise_key()
392 reg = PAIRWISE_KEY_ENTRY(key->hw_key_idx); in rt73usb_config_pairwise_key()
403 reg = PAIRWISE_TA_ENTRY(key->hw_key_idx); in rt73usb_config_pairwise_key()
[all …]
Drt2x00crypto.c52 txdesc->key_idx = hw_key->hw_key_idx; in rt2x00crypto_create_tx_descriptor()
Drt2500usb.c354 key->hw_key_idx += reg ? ffz(reg) : 0; in rt2500usb_config_key()
361 if (key->hw_key_idx > 0 && crypto->cipher != curr_cipher) in rt2500usb_config_key()
364 rt2500usb_register_multiwrite(rt2x00dev, KEY_ENTRY(key->hw_key_idx), in rt2500usb_config_key()
390 mask |= 1 << key->hw_key_idx; in rt2500usb_config_key()
392 mask &= ~(1 << key->hw_key_idx); in rt2500usb_config_key()
Drt61pci.c342 key->hw_key_idx = 32; in rt61pci_config_pairwise_key()
348 key->hw_key_idx += reg ? ffz(reg) : 0; in rt61pci_config_pairwise_key()
364 reg = PAIRWISE_KEY_ENTRY(key->hw_key_idx); in rt61pci_config_pairwise_key()
368 reg = PAIRWISE_TA_ENTRY(key->hw_key_idx); in rt61pci_config_pairwise_key()
399 if (key->hw_key_idx < 32) { in rt61pci_config_pairwise_key()
400 mask = 1 << key->hw_key_idx; in rt61pci_config_pairwise_key()
409 mask = 1 << (key->hw_key_idx - 32); in rt61pci_config_pairwise_key()
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/dvm/
Dsta.c1029 keyconf->hw_key_idx = IWLAGN_HW_KEY_DEFAULT; in iwl_set_default_wep_key()
1121 sta_cmd.key.key_offset = keyconf->hw_key_idx; in iwlagn_send_sta_key()
1179 if (!test_and_clear_bit(keyconf->hw_key_idx, &priv->ucode_key_table)) in iwl_remove_dynamic_key()
1181 keyconf->hw_key_idx); in iwl_remove_dynamic_key()
1191 sta_cmd.key.key_offset = keyconf->hw_key_idx; in iwl_remove_dynamic_key()
1214 keyconf->hw_key_idx = iwl_get_free_ucode_key_offset(priv); in iwl_set_dynamic_key()
1215 if (keyconf->hw_key_idx == WEP_INVALID_OFFSET) in iwl_set_dynamic_key()
1246 clear_bit(keyconf->hw_key_idx, &priv->ucode_key_table); in iwl_set_dynamic_key()
Dmac80211.c634 key->hw_key_idx = WEP_INVALID_OFFSET; in iwlagn_mac_set_key()
639 if (cmd == DISABLE_KEY && key->hw_key_idx == WEP_INVALID_OFFSET) in iwlagn_mac_set_key()
659 key->hw_key_idx == IWLAGN_HW_KEY_DEFAULT; in iwlagn_mac_set_key()
676 key->hw_key_idx = WEP_INVALID_OFFSET; in iwlagn_mac_set_key()
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7603/
Dmain.c71 mvif->sta.wcid.hw_key_idx = -1; in mt7603_add_interface()
516 key->hw_key_idx = wcid->idx; in mt7603_set_key()
517 wcid->hw_key_idx = idx; in mt7603_set_key()
519 if (idx == wcid->hw_key_idx) in mt7603_set_key()
520 wcid->hw_key_idx = -1; in mt7603_set_key()
/linux-6.1.9/drivers/net/wireless/ath/ath9k/
Dmain.c1811 key->hw_key_idx = 0; in ath9k_set_key()
1814 key->hw_key_idx = ret; in ath9k_set_key()
1824 if (an && key->hw_key_idx) { in ath9k_set_key()
1828 an->key_idx[i] = key->hw_key_idx; in ath9k_set_key()
1835 if (ath9k_txq_has_key(sc, key->hw_key_idx)) { in ath9k_set_key()
1839 set_bit(key->hw_key_idx, sc->sc_ah->pending_del_keymap); in ath9k_set_key()
1840 ath_hw_keysetmac(common, key->hw_key_idx, NULL); in ath9k_set_key()
1842 ath_key_delete(common, key->hw_key_idx); in ath9k_set_key()
1846 if (an->key_idx[i] != key->hw_key_idx) in ath9k_set_key()
1852 key->hw_key_idx = 0; in ath9k_set_key()
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7615/
Dpci_init.c63 dev->mt76.global_wcid.hw_key_idx = -1; in mt7615_init_hardware()
/linux-6.1.9/drivers/net/wireless/intersil/p54/
Dmain.c568 key->hw_key_idx = 0xff; in p54_set_key()
574 slot = key->hw_key_idx; in p54_set_key()
597 key->hw_key_idx = slot; in p54_set_key()
/linux-6.1.9/drivers/net/wireless/ath/carl9170/
Dmain.c1229 key->hw_key_idx = i; in carl9170_op_set_key()
1262 if (key->hw_key_idx < 64) { in carl9170_op_set_key()
1263 ar->usedkeys &= ~BIT(key->hw_key_idx); in carl9170_op_set_key()
1265 err = carl9170_upload_key(ar, key->hw_key_idx, NULL, in carl9170_op_set_key()
1272 err = carl9170_upload_key(ar, key->hw_key_idx, in carl9170_op_set_key()
1282 err = carl9170_disable_key(ar, key->hw_key_idx); in carl9170_op_set_key()
/linux-6.1.9/net/mac80211/
Ddebugfs_key.c64 KEY_CONF_FILE(hw_key_idx, D);
353 DEBUGFS_ADD(hw_key_idx); in ieee80211_debugfs_key_add()
/linux-6.1.9/drivers/net/wireless/ath/ath5k/
Dmac80211-ops.c514 key->hw_key_idx = ret; in ath5k_set_key()
525 ath_key_delete(common, key->hw_key_idx); in ath5k_set_key()

123