Lines Matching refs:tid
271 u8 sta_id, tid = IWL_MAX_TID_COUNT; in iwlagn_tx_skb() local
375 tid = qc[0] & IEEE80211_QOS_CTL_TID_MASK; in iwlagn_tx_skb()
376 if (WARN_ON_ONCE(tid >= IWL_MAX_TID_COUNT)) in iwlagn_tx_skb()
378 tid_data = &priv->tid_data[sta_id][tid]; in iwlagn_tx_skb()
387 sta_id, tid, in iwlagn_tx_skb()
417 txq_id = priv->tid_data[sta_id][tid].agg.txq_id; in iwlagn_tx_skb()
430 IWL_DEBUG_TX(priv, "TX to [%d|%d] Q:%d - seq: 0x%x\n", sta_id, tid, in iwlagn_tx_skb()
437 priv->tid_data[sta_id][tid].seq_number = seq_number; in iwlagn_tx_skb()
483 struct ieee80211_sta *sta, u16 tid) in iwlagn_tx_agg_stop() argument
492 IWL_ERR(priv, "Invalid station for AGG tid %d\n", tid); in iwlagn_tx_agg_stop()
498 tid_data = &priv->tid_data[sta_id][tid]; in iwlagn_tx_agg_stop()
523 sta_id, tid, tid_data->agg.state); in iwlagn_tx_agg_stop()
534 sta_id, tid, txq_id); in iwlagn_tx_agg_stop()
568 ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid); in iwlagn_tx_agg_stop()
574 struct ieee80211_sta *sta, u16 tid, u16 *ssn) in iwlagn_tx_agg_start() argument
581 sta->addr, tid); in iwlagn_tx_agg_start()
588 if (unlikely(tid >= IWL_MAX_TID_COUNT)) in iwlagn_tx_agg_start()
591 if (priv->tid_data[sta_id][tid].agg.state != IWL_AGG_OFF) { in iwlagn_tx_agg_start()
596 txq_id = iwlagn_alloc_agg_txq(priv, ctx->ac_to_queue[tid_to_ac[tid]]); in iwlagn_tx_agg_start()
600 sta->addr, tid); in iwlagn_tx_agg_start()
604 ret = iwl_sta_tx_modify_enable_tid(priv, sta_id, tid); in iwlagn_tx_agg_start()
609 tid_data = &priv->tid_data[sta_id][tid]; in iwlagn_tx_agg_start()
633 struct ieee80211_sta *sta, u16 tid) in iwlagn_tx_agg_flush() argument
646 tid_data = &priv->tid_data[sta_id][tid]; in iwlagn_tx_agg_flush()
650 sta_id, tid, txq_id, tid_data->agg.state); in iwlagn_tx_agg_flush()
678 struct ieee80211_sta *sta, u16 tid, u8 buf_size) in iwlagn_tx_agg_oper() argument
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()
693 fifo = ctx->ac_to_fifo[tid_to_ac[tid]]; in iwlagn_tx_agg_oper()
695 iwl_trans_txq_enable(priv->trans, q, fifo, sta_priv->sta_id, tid, in iwlagn_tx_agg_oper()
735 sta->addr, tid); in iwlagn_tx_agg_oper()
741 static void iwlagn_check_ratid_empty(struct iwl_priv *priv, int sta_id, u8 tid) in iwlagn_check_ratid_empty() argument
743 struct iwl_tid_data *tid_data = &priv->tid_data[sta_id][tid]; in iwlagn_check_ratid_empty()
754 switch (priv->tid_data[sta_id][tid].agg.state) { in iwlagn_check_ratid_empty()
765 ieee80211_stop_tx_ba_cb_irqsafe(vif, addr, tid); in iwlagn_check_ratid_empty()
775 ieee80211_start_tx_ba_cb_irqsafe(vif, addr, tid); in iwlagn_check_ratid_empty()
922 int tid = (tx_resp->ra_tid & IWLAGN_TX_RES_TID_MSK) >> in iwl_rx_reply_tx_agg() local
926 struct iwl_ht_agg *agg = &priv->tid_data[sta_id][tid].agg; in iwl_rx_reply_tx_agg()
930 WARN_ON(tid == IWL_TID_NON_QOS); in iwl_rx_reply_tx_agg()
1119 int tid; in iwlagn_rx_reply_tx() local
1128 tid = (tx_resp->ra_tid & IWLAGN_TX_RES_TID_MSK) >> in iwlagn_rx_reply_tx()
1137 tid >= IWL_MAX_TID_COUNT); in iwlagn_rx_reply_tx()
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()
1165 if (tid != IWL_TID_NON_QOS) { in iwlagn_rx_reply_tx()
1166 priv->tid_data[sta_id][tid].next_reclaimed = in iwlagn_rx_reply_tx()
1170 iwlagn_check_ratid_empty(priv, sta_id, tid); in iwlagn_rx_reply_tx()
1225 if (tid != IWL_TID_NON_QOS) { in iwlagn_rx_reply_tx()
1226 priv->tid_data[sta_id][tid].next_reclaimed = in iwlagn_rx_reply_tx()
1270 int tid; in iwlagn_rx_reply_compressed_ba() local
1287 tid = ba_resp->tid; in iwlagn_rx_reply_compressed_ba()
1288 agg = &priv->tid_data[sta_id][tid].agg; in iwlagn_rx_reply_compressed_ba()
1308 scd_flow, sta_id, tid, agg->txq_id); in iwlagn_rx_reply_compressed_ba()
1328 ba_resp->tid, le16_to_cpu(ba_resp->seq_ctl), 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()
1350 iwlagn_check_ratid_empty(priv, sta_id, tid); in iwlagn_rx_reply_compressed_ba()