/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | sta.c | 309 struct iwl_mvm_sta *mvmsta; in iwl_mvm_invalidate_sta_queue() local 327 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_invalidate_sta_queue() 329 mvmsta->tid_disable_agg |= disable_agg_tids; in iwl_mvm_invalidate_sta_queue() 331 cmd.mac_id_n_color = cpu_to_le32(mvmsta->mac_id_n_color); in iwl_mvm_invalidate_sta_queue() 332 cmd.sta_id = mvmsta->deflink.sta_id; in iwl_mvm_invalidate_sta_queue() 339 cmd.tfd_queue_msk = cpu_to_le32(mvmsta->tfd_queue_msk); in iwl_mvm_invalidate_sta_queue() 340 cmd.tid_disable_tx = cpu_to_le16(mvmsta->tid_disable_agg); in iwl_mvm_invalidate_sta_queue() 447 struct iwl_mvm_sta *mvmsta; in iwl_mvm_get_queue_agg_tids() local 467 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_get_queue_agg_tids() 469 spin_lock_bh(&mvmsta->lock); in iwl_mvm_get_queue_agg_tids() [all …]
|
D | tx.c | 257 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_get_tx_ant() local 259 return BIT(mvmsta->tx_ant) << RATE_MCS_ANT_POS; in iwl_mvm_get_tx_ant() 412 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_set_tx_cmd_rate() local 414 if (mvmsta->sta_state >= IEEE80211_STA_AUTHORIZED) { in iwl_mvm_set_tx_cmd_rate() 525 struct iwl_mvm_sta *mvmsta = sta ? in iwl_mvm_set_tx_params() local 544 mvmsta->sta_state < IEEE80211_STA_AUTHORIZED) { in iwl_mvm_set_tx_params() 817 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_max_amsdu_size() local 836 val = mvmsta->max_amsdu_len; in iwl_mvm_max_amsdu_size() 844 link_conf = rcu_dereference(mvmsta->vif->link_conf[link]); in iwl_mvm_max_amsdu_size() 851 band = mvmsta->vif->bss_conf.chandef.chan->band; in iwl_mvm_max_amsdu_size() [all …]
|
D | tdls.c | 19 struct iwl_mvm_sta *mvmsta; in iwl_mvm_teardown_tdls_peers() local 30 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_teardown_tdls_peers() 31 ieee80211_tdls_oper_request(mvmsta->vif, sta->addr, in iwl_mvm_teardown_tdls_peers() 41 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tdls_sta_count() local 54 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tdls_sta_count() 55 if (mvmsta->vif != vif) in iwl_mvm_tdls_sta_count() 208 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_tdls_notif() local 229 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_tdls_notif() 230 vif = mvmsta->vif; in iwl_mvm_rx_tdls_notif() 338 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tdls_config_channel_switch() local [all …]
|
D | rs.c | 582 static void rs_tl_turn_on_agg(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, in rs_tl_turn_on_agg() argument 600 tid_data = &mvmsta->tid_data[tid]; in rs_tl_turn_on_agg() 601 if (mvmsta->sta_state >= IEEE80211_STA_AUTHORIZED && in rs_tl_turn_on_agg() 717 struct iwl_mvm_sta *mvmsta, in rs_update_tid_tpt_stats() argument 725 tid_data = &mvmsta->tid_data[tid]; in rs_update_tid_tpt_stats() 747 struct iwl_mvm_sta *mvmsta, u8 tid, in rs_collect_tlc_data() argument 757 struct lq_sta_pers *pers = &mvmsta->deflink.lq_sta.rs_drv.pers; in rs_collect_tlc_data() 763 rs_update_tid_tpt_stats(mvm, mvmsta, tid, successes); in rs_collect_tlc_data() 1170 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_drv_mac80211_tx_status() local 1172 if (!mvmsta->vif) in rs_drv_mac80211_tx_status() [all …]
|
D | rs-fw.c | 421 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tlc_update_notif() local 441 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tlc_update_notif() 443 if (!mvmsta) { in iwl_mvm_tlc_update_notif() 451 mvm_link_sta = rcu_dereference(mvmsta->link[link_sta->link_id]); in iwl_mvm_tlc_update_notif() 495 mvmsta->amsdu_enabled = le32_to_cpu(notif->amsdu_enabled); in iwl_mvm_tlc_update_notif() 496 mvmsta->max_amsdu_len = size; in iwl_mvm_tlc_update_notif() 497 link_sta->agg.max_rc_amsdu_len = mvmsta->max_amsdu_len; in iwl_mvm_tlc_update_notif() 500 if (mvmsta->amsdu_enabled & BIT(i)) in iwl_mvm_tlc_update_notif() 514 mvmsta->amsdu_enabled); in iwl_mvm_tlc_update_notif() 585 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rs_fw_rate_init() local [all …]
|
D | coex.c | 186 struct iwl_mvm_sta *mvmsta; in iwl_mvm_bt_coex_reduced_txp() local 189 mvmsta = iwl_mvm_sta_from_staid_protected(mvm, sta_id); in iwl_mvm_bt_coex_reduced_txp() 190 if (!mvmsta) in iwl_mvm_bt_coex_reduced_txp() 194 if (mvmsta->bt_reduced_txpower == enable) in iwl_mvm_bt_coex_reduced_txp() 197 value = mvmsta->deflink.sta_id; in iwl_mvm_bt_coex_reduced_txp() 206 mvmsta->bt_reduced_txpower = enable; in iwl_mvm_bt_coex_reduced_txp() 593 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_coex_agg_time_limit() local 594 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_coex_agg_time_limit() 605 lut_type = iwl_get_coex_type(mvm, mvmsta->vif); in iwl_mvm_coex_agg_time_limit() 617 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_bt_coex_is_mimo_allowed() local [all …]
|
D | rx.c | 205 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_handle_tcm() local 223 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_handle_tcm() 224 mac = mvmsta->mac_id_n_color & FW_CTXT_ID_MSK; in iwl_mvm_rx_handle_tcm() 240 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_handle_tcm() 248 mvmsta->deflink.sta_id != mvmvif->deflink.ap_sta_id) in iwl_mvm_rx_handle_tcm() 274 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_csum() local 275 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_csum() 382 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_rx_mpdu() local 383 struct ieee80211_vif *vif = mvmsta->vif; in iwl_mvm_rx_rx_mpdu() 414 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_rx_mpdu() local [all …]
|
D | mac80211.c | 910 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_ampdu_check_trigger() local 911 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_ampdu_check_trigger() 1382 struct iwl_mvm_sta *mvmsta; in iwl_mvm_post_channel_switch() local 1385 mvmsta = iwl_mvm_sta_from_staid_protected(mvm, in iwl_mvm_post_channel_switch() 1388 if (WARN_ON(!mvmsta)) { in iwl_mvm_post_channel_switch() 1393 iwl_mvm_sta_modify_disable_tx(mvm, mvmsta, false); in iwl_mvm_post_channel_switch() 3173 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in __iwl_mvm_mac_sta_notify() local 3185 spin_lock_bh(&mvmsta->lock); in __iwl_mvm_mac_sta_notify() 3186 for (tid = 0; tid < ARRAY_SIZE(mvmsta->tid_data); tid++) { in __iwl_mvm_mac_sta_notify() 3187 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in __iwl_mvm_mac_sta_notify() [all …]
|
D | rxmq.c | 17 struct iwl_mvm_sta *mvmsta; in iwl_mvm_check_pn() local 52 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_check_pn() 57 ptk_pn = rcu_dereference(mvmsta->ptk_pn[keyidx]); in iwl_mvm_check_pn() 285 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_mgmt_prot() local 320 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_mgmt_prot() 322 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_mgmt_prot() 472 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_csum() local 478 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_csum() 695 struct iwl_mvm_sta *mvmsta; in iwl_mvm_reorder_timer_expired() local 705 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_reorder_timer_expired() [all …]
|
D | tt.c | 342 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tt_tx_protection() local 346 mvmsta = iwl_mvm_sta_from_staid_protected(mvm, i); in iwl_mvm_tt_tx_protection() 347 if (!mvmsta) in iwl_mvm_tt_tx_protection() 350 if (enable == mvmsta->tt_tx_protection) in iwl_mvm_tt_tx_protection() 352 err = iwl_mvm_tx_protection(mvm, mvmsta, enable); in iwl_mvm_tt_tx_protection() 359 mvmsta->tt_tx_protection = enable; in iwl_mvm_tt_tx_protection()
|
D | rs.h | 430 int iwl_mvm_tx_protection(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, 439 void iwl_mvm_rs_add_sta(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta); 449 int rs_fw_tx_protection(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta,
|
D | debugfs.c | 117 struct iwl_mvm_sta *mvmsta; in iwl_dbgfs_sta_drain_write() local 133 mvmsta = iwl_mvm_sta_from_staid_protected(mvm, sta_id); in iwl_dbgfs_sta_drain_write() 135 if (!mvmsta) in iwl_dbgfs_sta_drain_write() 138 ret = iwl_mvm_drain_sta(mvm, mvmsta, drain) ? : count; in iwl_dbgfs_sta_drain_write() 396 struct iwl_mvm_sta *mvmsta, in iwl_dbgfs_rs_data_read() argument 439 struct iwl_mvm_sta *mvmsta, in iwl_dbgfs_amsdu_len_write() argument 472 struct iwl_mvm_sta *mvmsta, in iwl_dbgfs_amsdu_len_read() argument 1615 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(link_sta->sta); in _iwl_dbgfs_link_sta_wrap_write() local 1616 struct iwl_mvm *mvm = iwl_mvm_vif_from_mac80211(mvmsta->vif)->mvm; in _iwl_dbgfs_link_sta_wrap_write() 1622 mvm_link_sta = rcu_dereference_protected(mvmsta->link[link_sta->link_id], in _iwl_dbgfs_link_sta_wrap_write() [all …]
|
D | mld-sta.c | 12 struct iwl_mvm_sta *mvmsta; in iwl_mvm_sta_fw_id_mask() local 19 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_fw_id_mask() 23 return BIT(mvmsta->deflink.sta_id); in iwl_mvm_sta_fw_id_mask() 26 for (link_id = 0; link_id < ARRAY_SIZE(mvmsta->link); link_id++) { in iwl_mvm_sta_fw_id_mask() 34 rcu_dereference_check(mvmsta->link[link_id], in iwl_mvm_sta_fw_id_mask() 864 struct iwl_mvm_sta *mvmsta, in iwl_mvm_mld_sta_modify_disable_tx() argument 870 cmd.sta_id = cpu_to_le32(mvmsta->deflink.sta_id); in iwl_mvm_mld_sta_modify_disable_tx()
|
D | sta.h | 568 int iwl_mvm_drain_sta(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, 571 struct iwl_mvm_sta *mvmsta, bool disable);
|
D | time-event.c | 177 struct iwl_mvm_sta *mvmsta; in iwl_mvm_te_check_disconnect() local 180 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, in iwl_mvm_te_check_disconnect() 182 if (!WARN_ON(!mvmsta)) in iwl_mvm_te_check_disconnect() 183 iwl_mvm_sta_modify_disable_tx(mvm, mvmsta, false); in iwl_mvm_te_check_disconnect()
|
D | d3.c | 289 struct iwl_mvm_sta *mvmsta; in iwl_mvm_wowlan_get_rsc_tsc_data() local 293 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_wowlan_get_rsc_tsc_data() 295 ptk_pn = rcu_dereference(mvmsta->ptk_pn[key->keyidx]); in iwl_mvm_wowlan_get_rsc_tsc_data() 410 struct iwl_mvm_sta *mvmsta; in iwl_mvm_wowlan_get_rsc_v5_data() local 414 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_wowlan_get_rsc_v5_data() 416 ptk_pn = rcu_dereference(mvmsta->ptk_pn[key->keyidx]); in iwl_mvm_wowlan_get_rsc_v5_data() 1624 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_set_aes_ptk_rx_seq() local 1635 ptk_pn = rcu_dereference(mvmsta->ptk_pn[key->keyidx]); in iwl_mvm_set_aes_ptk_rx_seq()
|
D | ops.c | 1698 struct iwl_mvm_sta *mvmsta; in iwl_mvm_queue_state_change() local 1713 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_queue_state_change() 1718 else if (mvmsta->sta_state != IEEE80211_STA_NOTEXIST) in iwl_mvm_queue_state_change() 1745 if (start && mvmsta->sta_state != IEEE80211_STA_NOTEXIST) { in iwl_mvm_queue_state_change()
|
D | mvm.h | 2043 struct iwl_mvm_sta *mvmsta,
|