Lines Matching refs:sta_id
46 struct ieee80211_hdr *hdr, u8 sta_id) in iwlagn_tx_cmd_build_basic() argument
71 tx_cmd->sta_id = sta_id; in iwlagn_tx_cmd_build_basic()
238 int sta_id; in iwl_sta_id_or_broadcast() local
243 sta_id = iwl_sta_id(sta); in iwl_sta_id_or_broadcast()
249 WARN_ON(sta_id == IWL_INVALID_STATION); in iwl_sta_id_or_broadcast()
251 return sta_id; in iwl_sta_id_or_broadcast()
270 u8 sta_id, tid = IWL_MAX_TID_COUNT; in iwlagn_tx_skb() local
309 sta_id = ctx->bcast_sta_id; in iwlagn_tx_skb()
312 sta_id = iwl_sta_id_or_broadcast(ctx, sta); in iwlagn_tx_skb()
313 if (sta_id == IWL_INVALID_STATION) { in iwlagn_tx_skb()
338 iwl_sta_modify_sleep_tx_count(priv, sta_id, 1); in iwlagn_tx_skb()
357 iwlagn_tx_cmd_build_basic(priv, skb, tx_cmd, info, hdr, sta_id); 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()
485 int sta_id, txq_id; in iwlagn_tx_agg_stop() local
488 sta_id = iwl_sta_id(sta); in iwlagn_tx_agg_stop()
490 if (sta_id == IWL_INVALID_STATION) { 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()
577 int sta_id, txq_id, ret; in iwlagn_tx_agg_start() local
582 sta_id = iwl_sta_id(sta); in iwlagn_tx_agg_start()
583 if (sta_id == IWL_INVALID_STATION) { in iwlagn_tx_agg_start()
590 if (priv->tid_data[sta_id][tid].agg.state != IWL_AGG_OFF) { 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()
636 int sta_id, txq_id; in iwlagn_tx_agg_flush() local
637 sta_id = iwl_sta_id(sta); in iwlagn_tx_agg_flush()
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()
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()
694 iwl_trans_txq_enable(priv->trans, q, fifo, sta_priv->sta_id, 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()
749 addr = priv->stations[sta_id].sta.sta.addr; in iwlagn_check_ratid_empty()
750 ctx = priv->stations[sta_id].ctxid; in iwlagn_check_ratid_empty()
753 switch (priv->tid_data[sta_id][tid].agg.state) { in iwlagn_check_ratid_empty()
923 int sta_id = (tx_resp->ra_tid & IWLAGN_TX_RES_RA_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()
1119 int sta_id; in iwlagn_rx_reply_tx() local
1129 sta_id = (tx_resp->ra_tid & IWLAGN_TX_RES_RA_MSK) >> in iwlagn_rx_reply_tx()
1135 WARN_ON_ONCE(sta_id >= IWLAGN_STATION_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()
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()
1225 priv->tid_data[sta_id][tid].next_reclaimed = in iwlagn_rx_reply_tx()
1268 int sta_id; in iwlagn_rx_reply_compressed_ba() local
1285 sta_id = ba_resp->sta_id; 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()
1324 ba_resp->sta_id); 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()