Lines Matching +full:1 +full:ac

135 	int ac, i;  in __cleanup_single_sta()  local
161 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __cleanup_single_sta()
162 local->total_ps_buffered -= skb_queue_len(&sta->ps_tx_buf[ac]); in __cleanup_single_sta()
163 ieee80211_purge_tx_queue(&local->hw, &sta->ps_tx_buf[ac]); in __cleanup_single_sta()
164 ieee80211_purge_tx_queue(&local->hw, &sta->tx_filtered[ac]); in __cleanup_single_sta()
429 ret = sta_info_move_state(sta, sta->sta_state - 1); in sta_info_free()
591 /* Extended Key ID needs to install keys for keyid 0 and 1 Rx-only. in __sta_info_alloc()
606 sta->amsdu_mesh_control = -1; in __sta_info_alloc()
670 WARN_ON(1); in __sta_info_alloc()
711 return __sta_info_alloc(sdata, addr, -1, addr, gfp); in sta_info_alloc()
764 err = drv_sta_state(local, sdata, sta, state, state + 1); in sta_info_insert_drv_state()
782 sta->sta.addr, state + 1, err); in sta_info_insert_drv_state()
788 WARN_ON(drv_sta_state(local, sdata, sta, state, state - 1)); in sta_info_insert_drv_state()
866 ieee80211_recalc_min_chandef(sta->sdata, -1); in sta_info_insert_finish()
967 tim[id / 8] |= (1 << (id % 8)); in __bss_tim_set()
976 tim[id / 8] &= ~(1 << (id % 8)); in __bss_tim_clear()
985 return tim[id / 8] & (1 << (id % 8)); in __bss_tim_get()
988 static unsigned long ieee80211_tids_for_ac(int ac) in ieee80211_tids_for_ac() argument
991 switch (ac) { in ieee80211_tids_for_ac()
999 return BIT(1) | BIT(2); in ieee80211_tids_for_ac()
1001 WARN_ON(1); in ieee80211_tids_for_ac()
1012 int ac; in __sta_info_recalc_tim() local
1042 if (ignore_for_tim == BIT(IEEE80211_NUM_ACS) - 1) in __sta_info_recalc_tim()
1046 ignore_for_tim = BIT(IEEE80211_NUM_ACS) - 1; in __sta_info_recalc_tim()
1048 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __sta_info_recalc_tim()
1051 if (ignore_for_tim & ieee80211_ac_to_qos_mask[ac]) in __sta_info_recalc_tim()
1054 indicate_tim |= !skb_queue_empty(&sta->tx_filtered[ac]) || in __sta_info_recalc_tim()
1055 !skb_queue_empty(&sta->ps_tx_buf[ac]); in __sta_info_recalc_tim()
1059 tids = ieee80211_tids_for_ac(ac); in __sta_info_recalc_tim()
1114 struct sta_info *sta, int ac) in sta_info_cleanup_expire_buffered_ac() argument
1127 spin_lock_irqsave(&sta->tx_filtered[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
1128 skb = skb_peek(&sta->tx_filtered[ac]); in sta_info_cleanup_expire_buffered_ac()
1130 skb = __skb_dequeue(&sta->tx_filtered[ac]); in sta_info_cleanup_expire_buffered_ac()
1133 spin_unlock_irqrestore(&sta->tx_filtered[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
1153 spin_lock_irqsave(&sta->ps_tx_buf[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
1154 skb = skb_peek(&sta->ps_tx_buf[ac]); in sta_info_cleanup_expire_buffered_ac()
1156 skb = __skb_dequeue(&sta->ps_tx_buf[ac]); in sta_info_cleanup_expire_buffered_ac()
1159 spin_unlock_irqrestore(&sta->ps_tx_buf[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
1187 return !(skb_queue_empty(&sta->ps_tx_buf[ac]) && in sta_info_cleanup_expire_buffered_ac()
1188 skb_queue_empty(&sta->tx_filtered[ac])); in sta_info_cleanup_expire_buffered_ac()
1195 int ac; in sta_info_cleanup_expire_buffered() local
1202 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_info_cleanup_expire_buffered()
1204 sta_info_cleanup_expire_buffered_ac(local, sta, ac); in sta_info_cleanup_expire_buffered()
1312 WARN(1, "invalid state %d", new_state); in _sta_info_move_state()
1342 ieee80211_recalc_min_chandef(sta->sdata, -1); in _sta_info_move_state()
1353 ieee80211_recalc_min_chandef(sta->sdata, -1); in _sta_info_move_state()
1455 ret = _sta_info_move_state(sta, sta->sta_state - 1, recalc); in __sta_info_destroy_part2()
1457 WARN_ON_ONCE(1); in __sta_info_destroy_part2()
1601 ieee80211_recalc_min_chandef(sdata, -1); in __sta_info_flush()
1686 int filtered = 0, buffered = 0, ac, i; in ieee80211_sta_ps_deliver_wakeup() local
1703 BUILD_BUG_ON(BITS_TO_LONGS(IEEE80211_NUM_TIDS) > 1); in ieee80211_sta_ps_deliver_wakeup()
1722 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_deliver_wakeup()
1725 spin_lock_irqsave(&sta->tx_filtered[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1726 skb_queue_splice_tail_init(&sta->tx_filtered[ac], &pending); in ieee80211_sta_ps_deliver_wakeup()
1727 spin_unlock_irqrestore(&sta->tx_filtered[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1732 spin_lock_irqsave(&sta->ps_tx_buf[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1733 skb_queue_splice_tail_init(&sta->ps_tx_buf[ac], &pending); in ieee80211_sta_ps_deliver_wakeup()
1734 spin_unlock_irqrestore(&sta->ps_tx_buf[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1832 drv_allow_buffered_frames(local, sta, BIT(tid), 1, in ieee80211_send_null_response()
1854 return fls(tids) - 1; in find_highest_prio_tid()
1858 return fls(tids) - 1; in find_highest_prio_tid()
1871 int ac; in ieee80211_sta_ps_more_data() local
1879 hweight16(driver_release_tids) > 1) in ieee80211_sta_ps_more_data()
1882 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_more_data()
1883 if (ignored_acs & ieee80211_ac_to_qos_mask[ac]) in ieee80211_sta_ps_more_data()
1886 if (!skb_queue_empty(&sta->tx_filtered[ac]) || in ieee80211_sta_ps_more_data()
1887 !skb_queue_empty(&sta->ps_tx_buf[ac])) in ieee80211_sta_ps_more_data()
1902 int ac; in ieee80211_sta_ps_get_frames() local
1905 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_get_frames()
1908 if (ignored_acs & ieee80211_ac_to_qos_mask[ac]) in ieee80211_sta_ps_get_frames()
1911 tids = ieee80211_tids_for_ac(ac); in ieee80211_sta_ps_get_frames()
1926 skb = skb_dequeue(&sta->tx_filtered[ac]); in ieee80211_sta_ps_get_frames()
1929 &sta->ps_tx_buf[ac]); in ieee80211_sta_ps_get_frames()
1940 /* If we have more frames buffered on this AC, then abort the in ieee80211_sta_ps_get_frames()
1944 if (!skb_queue_empty(&sta->tx_filtered[ac]) || in ieee80211_sta_ps_get_frames()
1945 !skb_queue_empty(&sta->ps_tx_buf[ac])) in ieee80211_sta_ps_get_frames()
1976 int tid, ac; in ieee80211_sta_ps_deliver_response() local
1993 /* This will evaluate to 1, 3, 5 or 7. */ in ieee80211_sta_ps_deliver_response()
1994 for (ac = IEEE80211_AC_VO; ac < IEEE80211_NUM_ACS; ac++) in ieee80211_sta_ps_deliver_response()
1995 if (!(ignored_acs & ieee80211_ac_to_qos_mask[ac])) in ieee80211_sta_ps_deliver_response()
1997 tid = 7 - 2 * ac; in ieee80211_sta_ps_deliver_response()
2082 * expect more-data=0 when eosp=1. in ieee80211_sta_ps_deliver_response()
2150 if (ignore_for_response == BIT(IEEE80211_NUM_ACS) - 1) in ieee80211_sta_ps_deliver_poll_response()
2153 ieee80211_sta_ps_deliver_response(sta, 1, ignore_for_response, in ieee80211_sta_ps_deliver_poll_response()
2172 case 1: in ieee80211_sta_ps_deliver_uapsd()
2274 u8 ac = ieee80211_ac_from_tid(tid); in ieee80211_sta_register_airtime() local
2282 spin_lock_bh(&local->active_txq_lock[ac]); in ieee80211_sta_register_airtime()
2283 sta->airtime[ac].tx_airtime += tx_airtime; in ieee80211_sta_register_airtime()
2284 sta->airtime[ac].rx_airtime += rx_airtime; in ieee80211_sta_register_airtime()
2286 if (ieee80211_sta_keep_active(sta, ac)) in ieee80211_sta_register_airtime()
2287 sta->airtime[ac].deficit -= airtime; in ieee80211_sta_register_airtime()
2289 spin_unlock_bh(&local->active_txq_lock[ac]); in ieee80211_sta_register_airtime()
2347 struct sta_info *sta, u8 ac, in ieee80211_sta_update_pending_airtime() argument
2358 &sta->airtime[ac].aql_tx_pending); in ieee80211_sta_update_pending_airtime()
2361 atomic_add(tx_airtime, &local->aql_ac_pending_airtime[ac]); in ieee80211_sta_update_pending_airtime()
2367 &sta->airtime[ac].aql_tx_pending); in ieee80211_sta_update_pending_airtime()
2369 atomic_cmpxchg(&sta->airtime[ac].aql_tx_pending, in ieee80211_sta_update_pending_airtime()
2375 &local->aql_ac_pending_airtime[ac]); in ieee80211_sta_update_pending_airtime()
2377 "Device %s AC %d pending airtime underflow: %u, %u", in ieee80211_sta_update_pending_airtime()
2378 wiphy_name(local->hw.wiphy), ac, tx_pending, in ieee80211_sta_update_pending_airtime()
2380 atomic_cmpxchg(&local->aql_ac_pending_airtime[ac], in ieee80211_sta_update_pending_airtime()
2442 shift = 1; in sta_stats_decode_rate()
2445 rinfo->legacy = DIV_ROUND_UP(brate, 1 << shift); in sta_stats_decode_rate()
2565 int i, ac, cpu; in sta_set_sinfo() local
2601 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2602 sinfo->tx_bytes += sta->deflink.tx_stats.bytes[ac]; in sta_set_sinfo()
2608 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2609 sinfo->tx_packets += sta->deflink.tx_stats.packets[ac]; in sta_set_sinfo()
2655 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2656 sinfo->rx_duration += sta->airtime[ac].rx_airtime; in sta_set_sinfo()
2661 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2662 sinfo->tx_duration += sta->airtime[ac].tx_airtime; in sta_set_sinfo()
2739 for (i = 0; i < IEEE80211_NUM_TIDS + 1; i++) in sta_set_sinfo()
3006 WLAN_EXT_CAPA9_MAX_MSDU_IN_AMSDU_MSB) << 1; in ieee80211_sta_set_max_amsdu_subframes()