| /Linux-v5.10/drivers/net/wireless/intel/iwlwifi/mvm/ |
| D | utils.c | 1020 u8 iwl_mvm_tcm_load_percentage(u32 airtime, u32 elapsed) in iwl_mvm_tcm_load_percentage() argument 1025 return (100 * airtime / elapsed) / USEC_PER_MSEC; in iwl_mvm_tcm_load_percentage() 1029 iwl_mvm_tcm_load(struct iwl_mvm *mvm, u32 airtime, unsigned long elapsed) in iwl_mvm_tcm_load() argument 1031 u8 load = iwl_mvm_tcm_load_percentage(airtime, elapsed); in iwl_mvm_tcm_load() 1230 u32 airtime = mdata->rx.airtime + mdata->tx.airtime; in iwl_mvm_calc_tcm_stats() local 1232 total_airtime += airtime; in iwl_mvm_calc_tcm_stats() 1233 band_airtime[band[mac]] += airtime; in iwl_mvm_calc_tcm_stats() 1235 load = iwl_mvm_tcm_load(mvm, airtime, elapsed); in iwl_mvm_calc_tcm_stats() 1238 mvm->tcm.result.airtime[mac] = airtime; in iwl_mvm_calc_tcm_stats() 1263 memset(&mdata->rx.airtime, 0, sizeof(mdata->rx.airtime)); in iwl_mvm_calc_tcm_stats() [all …]
|
| D | rx.c | 287 mdata->rx.airtime += le16_to_cpu(phy_info->frame_time); in iwl_mvm_rx_handle_tcm() 728 u32 airtime = le32_to_cpu(air_time_le[i]); in iwl_mvm_update_tcm_from_stats() local 730 mdata->rx.airtime += airtime; in iwl_mvm_update_tcm_from_stats() 732 if (airtime) { in iwl_mvm_update_tcm_from_stats() 736 rx_bytes * 8 / airtime); in iwl_mvm_update_tcm_from_stats()
|
| D | mvm.h | 614 u32 airtime; member 618 u32 airtime; member 640 u32 airtime[NUM_MAC_INDEX_DRIVER]; member 2073 u8 iwl_mvm_tcm_load_percentage(u32 airtime, u32 elapsed);
|
| D | tx.c | 1017 int airtime) in iwl_mvm_tx_airtime() argument 1033 mdata->tx.airtime += airtime; in iwl_mvm_tx_airtime()
|
| /Linux-v5.10/net/mac80211/ |
| D | debugfs_sta.c | 213 rx_airtime += sta->airtime[ac].rx_airtime; in sta_airtime_read() 214 tx_airtime += sta->airtime[ac].tx_airtime; in sta_airtime_read() 215 deficit[ac] = sta->airtime[ac].deficit; in sta_airtime_read() 239 sta->airtime[ac].rx_airtime = 0; in sta_airtime_write() 240 sta->airtime[ac].tx_airtime = 0; in sta_airtime_write() 241 sta->airtime[ac].deficit = sta->airtime_weight; in sta_airtime_write() 247 STA_OPS_RW(airtime); 266 q_limit_l[ac] = sta->airtime[ac].aql_limit_low; in sta_aql_read() 267 q_limit_h[ac] = sta->airtime[ac].aql_limit_high; in sta_aql_read() 269 q_depth[ac] = atomic_read(&sta->airtime[ac].aql_tx_pending); in sta_aql_read() [all …]
|
| D | sta_info.c | 431 sta->airtime[i].deficit = sta->airtime_weight; in sta_info_alloc() 432 atomic_set(&sta->airtime[i].aql_tx_pending, 0); in sta_info_alloc() 433 sta->airtime[i].aql_limit_low = local->aql_txq_limit_low[i]; in sta_info_alloc() 434 sta->airtime[i].aql_limit_high = local->aql_txq_limit_high[i]; in sta_info_alloc() 1902 u32 airtime = 0; in ieee80211_sta_register_airtime() local 1905 airtime += tx_airtime; in ieee80211_sta_register_airtime() 1907 airtime += rx_airtime; 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() [all …]
|
| D | debugfs.c | 270 if (sta->airtime[ac].aql_limit_low == q_limit_low_old && in aql_txq_limit_write() 271 sta->airtime[ac].aql_limit_high == q_limit_high_old) { in aql_txq_limit_write() 272 sta->airtime[ac].aql_limit_low = q_limit_low; in aql_txq_limit_write() 273 sta->airtime[ac].aql_limit_high = q_limit_high; in aql_txq_limit_write()
|
| D | Makefile | 37 airtime.o
|
| D | tx.c | 3738 u32 airtime; in ieee80211_tx_dequeue() local 3740 airtime = ieee80211_calc_expected_tx_airtime(hw, vif, txq->sta, in ieee80211_tx_dequeue() 3742 if (airtime) { in ieee80211_tx_dequeue() 3743 airtime = ieee80211_info_set_tx_time_est(info, airtime); in ieee80211_tx_dequeue() 3746 airtime, in ieee80211_tx_dequeue() 3790 s64 deficit = sta->airtime[txqi->txq.ac].deficit; in ieee80211_next_txq() 3796 sta->airtime[txqi->txq.ac].deficit += in ieee80211_next_txq() 3866 if (atomic_read(&sta->airtime[txq->ac].aql_tx_pending) < in ieee80211_txq_airtime_check() 3867 sta->airtime[txq->ac].aql_limit_low) in ieee80211_txq_airtime_check() 3872 atomic_read(&sta->airtime[txq->ac].aql_tx_pending) < in ieee80211_txq_airtime_check() [all …]
|
| D | sta_info.h | 617 struct airtime_info airtime[IEEE80211_NUM_ACS]; member
|
| /Linux-v5.10/drivers/net/wireless/ath/ath9k/ |
| D | recv.c | 1023 u32 airtime = 0; in ath_rx_count_airtime() local 1045 airtime += ath_pkt_duration(sc, rxs->rate_idx, len, in ath_rx_count_airtime() 1051 airtime += ath9k_hw_computetxtime(ah, phy, rate->bitrate * 100, in ath_rx_count_airtime() 1055 ieee80211_sta_register_airtime(sta, tidno, 0, airtime); in ath_rx_count_airtime()
|
| D | xmit.c | 669 u32 airtime = 0; in ath_tx_count_airtime() local 672 airtime += ts->duration * (ts->ts_longretry + 1); in ath_tx_count_airtime() 675 airtime += rate_dur * bf->rates[i].count; in ath_tx_count_airtime() 678 ieee80211_sta_register_airtime(sta, tid, airtime, 0); in ath_tx_count_airtime()
|
| /Linux-v5.10/drivers/net/wireless/mediatek/mt76/ |
| D | mac80211.c | 798 u32 airtime; in mt76_airtime_report() local 800 airtime = ieee80211_calc_rx_airtime(dev->hw, &info, len); in mt76_airtime_report() 802 dev->cur_cc_bss_rx += airtime; in mt76_airtime_report() 809 ieee80211_sta_register_airtime(sta, status->tid, 0, airtime); in mt76_airtime_report()
|
| /Linux-v5.10/drivers/net/wireless/mediatek/mt76/mt7603/ |
| D | mac.c | 403 u32 airtime[4]; in mt7603_mac_sta_poll() local 428 airtime[i] = msta->tx_airtime_ac[i] - airtime_last; in mt7603_mac_sta_poll() 429 airtime[i] *= 32; in mt7603_mac_sta_poll() 430 total_airtime += airtime[i]; in mt7603_mac_sta_poll() 451 u32 txtime = airtime[qidx]; in mt7603_mac_sta_poll()
|
| /Linux-v5.10/drivers/net/wireless/intersil/p54/ |
| D | lmac.h | 418 __le32 airtime; member
|
| /Linux-v5.10/drivers/net/wireless/ath/ath10k/ |
| D | mac.c | 3688 struct sk_buff *skb, u16 airtime) in ath10k_mac_tx_h_fill_cb() argument 3741 cb->airtime_est = airtime; in ath10k_mac_tx_h_fill_cb() 4156 u16 airtime = 0; in ath10k_mac_update_airtime() local 4159 return airtime; in ath10k_mac_update_airtime() 4162 return airtime; in ath10k_mac_update_airtime() 4170 airtime = (pktlen * 8 * (1000 / 100)) in ath10k_mac_update_airtime() 4173 airtime += IEEE80211_ATF_OVERHEAD_IFS; in ath10k_mac_update_airtime() 4180 airtime = (pktlen * 8 * (1000 / 100)) / 60; /* 6M */ in ath10k_mac_update_airtime() 4181 airtime += IEEE80211_ATF_OVERHEAD; in ath10k_mac_update_airtime() 4185 return airtime; in ath10k_mac_update_airtime() [all …]
|