Lines Matching refs: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 */
91 #define GROUP_SHIFT(duration) \
92 _MAX(0, 16 - __builtin_clz(duration))
98 .duration = { \
129 .duration = { \
171 .duration = { \
208 u16 duration[MCS_GROUP_RATES];
385 u32 duration;
388 duration = 144 + 48; /* preamble + PLCP */
390 duration >>= 1;
392 duration += 10; /* SIFS */
394 duration = 20 + 16; /* premable + SIFS */
398 duration += (len * 10) / bitrate;
400 return duration;
410 u32 duration;
458 duration = airtime_mcs_groups[group].duration[idx];
459 duration <<= airtime_mcs_groups[group].shift;
462 return duration;
471 u32 duration, overhead = 0;
494 duration = ieee80211_get_rate_duration(hw, status, &overhead);
495 if (!duration)
498 duration *= len;
499 duration /= AVG_PKT_SIZE;
500 duration /= 1024;
502 return duration + overhead;
609 u32 duration = 0;
621 duration += cur_duration * rate->count;
624 return duration;
655 u32 duration, overhead;
664 duration = ieee80211_get_rate_duration(hw, &stat, &overhead);
673 if (duration > 400 * 1024) /* <= VHT20 MCS2 1S */
675 else if (duration > 250 * 1024) /* <= VHT20 MCS3 1S or MCS1 2S */
677 else if (duration > 150 * 1024) /* <= VHT20 MCS5 1S or MCS2 2S */
679 else if (duration > 70 * 1024) /* <= VHT20 MCS5 2S */
682 duration > 20 * 1024) /* <= HE40 MCS6 2S */
687 duration *= len;
688 duration /= AVG_PKT_SIZE;
689 duration /= 1024;
690 duration += (overhead >> agg_shift);
692 return max_t(u32, duration, 4);
699 * duration using the lowest configured basic rate.