Lines Matching refs:ac
87 int ac, i; in __cleanup_single_sta() local
122 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __cleanup_single_sta()
123 local->total_ps_buffered -= skb_queue_len(&sta->ps_tx_buf[ac]); in __cleanup_single_sta()
124 ieee80211_purge_tx_queue(&local->hw, &sta->ps_tx_buf[ac]); in __cleanup_single_sta()
125 ieee80211_purge_tx_queue(&local->hw, &sta->tx_filtered[ac]); in __cleanup_single_sta()
654 static unsigned long ieee80211_tids_for_ac(int ac) in ieee80211_tids_for_ac() argument
657 switch (ac) { in ieee80211_tids_for_ac()
678 int ac; in __sta_info_recalc_tim() local
714 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __sta_info_recalc_tim()
717 if (ignore_for_tim & BIT(ac)) in __sta_info_recalc_tim()
720 indicate_tim |= !skb_queue_empty(&sta->tx_filtered[ac]) || in __sta_info_recalc_tim()
721 !skb_queue_empty(&sta->ps_tx_buf[ac]); in __sta_info_recalc_tim()
725 tids = ieee80211_tids_for_ac(ac); in __sta_info_recalc_tim()
780 struct sta_info *sta, int ac) in sta_info_cleanup_expire_buffered_ac() argument
793 spin_lock_irqsave(&sta->tx_filtered[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
794 skb = skb_peek(&sta->tx_filtered[ac]); in sta_info_cleanup_expire_buffered_ac()
796 skb = __skb_dequeue(&sta->tx_filtered[ac]); in sta_info_cleanup_expire_buffered_ac()
799 spin_unlock_irqrestore(&sta->tx_filtered[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
819 spin_lock_irqsave(&sta->ps_tx_buf[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
820 skb = skb_peek(&sta->ps_tx_buf[ac]); in sta_info_cleanup_expire_buffered_ac()
822 skb = __skb_dequeue(&sta->ps_tx_buf[ac]); in sta_info_cleanup_expire_buffered_ac()
825 spin_unlock_irqrestore(&sta->ps_tx_buf[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
853 return !(skb_queue_empty(&sta->ps_tx_buf[ac]) && in sta_info_cleanup_expire_buffered_ac()
854 skb_queue_empty(&sta->tx_filtered[ac])); in sta_info_cleanup_expire_buffered_ac()
861 int ac; in sta_info_cleanup_expire_buffered() local
868 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_info_cleanup_expire_buffered()
870 sta_info_cleanup_expire_buffered_ac(local, sta, ac); in sta_info_cleanup_expire_buffered()
1184 int filtered = 0, buffered = 0, ac, i; in ieee80211_sta_ps_deliver_wakeup() local
1222 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_deliver_wakeup()
1225 spin_lock_irqsave(&sta->tx_filtered[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1226 skb_queue_splice_tail_init(&sta->tx_filtered[ac], &pending); in ieee80211_sta_ps_deliver_wakeup()
1227 spin_unlock_irqrestore(&sta->tx_filtered[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1232 spin_lock_irqsave(&sta->ps_tx_buf[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1233 skb_queue_splice_tail_init(&sta->ps_tx_buf[ac], &pending); in ieee80211_sta_ps_deliver_wakeup()
1234 spin_unlock_irqrestore(&sta->ps_tx_buf[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1385 int ac; in ieee80211_sta_ps_more_data() local
1396 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_more_data()
1397 if (ignored_acs & BIT(ac)) in ieee80211_sta_ps_more_data()
1400 if (!skb_queue_empty(&sta->tx_filtered[ac]) || in ieee80211_sta_ps_more_data()
1401 !skb_queue_empty(&sta->ps_tx_buf[ac])) in ieee80211_sta_ps_more_data()
1416 int ac; in ieee80211_sta_ps_get_frames() local
1419 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_get_frames()
1422 if (ignored_acs & BIT(ac)) in ieee80211_sta_ps_get_frames()
1425 tids = ieee80211_tids_for_ac(ac); in ieee80211_sta_ps_get_frames()
1440 skb = skb_dequeue(&sta->tx_filtered[ac]); in ieee80211_sta_ps_get_frames()
1443 &sta->ps_tx_buf[ac]); in ieee80211_sta_ps_get_frames()
1458 if (!skb_queue_empty(&sta->tx_filtered[ac]) || in ieee80211_sta_ps_get_frames()
1459 !skb_queue_empty(&sta->ps_tx_buf[ac])) in ieee80211_sta_ps_get_frames()
2062 int i, ac, cpu; in sta_set_sinfo() local
2099 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2100 sinfo->tx_bytes += sta->tx_stats.bytes[ac]; in sta_set_sinfo()
2106 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2107 sinfo->tx_packets += sta->tx_stats.packets[ac]; in sta_set_sinfo()