Lines Matching refs:tid_data

430 		if (mvmsta->tid_data[tid].state == IWL_AGG_ON)  in iwl_mvm_get_queue_agg_tids()
477 if (mvmsta->tid_data[tid].state == IWL_AGG_ON) in iwl_mvm_remove_sta_queue_marking()
479 mvmsta->tid_data[tid].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_remove_sta_queue_marking()
849 mvmsta->tid_data[tid].txq_id = queue; in iwl_mvm_sta_alloc_queue_tvqm()
1011 ssn = IEEE80211_SEQ_TO_SN(mvmsta->tid_data[tid].seq_number); in iwl_mvm_unshare_queue()
1023 if (mvmsta->tid_data[tid].state == IWL_AGG_ON) { in iwl_mvm_unshare_queue()
1074 if (iwl_mvm_tid_queued(mvm, &mvmsta->tid_data[tid])) in iwl_mvm_remove_inactive_tids()
1078 if (mvmsta->tid_data[tid].state != IWL_AGG_OFF) in iwl_mvm_remove_inactive_tids()
1095 mvmsta->tid_data[tid].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_remove_inactive_tids()
1276 ssn = IEEE80211_SEQ_TO_SN(mvmsta->tid_data[tid].seq_number); in iwl_mvm_sta_alloc_queue()
1376 mvmsta->tid_data[tid].seq_number += 0x10; in iwl_mvm_sta_alloc_queue()
1379 mvmsta->tid_data[tid].txq_id = queue; in iwl_mvm_sta_alloc_queue()
1381 queue_state = mvmsta->tid_data[tid].state; in iwl_mvm_sta_alloc_queue()
1526 struct iwl_mvm_tid_data *tid_data = &mvm_sta->tid_data[i]; in iwl_mvm_realloc_queues_after_restart() local
1527 int txq_id = tid_data->txq_id; in iwl_mvm_realloc_queues_after_restart()
1548 tid_data->txq_id = txq_id; in iwl_mvm_realloc_queues_after_restart()
1556 tid_data->seq_number = 0; in iwl_mvm_realloc_queues_after_restart()
1558 u16 seq = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_realloc_queues_after_restart()
1690 u16 seq = mvm_sta->tid_data[i].seq_number; in iwl_mvm_add_sta()
1691 memset(&mvm_sta->tid_data[i], 0, sizeof(mvm_sta->tid_data[i])); in iwl_mvm_add_sta()
1692 mvm_sta->tid_data[i].seq_number = seq; in iwl_mvm_add_sta()
1698 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_add_sta()
1853 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_disable_sta_queues()
1854 if (mvm_sta->tid_data[i].txq_id == IWL_MVM_INVALID_QUEUE) in iwl_mvm_disable_sta_queues()
1857 iwl_mvm_disable_txq(mvm, sta, &mvm_sta->tid_data[i].txq_id, i); in iwl_mvm_disable_sta_queues()
1858 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_disable_sta_queues()
1875 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_wait_sta_queues_empty()
1880 txq_id = mvm_sta->tid_data[i].txq_id; in iwl_mvm_wait_sta_queues_empty()
2925 struct iwl_mvm_tid_data *tid_data; in iwl_mvm_sta_tx_agg_start() local
2933 if (mvmsta->tid_data[tid].state != IWL_AGG_QUEUED && in iwl_mvm_sta_tx_agg_start()
2934 mvmsta->tid_data[tid].state != IWL_AGG_OFF) { in iwl_mvm_sta_tx_agg_start()
2937 mvmsta->tid_data[tid].state); in iwl_mvm_sta_tx_agg_start()
2943 if (mvmsta->tid_data[tid].txq_id == IWL_MVM_INVALID_QUEUE && in iwl_mvm_sta_tx_agg_start()
2960 txq_id = mvmsta->tid_data[tid].txq_id; in iwl_mvm_sta_tx_agg_start()
2993 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_start()
2994 tid_data->ssn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_sta_tx_agg_start()
2995 tid_data->txq_id = txq_id; in iwl_mvm_sta_tx_agg_start()
2996 *ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_start()
3000 mvmsta->sta_id, tid, txq_id, tid_data->ssn, in iwl_mvm_sta_tx_agg_start()
3001 tid_data->next_reclaimed); in iwl_mvm_sta_tx_agg_start()
3007 normalized_ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_start()
3011 if (normalized_ssn == tid_data->next_reclaimed) { in iwl_mvm_sta_tx_agg_start()
3012 tid_data->state = IWL_AGG_STARTING; in iwl_mvm_sta_tx_agg_start()
3015 tid_data->state = IWL_EMPTYING_HW_QUEUE_ADDBA; in iwl_mvm_sta_tx_agg_start()
3030 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_oper() local
3056 ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_oper()
3057 queue = tid_data->txq_id; in iwl_mvm_sta_tx_agg_oper()
3058 tid_data->state = IWL_AGG_ON; in iwl_mvm_sta_tx_agg_oper()
3060 tid_data->ssn = 0xffff; in iwl_mvm_sta_tx_agg_oper()
3061 tid_data->amsdu_in_ampdu_allowed = amsdu; in iwl_mvm_sta_tx_agg_oper()
3154 struct iwl_mvm_tid_data *tid_data) in iwl_mvm_unreserve_agg_queue() argument
3156 u16 txq_id = tid_data->txq_id; in iwl_mvm_unreserve_agg_queue()
3172 tid_data->txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_unreserve_agg_queue()
3180 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_stop() local
3195 txq_id = tid_data->txq_id; in iwl_mvm_sta_tx_agg_stop()
3198 mvmsta->sta_id, tid, txq_id, tid_data->state); in iwl_mvm_sta_tx_agg_stop()
3202 iwl_mvm_unreserve_agg_queue(mvm, mvmsta, tid_data); in iwl_mvm_sta_tx_agg_stop()
3204 switch (tid_data->state) { in iwl_mvm_sta_tx_agg_stop()
3206 tid_data->ssn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_sta_tx_agg_stop()
3210 tid_data->ssn, tid_data->next_reclaimed); in iwl_mvm_sta_tx_agg_stop()
3212 tid_data->ssn = 0xffff; in iwl_mvm_sta_tx_agg_stop()
3213 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_stop()
3231 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_stop()
3237 mvmsta->sta_id, tid, tid_data->state); in iwl_mvm_sta_tx_agg_stop()
3239 "\ttid_data->txq_id = %d\n", tid_data->txq_id); in iwl_mvm_sta_tx_agg_stop()
3252 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_flush() local
3261 txq_id = tid_data->txq_id; in iwl_mvm_sta_tx_agg_flush()
3263 mvmsta->sta_id, tid, txq_id, tid_data->state); in iwl_mvm_sta_tx_agg_flush()
3264 old_state = tid_data->state; in iwl_mvm_sta_tx_agg_flush()
3265 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_flush()
3269 iwl_mvm_unreserve_agg_queue(mvm, mvmsta, tid_data); in iwl_mvm_sta_tx_agg_flush()
3905 struct iwl_mvm_tid_data *tid_data; in iwl_mvm_sta_modify_sleep_tx_count() local
3908 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_modify_sleep_tx_count()
3910 n_queued = iwl_mvm_tid_queued(mvm, tid_data); in iwl_mvm_sta_modify_sleep_tx_count()
4093 u16 iwl_mvm_tid_queued(struct iwl_mvm *mvm, struct iwl_mvm_tid_data *tid_data) in iwl_mvm_tid_queued() argument
4095 u16 sn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_tid_queued()
4104 return ieee80211_sn_sub(sn, tid_data->next_reclaimed); in iwl_mvm_tid_queued()