Lines Matching refs:tid_data
387 if (mvmsta->tid_data[tid].state == IWL_AGG_ON) in iwl_mvm_get_queue_agg_tids()
433 if (mvmsta->tid_data[tid].state == IWL_AGG_ON) in iwl_mvm_remove_sta_queue_marking()
435 mvmsta->tid_data[tid].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_remove_sta_queue_marking()
697 mvmsta->tid_data[tid].txq_id = queue; in iwl_mvm_sta_alloc_queue_tvqm()
698 mvmsta->tid_data[tid].is_tid_active = true; in iwl_mvm_sta_alloc_queue_tvqm()
872 mvmsta->tid_data[tid].seq_number += 0x10; in iwl_mvm_sta_alloc_queue()
873 mvmsta->tid_data[tid].txq_id = queue; in iwl_mvm_sta_alloc_queue()
874 mvmsta->tid_data[tid].is_tid_active = true; in iwl_mvm_sta_alloc_queue()
876 queue_state = mvmsta->tid_data[tid].state; in iwl_mvm_sta_alloc_queue()
992 ssn = IEEE80211_SEQ_TO_SN(mvmsta->tid_data[tid].seq_number); in iwl_mvm_unshare_queue()
1003 if (mvmsta->tid_data[tid].state == IWL_AGG_ON) { in iwl_mvm_unshare_queue()
1044 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_tx_deferred_stream() local
1054 skb = skb_peek(&tid_data->deferred_tx_frames); in iwl_mvm_tx_deferred_stream()
1062 if (tid_data->txq_id == IWL_MVM_INVALID_QUEUE && in iwl_mvm_tx_deferred_stream()
1080 skb_queue_splice_init(&tid_data->deferred_tx_frames, &deferred_tx); in iwl_mvm_tx_deferred_stream()
1243 struct iwl_mvm_tid_data *tid_data = &mvm_sta->tid_data[i]; in iwl_mvm_realloc_queues_after_restart() local
1244 int txq_id = tid_data->txq_id; in iwl_mvm_realloc_queues_after_restart()
1251 skb_queue_head_init(&tid_data->deferred_tx_frames); in iwl_mvm_realloc_queues_after_restart()
1263 tid_data->txq_id = txq_id; in iwl_mvm_realloc_queues_after_restart()
1271 tid_data->seq_number = 0; in iwl_mvm_realloc_queues_after_restart()
1273 u16 seq = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_realloc_queues_after_restart()
1400 u16 seq = mvm_sta->tid_data[i].seq_number; in iwl_mvm_add_sta()
1401 memset(&mvm_sta->tid_data[i], 0, sizeof(mvm_sta->tid_data[i])); in iwl_mvm_add_sta()
1402 mvm_sta->tid_data[i].seq_number = seq; in iwl_mvm_add_sta()
1408 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_add_sta()
1409 skb_queue_head_init(&mvm_sta->tid_data[i].deferred_tx_frames); in iwl_mvm_add_sta()
1551 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_disable_sta_queues()
1552 if (mvm_sta->tid_data[i].txq_id == IWL_MVM_INVALID_QUEUE) in iwl_mvm_disable_sta_queues()
1556 iwl_mvm_disable_txq(mvm, mvm_sta->tid_data[i].txq_id, in iwl_mvm_disable_sta_queues()
1558 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_disable_sta_queues()
1567 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_wait_sta_queues_empty()
1572 txq_id = mvm_sta->tid_data[i].txq_id; in iwl_mvm_wait_sta_queues_empty()
2453 struct iwl_mvm_tid_data *tid_data; in iwl_mvm_sta_tx_agg_start() local
2461 if (mvmsta->tid_data[tid].state != IWL_AGG_QUEUED && in iwl_mvm_sta_tx_agg_start()
2462 mvmsta->tid_data[tid].state != IWL_AGG_OFF) { in iwl_mvm_sta_tx_agg_start()
2465 mvmsta->tid_data[tid].state); in iwl_mvm_sta_tx_agg_start()
2471 if (mvmsta->tid_data[tid].txq_id == IWL_MVM_INVALID_QUEUE && in iwl_mvm_sta_tx_agg_start()
2497 txq_id = mvmsta->tid_data[tid].txq_id; in iwl_mvm_sta_tx_agg_start()
2525 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_start()
2526 tid_data->ssn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_sta_tx_agg_start()
2527 tid_data->txq_id = txq_id; in iwl_mvm_sta_tx_agg_start()
2528 *ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_start()
2532 mvmsta->sta_id, tid, txq_id, tid_data->ssn, in iwl_mvm_sta_tx_agg_start()
2533 tid_data->next_reclaimed); in iwl_mvm_sta_tx_agg_start()
2539 normalized_ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_start()
2543 if (normalized_ssn == tid_data->next_reclaimed) { in iwl_mvm_sta_tx_agg_start()
2544 tid_data->state = IWL_AGG_STARTING; in iwl_mvm_sta_tx_agg_start()
2547 tid_data->state = IWL_EMPTYING_HW_QUEUE_ADDBA; in iwl_mvm_sta_tx_agg_start()
2566 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_oper() local
2592 ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_oper()
2593 queue = tid_data->txq_id; in iwl_mvm_sta_tx_agg_oper()
2594 tid_data->state = IWL_AGG_ON; in iwl_mvm_sta_tx_agg_oper()
2596 tid_data->ssn = 0xffff; in iwl_mvm_sta_tx_agg_oper()
2597 tid_data->amsdu_in_ampdu_allowed = amsdu; in iwl_mvm_sta_tx_agg_oper()
2695 struct iwl_mvm_tid_data *tid_data) in iwl_mvm_unreserve_agg_queue() argument
2697 u16 txq_id = tid_data->txq_id; in iwl_mvm_unreserve_agg_queue()
2712 tid_data->txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_unreserve_agg_queue()
2722 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_stop() local
2737 txq_id = tid_data->txq_id; in iwl_mvm_sta_tx_agg_stop()
2740 mvmsta->sta_id, tid, txq_id, tid_data->state); in iwl_mvm_sta_tx_agg_stop()
2744 iwl_mvm_unreserve_agg_queue(mvm, mvmsta, tid_data); in iwl_mvm_sta_tx_agg_stop()
2746 switch (tid_data->state) { in iwl_mvm_sta_tx_agg_stop()
2748 tid_data->ssn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_sta_tx_agg_stop()
2752 tid_data->ssn, tid_data->next_reclaimed); in iwl_mvm_sta_tx_agg_stop()
2754 tid_data->ssn = 0xffff; in iwl_mvm_sta_tx_agg_stop()
2755 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_stop()
2773 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_stop()
2779 mvmsta->sta_id, tid, tid_data->state); in iwl_mvm_sta_tx_agg_stop()
2781 "\ttid_data->txq_id = %d\n", tid_data->txq_id); in iwl_mvm_sta_tx_agg_stop()
2794 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_flush() local
2803 txq_id = tid_data->txq_id; in iwl_mvm_sta_tx_agg_flush()
2805 mvmsta->sta_id, tid, txq_id, tid_data->state); in iwl_mvm_sta_tx_agg_flush()
2806 old_state = tid_data->state; in iwl_mvm_sta_tx_agg_flush()
2807 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_flush()
2811 iwl_mvm_unreserve_agg_queue(mvm, mvmsta, tid_data); in iwl_mvm_sta_tx_agg_flush()
3455 struct iwl_mvm_tid_data *tid_data; in iwl_mvm_sta_modify_sleep_tx_count() local
3458 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_modify_sleep_tx_count()
3460 n_queued = iwl_mvm_tid_queued(mvm, tid_data); in iwl_mvm_sta_modify_sleep_tx_count()
3638 u16 iwl_mvm_tid_queued(struct iwl_mvm *mvm, struct iwl_mvm_tid_data *tid_data) in iwl_mvm_tid_queued() argument
3640 u16 sn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_tid_queued()
3649 return ieee80211_sn_sub(sn, tid_data->next_reclaimed); in iwl_mvm_tid_queued()