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()
937 mvmsta->tid_data[tid].txq_id = queue; in iwl_mvm_sta_alloc_queue_tvqm()
1099 ssn = IEEE80211_SEQ_TO_SN(mvmsta->tid_data[tid].seq_number); in iwl_mvm_unshare_queue()
1111 if (mvmsta->tid_data[tid].state == IWL_AGG_ON) { in iwl_mvm_unshare_queue()
1162 if (iwl_mvm_tid_queued(mvm, &mvmsta->tid_data[tid])) in iwl_mvm_remove_inactive_tids()
1166 if (mvmsta->tid_data[tid].state != IWL_AGG_OFF) in iwl_mvm_remove_inactive_tids()
1183 mvmsta->tid_data[tid].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_remove_inactive_tids()
1364 ssn = IEEE80211_SEQ_TO_SN(mvmsta->tid_data[tid].seq_number); in iwl_mvm_sta_alloc_queue()
1464 mvmsta->tid_data[tid].seq_number += 0x10; in iwl_mvm_sta_alloc_queue()
1467 mvmsta->tid_data[tid].txq_id = queue; in iwl_mvm_sta_alloc_queue()
1469 queue_state = mvmsta->tid_data[tid].state; in iwl_mvm_sta_alloc_queue()
1624 struct iwl_mvm_tid_data *tid_data = &mvm_sta->tid_data[i]; in iwl_mvm_realloc_queues_after_restart() local
1625 int txq_id = tid_data->txq_id; in iwl_mvm_realloc_queues_after_restart()
1647 tid_data->txq_id = txq_id; in iwl_mvm_realloc_queues_after_restart()
1655 tid_data->seq_number = 0; in iwl_mvm_realloc_queues_after_restart()
1657 u16 seq = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_realloc_queues_after_restart()
1769 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_sta_init()
1973 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_disable_sta_queues()
1974 if (mvm_sta->tid_data[i].txq_id == IWL_MVM_INVALID_QUEUE) in iwl_mvm_disable_sta_queues()
1978 &mvm_sta->tid_data[i].txq_id, i); in iwl_mvm_disable_sta_queues()
1979 mvm_sta->tid_data[i].txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_disable_sta_queues()
1999 for (i = 0; i < ARRAY_SIZE(mvm_sta->tid_data); i++) { in iwl_mvm_wait_sta_queues_empty()
2004 txq_id = mvm_sta->tid_data[i].txq_id; in iwl_mvm_wait_sta_queues_empty()
3091 struct iwl_mvm_tid_data *tid_data; in iwl_mvm_sta_tx_agg_start() local
3099 if (mvmsta->tid_data[tid].state != IWL_AGG_QUEUED && in iwl_mvm_sta_tx_agg_start()
3100 mvmsta->tid_data[tid].state != IWL_AGG_OFF) { in iwl_mvm_sta_tx_agg_start()
3103 mvmsta->tid_data[tid].state); in iwl_mvm_sta_tx_agg_start()
3109 if (mvmsta->tid_data[tid].txq_id == IWL_MVM_INVALID_QUEUE && in iwl_mvm_sta_tx_agg_start()
3126 txq_id = mvmsta->tid_data[tid].txq_id; in iwl_mvm_sta_tx_agg_start()
3159 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_start()
3160 tid_data->ssn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_sta_tx_agg_start()
3161 tid_data->txq_id = txq_id; in iwl_mvm_sta_tx_agg_start()
3162 *ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_start()
3167 tid_data->ssn, in iwl_mvm_sta_tx_agg_start()
3168 tid_data->next_reclaimed); in iwl_mvm_sta_tx_agg_start()
3174 normalized_ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_start()
3178 if (normalized_ssn == tid_data->next_reclaimed) { in iwl_mvm_sta_tx_agg_start()
3179 tid_data->state = IWL_AGG_STARTING; in iwl_mvm_sta_tx_agg_start()
3182 tid_data->state = IWL_EMPTYING_HW_QUEUE_ADDBA; in iwl_mvm_sta_tx_agg_start()
3197 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_oper() local
3223 ssn = tid_data->ssn; in iwl_mvm_sta_tx_agg_oper()
3224 queue = tid_data->txq_id; in iwl_mvm_sta_tx_agg_oper()
3225 tid_data->state = IWL_AGG_ON; in iwl_mvm_sta_tx_agg_oper()
3227 tid_data->ssn = 0xffff; in iwl_mvm_sta_tx_agg_oper()
3228 tid_data->amsdu_in_ampdu_allowed = amsdu; in iwl_mvm_sta_tx_agg_oper()
3323 struct iwl_mvm_tid_data *tid_data) in iwl_mvm_unreserve_agg_queue() argument
3325 u16 txq_id = tid_data->txq_id; in iwl_mvm_unreserve_agg_queue()
3341 tid_data->txq_id = IWL_MVM_INVALID_QUEUE; in iwl_mvm_unreserve_agg_queue()
3349 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_stop() local
3364 txq_id = tid_data->txq_id; in iwl_mvm_sta_tx_agg_stop()
3368 tid_data->state); in iwl_mvm_sta_tx_agg_stop()
3372 iwl_mvm_unreserve_agg_queue(mvm, mvmsta, tid_data); in iwl_mvm_sta_tx_agg_stop()
3374 switch (tid_data->state) { in iwl_mvm_sta_tx_agg_stop()
3376 tid_data->ssn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_sta_tx_agg_stop()
3380 tid_data->ssn, tid_data->next_reclaimed); in iwl_mvm_sta_tx_agg_stop()
3382 tid_data->ssn = 0xffff; in iwl_mvm_sta_tx_agg_stop()
3383 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_stop()
3401 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_stop()
3407 mvmsta->deflink.sta_id, tid, tid_data->state); in iwl_mvm_sta_tx_agg_stop()
3409 "\ttid_data->txq_id = %d\n", tid_data->txq_id); in iwl_mvm_sta_tx_agg_stop()
3422 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_tx_agg_flush() local
3431 txq_id = tid_data->txq_id; in iwl_mvm_sta_tx_agg_flush()
3434 tid_data->state); in iwl_mvm_sta_tx_agg_flush()
3435 old_state = tid_data->state; in iwl_mvm_sta_tx_agg_flush()
3436 tid_data->state = IWL_AGG_OFF; in iwl_mvm_sta_tx_agg_flush()
3440 iwl_mvm_unreserve_agg_queue(mvm, mvmsta, tid_data); in iwl_mvm_sta_tx_agg_flush()
4084 struct iwl_mvm_tid_data *tid_data; in iwl_mvm_sta_modify_sleep_tx_count() local
4087 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_sta_modify_sleep_tx_count()
4089 n_queued = iwl_mvm_tid_queued(mvm, tid_data); in iwl_mvm_sta_modify_sleep_tx_count()
4290 u16 iwl_mvm_tid_queued(struct iwl_mvm *mvm, struct iwl_mvm_tid_data *tid_data) in iwl_mvm_tid_queued() argument
4292 u16 sn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwl_mvm_tid_queued()
4301 return ieee80211_sn_sub(sn, tid_data->next_reclaimed); in iwl_mvm_tid_queued()