Lines Matching refs:duration

29 /* Transmit duration for the raw data part of an average sized packet */
50 /* Transmit duration for the raw data part of an average sized packet */
96 #define GROUP_SHIFT(duration) \
97 _MAX(0, 16 - __builtin_clz(duration))
103 .duration = { \
134 .duration = { \
176 .duration = { \
213 u16 duration[MCS_GROUP_RATES];
390 u32 duration;
393 duration = 144 + 48; /* preamble + PLCP */
395 duration >>= 1;
397 duration += 10; /* SIFS */
399 duration = 20 + 16; /* premable + SIFS */
403 duration += (len * 10) / bitrate;
405 return duration;
415 u32 duration;
463 duration = airtime_mcs_groups[group].duration[idx];
464 duration <<= airtime_mcs_groups[group].shift;
467 return duration;
476 u32 duration, overhead = 0;
497 duration = ieee80211_get_rate_duration(hw, status, &overhead);
498 if (!duration)
501 duration *= len;
502 duration /= AVG_PKT_SIZE;
503 duration /= 1024;
505 return duration + overhead;
612 u32 duration = 0;
624 duration += cur_duration * rate->count;
627 return duration;
658 u32 duration, overhead;
667 duration = ieee80211_get_rate_duration(hw, &stat, &overhead);
676 if (duration > 400 * 1024) /* <= VHT20 MCS2 1S */
678 else if (duration > 250 * 1024) /* <= VHT20 MCS3 1S or MCS1 2S */
680 else if (duration > 150 * 1024) /* <= VHT20 MCS5 1S or MCS2 2S */
682 else if (duration > 70 * 1024) /* <= VHT20 MCS5 2S */
685 duration > 20 * 1024) /* <= HE40 MCS6 2S */
690 duration *= len;
691 duration /= AVG_PKT_SIZE;
692 duration /= 1024;
693 duration += (overhead >> agg_shift);
695 return max_t(u32, duration, 4);
702 * duration using the lowest configured basic rate.