Lines Matching refs:ac

86 	int ac, i;  in __cleanup_single_sta()  local
116 atomic_sub(n, &sdata->txqs_len[txqi->txq.ac]); in __cleanup_single_sta()
120 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __cleanup_single_sta()
121 local->total_ps_buffered -= skb_queue_len(&sta->ps_tx_buf[ac]); in __cleanup_single_sta()
122 ieee80211_purge_tx_queue(&local->hw, &sta->ps_tx_buf[ac]); in __cleanup_single_sta()
123 ieee80211_purge_tx_queue(&local->hw, &sta->tx_filtered[ac]); in __cleanup_single_sta()
602 static unsigned long ieee80211_tids_for_ac(int ac) in ieee80211_tids_for_ac() argument
605 switch (ac) { in ieee80211_tids_for_ac()
626 int ac; in __sta_info_recalc_tim() local
665 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __sta_info_recalc_tim()
668 if (ignore_for_tim & BIT(ac)) in __sta_info_recalc_tim()
671 indicate_tim |= !skb_queue_empty(&sta->tx_filtered[ac]) || in __sta_info_recalc_tim()
672 !skb_queue_empty(&sta->ps_tx_buf[ac]); in __sta_info_recalc_tim()
676 tids = ieee80211_tids_for_ac(ac); in __sta_info_recalc_tim()
731 struct sta_info *sta, int ac) in sta_info_cleanup_expire_buffered_ac() argument
744 spin_lock_irqsave(&sta->tx_filtered[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
745 skb = skb_peek(&sta->tx_filtered[ac]); in sta_info_cleanup_expire_buffered_ac()
747 skb = __skb_dequeue(&sta->tx_filtered[ac]); in sta_info_cleanup_expire_buffered_ac()
750 spin_unlock_irqrestore(&sta->tx_filtered[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
770 spin_lock_irqsave(&sta->ps_tx_buf[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
771 skb = skb_peek(&sta->ps_tx_buf[ac]); in sta_info_cleanup_expire_buffered_ac()
773 skb = __skb_dequeue(&sta->ps_tx_buf[ac]); in sta_info_cleanup_expire_buffered_ac()
776 spin_unlock_irqrestore(&sta->ps_tx_buf[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
804 return !(skb_queue_empty(&sta->ps_tx_buf[ac]) && in sta_info_cleanup_expire_buffered_ac()
805 skb_queue_empty(&sta->tx_filtered[ac])); in sta_info_cleanup_expire_buffered_ac()
812 int ac; in sta_info_cleanup_expire_buffered() local
819 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_info_cleanup_expire_buffered()
821 sta_info_cleanup_expire_buffered_ac(local, sta, ac); in sta_info_cleanup_expire_buffered()
1131 int filtered = 0, buffered = 0, ac, i; in ieee80211_sta_ps_deliver_wakeup() local
1171 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_deliver_wakeup()
1174 spin_lock_irqsave(&sta->tx_filtered[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1175 skb_queue_splice_tail_init(&sta->tx_filtered[ac], &pending); in ieee80211_sta_ps_deliver_wakeup()
1176 spin_unlock_irqrestore(&sta->tx_filtered[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1181 spin_lock_irqsave(&sta->ps_tx_buf[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1182 skb_queue_splice_tail_init(&sta->ps_tx_buf[ac], &pending); in ieee80211_sta_ps_deliver_wakeup()
1183 spin_unlock_irqrestore(&sta->ps_tx_buf[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1326 int ac; in ieee80211_sta_ps_deliver_response() local
1336 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_deliver_response()
1339 if (ignored_acs & BIT(ac)) in ieee80211_sta_ps_deliver_response()
1342 tids = ieee80211_tids_for_ac(ac); in ieee80211_sta_ps_deliver_response()
1370 skb = skb_dequeue(&sta->tx_filtered[ac]); in ieee80211_sta_ps_deliver_response()
1373 &sta->ps_tx_buf[ac]); in ieee80211_sta_ps_deliver_response()
1388 if (!skb_queue_empty(&sta->tx_filtered[ac]) || in ieee80211_sta_ps_deliver_response()
1389 !skb_queue_empty(&sta->ps_tx_buf[ac])) { in ieee80211_sta_ps_deliver_response()
1804 int i, ac; in sta_set_sinfo() local
1834 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
1835 sinfo->tx_bytes += sta->tx_bytes[ac]; in sta_set_sinfo()
1841 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
1842 sinfo->tx_packets += sta->tx_packets[ac]; in sta_set_sinfo()