| /drivers/staging/rtl8723bs/include/ |
| A D | sta_info.h | 220 #define sta_rx_pkts(sta) \ argument 221 (sta->sta_stats.rx_mgnt_pkts \ 226 (sta->sta_stats.rx_data_pkts) 245 sta->sta_stats.last_rx_mgnt_pkts = sta->sta_stats.rx_mgnt_pkts; \ 246 sta->sta_stats.last_rx_beacon_pkts = sta->sta_stats.rx_beacon_pkts; \ 247 sta->sta_stats.last_rx_probereq_pkts = sta->sta_stats.rx_probereq_pkts; \ 248 sta->sta_stats.last_rx_probersp_pkts = sta->sta_stats.rx_probersp_pkts; \ 249 sta->sta_stats.last_rx_probersp_bm_pkts = sta->sta_stats.rx_probersp_bm_pkts; \ 250 sta->sta_stats.last_rx_probersp_uo_pkts = sta->sta_stats.rx_probersp_uo_pkts; \ 251 sta->sta_stats.last_rx_ctrl_pkts = sta->sta_stats.rx_ctrl_pkts; \ [all …]
|
| /drivers/net/wireless/realtek/rtlwifi/ |
| A D | rc.c | 16 struct ieee80211_sta *sta, in _rtl_rc_get_highest_rix() argument 49 if (sta) { in _rtl_rc_get_highest_rix() 112 struct ieee80211_sta *sta, in _rtl_rc_rate_set_series() argument 123 if (sta) { in _rtl_rc_rate_set_series() 138 if (sta && (sta->deflink.ht_cap.cap & in _rtl_rc_rate_set_series() 141 if (sta && sta->deflink.vht_cap.vht_supported) in _rtl_rc_rate_set_series() 152 if (sta && sta->deflink.ht_cap.ht_supported && in _rtl_rc_rate_set_series() 156 if (sta && sta->deflink.vht_cap.vht_supported && in _rtl_rc_rate_set_series() 229 if (sta) { in rtl_tx_status() 232 if (sta->deflink.ht_cap.ht_supported && in rtl_tx_status() [all …]
|
| /drivers/net/wireless/intel/iwlwifi/dvm/ |
| A D | sta.c | 28 sta_id, priv->stations[sta_id].sta.sta.addr); in iwl_sta_ucode_activate() 34 sta_id, priv->stations[sta_id].sta.sta.addr); in iwl_sta_ucode_activate() 38 sta_id, priv->stations[sta_id].sta.sta.addr); in iwl_sta_ucode_activate() 92 u8 sta_id __maybe_unused = sta->sta.sta_id; in iwl_send_add_sta() 139 if (!sta) in iwl_is_ht40_tx_allowed() 295 memcpy(station->sta.sta.addr, addr, ETH_ALEN); in iwl_prep_station() 297 station->sta.sta.sta_id = sta_id; in iwl_prep_station() 372 priv->stations[sta_id].sta.sta.addr); in iwl_add_station_common() 666 priv->stations[i].sta.sta.addr); in iwl_restore_stations() 693 priv->stations[i].sta.sta.addr); in iwl_restore_stations() [all …]
|
| /drivers/net/wireless/intel/iwlwifi/mvm/ |
| A D | mld-sta.c | 18 if (!sta) in iwl_mvm_sta_fw_id_mask() 25 if (!sta->valid_links) in iwl_mvm_sta_fw_id_mask() 67 struct iwl_mvm_int_sta *sta, in iwl_mvm_mld_add_int_sta_to_fw() argument 498 if (sta->wme) { in iwl_mvm_mld_cfg_sta() 500 cpu_to_le32(sta->max_sp ? sta->max_sp * 2 : 128); in iwl_mvm_mld_cfg_sta() 573 if (rcu_access_pointer(sta->link[link_id]) == &sta->deflink) { in iwl_mvm_mld_alloc_sta_link() 622 if (!sta->tdls) { in iwl_mvm_mld_set_ap_sta_id() 682 struct ieee80211_sta *sta) in iwl_mvm_mld_add_sta() argument 922 struct ieee80211_sta *sta; in iwl_mvm_mld_modify_all_sta_disable_tx() local 931 if (IS_ERR_OR_NULL(sta)) in iwl_mvm_mld_modify_all_sta_disable_tx() [all …]
|
| A D | tdls.c | 18 struct ieee80211_sta *sta; in iwl_mvm_teardown_tdls_peers() local 27 if (IS_ERR_OR_NULL(sta) || !sta->tdls) in iwl_mvm_teardown_tdls_peers() 50 if (IS_ERR_OR_NULL(sta) || !sta->tdls) in iwl_mvm_tdls_sta_count() 94 if (IS_ERR_OR_NULL(sta) || !sta->tdls) in iwl_mvm_tdls_config() 226 if (IS_ERR_OR_NULL(sta) || WARN_ON(!sta->tdls)) in iwl_mvm_rx_tdls_notif() 366 if (!sta) { in iwl_mvm_tdls_config_channel_switch() 475 if (IS_ERR_OR_NULL(sta) || WARN_ON(!sta->tdls)) in iwl_mvm_tdls_ch_switch_work() 482 sta->addr, in iwl_mvm_tdls_ch_switch_work() 518 sta->addr); in iwl_mvm_tdls_channel_switch() 524 sta->addr, sta->tdls_initiator, in iwl_mvm_tdls_channel_switch() [all …]
|
| A D | sta.h | 461 return (void *)sta->drv_priv; in iwl_mvm_sta_from_mac80211() 495 struct ieee80211_sta *sta); 509 struct ieee80211_sta *sta, 513 struct ieee80211_sta *sta); 519 struct ieee80211_sta *sta, 524 struct ieee80211_sta *sta, 578 struct ieee80211_sta *sta); 624 struct ieee80211_sta *sta); 633 struct ieee80211_sta *sta, 654 struct ieee80211_sta *sta); [all …]
|
| A D | sta.c | 420 if (sta) { in iwl_mvm_disable_txq() 818 if (!sta) in iwl_mvm_get_queue_size() 860 if (sta) { in iwl_mvm_tvqm_enable_txq() 959 if (sta) { in iwl_mvm_update_txq_mapping() 2141 iwl_mvm_sta_del(mvm, vif, sta, &sta->deflink); in iwl_mvm_rm_sta() 3502 if (sta) in iwl_mvm_get_key_sta() 3788 if (sta) in iwl_mvm_get_mac_addr() 3819 if (sta) { in __iwl_mvm_set_sta_key() 3938 sta) { in iwl_mvm_set_sta_key() 3952 sta ? sta->addr : zero_addr, ret); in iwl_mvm_set_sta_key() [all …]
|
| A D | mld-key.c | 13 struct ieee80211_sta *sta, in iwl_mvm_get_sec_sta_mask() argument 39 sta = mvmvif->ap_sta; in iwl_mvm_get_sec_sta_mask() 61 struct ieee80211_sta *sta, in iwl_mvm_get_sec_flags() argument 99 sta = mvmvif->ap_sta; in iwl_mvm_get_sec_flags() 108 if ((!IS_ERR_OR_NULL(sta) && sta->mfp && pairwise) || igtk) in iwl_mvm_get_sec_flags() 118 struct ieee80211_sta *sta; member 144 if (sta != data->sta || key->link_id >= 0) in iwl_mvm_mld_update_sta_key() 155 struct ieee80211_sta *sta, in iwl_mvm_mld_update_sta_keys() argument 160 .sta = sta, in iwl_mvm_mld_update_sta_keys() 246 struct ieee80211_sta *sta, in iwl_mvm_sec_key_add() argument [all …]
|
| A D | rs.c | 376 struct ieee80211_sta *sta, 566 sta->addr, tid); in rs_tl_turn_on_agg_for_tid() 1393 sta->deflink.rx_nss) < sta->deflink.rx_nss) in rs_bw_from_sta_bw() 1498 rs_fw_get_max_amsdu_len(sta, bss_conf, &sta->deflink); in rs_set_amsdu_len() 2572 sta->deflink.bandwidth); in rs_get_initial_rate() 2648 if (!sta || !lq_sta) in rs_initialize_lq() 2687 if (sta && !iwl_mvm_sta_from_mac80211(sta)->vif) { in rs_drv_get_rate() 2785 if (sta->deflink.rx_nss < 2) in rs_vht_set_enabled_rates() 2836 struct ieee80211_sta *sta, in rs_vht_init() argument 3489 sta->deflink.sta_id); in rs_bfer_priority() [all …]
|
| A D | sf.c | 98 struct ieee80211_sta *sta) in iwl_mvm_fill_sf_command() argument 112 if (sta) { in iwl_mvm_fill_sf_command() 115 for (link_id = 0; link_id < ARRAY_SIZE(sta->link); link_id++) { in iwl_mvm_fill_sf_command() 116 link_sta = rcu_dereference(sta->link[link_id]); in iwl_mvm_fill_sf_command() 158 if (sta) { in iwl_mvm_fill_sf_command() 195 if (!sta) { in iwl_mvm_sf_config() 200 iwl_mvm_fill_sf_command(mvm, &sf_cmd, sta); in iwl_mvm_sf_config() 233 struct ieee80211_sta *sta = NULL; in iwl_mvm_sf_update() local 266 sta = data.sta_vif_ap_sta; in iwl_mvm_sf_update() 275 sta = mvmvif->ap_sta; in iwl_mvm_sf_update() [all …]
|
| A D | tx.c | 362 sta ? iwl_mvm_sta_from_mac80211(sta)->sta_state : -1); in iwl_mvm_get_tx_rate() 899 if (sta->valid_links) { in iwl_mvm_max_amsdu_size() 1124 if (WARN_ON_ONCE(!sta)) in iwl_mvm_tx_mpdu() 1273 if (WARN_ON_ONCE(!sta)) in iwl_mvm_tx_skb_sta() 1587 struct ieee80211_sta *sta; in iwl_mvm_rx_tx_cmd_single() local 1747 if (WARN_ON_ONCE(!sta)) in iwl_mvm_rx_tx_cmd_single() 1750 if (!IS_ERR(sta)) { in iwl_mvm_rx_tx_cmd_single() 1815 ieee80211_sta_eosp(sta); in iwl_mvm_rx_tx_cmd_single() 1901 if (WARN_ON_ONCE(IS_ERR_OR_NULL(sta) || !sta->wme)) { in iwl_mvm_rx_tx_cmd_agg() 1953 if (WARN_ON_ONCE(!sta)) { in iwl_mvm_tx_reclaim() [all …]
|
| /drivers/net/wireless/intel/iwlwifi/mld/ |
| A D | key.c | 12 struct ieee80211_sta *sta, in iwl_mld_get_key_flags() argument 42 sta = mld_vif->ap_sta; in iwl_mld_get_key_flags() 50 if ((sta && sta->mfp && pairwise) || igtk) in iwl_mld_get_key_flags() 97 sta = mld_vif->ap_sta; in iwl_mld_get_key_sta_mask() 100 if (WARN_ON(!sta)) in iwl_mld_get_key_sta_mask() 278 struct ieee80211_sta *sta; member 294 if (WARN_ON(sta)) in iwl_mld_remove_ap_keys_iter() 308 .sta = sta, in iwl_mld_remove_ap_keys() 320 struct ieee80211_sta *sta; member 345 if (sta != data->sta || key->link_id >= 0) in iwl_mld_update_sta_key_iter() [all …]
|
| A D | sta.c | 418 struct ieee80211_sta *sta = link_sta->sta; in iwl_mld_add_modify_sta_cmd() local 443 cmd.assoc_id = cpu_to_le32(sta->aid); in iwl_mld_add_modify_sta_cmd() 478 if (sta->wme) { in iwl_mld_add_modify_sta_cmd() 480 cpu_to_le32(sta->max_sp ? sta->max_sp * 2 : 128); in iwl_mld_add_modify_sta_cmd() 631 struct ieee80211_sta *sta) in iwl_mld_update_all_link_stations() argument 687 struct ieee80211_sta *sta) in iwl_mld_alloc_mpdu_counters() argument 756 iwl_mld_destroy_sta(sta); in iwl_mld_add_sta() 806 iwl_mld_flush_sta_txqs(mld, sta); in iwl_mld_remove_sta() 827 iwl_mld_destroy_sta(sta); in iwl_mld_remove_sta() 1193 struct ieee80211_sta *sta, in iwl_mld_update_sta_resources() argument [all …]
|
| A D | sta.h | 145 iwl_mld_sta_from_mac80211(struct ieee80211_sta *sta) in iwl_mld_sta_from_mac80211() argument 147 return (void *)sta->drv_priv; in iwl_mld_sta_from_mac80211() 151 iwl_mld_cleanup_sta(void *data, struct ieee80211_sta *sta) in iwl_mld_cleanup_sta() argument 153 struct iwl_mld_sta *mld_sta = iwl_mld_sta_from_mac80211(sta); in iwl_mld_cleanup_sta() 157 for (int i = 0; i < ARRAY_SIZE(sta->txq); i++) in iwl_mld_cleanup_sta() 158 CLEANUP_STRUCT(iwl_mld_txq_from_mac80211(sta->txq[i])); in iwl_mld_cleanup_sta() 187 struct iwl_mld_sta *mld_sta = iwl_mld_sta_from_mac80211(link_sta->sta); in iwl_mld_link_sta_from_mac80211() 192 int iwl_mld_add_sta(struct iwl_mld *mld, struct ieee80211_sta *sta, 199 struct ieee80211_sta *sta); 202 struct ieee80211_sta *sta); [all …]
|
| /drivers/net/wireless/ath/ath10k/ |
| A D | debugfs_sta.c | 65 if (!peer || !peer->sta) in ath10k_sta_update_rx_tid_stats_ampdu() 68 arsta = (struct ath10k_sta *)peer->sta->drv_priv; in ath10k_sta_update_rx_tid_stats_ampdu() 88 struct ieee80211_sta *sta; in ath10k_sta_update_rx_tid_stats() local 108 if (!sta) in ath10k_sta_update_rx_tid_stats() 111 arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_sta_update_rx_tid_stats() 134 struct ieee80211_sta *sta; in ath10k_sta_update_extd_stats_rx_duration() local 141 if (!sta) in ath10k_sta_update_extd_stats_rx_duration() 143 arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_sta_update_extd_stats_rx_duration() 153 struct ieee80211_sta *sta; in ath10k_sta_update_stats_rx_duration() local 160 if (!sta) in ath10k_sta_update_stats_rx_duration() [all …]
|
| /drivers/net/wireless/intel/iwlwifi/mld/tests/ |
| A D | utils.c | 219 link_sta->sta = sta; in IWL_MLD_ALLOC_FN() 254 struct ieee80211_sta *sta; in iwlmld_kunit_add_sta() local 258 KUNIT_ALLOC_AND_ASSERT_SIZE(test, sta, sizeof(*sta) + sizeof(*mld_sta)); in iwlmld_kunit_add_sta() 270 iwlmld_kunit_add_link_sta(sta, &sta->deflink, in iwlmld_kunit_add_sta() 274 iwlmld_kunit_add_link_sta(sta, &sta->deflink, in iwlmld_kunit_add_sta() 277 return sta; in iwlmld_kunit_add_sta() 299 mld_vif->ap_sta = sta; in iwlmld_kunit_move_sta_state() 307 struct ieee80211_sta *sta; in iwlmld_kunit_setup_sta() local 320 return sta; in iwlmld_kunit_setup_sta() 415 struct ieee80211_sta *sta; in iwlmld_kunit_assoc_emlsr() local [all …]
|
| /drivers/net/wireless/ath/ath11k/ |
| A D | debugfs_sta.c | 140 struct ieee80211_sta *sta = file->private_data; in ath11k_dbg_sta_dump_tx_stats() local 247 struct ieee80211_sta *sta = file->private_data; in ath11k_dbg_sta_dump_rx_stats() local 344 struct ieee80211_sta *sta = inode->i_private; in ath11k_dbg_sta_open_htt_peer_stats() local 380 struct ieee80211_sta *sta = inode->i_private; in ath11k_dbg_sta_release_htt_peer_stats() local 417 struct ieee80211_sta *sta = file->private_data; in ath11k_dbg_sta_write_peer_pktlog() local 440 sta->addr, ret); in ath11k_dbg_sta_write_peer_pktlog() 457 struct ieee80211_sta *sta = file->private_data; in ath11k_dbg_sta_read_peer_pktlog() local 484 struct ieee80211_sta *sta = file->private_data; in ath11k_dbg_sta_write_delba() local 535 struct ieee80211_sta *sta = file->private_data; in ath11k_dbg_sta_write_addba_resp() local 585 struct ieee80211_sta *sta = file->private_data; in ath11k_dbg_sta_write_addba() local [all …]
|
| /drivers/net/wireless/ath/wil6210/ |
| A D | rx_reorder.c | 83 __acquires(&sta->tid_rx_lock) __releases(&sta->tid_rx_lock) in wil_rx_reorder() 89 struct wil_sta_info *sta; in wil_rx_reorder() local 96 sta = &wil->sta[cid]; in wil_rx_reorder() 109 spin_lock(&sta->tid_rx_lock); in wil_rx_reorder() 111 r = sta->tid_rx[tid]; in wil_rx_reorder() 217 struct wil_sta_info *sta = &wil->sta[cid]; in wil_rx_bar() local 223 r = sta->tid_rx[tid]; in wil_rx_bar() 301 __acquires(&sta->tid_rx_lock) __releases(&sta->tid_rx_lock) in wil_addba_rx_request() 306 struct wil_sta_info *sta; in wil_addba_rx_request() local 332 sta = &wil->sta[cid]; in wil_addba_rx_request() [all …]
|
| /drivers/net/wireless/mediatek/mt76/mt7603/ |
| A D | main.c | 69 mvif->sta.wcid.idx = idx; in mt7603_add_interface() 70 mvif->sta.vif = mvif; in mt7603_add_interface() 71 mt76_wcid_init(&mvif->sta.wcid, 0); in mt7603_add_interface() 344 msta->wcid.sta = 1; in mt7603_sta_add() 373 struct ieee80211_sta *sta) in mt7603_sta_remove() argument 468 ieee80211_sta_eosp(sta); in mt7603_release_buffered_frames() 484 struct mt7603_sta *msta = sta ? (struct mt7603_sta *)sta->drv_priv : in mt7603_set_key() 485 &mvif->sta; in mt7603_set_key() 581 struct ieee80211_sta *sta = params->sta; in mt7603_ampdu_action() local 680 if (control->sta) { in mt7603_tx() [all …]
|
| A D | mac.c | 235 sta->smps = enabled; in mt7603_wtbl_set_smps() 241 int idx = sta->wcid.idx; in mt7603_wtbl_set_ps() 246 if (sta->ps == enabled) in mt7603_wtbl_set_ps() 266 sta->ps = enabled; in mt7603_wtbl_set_ps() 457 if (!msta->wcid.sta) in mt7603_mac_sta_poll() 487 struct mt7603_sta *sta; in mt7603_rx_get_wcid() local 494 if (!wcid->sta) in mt7603_rx_get_wcid() 498 if (!sta->vif) in mt7603_rx_get_wcid() 501 return &sta->vif->sta.wcid; in mt7603_rx_get_wcid() 944 if (sta) { in mt7603_mac_write_txwi() [all …]
|
| /drivers/net/wireless/mediatek/mt76/mt7915/ |
| A D | main.c | 362 struct mt7915_sta *msta = sta ? (struct mt7915_sta *)sta->drv_priv : in mt7915_set_key() 363 &mvif->sta; in mt7915_set_key() 369 if (sta && !wcid->sta) { in mt7915_set_key() 789 if (!sta) in __mt7915_drop_sta() 795 msta->wcid.sta = 0; in __mt7915_drop_sta() 844 msta->wcid.sta = 1; in mt7915_mac_sta_event() 893 if (control->sta) { in mt7915_tx() 896 sta = (struct mt7915_sta *)control->sta->drv_priv; in mt7915_tx() 897 wcid = &sta->wcid; in mt7915_tx() 931 struct ieee80211_sta *sta = params->sta; in mt7915_ampdu_action() local [all …]
|
| A D | mcu.c | 65 int nss, max_nss = sta->deflink.rx_nss > 3 ? 4 : sta->deflink.rx_nss; in mt7915_mcu_set_sta_he_mcs() 119 int nss, max_nss = sta->deflink.rx_nss > 3 ? 4 : sta->deflink.rx_nss; in mt7915_mcu_set_sta_vht_mcs() 150 int nss, max_nss = sta->deflink.rx_nss > 3 ? 4 : sta->deflink.rx_nss; in mt7915_mcu_set_sta_ht_mcs() 1048 msta = sta ? (struct mt7915_sta *)sta->drv_priv : &mvif->sta; in mt7915_mcu_sta_wtbl_tlv() 1061 if (sta) in mt7915_mcu_sta_wtbl_tlv() 1256 if (!(sta->deflink.ht_cap.ht_supported || sta->deflink.he_cap.has_he)) in mt7915_mcu_sta_bfer_tlv() 1319 if (!(sta->deflink.vht_cap.vht_supported || sta->deflink.he_cap.has_he)) in mt7915_mcu_sta_bfee_tlv() 1699 msta = sta ? (struct mt7915_sta *)sta->drv_priv : &mvif->sta; in mt7915_mcu_add_group() 1716 msta = sta ? (struct mt7915_sta *)sta->drv_priv : &mvif->sta; in mt7915_mcu_add_sta() 1717 link_sta = sta ? &sta->deflink : NULL; in mt7915_mcu_add_sta() [all …]
|
| /drivers/i2c/algos/ |
| A D | i2c-algo-pca.c | 70 int sta = pca_get_con(adap); in pca_start() local 72 sta |= I2C_PCA_CON_STA; in pca_start() 74 pca_set_con(adap, sta); in pca_start() 87 sta |= I2C_PCA_CON_STA; in pca_repeated_start() 89 pca_set_con(adap, sta); in pca_repeated_start() 106 sta |= I2C_PCA_CON_STO; in pca_stop() 108 pca_set_con(adap, sta); in pca_stop() 128 pca_set_con(adap, sta); in pca_address() 146 pca_set_con(adap, sta); in pca_tx_byte() 176 sta |= I2C_PCA_CON_AA; in pca_rx_ack() [all …]
|
| /drivers/net/wireless/mediatek/mt76/mt7996/ |
| A D | main.c | 172 else if (sta && sta->valid_links) in mt7996_set_hw_key() 173 links = sta->valid_links; in mt7996_set_hw_key() 189 if (sta) { in mt7996_set_hw_key() 265 if (sta) in mt7996_key_iter() 886 struct ieee80211_sta *sta = link_sta->sta; in mt7996_mac_sta_init_link() local 905 if (!sta->txq[i]) in mt7996_mac_sta_init_link() 919 msta_link->sta = msta; in mt7996_mac_sta_init_link() 1081 unsigned long links = sta->valid_links ? sta->valid_links : BIT(0); in mt7996_mac_sta_add() 1170 unsigned long links = sta->valid_links ? sta->valid_links : BIT(0); in mt7996_mac_sta_remove() 1292 struct ieee80211_sta *sta = params->sta; in mt7996_ampdu_action() local [all …]
|
| /drivers/net/wireless/realtek/rtw89/ |
| A D | mac80211.c | 27 struct ieee80211_sta *sta = control->sta; in rtw89_ops_tx() local 546 struct ieee80211_sta *sta, in __rtw89_ops_sta_assoc() argument 568 if (sta->tdls) in __rtw89_ops_sta_assoc() 576 struct ieee80211_sta *sta) in __rtw89_ops_sta_disassoc() argument 595 if (sta->tdls) in __rtw89_ops_sta_disassoc() 627 struct ieee80211_sta *sta) in __rtw89_ops_sta_remove() argument 656 struct ieee80211_sta *sta; in rtw89_station_mode_sta_assoc() local 662 if (!sta) { in rtw89_station_mode_sta_assoc() 889 struct ieee80211_sta *sta, in __rtw89_ops_sta_state() argument 976 struct ieee80211_sta *sta = params->sta; in rtw89_ops_ampdu_action() local [all …]
|