Lines Matching refs:tid_data
412 if (mvmsta->tid_data[tid].state == IWL_AGG_ON) in iwl_mvm_get_queue_agg_tids()
459 if (mvmsta->tid_data[tid].state == IWL_AGG_ON) in iwl_mvm_remove_sta_queue_marking()
461 mvmsta->tid_data[tid].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_remove_sta_queue_marking()
778 mvmsta->tid_data[tid].txq_id = queue; in iwl_mvm_sta_alloc_queue_tvqm()
940 ssn = IEEE80211_SEQ_TO_SN(mvmsta->tid_data[tid].seq_number); in iwl_mvm_unshare_queue()
952 if (mvmsta->tid_data[tid].state == IWL_AGG_ON) { in iwl_mvm_unshare_queue()
1003 if (iwl_mvm_tid_queued(mvm, &mvmsta->tid_data[tid])) in iwl_mvm_remove_inactive_tids()
1007 if (mvmsta->tid_data[tid].state != IWL_AGG_OFF) in iwl_mvm_remove_inactive_tids()
1024 mvmsta->tid_data[tid].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_remove_inactive_tids()
1205 ssn = IEEE80211_SEQ_TO_SN(mvmsta->tid_data[tid].seq_number); in iwl_mvm_sta_alloc_queue()
1305 mvmsta->tid_data[tid].seq_number += 0x10; in iwl_mvm_sta_alloc_queue()
1308 mvmsta->tid_data[tid].txq_id = queue; in iwl_mvm_sta_alloc_queue()
1310 queue_state = mvmsta->tid_data[tid].state; in iwl_mvm_sta_alloc_queue()
1455 struct iwl_mvm_tid_data *tid_data = &mvm_sta->tid_data[i]; in iwl_mvm_realloc_queues_after_restart() local
1456 int txq_id = tid_data->txq_id; in iwl_mvm_realloc_queues_after_restart()
1477 tid_data->txq_id = txq_id; in iwl_mvm_realloc_queues_after_restart()
1485 tid_data->seq_number = 0; in iwl_mvm_realloc_queues_after_restart()
1487 u16 seq = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_realloc_queues_after_restart()
1620 u16 seq = mvm_sta->tid_data[i].seq_number; in iwl_mvm_add_sta()
1621 memset(&mvm_sta->tid_data[i], 0, sizeof(mvm_sta->tid_data[i])); in iwl_mvm_add_sta()
1622 mvm_sta->tid_data[i].seq_number = seq; in iwl_mvm_add_sta()
1628 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_add_sta()
1783 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_disable_sta_queues()
1784 if (mvm_sta->tid_data[i].txq_id == IWL_MVM_INVALID_QUEUE) in iwl_mvm_disable_sta_queues()
1787 iwl_mvm_disable_txq(mvm, sta, &mvm_sta->tid_data[i].txq_id, i, in iwl_mvm_disable_sta_queues()
1789 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_disable_sta_queues()
1805 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_wait_sta_queues_empty()
1810 txq_id = mvm_sta->tid_data[i].txq_id; in iwl_mvm_wait_sta_queues_empty()
2769 struct iwl_mvm_tid_data *tid_data; in iwl_mvm_sta_tx_agg_start() local
2777 if (mvmsta->tid_data[tid].state != IWL_AGG_QUEUED && in iwl_mvm_sta_tx_agg_start()
2778 mvmsta->tid_data[tid].state != IWL_AGG_OFF) { in iwl_mvm_sta_tx_agg_start()
2781 mvmsta->tid_data[tid].state); in iwl_mvm_sta_tx_agg_start()
2787 if (mvmsta->tid_data[tid].txq_id == IWL_MVM_INVALID_QUEUE && in iwl_mvm_sta_tx_agg_start()
2804 txq_id = mvmsta->tid_data[tid].txq_id; in iwl_mvm_sta_tx_agg_start()
2837 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_start()
2838 tid_data->ssn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_sta_tx_agg_start()
2839 tid_data->txq_id = txq_id; in iwl_mvm_sta_tx_agg_start()
2840 *ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_start()
2844 mvmsta->sta_id, tid, txq_id, tid_data->ssn, in iwl_mvm_sta_tx_agg_start()
2845 tid_data->next_reclaimed); in iwl_mvm_sta_tx_agg_start()
2851 normalized_ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_start()
2855 if (normalized_ssn == tid_data->next_reclaimed) { in iwl_mvm_sta_tx_agg_start()
2856 tid_data->state = IWL_AGG_STARTING; in iwl_mvm_sta_tx_agg_start()
2859 tid_data->state = IWL_EMPTYING_HW_QUEUE_ADDBA; in iwl_mvm_sta_tx_agg_start()
2874 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_oper() local
2900 ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_oper()
2901 queue = tid_data->txq_id; in iwl_mvm_sta_tx_agg_oper()
2902 tid_data->state = IWL_AGG_ON; in iwl_mvm_sta_tx_agg_oper()
2904 tid_data->ssn = 0xffff; in iwl_mvm_sta_tx_agg_oper()
2905 tid_data->amsdu_in_ampdu_allowed = amsdu; in iwl_mvm_sta_tx_agg_oper()
2998 struct iwl_mvm_tid_data *tid_data) in iwl_mvm_unreserve_agg_queue() argument
3000 u16 txq_id = tid_data->txq_id; in iwl_mvm_unreserve_agg_queue()
3016 tid_data->txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_unreserve_agg_queue()
3024 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_stop() local
3039 txq_id = tid_data->txq_id; in iwl_mvm_sta_tx_agg_stop()
3042 mvmsta->sta_id, tid, txq_id, tid_data->state); in iwl_mvm_sta_tx_agg_stop()
3046 iwl_mvm_unreserve_agg_queue(mvm, mvmsta, tid_data); in iwl_mvm_sta_tx_agg_stop()
3048 switch (tid_data->state) { in iwl_mvm_sta_tx_agg_stop()
3050 tid_data->ssn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_sta_tx_agg_stop()
3054 tid_data->ssn, tid_data->next_reclaimed); in iwl_mvm_sta_tx_agg_stop()
3056 tid_data->ssn = 0xffff; in iwl_mvm_sta_tx_agg_stop()
3057 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_stop()
3075 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_stop()
3081 mvmsta->sta_id, tid, tid_data->state); in iwl_mvm_sta_tx_agg_stop()
3083 "\ttid_data->txq_id = %d\n", tid_data->txq_id); in iwl_mvm_sta_tx_agg_stop()
3096 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_flush() local
3105 txq_id = tid_data->txq_id; in iwl_mvm_sta_tx_agg_flush()
3107 mvmsta->sta_id, tid, txq_id, tid_data->state); in iwl_mvm_sta_tx_agg_flush()
3108 old_state = tid_data->state; in iwl_mvm_sta_tx_agg_flush()
3109 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_flush()
3113 iwl_mvm_unreserve_agg_queue(mvm, mvmsta, tid_data); in iwl_mvm_sta_tx_agg_flush()
3750 struct iwl_mvm_tid_data *tid_data; in iwl_mvm_sta_modify_sleep_tx_count() local
3753 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_modify_sleep_tx_count()
3755 n_queued = iwl_mvm_tid_queued(mvm, tid_data); in iwl_mvm_sta_modify_sleep_tx_count()
3938 u16 iwl_mvm_tid_queued(struct iwl_mvm *mvm, struct iwl_mvm_tid_data *tid_data) in iwl_mvm_tid_queued() argument
3940 u16 sn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_tid_queued()
3949 return ieee80211_sn_sub(sn, tid_data->next_reclaimed); in iwl_mvm_tid_queued()