Lines Matching full:duration
30 /* Transmit duration for the raw data part of an average sized packet */
51 /* Transmit duration for the raw data part of an average sized packet */
111 #define GROUP_SHIFT(duration) \ argument
112 _MAX(0, 16 - __builtin_clz(duration))
118 .duration = { \
149 .duration = { \
191 .duration = { \
239 .duration = { \
291 u16 duration[MCS_GROUP_RATES]; member
488 u32 duration; in ieee80211_calc_legacy_rate_duration() local
491 duration = 144 + 48; /* preamble + PLCP */ in ieee80211_calc_legacy_rate_duration()
493 duration >>= 1; in ieee80211_calc_legacy_rate_duration()
495 duration += 10; /* SIFS */ in ieee80211_calc_legacy_rate_duration()
497 duration = 20 + 16; /* premable + SIFS */ in ieee80211_calc_legacy_rate_duration()
501 duration += (len * 10) / bitrate; in ieee80211_calc_legacy_rate_duration()
503 return duration; in ieee80211_calc_legacy_rate_duration()
513 u32 duration; in ieee80211_get_rate_duration() local
577 duration = airtime_mcs_groups[group].duration[idx]; in ieee80211_get_rate_duration()
578 duration <<= airtime_mcs_groups[group].shift; in ieee80211_get_rate_duration()
581 return duration; in ieee80211_get_rate_duration()
590 u32 duration, overhead = 0; in ieee80211_calc_rx_airtime() local
613 duration = ieee80211_get_rate_duration(hw, status, &overhead); in ieee80211_calc_rx_airtime()
614 if (!duration) in ieee80211_calc_rx_airtime()
617 duration *= len; in ieee80211_calc_rx_airtime()
618 duration /= AVG_PKT_SIZE; in ieee80211_calc_rx_airtime()
619 duration /= 1024; in ieee80211_calc_rx_airtime()
621 return duration + overhead; in ieee80211_calc_rx_airtime()
737 u32 duration = 0; in ieee80211_calc_tx_airtime() local
749 duration += cur_duration * rate->count; in ieee80211_calc_tx_airtime()
752 return duration; in ieee80211_calc_tx_airtime()
781 u32 duration, overhead; in ieee80211_calc_expected_tx_airtime() local
790 duration = ieee80211_get_rate_duration(hw, &stat, &overhead); in ieee80211_calc_expected_tx_airtime()
799 if (duration > 400 * 1024) /* <= VHT20 MCS2 1S */ in ieee80211_calc_expected_tx_airtime()
801 else if (duration > 250 * 1024) /* <= VHT20 MCS3 1S or MCS1 2S */ in ieee80211_calc_expected_tx_airtime()
803 else if (duration > 150 * 1024) /* <= VHT20 MCS5 1S or MCS2 2S */ in ieee80211_calc_expected_tx_airtime()
805 else if (duration > 70 * 1024) /* <= VHT20 MCS5 2S */ in ieee80211_calc_expected_tx_airtime()
808 duration > 20 * 1024) /* <= HE40 MCS6 2S */ in ieee80211_calc_expected_tx_airtime()
813 duration *= len; in ieee80211_calc_expected_tx_airtime()
814 duration /= AVG_PKT_SIZE; in ieee80211_calc_expected_tx_airtime()
815 duration /= 1024; in ieee80211_calc_expected_tx_airtime()
816 duration += (overhead >> agg_shift); in ieee80211_calc_expected_tx_airtime()
818 return max_t(u32, duration, 4); in ieee80211_calc_expected_tx_airtime()
825 * duration using the lowest configured basic rate. in ieee80211_calc_expected_tx_airtime()