Lines Matching defs:tid

160 	u8 tid;
1577 static int mwl8k_tid_queue_mapping(u8 tid)
1579 BUG_ON(tid > 7);
1581 switch (tid) {
1728 mwl8k_add_stream(struct ieee80211_hw *hw, struct ieee80211_sta *sta, u8 tid)
1739 stream->tid = tid;
1743 sta->addr, tid);
1758 ret = ieee80211_start_tx_ba_session(stream->sta, stream->tid, 0);
1761 "%d\n", stream->sta->addr, stream->tid, ret);
1764 stream->sta->addr, stream->tid);
1772 stream->tid);
1777 mwl8k_lookup_stream(struct ieee80211_hw *hw, u8 *addr, u8 tid)
1788 stream->tid == tid)
1795 static inline bool mwl8k_ampdu_allowed(struct ieee80211_sta *sta, u8 tid)
1800 BUG_ON(tid >= MWL8K_MAX_TID);
1801 tx_stats = &sta_info->tx_stats[tid];
1807 static inline void mwl8k_tx_count_packet(struct ieee80211_sta *sta, u8 tid)
1812 BUG_ON(tid >= MWL8K_MAX_TID);
1813 tx_stats = &sta_info->tx_stats[tid];
1844 u8 tid = 0;
1897 * particular ra/tid pair. However, packets piled up in the hardware
1898 * for that ra/tid pair will still go out. ADDBA request and the
1909 tid = (capab & IEEE80211_ADDBA_PARAM_TID_MASK) >> 2;
1910 index = mwl8k_tid_queue_mapping(tid);
1918 tid = qos & 0xf;
1919 mwl8k_tx_count_packet(sta, tid);
1921 stream = mwl8k_lookup_stream(hw, sta->addr, tid);
1960 if (mwl8k_ampdu_allowed(sta, tid)) {
1961 stream = mwl8k_add_stream(hw, sta, tid);
3594 ieee80211_stop_tx_ba_session(streams->sta, streams->tid);
3654 u8 tid;
3695 cmd->create_params.tid = stream->tid;
3730 cmd->create_params.tid = stream->tid;
3746 wiphy_debug(hw->wiphy, "Created a BA stream for %pM : tid %d\n",
3747 stream->sta->addr, stream->tid);
5074 struct ieee80211_sta *sta, u16 tid, u16 *ssn,
5087 stream = mwl8k_lookup_stream(hw, addr, tid);
5112 stream = mwl8k_add_stream(hw, sta, tid);
5141 wiphy_err(hw->wiphy, "Stream for tid %d busy after %d"
5142 " attempts\n", tid, MAX_AMPDU_ATTEMPTS);
5147 ieee80211_start_tx_ba_cb_irqsafe(vif, addr, tid);
5158 ieee80211_stop_tx_ba_cb_irqsafe(vif, addr, tid);
5173 "Failed adding stream for sta %pM tid %d\n",
5174 addr, tid);