Lines Matching refs:mvmsta

211 	struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta);  in iwl_mvm_tdls_sta_init()  local
231 mvmsta->hw_queue[ac] = queue; in iwl_mvm_tdls_sta_init()
236 iwl_mvm_enable_ac_txq(mvm, mvmsta->hw_queue[ac], in iwl_mvm_tdls_sta_init()
238 mvmsta->tfd_queue_msk |= BIT(mvmsta->hw_queue[ac]); in iwl_mvm_tdls_sta_init()
247 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tdls_sta_deinit() local
254 sta_msk = mvmsta->tfd_queue_msk; in iwl_mvm_tdls_sta_deinit()
341 int iwl_mvm_drain_sta(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, in iwl_mvm_drain_sta() argument
350 cmd.mac_id_n_color = cpu_to_le32(mvmsta->mac_id_n_color); in iwl_mvm_drain_sta()
351 cmd.sta_id = mvmsta->sta_id; in iwl_mvm_drain_sta()
365 mvmsta->sta_id); in iwl_mvm_drain_sta()
370 mvmsta->sta_id); in iwl_mvm_drain_sta()
918 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_tx_agg_start() local
925 if (mvmsta->tid_data[tid].state != IWL_AGG_OFF) { in iwl_mvm_sta_tx_agg_start()
927 mvmsta->tid_data[tid].state); in iwl_mvm_sta_tx_agg_start()
944 spin_lock_bh(&mvmsta->lock); in iwl_mvm_sta_tx_agg_start()
948 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_sta_tx_agg_start()
956 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_start()
963 mvmsta->sta_id, tid, txq_id, tid_data->ssn, in iwl_mvm_sta_tx_agg_start()
973 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_sta_tx_agg_start()
981 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_tx_agg_oper() local
982 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_oper()
988 BUILD_BUG_ON((sizeof(mvmsta->agg_tids) * BITS_PER_BYTE) in iwl_mvm_sta_tx_agg_oper()
993 spin_lock_bh(&mvmsta->lock); in iwl_mvm_sta_tx_agg_oper()
997 mvmsta->agg_tids |= BIT(tid); in iwl_mvm_sta_tx_agg_oper()
999 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_sta_tx_agg_oper()
1007 iwl_mvm_enable_agg_txq(mvm, queue, fifo, mvmsta->sta_id, tid, in iwl_mvm_sta_tx_agg_oper()
1017 mvmsta->max_agg_bufsize = in iwl_mvm_sta_tx_agg_oper()
1018 min(mvmsta->max_agg_bufsize, buf_size); in iwl_mvm_sta_tx_agg_oper()
1019 mvmsta->lq_sta.lq.agg_frame_cnt_limit = mvmsta->max_agg_bufsize; in iwl_mvm_sta_tx_agg_oper()
1024 return iwl_mvm_send_lq_cmd(mvm, &mvmsta->lq_sta.lq, false); in iwl_mvm_sta_tx_agg_oper()
1030 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_tx_agg_stop() local
1031 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_stop()
1045 spin_lock_bh(&mvmsta->lock); in iwl_mvm_sta_tx_agg_stop()
1050 mvmsta->sta_id, tid, txq_id, tid_data->state); in iwl_mvm_sta_tx_agg_stop()
1052 mvmsta->agg_tids &= ~BIT(tid); in iwl_mvm_sta_tx_agg_stop()
1072 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_sta_tx_agg_stop()
1098 mvmsta->sta_id, tid, tid_data->state); in iwl_mvm_sta_tx_agg_stop()
1104 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_sta_tx_agg_stop()
1112 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_tx_agg_flush() local
1113 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_flush()
1121 spin_lock_bh(&mvmsta->lock); in iwl_mvm_sta_tx_agg_flush()
1124 mvmsta->sta_id, tid, txq_id, tid_data->state); in iwl_mvm_sta_tx_agg_flush()
1127 mvmsta->agg_tids &= ~BIT(tid); in iwl_mvm_sta_tx_agg_flush()
1128 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_sta_tx_agg_flush()
1131 iwl_mvm_drain_sta(mvm, mvmsta, true); in iwl_mvm_sta_tx_agg_flush()
1135 mvmsta->tfd_queue_msk); in iwl_mvm_sta_tx_agg_flush()
1136 iwl_mvm_drain_sta(mvm, mvmsta, false); in iwl_mvm_sta_tx_agg_flush()
1567 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_modify_ps_wake() local
1570 .sta_id = mvmsta->sta_id, in iwl_mvm_sta_modify_ps_wake()
1572 .mac_id_n_color = cpu_to_le32(mvmsta->mac_id_n_color), in iwl_mvm_sta_modify_ps_wake()
1587 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_modify_sleep_tx_count() local
1590 .sta_id = mvmsta->sta_id, in iwl_mvm_sta_modify_sleep_tx_count()
1593 .mac_id_n_color = cpu_to_le32(mvmsta->mac_id_n_color), in iwl_mvm_sta_modify_sleep_tx_count()
1615 spin_lock_bh(&mvmsta->lock); in iwl_mvm_sta_modify_sleep_tx_count()
1620 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_modify_sleep_tx_count()
1625 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_sta_modify_sleep_tx_count()
1638 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_sta_modify_sleep_tx_count()
1652 mvmsta->next_status_eosp = true; in iwl_mvm_sta_modify_sleep_tx_count()
1685 struct iwl_mvm_sta *mvmsta, bool disable) in iwl_mvm_sta_modify_disable_tx() argument
1689 .sta_id = mvmsta->sta_id, in iwl_mvm_sta_modify_disable_tx()
1692 .mac_id_n_color = cpu_to_le32(mvmsta->mac_id_n_color), in iwl_mvm_sta_modify_disable_tx()
1758 struct iwl_mvm_sta *mvmsta; in iwl_mvm_csa_client_absent() local
1762 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, mvmvif->ap_sta_id); in iwl_mvm_csa_client_absent()
1764 if (!WARN_ON(!mvmsta)) in iwl_mvm_csa_client_absent()
1765 iwl_mvm_sta_modify_disable_tx(mvm, mvmsta, true); in iwl_mvm_csa_client_absent()