Lines Matching +full:1 +full:ac

134 	int ac, i;
160 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) {
161 local->total_ps_buffered -= skb_queue_len(&sta->ps_tx_buf[ac]);
162 ieee80211_purge_tx_queue(&local->hw, &sta->ps_tx_buf[ac]);
163 ieee80211_purge_tx_queue(&local->hw, &sta->tx_filtered[ac]);
363 int ac, tid;
366 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) {
368 link_sta->tx_stats.packets[ac];
369 sta->rem_link_stats.tx_bytes += link_sta->tx_stats.bytes[ac];
476 ret = sta_info_move_state(sta, sta->sta_state - 1);
656 /* Extended Key ID needs to install keys for keyid 0 and 1 Rx-only.
671 sta->amsdu_mesh_control = -1;
736 WARN_ON(1);
771 return __sta_info_alloc(sdata, addr, -1, addr, gfp);
824 err = drv_sta_state(local, sdata, sta, state, state + 1);
842 sta->sta.addr, state + 1, err);
848 WARN_ON(drv_sta_state(local, sdata, sta, state, state - 1));
926 ieee80211_recalc_min_chandef(sta->sdata, -1);
1027 tim[id / 8] |= (1 << (id % 8));
1036 tim[id / 8] &= ~(1 << (id % 8));
1045 return tim[id / 8] & (1 << (id % 8));
1048 static unsigned long ieee80211_tids_for_ac(int ac)
1051 switch (ac) {
1059 return BIT(1) | BIT(2);
1061 WARN_ON(1);
1072 int ac;
1102 if (ignore_for_tim == BIT(IEEE80211_NUM_ACS) - 1)
1106 ignore_for_tim = BIT(IEEE80211_NUM_ACS) - 1;
1108 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) {
1111 if (ignore_for_tim & ieee80211_ac_to_qos_mask[ac])
1114 indicate_tim |= !skb_queue_empty(&sta->tx_filtered[ac]) ||
1115 !skb_queue_empty(&sta->ps_tx_buf[ac]);
1119 tids = ieee80211_tids_for_ac(ac);
1174 struct sta_info *sta, int ac)
1187 spin_lock_irqsave(&sta->tx_filtered[ac].lock, flags);
1188 skb = skb_peek(&sta->tx_filtered[ac]);
1190 skb = __skb_dequeue(&sta->tx_filtered[ac]);
1193 spin_unlock_irqrestore(&sta->tx_filtered[ac].lock, flags);
1213 spin_lock_irqsave(&sta->ps_tx_buf[ac].lock, flags);
1214 skb = skb_peek(&sta->ps_tx_buf[ac]);
1216 skb = __skb_dequeue(&sta->ps_tx_buf[ac]);
1219 spin_unlock_irqrestore(&sta->ps_tx_buf[ac].lock, flags);
1247 return !(skb_queue_empty(&sta->ps_tx_buf[ac]) &&
1248 skb_queue_empty(&sta->tx_filtered[ac]));
1255 int ac;
1262 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++)
1264 sta_info_cleanup_expire_buffered_ac(local, sta, ac);
1372 WARN(1, "invalid state %d", new_state);
1406 ieee80211_recalc_min_chandef(sta->sdata, -1);
1417 ieee80211_recalc_min_chandef(sta->sdata, -1);
1529 ret = _sta_info_move_state(sta, sta->sta_state - 1, recalc);
1531 WARN_ON_ONCE(1);
1686 ieee80211_recalc_min_chandef(sdata, -1);
1703 unsigned long last_active = ieee80211_sta_last_active(sta, -1);
1771 int filtered = 0, buffered = 0, ac, i;
1788 BUILD_BUG_ON(BITS_TO_LONGS(IEEE80211_NUM_TIDS) > 1);
1807 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) {
1810 spin_lock_irqsave(&sta->tx_filtered[ac].lock, flags);
1811 skb_queue_splice_tail_init(&sta->tx_filtered[ac], &pending);
1812 spin_unlock_irqrestore(&sta->tx_filtered[ac].lock, flags);
1817 spin_lock_irqsave(&sta->ps_tx_buf[ac].lock, flags);
1818 skb_queue_splice_tail_init(&sta->ps_tx_buf[ac], &pending);
1819 spin_unlock_irqrestore(&sta->ps_tx_buf[ac].lock, flags);
1917 drv_allow_buffered_frames(local, sta, BIT(tid), 1,
1939 return fls(tids) - 1;
1943 return fls(tids) - 1;
1956 int ac;
1964 hweight16(driver_release_tids) > 1)
1967 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) {
1968 if (ignored_acs & ieee80211_ac_to_qos_mask[ac])
1971 if (!skb_queue_empty(&sta->tx_filtered[ac]) ||
1972 !skb_queue_empty(&sta->ps_tx_buf[ac]))
1987 int ac;
1990 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) {
1993 if (ignored_acs & ieee80211_ac_to_qos_mask[ac])
1996 tids = ieee80211_tids_for_ac(ac);
2011 skb = skb_dequeue(&sta->tx_filtered[ac]);
2014 &sta->ps_tx_buf[ac]);
2025 /* If we have more frames buffered on this AC, then abort the
2029 if (!skb_queue_empty(&sta->tx_filtered[ac]) ||
2030 !skb_queue_empty(&sta->ps_tx_buf[ac]))
2061 int tid, ac;
2078 /* This will evaluate to 1, 3, 5 or 7. */
2079 for (ac = IEEE80211_AC_VO; ac < IEEE80211_NUM_ACS; ac++)
2080 if (!(ignored_acs & ieee80211_ac_to_qos_mask[ac]))
2082 tid = 7 - 2 * ac;
2167 * expect more-data=0 when eosp=1.
2235 if (ignore_for_response == BIT(IEEE80211_NUM_ACS) - 1)
2238 ieee80211_sta_ps_deliver_response(sta, 1, ignore_for_response,
2257 case 1:
2359 u8 ac = ieee80211_ac_from_tid(tid);
2367 spin_lock_bh(&local->active_txq_lock[ac]);
2368 sta->airtime[ac].tx_airtime += tx_airtime;
2369 sta->airtime[ac].rx_airtime += rx_airtime;
2371 if (ieee80211_sta_keep_active(sta, ac))
2372 sta->airtime[ac].deficit -= airtime;
2374 spin_unlock_bh(&local->active_txq_lock[ac]);
2432 struct sta_info *sta, u8 ac,
2443 &sta->airtime[ac].aql_tx_pending);
2446 atomic_add(tx_airtime, &local->aql_ac_pending_airtime[ac]);
2452 &sta->airtime[ac].aql_tx_pending);
2454 atomic_cmpxchg(&sta->airtime[ac].aql_tx_pending,
2460 &local->aql_ac_pending_airtime[ac]);
2462 "Device %s AC %d pending airtime underflow: %u, %u",
2463 wiphy_name(local->hw.wiphy), ac, tx_pending,
2465 atomic_cmpxchg(&local->aql_ac_pending_airtime[ac],
2536 shift = 1;
2539 rinfo->legacy = DIV_ROUND_UP(brate, 1 << shift);
2728 int i, ac, cpu, link_id = link->link_id;
2766 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++)
2768 link_sta_info->tx_stats.bytes[ac];
2774 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++)
2776 link_sta_info->tx_stats.packets[ac];
2826 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++)
2827 link_sinfo->rx_duration += sta->airtime[ac].rx_airtime;
2832 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++)
2833 link_sinfo->tx_duration += sta->airtime[ac].tx_airtime;
2858 ieee80211_ave_rssi(&sdata->vif, -1);
2917 for (i = 0; i < IEEE80211_NUM_TIDS + 1; i++)
2963 int i, ac, cpu;
2966 last_rxstats = sta_get_last_rx_stats(sta, -1);
2994 jiffies_to_msecs(jiffies - ieee80211_sta_last_active(sta, -1));
2999 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++)
3000 sinfo->tx_bytes += sta->deflink.tx_stats.bytes[ac];
3006 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++)
3007 sinfo->tx_packets += sta->deflink.tx_stats.packets[ac];
3053 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++)
3054 sinfo->rx_duration += sta->airtime[ac].rx_airtime;
3059 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++)
3060 sinfo->tx_duration += sta->airtime[ac].tx_airtime;
3084 ieee80211_ave_rssi(&sdata->vif, -1);
3133 if (sta_set_rate_info_rx(sta, &sinfo->rxrate, -1) == 0)
3138 for (i = 0; i < IEEE80211_NUM_TIDS + 1; i++)
3139 sta_set_tidstats(sta, &sinfo->pertid[i], i, -1);
3392 WLAN_EXT_CAPA9_MAX_MSDU_IN_AMSDU_MSB) << 1;