Lines Matching refs:ac

87 	int ac, i;  in __cleanup_single_sta()  local
117 atomic_sub(n, &sdata->txqs_len[txqi->txq.ac]); in __cleanup_single_sta()
121 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __cleanup_single_sta()
122 local->total_ps_buffered -= skb_queue_len(&sta->ps_tx_buf[ac]); in __cleanup_single_sta()
123 ieee80211_purge_tx_queue(&local->hw, &sta->ps_tx_buf[ac]); in __cleanup_single_sta()
124 ieee80211_purge_tx_queue(&local->hw, &sta->tx_filtered[ac]); in __cleanup_single_sta()
619 static unsigned long ieee80211_tids_for_ac(int ac) in ieee80211_tids_for_ac() argument
622 switch (ac) { in ieee80211_tids_for_ac()
643 int ac; in __sta_info_recalc_tim() local
679 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __sta_info_recalc_tim()
682 if (ignore_for_tim & BIT(ac)) in __sta_info_recalc_tim()
685 indicate_tim |= !skb_queue_empty(&sta->tx_filtered[ac]) || in __sta_info_recalc_tim()
686 !skb_queue_empty(&sta->ps_tx_buf[ac]); in __sta_info_recalc_tim()
690 tids = ieee80211_tids_for_ac(ac); in __sta_info_recalc_tim()
745 struct sta_info *sta, int ac) in sta_info_cleanup_expire_buffered_ac() argument
758 spin_lock_irqsave(&sta->tx_filtered[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
759 skb = skb_peek(&sta->tx_filtered[ac]); in sta_info_cleanup_expire_buffered_ac()
761 skb = __skb_dequeue(&sta->tx_filtered[ac]); in sta_info_cleanup_expire_buffered_ac()
764 spin_unlock_irqrestore(&sta->tx_filtered[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
784 spin_lock_irqsave(&sta->ps_tx_buf[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
785 skb = skb_peek(&sta->ps_tx_buf[ac]); in sta_info_cleanup_expire_buffered_ac()
787 skb = __skb_dequeue(&sta->ps_tx_buf[ac]); in sta_info_cleanup_expire_buffered_ac()
790 spin_unlock_irqrestore(&sta->ps_tx_buf[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
818 return !(skb_queue_empty(&sta->ps_tx_buf[ac]) && in sta_info_cleanup_expire_buffered_ac()
819 skb_queue_empty(&sta->tx_filtered[ac])); in sta_info_cleanup_expire_buffered_ac()
826 int ac; in sta_info_cleanup_expire_buffered() local
833 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_info_cleanup_expire_buffered()
835 sta_info_cleanup_expire_buffered_ac(local, sta, ac); in sta_info_cleanup_expire_buffered()
1148 int filtered = 0, buffered = 0, ac, i; in ieee80211_sta_ps_deliver_wakeup() local
1188 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_deliver_wakeup()
1191 spin_lock_irqsave(&sta->tx_filtered[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1192 skb_queue_splice_tail_init(&sta->tx_filtered[ac], &pending); in ieee80211_sta_ps_deliver_wakeup()
1193 spin_unlock_irqrestore(&sta->tx_filtered[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1198 spin_lock_irqsave(&sta->ps_tx_buf[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1199 skb_queue_splice_tail_init(&sta->ps_tx_buf[ac], &pending); in ieee80211_sta_ps_deliver_wakeup()
1200 spin_unlock_irqrestore(&sta->ps_tx_buf[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1345 int ac; in ieee80211_sta_ps_deliver_response() local
1355 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_deliver_response()
1358 if (ignored_acs & BIT(ac)) in ieee80211_sta_ps_deliver_response()
1361 tids = ieee80211_tids_for_ac(ac); in ieee80211_sta_ps_deliver_response()
1389 skb = skb_dequeue(&sta->tx_filtered[ac]); in ieee80211_sta_ps_deliver_response()
1392 &sta->ps_tx_buf[ac]); in ieee80211_sta_ps_deliver_response()
1407 if (!skb_queue_empty(&sta->tx_filtered[ac]) || in ieee80211_sta_ps_deliver_response()
1408 !skb_queue_empty(&sta->ps_tx_buf[ac])) { in ieee80211_sta_ps_deliver_response()
1865 int i, ac; in sta_set_sinfo() local
1899 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
1900 sinfo->tx_bytes += sta->tx_stats.bytes[ac]; in sta_set_sinfo()
1906 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
1907 sinfo->tx_packets += sta->tx_stats.packets[ac]; in sta_set_sinfo()