Lines Matching refs:tid_data
471 if (mvmsta->tid_data[tid].state == IWL_AGG_ON) in iwl_mvm_get_queue_agg_tids()
518 if (mvmsta->tid_data[tid].state == IWL_AGG_ON) in iwl_mvm_remove_sta_queue_marking()
520 mvmsta->tid_data[tid].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_remove_sta_queue_marking()
923 mvmsta->tid_data[tid].txq_id = queue; in iwl_mvm_sta_alloc_queue_tvqm()
1085 ssn = IEEE80211_SEQ_TO_SN(mvmsta->tid_data[tid].seq_number); in iwl_mvm_unshare_queue()
1097 if (mvmsta->tid_data[tid].state == IWL_AGG_ON) { in iwl_mvm_unshare_queue()
1148 if (iwl_mvm_tid_queued(mvm, &mvmsta->tid_data[tid])) in iwl_mvm_remove_inactive_tids()
1152 if (mvmsta->tid_data[tid].state != IWL_AGG_OFF) in iwl_mvm_remove_inactive_tids()
1169 mvmsta->tid_data[tid].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_remove_inactive_tids()
1350 ssn = IEEE80211_SEQ_TO_SN(mvmsta->tid_data[tid].seq_number); in iwl_mvm_sta_alloc_queue()
1450 mvmsta->tid_data[tid].seq_number += 0x10; in iwl_mvm_sta_alloc_queue()
1453 mvmsta->tid_data[tid].txq_id = queue; in iwl_mvm_sta_alloc_queue()
1455 queue_state = mvmsta->tid_data[tid].state; in iwl_mvm_sta_alloc_queue()
1641 struct iwl_mvm_tid_data *tid_data = &mvm_sta->tid_data[i]; in iwl_mvm_realloc_queues_after_restart() local
1642 int txq_id = tid_data->txq_id; in iwl_mvm_realloc_queues_after_restart()
1664 tid_data->txq_id = txq_id; in iwl_mvm_realloc_queues_after_restart()
1672 tid_data->seq_number = 0; in iwl_mvm_realloc_queues_after_restart()
1674 u16 seq = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_realloc_queues_after_restart()
1786 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_sta_init()
2002 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_disable_sta_queues()
2003 if (mvm_sta->tid_data[i].txq_id == IWL_MVM_INVALID_QUEUE) in iwl_mvm_disable_sta_queues()
2007 &mvm_sta->tid_data[i].txq_id, i); in iwl_mvm_disable_sta_queues()
2008 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_disable_sta_queues()
2028 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_wait_sta_queues_empty()
2033 txq_id = mvm_sta->tid_data[i].txq_id; in iwl_mvm_wait_sta_queues_empty()
3096 struct iwl_mvm_tid_data *tid_data; in iwl_mvm_sta_tx_agg_start() local
3104 if (mvmsta->tid_data[tid].state != IWL_AGG_QUEUED && in iwl_mvm_sta_tx_agg_start()
3105 mvmsta->tid_data[tid].state != IWL_AGG_OFF) { in iwl_mvm_sta_tx_agg_start()
3108 mvmsta->tid_data[tid].state); in iwl_mvm_sta_tx_agg_start()
3114 if (mvmsta->tid_data[tid].txq_id == IWL_MVM_INVALID_QUEUE && in iwl_mvm_sta_tx_agg_start()
3131 txq_id = mvmsta->tid_data[tid].txq_id; in iwl_mvm_sta_tx_agg_start()
3164 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_start()
3165 tid_data->ssn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_sta_tx_agg_start()
3166 tid_data->txq_id = txq_id; in iwl_mvm_sta_tx_agg_start()
3167 *ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_start()
3172 tid_data->ssn, in iwl_mvm_sta_tx_agg_start()
3173 tid_data->next_reclaimed); in iwl_mvm_sta_tx_agg_start()
3179 normalized_ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_start()
3183 if (normalized_ssn == tid_data->next_reclaimed) { in iwl_mvm_sta_tx_agg_start()
3184 tid_data->state = IWL_AGG_STARTING; in iwl_mvm_sta_tx_agg_start()
3187 tid_data->state = IWL_EMPTYING_HW_QUEUE_ADDBA; in iwl_mvm_sta_tx_agg_start()
3202 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_oper() local
3228 ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_oper()
3229 queue = tid_data->txq_id; in iwl_mvm_sta_tx_agg_oper()
3230 tid_data->state = IWL_AGG_ON; in iwl_mvm_sta_tx_agg_oper()
3232 tid_data->ssn = 0xffff; in iwl_mvm_sta_tx_agg_oper()
3233 tid_data->amsdu_in_ampdu_allowed = amsdu; in iwl_mvm_sta_tx_agg_oper()
3328 struct iwl_mvm_tid_data *tid_data) in iwl_mvm_unreserve_agg_queue() argument
3330 u16 txq_id = tid_data->txq_id; in iwl_mvm_unreserve_agg_queue()
3346 tid_data->txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_unreserve_agg_queue()
3354 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_stop() local
3369 txq_id = tid_data->txq_id; in iwl_mvm_sta_tx_agg_stop()
3373 tid_data->state); in iwl_mvm_sta_tx_agg_stop()
3377 iwl_mvm_unreserve_agg_queue(mvm, mvmsta, tid_data); in iwl_mvm_sta_tx_agg_stop()
3379 switch (tid_data->state) { in iwl_mvm_sta_tx_agg_stop()
3381 tid_data->ssn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_sta_tx_agg_stop()
3385 tid_data->ssn, tid_data->next_reclaimed); in iwl_mvm_sta_tx_agg_stop()
3387 tid_data->ssn = 0xffff; in iwl_mvm_sta_tx_agg_stop()
3388 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_stop()
3406 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_stop()
3412 mvmsta->deflink.sta_id, tid, tid_data->state); in iwl_mvm_sta_tx_agg_stop()
3414 "\ttid_data->txq_id = %d\n", tid_data->txq_id); in iwl_mvm_sta_tx_agg_stop()
3427 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_flush() local
3436 txq_id = tid_data->txq_id; in iwl_mvm_sta_tx_agg_flush()
3439 tid_data->state); in iwl_mvm_sta_tx_agg_flush()
3440 old_state = tid_data->state; in iwl_mvm_sta_tx_agg_flush()
3441 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_flush()
3445 iwl_mvm_unreserve_agg_queue(mvm, mvmsta, tid_data); in iwl_mvm_sta_tx_agg_flush()
4092 struct iwl_mvm_tid_data *tid_data; in iwl_mvm_sta_modify_sleep_tx_count() local
4095 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_modify_sleep_tx_count()
4097 n_queued = iwl_mvm_tid_queued(mvm, tid_data); in iwl_mvm_sta_modify_sleep_tx_count()
4300 u16 iwl_mvm_tid_queued(struct iwl_mvm *mvm, struct iwl_mvm_tid_data *tid_data) in iwl_mvm_tid_queued() argument
4302 u16 sn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_tid_queued()
4311 return ieee80211_sn_sub(sn, tid_data->next_reclaimed); in iwl_mvm_tid_queued()