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()
742 static unsigned long ieee80211_tids_for_ac(int ac) in ieee80211_tids_for_ac() argument
745 switch (ac) { in ieee80211_tids_for_ac()
766 int ac; in __sta_info_recalc_tim() local
802 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __sta_info_recalc_tim()
805 if (ignore_for_tim & ieee80211_ac_to_qos_mask[ac]) in __sta_info_recalc_tim()
808 indicate_tim |= !skb_queue_empty(&sta->tx_filtered[ac]) || in __sta_info_recalc_tim()
809 !skb_queue_empty(&sta->ps_tx_buf[ac]); in __sta_info_recalc_tim()
813 tids = ieee80211_tids_for_ac(ac); in __sta_info_recalc_tim()
868 struct sta_info *sta, int ac) in sta_info_cleanup_expire_buffered_ac() argument
881 spin_lock_irqsave(&sta->tx_filtered[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
882 skb = skb_peek(&sta->tx_filtered[ac]); in sta_info_cleanup_expire_buffered_ac()
884 skb = __skb_dequeue(&sta->tx_filtered[ac]); in sta_info_cleanup_expire_buffered_ac()
887 spin_unlock_irqrestore(&sta->tx_filtered[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
907 spin_lock_irqsave(&sta->ps_tx_buf[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
908 skb = skb_peek(&sta->ps_tx_buf[ac]); in sta_info_cleanup_expire_buffered_ac()
910 skb = __skb_dequeue(&sta->ps_tx_buf[ac]); in sta_info_cleanup_expire_buffered_ac()
913 spin_unlock_irqrestore(&sta->ps_tx_buf[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
941 return !(skb_queue_empty(&sta->ps_tx_buf[ac]) && in sta_info_cleanup_expire_buffered_ac()
942 skb_queue_empty(&sta->tx_filtered[ac])); in sta_info_cleanup_expire_buffered_ac()
949 int ac; in sta_info_cleanup_expire_buffered() local
956 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_info_cleanup_expire_buffered()
958 sta_info_cleanup_expire_buffered_ac(local, sta, ac); in sta_info_cleanup_expire_buffered()
1270 int filtered = 0, buffered = 0, ac, i; in ieee80211_sta_ps_deliver_wakeup() local
1306 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_deliver_wakeup()
1309 spin_lock_irqsave(&sta->tx_filtered[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1310 skb_queue_splice_tail_init(&sta->tx_filtered[ac], &pending); in ieee80211_sta_ps_deliver_wakeup()
1311 spin_unlock_irqrestore(&sta->tx_filtered[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1316 spin_lock_irqsave(&sta->ps_tx_buf[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1317 skb_queue_splice_tail_init(&sta->ps_tx_buf[ac], &pending); in ieee80211_sta_ps_deliver_wakeup()
1318 spin_unlock_irqrestore(&sta->ps_tx_buf[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1474 int ac; in ieee80211_sta_ps_more_data() local
1485 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_more_data()
1486 if (ignored_acs & ieee80211_ac_to_qos_mask[ac]) in ieee80211_sta_ps_more_data()
1489 if (!skb_queue_empty(&sta->tx_filtered[ac]) || in ieee80211_sta_ps_more_data()
1490 !skb_queue_empty(&sta->ps_tx_buf[ac])) in ieee80211_sta_ps_more_data()
1505 int ac; in ieee80211_sta_ps_get_frames() local
1508 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_get_frames()
1511 if (ignored_acs & ieee80211_ac_to_qos_mask[ac]) in ieee80211_sta_ps_get_frames()
1514 tids = ieee80211_tids_for_ac(ac); in ieee80211_sta_ps_get_frames()
1529 skb = skb_dequeue(&sta->tx_filtered[ac]); in ieee80211_sta_ps_get_frames()
1532 &sta->ps_tx_buf[ac]); in ieee80211_sta_ps_get_frames()
1547 if (!skb_queue_empty(&sta->tx_filtered[ac]) || in ieee80211_sta_ps_get_frames()
1548 !skb_queue_empty(&sta->ps_tx_buf[ac])) in ieee80211_sta_ps_get_frames()
1579 int tid, ac; in ieee80211_sta_ps_deliver_response() local
1597 for (ac = IEEE80211_AC_VO; ac < IEEE80211_NUM_ACS; ac++) in ieee80211_sta_ps_deliver_response()
1598 if (!(ignored_acs & ieee80211_ac_to_qos_mask[ac])) in ieee80211_sta_ps_deliver_response()
1600 tid = 7 - 2 * ac; in ieee80211_sta_ps_deliver_response()
1880 u8 ac = ieee80211_ac_from_tid(tid); in ieee80211_sta_register_airtime() local
1888 spin_lock_bh(&local->active_txq_lock[ac]); in ieee80211_sta_register_airtime()
1889 sta->airtime[ac].tx_airtime += tx_airtime; in ieee80211_sta_register_airtime()
1890 sta->airtime[ac].rx_airtime += rx_airtime; in ieee80211_sta_register_airtime()
1891 sta->airtime[ac].deficit -= airtime; in ieee80211_sta_register_airtime()
1892 spin_unlock_bh(&local->active_txq_lock[ac]); in ieee80211_sta_register_airtime()
2178 int i, ac, cpu; in sta_set_sinfo() local
2214 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2215 sinfo->tx_bytes += sta->tx_stats.bytes[ac]; in sta_set_sinfo()
2221 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2222 sinfo->tx_packets += sta->tx_stats.packets[ac]; in sta_set_sinfo()
2266 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2267 sinfo->rx_duration += sta->airtime[ac].rx_airtime; in sta_set_sinfo()
2272 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2273 sinfo->tx_duration += sta->airtime[ac].tx_airtime; in sta_set_sinfo()