Lines Matching refs:ac
86 int ac, i; in __cleanup_single_sta() local
123 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __cleanup_single_sta()
124 local->total_ps_buffered -= skb_queue_len(&sta->ps_tx_buf[ac]); in __cleanup_single_sta()
125 ieee80211_purge_tx_queue(&local->hw, &sta->ps_tx_buf[ac]); in __cleanup_single_sta()
126 ieee80211_purge_tx_queue(&local->hw, &sta->tx_filtered[ac]); in __cleanup_single_sta()
772 static unsigned long ieee80211_tids_for_ac(int ac) in ieee80211_tids_for_ac() argument
775 switch (ac) { in ieee80211_tids_for_ac()
796 int ac; in __sta_info_recalc_tim() local
832 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __sta_info_recalc_tim()
835 if (ignore_for_tim & ieee80211_ac_to_qos_mask[ac]) in __sta_info_recalc_tim()
838 indicate_tim |= !skb_queue_empty(&sta->tx_filtered[ac]) || in __sta_info_recalc_tim()
839 !skb_queue_empty(&sta->ps_tx_buf[ac]); in __sta_info_recalc_tim()
843 tids = ieee80211_tids_for_ac(ac); in __sta_info_recalc_tim()
898 struct sta_info *sta, int ac) in sta_info_cleanup_expire_buffered_ac() argument
911 spin_lock_irqsave(&sta->tx_filtered[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
912 skb = skb_peek(&sta->tx_filtered[ac]); in sta_info_cleanup_expire_buffered_ac()
914 skb = __skb_dequeue(&sta->tx_filtered[ac]); in sta_info_cleanup_expire_buffered_ac()
917 spin_unlock_irqrestore(&sta->tx_filtered[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
937 spin_lock_irqsave(&sta->ps_tx_buf[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
938 skb = skb_peek(&sta->ps_tx_buf[ac]); in sta_info_cleanup_expire_buffered_ac()
940 skb = __skb_dequeue(&sta->ps_tx_buf[ac]); in sta_info_cleanup_expire_buffered_ac()
943 spin_unlock_irqrestore(&sta->ps_tx_buf[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
971 return !(skb_queue_empty(&sta->ps_tx_buf[ac]) && in sta_info_cleanup_expire_buffered_ac()
972 skb_queue_empty(&sta->tx_filtered[ac])); in sta_info_cleanup_expire_buffered_ac()
979 int ac; in sta_info_cleanup_expire_buffered() local
986 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_info_cleanup_expire_buffered()
988 sta_info_cleanup_expire_buffered_ac(local, sta, ac); in sta_info_cleanup_expire_buffered()
1305 int filtered = 0, buffered = 0, ac, i; in ieee80211_sta_ps_deliver_wakeup() local
1341 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_deliver_wakeup()
1344 spin_lock_irqsave(&sta->tx_filtered[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1345 skb_queue_splice_tail_init(&sta->tx_filtered[ac], &pending); in ieee80211_sta_ps_deliver_wakeup()
1346 spin_unlock_irqrestore(&sta->tx_filtered[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1351 spin_lock_irqsave(&sta->ps_tx_buf[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1352 skb_queue_splice_tail_init(&sta->ps_tx_buf[ac], &pending); in ieee80211_sta_ps_deliver_wakeup()
1353 spin_unlock_irqrestore(&sta->ps_tx_buf[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1495 int ac; in ieee80211_sta_ps_more_data() local
1506 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_more_data()
1507 if (ignored_acs & ieee80211_ac_to_qos_mask[ac]) in ieee80211_sta_ps_more_data()
1510 if (!skb_queue_empty(&sta->tx_filtered[ac]) || in ieee80211_sta_ps_more_data()
1511 !skb_queue_empty(&sta->ps_tx_buf[ac])) in ieee80211_sta_ps_more_data()
1526 int ac; in ieee80211_sta_ps_get_frames() local
1529 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_get_frames()
1532 if (ignored_acs & ieee80211_ac_to_qos_mask[ac]) in ieee80211_sta_ps_get_frames()
1535 tids = ieee80211_tids_for_ac(ac); in ieee80211_sta_ps_get_frames()
1550 skb = skb_dequeue(&sta->tx_filtered[ac]); in ieee80211_sta_ps_get_frames()
1553 &sta->ps_tx_buf[ac]); in ieee80211_sta_ps_get_frames()
1568 if (!skb_queue_empty(&sta->tx_filtered[ac]) || in ieee80211_sta_ps_get_frames()
1569 !skb_queue_empty(&sta->ps_tx_buf[ac])) in ieee80211_sta_ps_get_frames()
1600 int tid, ac; in ieee80211_sta_ps_deliver_response() local
1618 for (ac = IEEE80211_AC_VO; ac < IEEE80211_NUM_ACS; ac++) in ieee80211_sta_ps_deliver_response()
1619 if (!(ignored_acs & ieee80211_ac_to_qos_mask[ac])) in ieee80211_sta_ps_deliver_response()
1621 tid = 7 - 2 * ac; in ieee80211_sta_ps_deliver_response()
1901 u8 ac = ieee80211_ac_from_tid(tid); in ieee80211_sta_register_airtime() local
1909 spin_lock_bh(&local->active_txq_lock[ac]); in ieee80211_sta_register_airtime()
1910 sta->airtime[ac].tx_airtime += tx_airtime; in ieee80211_sta_register_airtime()
1911 sta->airtime[ac].rx_airtime += rx_airtime; in ieee80211_sta_register_airtime()
1912 sta->airtime[ac].deficit -= airtime; in ieee80211_sta_register_airtime()
1913 spin_unlock_bh(&local->active_txq_lock[ac]); in ieee80211_sta_register_airtime()
1918 struct sta_info *sta, u8 ac, in ieee80211_sta_update_pending_airtime() argument
1929 &sta->airtime[ac].aql_tx_pending); in ieee80211_sta_update_pending_airtime()
1937 &sta->airtime[ac].aql_tx_pending); in ieee80211_sta_update_pending_airtime()
1939 atomic_cmpxchg(&sta->airtime[ac].aql_tx_pending, in ieee80211_sta_update_pending_airtime()
1947 wiphy_name(local->hw.wiphy), ac, tx_pending, in ieee80211_sta_update_pending_airtime()
2261 int i, ac, cpu; in sta_set_sinfo() local
2297 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2298 sinfo->tx_bytes += sta->tx_stats.bytes[ac]; in sta_set_sinfo()
2304 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2305 sinfo->tx_packets += sta->tx_stats.packets[ac]; in sta_set_sinfo()
2350 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2351 sinfo->rx_duration += sta->airtime[ac].rx_airtime; in sta_set_sinfo()
2356 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2357 sinfo->tx_duration += sta->airtime[ac].tx_airtime; in sta_set_sinfo()