Lines Matching refs:tid
270 u8 sta_id, tid = IWL_MAX_TID_COUNT; in iwlagn_tx_skb() local
374 tid = qc[0] & IEEE80211_QOS_CTL_TID_MASK; in iwlagn_tx_skb()
375 if (WARN_ON_ONCE(tid >= IWL_MAX_TID_COUNT)) in iwlagn_tx_skb()
377 tid_data = &priv->tid_data[sta_id][tid]; in iwlagn_tx_skb()
386 sta_id, tid, in iwlagn_tx_skb()
416 txq_id = priv->tid_data[sta_id][tid].agg.txq_id; in iwlagn_tx_skb()
429 IWL_DEBUG_TX(priv, "TX to [%d|%d] Q:%d - seq: 0x%x\n", sta_id, tid, in iwlagn_tx_skb()
436 priv->tid_data[sta_id][tid].seq_number = seq_number; in iwlagn_tx_skb()
482 struct ieee80211_sta *sta, u16 tid) in iwlagn_tx_agg_stop() argument
491 IWL_ERR(priv, "Invalid station for AGG tid %d\n", tid); in iwlagn_tx_agg_stop()
497 tid_data = &priv->tid_data[sta_id][tid]; in iwlagn_tx_agg_stop()
522 sta_id, tid, tid_data->agg.state); in iwlagn_tx_agg_stop()
533 sta_id, tid, txq_id); in iwlagn_tx_agg_stop()
567 ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid); in iwlagn_tx_agg_stop()
573 struct ieee80211_sta *sta, u16 tid, u16 *ssn) in iwlagn_tx_agg_start() argument
580 sta->addr, tid); in iwlagn_tx_agg_start()
587 if (unlikely(tid >= IWL_MAX_TID_COUNT)) in iwlagn_tx_agg_start()
590 if (priv->tid_data[sta_id][tid].agg.state != IWL_AGG_OFF) { in iwlagn_tx_agg_start()
595 txq_id = iwlagn_alloc_agg_txq(priv, ctx->ac_to_queue[tid_to_ac[tid]]); in iwlagn_tx_agg_start()
599 sta->addr, tid); in iwlagn_tx_agg_start()
603 ret = iwl_sta_tx_modify_enable_tid(priv, sta_id, tid); in iwlagn_tx_agg_start()
608 tid_data = &priv->tid_data[sta_id][tid]; in iwlagn_tx_agg_start()
632 struct ieee80211_sta *sta, u16 tid) in iwlagn_tx_agg_flush() argument
645 tid_data = &priv->tid_data[sta_id][tid]; in iwlagn_tx_agg_flush()
649 sta_id, tid, txq_id, tid_data->agg.state); in iwlagn_tx_agg_flush()
677 struct ieee80211_sta *sta, u16 tid, u8 buf_size) in iwlagn_tx_agg_oper() argument
687 ssn = priv->tid_data[sta_priv->sta_id][tid].agg.ssn; in iwlagn_tx_agg_oper()
688 q = priv->tid_data[sta_priv->sta_id][tid].agg.txq_id; in iwlagn_tx_agg_oper()
689 priv->tid_data[sta_priv->sta_id][tid].agg.state = IWL_AGG_ON; in iwlagn_tx_agg_oper()
692 fifo = ctx->ac_to_fifo[tid_to_ac[tid]]; in iwlagn_tx_agg_oper()
694 iwl_trans_txq_enable(priv->trans, q, fifo, sta_priv->sta_id, tid, in iwlagn_tx_agg_oper()
734 sta->addr, tid); in iwlagn_tx_agg_oper()
740 static void iwlagn_check_ratid_empty(struct iwl_priv *priv, int sta_id, u8 tid) in iwlagn_check_ratid_empty() argument
742 struct iwl_tid_data *tid_data = &priv->tid_data[sta_id][tid]; in iwlagn_check_ratid_empty()
753 switch (priv->tid_data[sta_id][tid].agg.state) { in iwlagn_check_ratid_empty()
764 ieee80211_stop_tx_ba_cb_irqsafe(vif, addr, tid); in iwlagn_check_ratid_empty()
774 ieee80211_start_tx_ba_cb_irqsafe(vif, addr, tid); in iwlagn_check_ratid_empty()
921 int tid = (tx_resp->ra_tid & IWLAGN_TX_RES_TID_MSK) >> in iwl_rx_reply_tx_agg() local
925 struct iwl_ht_agg *agg = &priv->tid_data[sta_id][tid].agg; in iwl_rx_reply_tx_agg()
929 WARN_ON(tid == IWL_TID_NON_QOS); in iwl_rx_reply_tx_agg()
1118 int tid; in iwlagn_rx_reply_tx() local
1127 tid = (tx_resp->ra_tid & IWLAGN_TX_RES_TID_MSK) >> in iwlagn_rx_reply_tx()
1136 tid >= IWL_MAX_TID_COUNT); in iwlagn_rx_reply_tx()
1137 if (txq_id != priv->tid_data[sta_id][tid].agg.txq_id) in iwlagn_rx_reply_tx()
1139 priv->tid_data[sta_id][tid].agg.txq_id); in iwlagn_rx_reply_tx()
1164 if (tid != IWL_TID_NON_QOS) { in iwlagn_rx_reply_tx()
1165 priv->tid_data[sta_id][tid].next_reclaimed = in iwlagn_rx_reply_tx()
1169 iwlagn_check_ratid_empty(priv, sta_id, tid); in iwlagn_rx_reply_tx()
1224 if (tid != IWL_TID_NON_QOS) { in iwlagn_rx_reply_tx()
1225 priv->tid_data[sta_id][tid].next_reclaimed = in iwlagn_rx_reply_tx()
1269 int tid; in iwlagn_rx_reply_compressed_ba() local
1286 tid = ba_resp->tid; in iwlagn_rx_reply_compressed_ba()
1287 agg = &priv->tid_data[sta_id][tid].agg; in iwlagn_rx_reply_compressed_ba()
1307 scd_flow, sta_id, tid, agg->txq_id); in iwlagn_rx_reply_compressed_ba()
1327 ba_resp->tid, le16_to_cpu(ba_resp->seq_ctl), in iwlagn_rx_reply_compressed_ba()
1347 priv->tid_data[sta_id][tid].next_reclaimed = ba_resp_scd_ssn; in iwlagn_rx_reply_compressed_ba()
1349 iwlagn_check_ratid_empty(priv, sta_id, tid); in iwlagn_rx_reply_compressed_ba()