Lines Matching refs:tid_data

456 		if (mvmsta->tid_data[tid].state == IWL_AGG_ON)  in iwl_mvm_get_queue_agg_tids()
503 if (mvmsta->tid_data[tid].state == IWL_AGG_ON) in iwl_mvm_remove_sta_queue_marking()
505 mvmsta->tid_data[tid].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_remove_sta_queue_marking()
821 mvmsta->tid_data[tid].txq_id = queue; in iwl_mvm_sta_alloc_queue_tvqm()
983 ssn = IEEE80211_SEQ_TO_SN(mvmsta->tid_data[tid].seq_number); in iwl_mvm_unshare_queue()
995 if (mvmsta->tid_data[tid].state == IWL_AGG_ON) { in iwl_mvm_unshare_queue()
1046 if (iwl_mvm_tid_queued(mvm, &mvmsta->tid_data[tid])) in iwl_mvm_remove_inactive_tids()
1050 if (mvmsta->tid_data[tid].state != IWL_AGG_OFF) in iwl_mvm_remove_inactive_tids()
1067 mvmsta->tid_data[tid].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_remove_inactive_tids()
1247 ssn = IEEE80211_SEQ_TO_SN(mvmsta->tid_data[tid].seq_number); in iwl_mvm_sta_alloc_queue()
1347 mvmsta->tid_data[tid].seq_number += 0x10; in iwl_mvm_sta_alloc_queue()
1350 mvmsta->tid_data[tid].txq_id = queue; in iwl_mvm_sta_alloc_queue()
1352 queue_state = mvmsta->tid_data[tid].state; in iwl_mvm_sta_alloc_queue()
1496 struct iwl_mvm_tid_data *tid_data = &mvm_sta->tid_data[i]; in iwl_mvm_realloc_queues_after_restart() local
1497 int txq_id = tid_data->txq_id; in iwl_mvm_realloc_queues_after_restart()
1518 tid_data->txq_id = txq_id; in iwl_mvm_realloc_queues_after_restart()
1526 tid_data->seq_number = 0; in iwl_mvm_realloc_queues_after_restart()
1528 u16 seq = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_realloc_queues_after_restart()
1661 u16 seq = mvm_sta->tid_data[i].seq_number; in iwl_mvm_add_sta()
1662 memset(&mvm_sta->tid_data[i], 0, sizeof(mvm_sta->tid_data[i])); in iwl_mvm_add_sta()
1663 mvm_sta->tid_data[i].seq_number = seq; in iwl_mvm_add_sta()
1669 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_add_sta()
1824 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_disable_sta_queues()
1825 if (mvm_sta->tid_data[i].txq_id == IWL_MVM_INVALID_QUEUE) in iwl_mvm_disable_sta_queues()
1828 iwl_mvm_disable_txq(mvm, sta, mvm_sta->tid_data[i].txq_id, i, in iwl_mvm_disable_sta_queues()
1830 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_disable_sta_queues()
1846 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_wait_sta_queues_empty()
1851 txq_id = mvm_sta->tid_data[i].txq_id; in iwl_mvm_wait_sta_queues_empty()
2803 struct iwl_mvm_tid_data *tid_data; in iwl_mvm_sta_tx_agg_start() local
2811 if (mvmsta->tid_data[tid].state != IWL_AGG_QUEUED && in iwl_mvm_sta_tx_agg_start()
2812 mvmsta->tid_data[tid].state != IWL_AGG_OFF) { in iwl_mvm_sta_tx_agg_start()
2815 mvmsta->tid_data[tid].state); in iwl_mvm_sta_tx_agg_start()
2821 if (mvmsta->tid_data[tid].txq_id == IWL_MVM_INVALID_QUEUE && in iwl_mvm_sta_tx_agg_start()
2838 txq_id = mvmsta->tid_data[tid].txq_id; in iwl_mvm_sta_tx_agg_start()
2871 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_start()
2872 tid_data->ssn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_sta_tx_agg_start()
2873 tid_data->txq_id = txq_id; in iwl_mvm_sta_tx_agg_start()
2874 *ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_start()
2878 mvmsta->sta_id, tid, txq_id, tid_data->ssn, in iwl_mvm_sta_tx_agg_start()
2879 tid_data->next_reclaimed); in iwl_mvm_sta_tx_agg_start()
2885 normalized_ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_start()
2889 if (normalized_ssn == tid_data->next_reclaimed) { in iwl_mvm_sta_tx_agg_start()
2890 tid_data->state = IWL_AGG_STARTING; in iwl_mvm_sta_tx_agg_start()
2893 tid_data->state = IWL_EMPTYING_HW_QUEUE_ADDBA; in iwl_mvm_sta_tx_agg_start()
2908 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_oper() local
2934 ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_oper()
2935 queue = tid_data->txq_id; in iwl_mvm_sta_tx_agg_oper()
2936 tid_data->state = IWL_AGG_ON; in iwl_mvm_sta_tx_agg_oper()
2938 tid_data->ssn = 0xffff; in iwl_mvm_sta_tx_agg_oper()
2939 tid_data->amsdu_in_ampdu_allowed = amsdu; in iwl_mvm_sta_tx_agg_oper()
3032 struct iwl_mvm_tid_data *tid_data) in iwl_mvm_unreserve_agg_queue() argument
3034 u16 txq_id = tid_data->txq_id; in iwl_mvm_unreserve_agg_queue()
3050 tid_data->txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_unreserve_agg_queue()
3058 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_stop() local
3073 txq_id = tid_data->txq_id; in iwl_mvm_sta_tx_agg_stop()
3076 mvmsta->sta_id, tid, txq_id, tid_data->state); in iwl_mvm_sta_tx_agg_stop()
3080 iwl_mvm_unreserve_agg_queue(mvm, mvmsta, tid_data); in iwl_mvm_sta_tx_agg_stop()
3082 switch (tid_data->state) { in iwl_mvm_sta_tx_agg_stop()
3084 tid_data->ssn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_sta_tx_agg_stop()
3088 tid_data->ssn, tid_data->next_reclaimed); in iwl_mvm_sta_tx_agg_stop()
3090 tid_data->ssn = 0xffff; in iwl_mvm_sta_tx_agg_stop()
3091 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_stop()
3109 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_stop()
3115 mvmsta->sta_id, tid, tid_data->state); in iwl_mvm_sta_tx_agg_stop()
3117 "\ttid_data->txq_id = %d\n", tid_data->txq_id); in iwl_mvm_sta_tx_agg_stop()
3130 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_flush() local
3139 txq_id = tid_data->txq_id; in iwl_mvm_sta_tx_agg_flush()
3141 mvmsta->sta_id, tid, txq_id, tid_data->state); in iwl_mvm_sta_tx_agg_flush()
3142 old_state = tid_data->state; in iwl_mvm_sta_tx_agg_flush()
3143 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_flush()
3147 iwl_mvm_unreserve_agg_queue(mvm, mvmsta, tid_data); in iwl_mvm_sta_tx_agg_flush()
3738 struct iwl_mvm_tid_data *tid_data; in iwl_mvm_sta_modify_sleep_tx_count() local
3741 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_modify_sleep_tx_count()
3743 n_queued = iwl_mvm_tid_queued(mvm, tid_data); in iwl_mvm_sta_modify_sleep_tx_count()
3921 u16 iwl_mvm_tid_queued(struct iwl_mvm *mvm, struct iwl_mvm_tid_data *tid_data) in iwl_mvm_tid_queued() argument
3923 u16 sn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_tid_queued()
3932 return ieee80211_sn_sub(sn, tid_data->next_reclaimed); in iwl_mvm_tid_queued()