Lines Matching refs:tid_data
373 struct iwl_tid_data *tid_data; in iwlagn_tx_skb() local
378 tid_data = &priv->tid_data[sta_id][tid]; in iwlagn_tx_skb()
382 tid_data->agg.state != IWL_AGG_ON) { in iwlagn_tx_skb()
385 info->flags, tid_data->agg.state); in iwlagn_tx_skb()
388 IEEE80211_SEQ_TO_SN(tid_data->seq_number)); in iwlagn_tx_skb()
395 if (WARN_ONCE(tid_data->agg.state != IWL_AGG_ON && in iwlagn_tx_skb()
396 tid_data->agg.state != IWL_AGG_OFF, in iwlagn_tx_skb()
397 "Tx while agg.state = %d\n", tid_data->agg.state)) in iwlagn_tx_skb()
400 seq_number = tid_data->seq_number; in iwlagn_tx_skb()
417 txq_id = priv->tid_data[sta_id][tid].agg.txq_id; in iwlagn_tx_skb()
437 priv->tid_data[sta_id][tid].seq_number = seq_number; in iwlagn_tx_skb()
485 struct iwl_tid_data *tid_data; in iwlagn_tx_agg_stop() local
498 tid_data = &priv->tid_data[sta_id][tid]; in iwlagn_tx_agg_stop()
499 txq_id = tid_data->agg.txq_id; in iwlagn_tx_agg_stop()
501 switch (tid_data->agg.state) { in iwlagn_tx_agg_stop()
523 sta_id, tid, tid_data->agg.state); in iwlagn_tx_agg_stop()
528 tid_data->agg.ssn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwlagn_tx_agg_stop()
535 } else if (tid_data->agg.ssn != tid_data->next_reclaimed) { in iwlagn_tx_agg_stop()
538 tid_data->agg.ssn, in iwlagn_tx_agg_stop()
539 tid_data->next_reclaimed); in iwlagn_tx_agg_stop()
540 tid_data->agg.state = IWL_EMPTYING_HW_QUEUE_DELBA; in iwlagn_tx_agg_stop()
546 tid_data->agg.ssn); in iwlagn_tx_agg_stop()
548 agg_state = tid_data->agg.state; in iwlagn_tx_agg_stop()
549 tid_data->agg.state = IWL_AGG_OFF; in iwlagn_tx_agg_stop()
577 struct iwl_tid_data *tid_data; in iwlagn_tx_agg_start() local
591 if (priv->tid_data[sta_id][tid].agg.state != IWL_AGG_OFF) { in iwlagn_tx_agg_start()
609 tid_data = &priv->tid_data[sta_id][tid]; in iwlagn_tx_agg_start()
610 tid_data->agg.ssn = IEEE80211_SEQ_TO_SN(tid_data->seq_number); in iwlagn_tx_agg_start()
611 tid_data->agg.txq_id = txq_id; in iwlagn_tx_agg_start()
613 *ssn = tid_data->agg.ssn; in iwlagn_tx_agg_start()
615 if (*ssn == tid_data->next_reclaimed) { in iwlagn_tx_agg_start()
617 tid_data->agg.ssn); in iwlagn_tx_agg_start()
618 tid_data->agg.state = IWL_AGG_STARTING; in iwlagn_tx_agg_start()
623 tid_data->agg.ssn, in iwlagn_tx_agg_start()
624 tid_data->next_reclaimed); in iwlagn_tx_agg_start()
625 tid_data->agg.state = IWL_EMPTYING_HW_QUEUE_ADDBA; in iwlagn_tx_agg_start()
635 struct iwl_tid_data *tid_data; in iwlagn_tx_agg_flush() local
646 tid_data = &priv->tid_data[sta_id][tid]; in iwlagn_tx_agg_flush()
647 txq_id = tid_data->agg.txq_id; in iwlagn_tx_agg_flush()
648 agg_state = tid_data->agg.state; in iwlagn_tx_agg_flush()
650 sta_id, tid, txq_id, tid_data->agg.state); in iwlagn_tx_agg_flush()
652 tid_data->agg.state = IWL_AGG_OFF; in iwlagn_tx_agg_flush()
688 ssn = priv->tid_data[sta_priv->sta_id][tid].agg.ssn; in iwlagn_tx_agg_oper()
689 q = priv->tid_data[sta_priv->sta_id][tid].agg.txq_id; in iwlagn_tx_agg_oper()
690 priv->tid_data[sta_priv->sta_id][tid].agg.state = IWL_AGG_ON; in iwlagn_tx_agg_oper()
743 struct iwl_tid_data *tid_data = &priv->tid_data[sta_id][tid]; in iwlagn_check_ratid_empty() local
754 switch (priv->tid_data[sta_id][tid].agg.state) { in iwlagn_check_ratid_empty()
757 if (tid_data->agg.ssn == tid_data->next_reclaimed) { in iwlagn_check_ratid_empty()
760 tid_data->next_reclaimed); in iwlagn_check_ratid_empty()
762 tid_data->agg.txq_id, true); in iwlagn_check_ratid_empty()
763 iwlagn_dealloc_agg_txq(priv, tid_data->agg.txq_id); in iwlagn_check_ratid_empty()
764 tid_data->agg.state = IWL_AGG_OFF; in iwlagn_check_ratid_empty()
770 if (tid_data->agg.ssn == tid_data->next_reclaimed) { in iwlagn_check_ratid_empty()
773 tid_data->next_reclaimed); in iwlagn_check_ratid_empty()
774 tid_data->agg.state = IWL_AGG_STARTING; in iwlagn_check_ratid_empty()
926 struct iwl_ht_agg *agg = &priv->tid_data[sta_id][tid].agg; in iwl_rx_reply_tx_agg()
1138 if (txq_id != priv->tid_data[sta_id][tid].agg.txq_id) in iwlagn_rx_reply_tx()
1140 priv->tid_data[sta_id][tid].agg.txq_id); in iwlagn_rx_reply_tx()
1166 priv->tid_data[sta_id][tid].next_reclaimed = in iwlagn_rx_reply_tx()
1226 priv->tid_data[sta_id][tid].next_reclaimed = in iwlagn_rx_reply_tx()
1288 agg = &priv->tid_data[sta_id][tid].agg; in iwlagn_rx_reply_compressed_ba()
1348 priv->tid_data[sta_id][tid].next_reclaimed = ba_resp_scd_ssn; in iwlagn_rx_reply_compressed_ba()