Lines Matching refs:tid_data

440 		if (mvmsta->tid_data[tid].state == IWL_AGG_ON)  in iwl_mvm_get_queue_agg_tids()
487 if (mvmsta->tid_data[tid].state == IWL_AGG_ON) in iwl_mvm_remove_sta_queue_marking()
489 mvmsta->tid_data[tid].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_remove_sta_queue_marking()
795 mvmsta->tid_data[tid].txq_id = queue; in iwl_mvm_sta_alloc_queue_tvqm()
957 ssn = IEEE80211_SEQ_TO_SN(mvmsta->tid_data[tid].seq_number); in iwl_mvm_unshare_queue()
969 if (mvmsta->tid_data[tid].state == IWL_AGG_ON) { in iwl_mvm_unshare_queue()
1020 if (iwl_mvm_tid_queued(mvm, &mvmsta->tid_data[tid])) in iwl_mvm_remove_inactive_tids()
1024 if (mvmsta->tid_data[tid].state != IWL_AGG_OFF) in iwl_mvm_remove_inactive_tids()
1041 mvmsta->tid_data[tid].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_remove_inactive_tids()
1223 ssn = IEEE80211_SEQ_TO_SN(mvmsta->tid_data[tid].seq_number); in iwl_mvm_sta_alloc_queue()
1323 mvmsta->tid_data[tid].seq_number += 0x10; in iwl_mvm_sta_alloc_queue()
1326 mvmsta->tid_data[tid].txq_id = queue; in iwl_mvm_sta_alloc_queue()
1328 queue_state = mvmsta->tid_data[tid].state; in iwl_mvm_sta_alloc_queue()
1470 struct iwl_mvm_tid_data *tid_data = &mvm_sta->tid_data[i]; in iwl_mvm_realloc_queues_after_restart() local
1471 int txq_id = tid_data->txq_id; in iwl_mvm_realloc_queues_after_restart()
1492 tid_data->txq_id = txq_id; in iwl_mvm_realloc_queues_after_restart()
1500 tid_data->seq_number = 0; in iwl_mvm_realloc_queues_after_restart()
1502 u16 seq = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_realloc_queues_after_restart()
1628 u16 seq = mvm_sta->tid_data[i].seq_number; in iwl_mvm_add_sta()
1629 memset(&mvm_sta->tid_data[i], 0, sizeof(mvm_sta->tid_data[i])); in iwl_mvm_add_sta()
1630 mvm_sta->tid_data[i].seq_number = seq; in iwl_mvm_add_sta()
1636 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_add_sta()
1791 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_disable_sta_queues()
1792 if (mvm_sta->tid_data[i].txq_id == IWL_MVM_INVALID_QUEUE) in iwl_mvm_disable_sta_queues()
1795 iwl_mvm_disable_txq(mvm, sta, mvm_sta->tid_data[i].txq_id, i, in iwl_mvm_disable_sta_queues()
1797 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_disable_sta_queues()
1813 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_wait_sta_queues_empty()
1818 txq_id = mvm_sta->tid_data[i].txq_id; in iwl_mvm_wait_sta_queues_empty()
2759 struct iwl_mvm_tid_data *tid_data; in iwl_mvm_sta_tx_agg_start() local
2767 if (mvmsta->tid_data[tid].state != IWL_AGG_QUEUED && in iwl_mvm_sta_tx_agg_start()
2768 mvmsta->tid_data[tid].state != IWL_AGG_OFF) { in iwl_mvm_sta_tx_agg_start()
2771 mvmsta->tid_data[tid].state); in iwl_mvm_sta_tx_agg_start()
2777 if (mvmsta->tid_data[tid].txq_id == IWL_MVM_INVALID_QUEUE && in iwl_mvm_sta_tx_agg_start()
2794 txq_id = mvmsta->tid_data[tid].txq_id; in iwl_mvm_sta_tx_agg_start()
2827 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_start()
2828 tid_data->ssn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_sta_tx_agg_start()
2829 tid_data->txq_id = txq_id; in iwl_mvm_sta_tx_agg_start()
2830 *ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_start()
2834 mvmsta->sta_id, tid, txq_id, tid_data->ssn, in iwl_mvm_sta_tx_agg_start()
2835 tid_data->next_reclaimed); in iwl_mvm_sta_tx_agg_start()
2841 normalized_ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_start()
2845 if (normalized_ssn == tid_data->next_reclaimed) { in iwl_mvm_sta_tx_agg_start()
2846 tid_data->state = IWL_AGG_STARTING; in iwl_mvm_sta_tx_agg_start()
2849 tid_data->state = IWL_EMPTYING_HW_QUEUE_ADDBA; in iwl_mvm_sta_tx_agg_start()
2865 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_oper() local
2891 ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_oper()
2892 queue = tid_data->txq_id; in iwl_mvm_sta_tx_agg_oper()
2893 tid_data->state = IWL_AGG_ON; in iwl_mvm_sta_tx_agg_oper()
2895 tid_data->ssn = 0xffff; in iwl_mvm_sta_tx_agg_oper()
2896 tid_data->amsdu_in_ampdu_allowed = amsdu; in iwl_mvm_sta_tx_agg_oper()
2989 struct iwl_mvm_tid_data *tid_data) in iwl_mvm_unreserve_agg_queue() argument
2991 u16 txq_id = tid_data->txq_id; in iwl_mvm_unreserve_agg_queue()
3007 tid_data->txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_unreserve_agg_queue()
3015 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_stop() local
3030 txq_id = tid_data->txq_id; in iwl_mvm_sta_tx_agg_stop()
3033 mvmsta->sta_id, tid, txq_id, tid_data->state); in iwl_mvm_sta_tx_agg_stop()
3037 iwl_mvm_unreserve_agg_queue(mvm, mvmsta, tid_data); in iwl_mvm_sta_tx_agg_stop()
3039 switch (tid_data->state) { in iwl_mvm_sta_tx_agg_stop()
3041 tid_data->ssn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_sta_tx_agg_stop()
3045 tid_data->ssn, tid_data->next_reclaimed); in iwl_mvm_sta_tx_agg_stop()
3047 tid_data->ssn = 0xffff; in iwl_mvm_sta_tx_agg_stop()
3048 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_stop()
3066 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_stop()
3072 mvmsta->sta_id, tid, tid_data->state); in iwl_mvm_sta_tx_agg_stop()
3074 "\ttid_data->txq_id = %d\n", tid_data->txq_id); in iwl_mvm_sta_tx_agg_stop()
3087 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_flush() local
3096 txq_id = tid_data->txq_id; in iwl_mvm_sta_tx_agg_flush()
3098 mvmsta->sta_id, tid, txq_id, tid_data->state); in iwl_mvm_sta_tx_agg_flush()
3099 old_state = tid_data->state; in iwl_mvm_sta_tx_agg_flush()
3100 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_flush()
3104 iwl_mvm_unreserve_agg_queue(mvm, mvmsta, tid_data); in iwl_mvm_sta_tx_agg_flush()
3691 struct iwl_mvm_tid_data *tid_data; in iwl_mvm_sta_modify_sleep_tx_count() local
3694 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_modify_sleep_tx_count()
3696 n_queued = iwl_mvm_tid_queued(mvm, tid_data); in iwl_mvm_sta_modify_sleep_tx_count()
3874 u16 iwl_mvm_tid_queued(struct iwl_mvm *mvm, struct iwl_mvm_tid_data *tid_data) in iwl_mvm_tid_queued() argument
3876 u16 sn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_tid_queued()
3885 return ieee80211_sn_sub(sn, tid_data->next_reclaimed); in iwl_mvm_tid_queued()