/freebsd/lib/libsys/x86/ |
H A D | pkru.c | 47 x86_pkru_get_perm_unsup(u_int keyidx, int *access, int *modify) in x86_pkru_get_perm_unsup() argument 55 x86_pkru_get_perm_hw(u_int keyidx, int *access, int *modify) in x86_pkru_get_perm_hw() argument 59 if (keyidx > MAX_PKRU_IDX) { in x86_pkru_get_perm_hw() 63 keyidx *= 2; in x86_pkru_get_perm_hw() 65 *access = (pkru & (1 << keyidx)) == 0; in x86_pkru_get_perm_hw() 66 *modify = (pkru & (2 << keyidx)) == 0; in x86_pkru_get_perm_hw() 78 x86_pkru_set_perm_unsup(u_int keyidx, int access, int modify) in x86_pkru_set_perm_unsup() argument 86 x86_pkru_set_perm_hw(u_int keyidx, int access, int modify) in x86_pkru_set_perm_hw() argument 90 if (keyidx > MAX_PKRU_IDX) { in x86_pkru_set_perm_hw() 94 keyidx *= 2; in x86_pkru_set_perm_hw() [all …]
|
/freebsd/sys/x86/include/ |
H A D | sysarch.h | 106 unsigned int keyidx; member 119 unsigned int keyidx; member 143 int x86_pkru_get_perm(unsigned int keyidx, int *access, int *modify); 144 int x86_pkru_set_perm(unsigned int keyidx, int access, int modify); 145 int x86_pkru_protect_range(void *addr, unsigned long len, unsigned int keyidx,
|
/freebsd/sys/contrib/dev/iwlwifi/mvm/ |
H A D | mld-key.c | 31 if (keyconf->keyidx >= 4) in iwl_mvm_get_sec_sta_mask() 66 bool igtk = keyconf->keyidx == 4 || keyconf->keyidx == 5; in iwl_mvm_get_sec_flags() 137 .u.modify.key_id = cpu_to_le32(key->keyidx), in iwl_mvm_mld_update_sta_keys() 171 u32 key_flags, u32 keyidx, u32 flags) in iwl_mvm_mld_send_key() 177 .u.remove.key_id = cpu_to_le32(keyidx), in iwl_mvm_mld_send_key() 191 .u.add.key_id = cpu_to_le32(keyconf->keyidx), in iwl_mvm_mld_send_key() 238 keyconf->keyidx, 0); in iwl_mvm_sec_key_add() 255 if (keyconf->keyidx == 4 || keyconf->keyidx in iwl_mvm_sec_key_add() 154 __iwl_mvm_sec_key_del(struct iwl_mvm * mvm,u32 sta_mask,u32 key_flags,u32 keyidx,u32 flags) __iwl_mvm_sec_key_del() argument [all...] |
H A D | d3.c | 136 .wep_key.key_index = key->keyidx, in iwl_mvm_wowlan_program_keys() 149 if (key->keyidx == mvmvif->tx_key_idx) { in iwl_mvm_wowlan_program_keys() 298 ptk_pn = rcu_dereference(mvmsta->ptk_pn[key->keyidx]); in iwl_mvm_wowlan_get_rsc_tsc_data() 369 data->gtk_ids[data->gtks] = key->keyidx; in iwl_mvm_wowlan_get_rsc_v5_data() 371 if (WARN_ON(key->keyidx >= in iwl_mvm_wowlan_get_rsc_v5_data() 374 data->rsc->mcast_key_id_map[key->keyidx] = data->gtks % 2; in iwl_mvm_wowlan_get_rsc_v5_data() 419 ptk_pn = rcu_dereference(mvmsta->ptk_pn[key->keyidx]); in iwl_mvm_wowlan_get_rsc_v5_data() 603 if (key->keyidx == 4 || key->keyidx == 5) in iwl_mvm_wowlan_gtk_type_iter() 605 if (key->keyidx in iwl_mvm_wowlan_gtk_type_iter() 1862 s8 keyidx; iwl_mvm_d3_update_keys() local [all...] |
H A D | sta.c | 2658 key_flags = cpu_to_le16((keyconf->keyidx << STA_KEY_FLG_KEYID_POS) & in __iwl_mvm_remove_sta_key() 3572 u16 keyidx; in iwl_mvm_send_sta_key() 3583 keyidx = (key->keyidx << STA_KEY_FLG_KEYID_POS) & in iwl_mvm_send_sta_key() 3585 key_flags = cpu_to_le16(keyidx); in iwl_mvm_send_sta_key() 3723 (keyconf->keyidx != 4 && keyconf->keyidx != 5 && in iwl_mvm_send_sta_igtk() 3724 keyconf->keyidx != 6 && keyconf->keyidx != 7) || in iwl_mvm_send_sta_igtk() 3734 igtk_cmd.key_id = cpu_to_le32(keyconf->keyidx); in iwl_mvm_send_sta_igtk() 3561 u16 keyidx; iwl_mvm_send_sta_key() local [all...] |
H A D | mac80211.c | 4371 int keyidx = key->keyidx; in iwl_mvm_mac_update_tkip_key() 4418 (keyidx == 6 || keyidx == 7)) in iwl_mvm_send_aux_roc_cmd() 4419 rcu_assign_pointer(mvmvif->bcn_prot.keys[keyidx - 6], in iwl_mvm_send_aux_roc_cmd() 4437 * have it we cannot get here with keyidx >= 6, and in iwl_mvm_send_aux_roc_cmd() 4497 WARN_ON(rcu_access_pointer(mvmsta->ptk_pn[keyidx])); in iwl_mvm_send_aux_roc_cmd() 4514 rcu_assign_pointer(mvmsta->ptk_pn[keyidx], ptk_pn); in iwl_mvm_send_aux_roc_cmd() 4527 sta ? sta->addr : NULL, key->keyidx); in iwl_mvm_send_aux_roc_cmd() 4538 RCU_INIT_POINTER(mvmsta->ptk_pn[keyidx], NUL 4126 int keyidx = key->keyidx; __iwl_mvm_mac_set_key() local [all...] |
H A D | rxmq.c | 25 u8 tid, keyidx; in iwl_mvm_check_pn() local 58 keyidx = extiv[3] >> 6; in iwl_mvm_check_pn() 60 ptk_pn = rcu_dereference(mvmsta->ptk_pn[keyidx]); in iwl_mvm_check_pn() 336 if (keyid != key->keyidx) { in iwl_mvm_rx_mgmt_prot()
|
/freebsd/tools/test/stress2/misc/ |
H A D | pkru.sh | 53 int x86_pkru_get_perm(unsigned int keyidx, int *access, int *modify); 54 int x86_pkru_set_perm(unsigned int keyidx, int access, int modify); 55 int x86_pkru_protect_range(void *addr, unsigned long len, unsigned int keyidx, 112 int x86_pkru_get_perm(unsigned int keyidx, int *access, int *modify); 113 int x86_pkru_set_perm(unsigned int keyidx, int access, int modify); 114 int x86_pkru_protect_range(void *addr, unsigned long len, unsigned int keyidx, 176 int x86_pkru_get_perm(unsigned int keyidx, int *access, int *modify); 177 int x86_pkru_set_perm(unsigned int keyidx, int access, int modify); 178 int x86_pkru_protect_range(void *addr, unsigned long len, unsigned int keyidx, 265 int x86_pkru_get_perm(unsigned int keyidx, int *access, int *modify); [all …]
|
/freebsd/contrib/wpa/src/rsn_supp/ |
H A D | wpa.c | 1323 int tx, key_rsc_len, keyidx; member 1344 gd->keyidx, gd->tx, gd->gtk_len); in wpa_supplicant_install_gtk() 1351 gd->keyidx, gd->tx, gd->gtk_len); in wpa_supplicant_install_gtk() 1362 gd->keyidx, 1, key_rsc, gd->key_rsc_len, in wpa_supplicant_install_gtk() 1372 gd->keyidx, gd->tx, key_rsc, gd->key_rsc_len, in wpa_supplicant_install_gtk() 1377 gd->alg, gd->gtk_len, gd->keyidx); in wpa_supplicant_install_gtk() 1413 link_id, gd->keyidx, gd->tx, gd->gtk_len); in wpa_supplicant_install_mlo_gtk() 1421 link_id, gd->keyidx, gd->tx, gd->gtk_len); in wpa_supplicant_install_mlo_gtk() 1432 gd->keyidx, gd->tx, key_rsc, gd->key_rsc_len, gtk, in wpa_supplicant_install_mlo_gtk() 1436 link_id, gd->alg, gd->gtk_len, gd->keyidx); in wpa_supplicant_install_mlo_gtk() [all …]
|
H A D | wpa_ft.c | 803 int keyidx; in wpa_ft_process_gtk_subelem() local 854 keyidx = WPA_GET_LE16(gtk_elem) & 0x03; in wpa_ft_process_gtk_subelem() 871 if (wpa_sm_set_key(sm, -1, alg, broadcast_ether_addr, keyidx, 0, in wpa_ft_process_gtk_subelem() 888 u16 keyidx; in wpa_ft_process_igtk_subelem() local 934 keyidx = WPA_GET_LE16(igtk_elem); in wpa_ft_process_igtk_subelem() 939 broadcast_ether_addr, keyidx, 0, in wpa_ft_process_igtk_subelem() 958 u16 keyidx; in wpa_ft_process_bigtk_subelem() local 1002 keyidx = WPA_GET_LE16(bigtk_elem); in wpa_ft_process_bigtk_subelem() 1007 broadcast_ether_addr, keyidx, 0, in wpa_ft_process_bigtk_subelem()
|
/freebsd/crypto/openssl/apps/ |
H A D | cms.c | 302 int noout = 0, print = 0, keyidx = -1, vpmtouched = 0; in cms_main() local 634 keyidx = -1; in cms_main() 637 keyidx += sk_X509_num(encerts); in cms_main() 640 keyidx++; in cms_main() 642 keyidx += sk_OPENSSL_STRING_num(skkeys); in cms_main() 644 if (keyidx < 0) { in cms_main() 648 if (key_param == NULL || key_param->idx != keyidx) { in cms_main() 655 nparam->idx = keyidx; in cms_main()
|
/freebsd/sys/contrib/dev/athk/ |
H A D | key.c | 518 idx = key->keyidx; in ath_key_config() 527 idx = key->keyidx; in ath_key_config() 530 } else if (key->keyidx) { in ath_key_config() 538 idx = key->keyidx; in ath_key_config()
|
/freebsd/sys/amd64/amd64/ |
H A D | sys_machdep.c | 253 a64pkru.keyidx = i386pkru.keyidx; in sysarch() 365 a64pkru.len, a64pkru.keyidx, a64pkru.flags); in sysarch() 371 if (a64pkru.flags != 0 || a64pkru.keyidx != 0) { in sysarch()
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | mac.h | 47 u8 keyidx);
|
H A D | mac.c | 245 .key_idx = key->keyidx, in ath10k_send_key() 455 u8 keyidx) in ath10k_mac_is_peer_wep_key_set() argument 472 if (peer->keys[i] && peer->keys[i]->keyidx == keyidx) in ath10k_mac_is_peer_wep_key_set() 543 if (peer->keys[key->keyidx] == key) in ath10k_mac_vif_update_wep_key() 547 arvif->vdev_id, key->keyidx); in ath10k_mac_vif_update_wep_key() 6530 key->keyidx); in ath10k_set_key_h_def_keyidx() 6562 if (key->keyidx > WMI_MAX_KEY_INDEX) in ath10k_set_key() 6579 key->hw_key_idx = key->keyidx; in ath10k_set_key() 6583 arvif->wep_keys[key->keyidx] = key; in ath10k_set_key() 6585 arvif->wep_keys[key->keyidx] = NULL; in ath10k_set_key() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | todo.txt | 11 - Cisco AP and non-zero keyidx for unicast -> map to broadcast 13 driver_*.c to do the mapping for drivers that cannot handle non-zero keyidx
|
/freebsd/sys/contrib/dev/rtw88/ |
H A D | sec.c | 50 content = ((key->keyidx & 0x3)) | in rtw_sec_write_cam()
|
/freebsd/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212_misc.c | 572 ar5212SetDecompMask(struct ath_hal *ah, uint16_t keyidx, int en) in ar5212SetDecompMask() argument 576 if (keyidx >= HAL_DECOMP_MASK_SIZE) in ar5212SetDecompMask() 578 OS_REG_WRITE(ah, AR_DCM_A, keyidx); in ar5212SetDecompMask() 580 ahp->ah_decompMask[keyidx] = en; in ar5212SetDecompMask()
|
/freebsd/contrib/wpa/hostapd/ |
H A D | config_file.c | 765 static int hostapd_config_read_wep(struct hostapd_wep_keys *wep, int keyidx, in hostapd_config_read_wep() argument 770 if (keyidx < 0 || keyidx > 3) in hostapd_config_read_wep() 776 bin_clear_free(wep->key[keyidx], wep->len[keyidx]); in hostapd_config_read_wep() 777 wep->key[keyidx] = NULL; in hostapd_config_read_wep() 778 wep->len[keyidx] = 0; in hostapd_config_read_wep() 788 if (wep->key[keyidx] != NULL) in hostapd_config_read_wep() 795 wep->key[keyidx] = os_memdup(val + 1, len); in hostapd_config_read_wep() 796 if (wep->key[keyidx] == NULL) in hostapd_config_read_wep() 798 wep->len[keyidx] = len; in hostapd_config_read_wep() 803 wep->key[keyidx] = os_malloc(len); in hostapd_config_read_wep() [all …]
|
/freebsd/sys/dev/ipw/ |
H A D | if_ipwreg.h | 169 uint8_t keyidx; member
|
/freebsd/contrib/wpa/src/eapol_supp/ |
H A D | eapol_supp_sm.h | 163 int (*set_wep_key)(void *ctx, int unicast, int keyidx,
|
/freebsd/contrib/wpa/src/ap/ |
H A D | wpa_auth_i.h | 316 int keyidx, int encr, int force_version);
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mt76_connac.h | 129 s8 keyidx; member
|
/freebsd/sys/dev/usb/wlan/ |
H A D | if_uathreg.h | 308 uint32_t keyidx; member
|
/freebsd/sys/amd64/include/ |
H A D | pmap.h | 493 u_int keyidx, int flags);
|