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()
609 /* Extended Key ID needs to install keys for keyid 0 and 1 Rx-only. in __sta_info_alloc()
624 sta->amsdu_mesh_control = -1; in __sta_info_alloc()
688 WARN_ON(1); in __sta_info_alloc()
729 return __sta_info_alloc(sdata, addr, -1, addr, gfp); in sta_info_alloc()
782 err = drv_sta_state(local, sdata, sta, state, state + 1); in sta_info_insert_drv_state()
800 sta->sta.addr, state + 1, err); in sta_info_insert_drv_state()
806 WARN_ON(drv_sta_state(local, sdata, sta, state, state - 1)); in sta_info_insert_drv_state()
884 ieee80211_recalc_min_chandef(sta->sdata, -1); in sta_info_insert_finish()
985 tim[id / 8] |= (1 << (id % 8)); in __bss_tim_set()
994 tim[id / 8] &= ~(1 << (id % 8)); in __bss_tim_clear()
1003 return tim[id / 8] & (1 << (id % 8)); in __bss_tim_get()
1006 static unsigned long ieee80211_tids_for_ac(int ac) in ieee80211_tids_for_ac() argument
1009 switch (ac) { in ieee80211_tids_for_ac()
1017 return BIT(1) | BIT(2); in ieee80211_tids_for_ac()
1019 WARN_ON(1); in ieee80211_tids_for_ac()
1030 int ac; in __sta_info_recalc_tim() local
1060 if (ignore_for_tim == BIT(IEEE80211_NUM_ACS) - 1) in __sta_info_recalc_tim()
1064 ignore_for_tim = BIT(IEEE80211_NUM_ACS) - 1; in __sta_info_recalc_tim()
1066 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __sta_info_recalc_tim()
1069 if (ignore_for_tim & ieee80211_ac_to_qos_mask[ac]) in __sta_info_recalc_tim()
1072 indicate_tim |= !skb_queue_empty(&sta->tx_filtered[ac]) || in __sta_info_recalc_tim()
1073 !skb_queue_empty(&sta->ps_tx_buf[ac]); in __sta_info_recalc_tim()
1077 tids = ieee80211_tids_for_ac(ac); in __sta_info_recalc_tim()
1132 struct sta_info *sta, int ac) in sta_info_cleanup_expire_buffered_ac() argument
1145 spin_lock_irqsave(&sta->tx_filtered[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
1146 skb = skb_peek(&sta->tx_filtered[ac]); in sta_info_cleanup_expire_buffered_ac()
1148 skb = __skb_dequeue(&sta->tx_filtered[ac]); in sta_info_cleanup_expire_buffered_ac()
1151 spin_unlock_irqrestore(&sta->tx_filtered[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
1171 spin_lock_irqsave(&sta->ps_tx_buf[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
1172 skb = skb_peek(&sta->ps_tx_buf[ac]); in sta_info_cleanup_expire_buffered_ac()
1174 skb = __skb_dequeue(&sta->ps_tx_buf[ac]); in sta_info_cleanup_expire_buffered_ac()
1177 spin_unlock_irqrestore(&sta->ps_tx_buf[ac].lock, flags); in sta_info_cleanup_expire_buffered_ac()
1205 return !(skb_queue_empty(&sta->ps_tx_buf[ac]) && in sta_info_cleanup_expire_buffered_ac()
1206 skb_queue_empty(&sta->tx_filtered[ac])); in sta_info_cleanup_expire_buffered_ac()
1213 int ac; in sta_info_cleanup_expire_buffered() local
1220 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_info_cleanup_expire_buffered()
1222 sta_info_cleanup_expire_buffered_ac(local, sta, ac); in sta_info_cleanup_expire_buffered()
1330 WARN(1, "invalid state %d", new_state); in _sta_info_move_state()
1364 ieee80211_recalc_min_chandef(sta->sdata, -1); in _sta_info_move_state()
1375 ieee80211_recalc_min_chandef(sta->sdata, -1); in _sta_info_move_state()
1487 ret = _sta_info_move_state(sta, sta->sta_state - 1, recalc); in __sta_info_destroy_part2()
1489 WARN_ON_ONCE(1); in __sta_info_destroy_part2()
1643 ieee80211_recalc_min_chandef(sdata, -1); in __sta_info_flush()
1728 int filtered = 0, buffered = 0, ac, i; in ieee80211_sta_ps_deliver_wakeup() local
1745 BUILD_BUG_ON(BITS_TO_LONGS(IEEE80211_NUM_TIDS) > 1); in ieee80211_sta_ps_deliver_wakeup()
1764 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_deliver_wakeup()
1767 spin_lock_irqsave(&sta->tx_filtered[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1768 skb_queue_splice_tail_init(&sta->tx_filtered[ac], &pending); in ieee80211_sta_ps_deliver_wakeup()
1769 spin_unlock_irqrestore(&sta->tx_filtered[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1774 spin_lock_irqsave(&sta->ps_tx_buf[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1775 skb_queue_splice_tail_init(&sta->ps_tx_buf[ac], &pending); in ieee80211_sta_ps_deliver_wakeup()
1776 spin_unlock_irqrestore(&sta->ps_tx_buf[ac].lock, flags); in ieee80211_sta_ps_deliver_wakeup()
1874 drv_allow_buffered_frames(local, sta, BIT(tid), 1, in ieee80211_send_null_response()
1896 return fls(tids) - 1; in find_highest_prio_tid()
1900 return fls(tids) - 1; in find_highest_prio_tid()
1913 int ac; in ieee80211_sta_ps_more_data() local
1921 hweight16(driver_release_tids) > 1) in ieee80211_sta_ps_more_data()
1924 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_more_data()
1925 if (ignored_acs & ieee80211_ac_to_qos_mask[ac]) in ieee80211_sta_ps_more_data()
1928 if (!skb_queue_empty(&sta->tx_filtered[ac]) || in ieee80211_sta_ps_more_data()
1929 !skb_queue_empty(&sta->ps_tx_buf[ac])) in ieee80211_sta_ps_more_data()
1944 int ac; in ieee80211_sta_ps_get_frames() local
1947 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_sta_ps_get_frames()
1950 if (ignored_acs & ieee80211_ac_to_qos_mask[ac]) in ieee80211_sta_ps_get_frames()
1953 tids = ieee80211_tids_for_ac(ac); in ieee80211_sta_ps_get_frames()
1968 skb = skb_dequeue(&sta->tx_filtered[ac]); in ieee80211_sta_ps_get_frames()
1971 &sta->ps_tx_buf[ac]); in ieee80211_sta_ps_get_frames()
1982 /* If we have more frames buffered on this AC, then abort the in ieee80211_sta_ps_get_frames()
1986 if (!skb_queue_empty(&sta->tx_filtered[ac]) || in ieee80211_sta_ps_get_frames()
1987 !skb_queue_empty(&sta->ps_tx_buf[ac])) in ieee80211_sta_ps_get_frames()
2018 int tid, ac; in ieee80211_sta_ps_deliver_response() local
2035 /* This will evaluate to 1, 3, 5 or 7. */ in ieee80211_sta_ps_deliver_response()
2036 for (ac = IEEE80211_AC_VO; ac < IEEE80211_NUM_ACS; ac++) in ieee80211_sta_ps_deliver_response()
2037 if (!(ignored_acs & ieee80211_ac_to_qos_mask[ac])) in ieee80211_sta_ps_deliver_response()
2039 tid = 7 - 2 * ac; in ieee80211_sta_ps_deliver_response()
2124 * expect more-data=0 when eosp=1. in ieee80211_sta_ps_deliver_response()
2192 if (ignore_for_response == BIT(IEEE80211_NUM_ACS) - 1) in ieee80211_sta_ps_deliver_poll_response()
2195 ieee80211_sta_ps_deliver_response(sta, 1, ignore_for_response, in ieee80211_sta_ps_deliver_poll_response()
2214 case 1: in ieee80211_sta_ps_deliver_uapsd()
2316 u8 ac = ieee80211_ac_from_tid(tid); in ieee80211_sta_register_airtime() local
2324 spin_lock_bh(&local->active_txq_lock[ac]); in ieee80211_sta_register_airtime()
2325 sta->airtime[ac].tx_airtime += tx_airtime; in ieee80211_sta_register_airtime()
2326 sta->airtime[ac].rx_airtime += rx_airtime; in ieee80211_sta_register_airtime()
2328 if (ieee80211_sta_keep_active(sta, ac)) in ieee80211_sta_register_airtime()
2329 sta->airtime[ac].deficit -= airtime; in ieee80211_sta_register_airtime()
2331 spin_unlock_bh(&local->active_txq_lock[ac]); in ieee80211_sta_register_airtime()
2389 struct sta_info *sta, u8 ac, in ieee80211_sta_update_pending_airtime() argument
2400 &sta->airtime[ac].aql_tx_pending); in ieee80211_sta_update_pending_airtime()
2403 atomic_add(tx_airtime, &local->aql_ac_pending_airtime[ac]); in ieee80211_sta_update_pending_airtime()
2409 &sta->airtime[ac].aql_tx_pending); in ieee80211_sta_update_pending_airtime()
2411 atomic_cmpxchg(&sta->airtime[ac].aql_tx_pending, in ieee80211_sta_update_pending_airtime()
2417 &local->aql_ac_pending_airtime[ac]); in ieee80211_sta_update_pending_airtime()
2419 "Device %s AC %d pending airtime underflow: %u, %u", in ieee80211_sta_update_pending_airtime()
2420 wiphy_name(local->hw.wiphy), ac, tx_pending, in ieee80211_sta_update_pending_airtime()
2422 atomic_cmpxchg(&local->aql_ac_pending_airtime[ac], in ieee80211_sta_update_pending_airtime()
2484 shift = 1; in sta_stats_decode_rate()
2487 rinfo->legacy = DIV_ROUND_UP(brate, 1 << shift); in sta_stats_decode_rate()
2607 int i, ac, cpu; in sta_set_sinfo() local
2643 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2644 sinfo->tx_bytes += sta->deflink.tx_stats.bytes[ac]; in sta_set_sinfo()
2650 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2651 sinfo->tx_packets += sta->deflink.tx_stats.packets[ac]; in sta_set_sinfo()
2697 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2698 sinfo->rx_duration += sta->airtime[ac].rx_airtime; in sta_set_sinfo()
2703 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_set_sinfo()
2704 sinfo->tx_duration += sta->airtime[ac].tx_airtime; in sta_set_sinfo()
2781 for (i = 0; i < IEEE80211_NUM_TIDS + 1; i++) in sta_set_sinfo()
3048 WLAN_EXT_CAPA9_MAX_MSDU_IN_AMSDU_MSB) << 1; in ieee80211_sta_set_max_amsdu_subframes()