Lines Matching full:alpha

86 /* RTT_ref (ms) used in the calculation of alpha if RTT scaling is enabled. */
94 * value of alpha, based on the function defined in the HTCP spec.
108 * The "16" value is the "1" term in the alpha function shifted up by
111 * The "160" value is the "10" multiplier in the alpha function multiplied by
120 * different tick timers, which we have to adjust for in the alpha calculation
155 int alpha;
169 * htcp_recalc_alpha() before alpha will stop increasing due to overflow.
215 * or a congestion event (when alpha equals 1).
217 if (htcp_data->alpha == 1 ||
222 /* Increment cwnd by alpha segments. */
223 CCV(ccv, snd_cwnd) += htcp_data->alpha *
228 * Increment cwnd by alpha/cwnd segments to
229 * approximate an increase of alpha segments
232 CCV(ccv, snd_cwnd) += (((htcp_data->alpha <<
266 htcp_data->alpha = HTCP_INIT_ALPHA;
409 int alpha, diff, now;
417 * the wrap point, our alpha calcs will be completely wrong. We cut our
418 * losses and restart alpha from scratch by setting t_last_cong = now -
422 * is growing by until alpha regains the value it held prior to taking
430 /* Cap alpha if the value of diff would overflow HTCP_CALC_ALPHA(). */
434 * increase alpha according to the function defined in the spec.
437 alpha = HTCP_CALC_ALPHA(diff);
444 alpha = max(1, (2 * ((1 << HTCP_SHIFT) -
445 htcp_data->beta) * alpha) >> HTCP_SHIFT);
448 * RTT scaling: (RTT / RTT_ref) * alpha
449 * alpha will be the raw value from HTCP_CALC_ALPHA() if
454 alpha = max(1, (min(max(HTCP_MINROWE,
456 htcp_rtt_ref), HTCP_MAXROWE) * alpha)
460 alpha = 1;
462 htcp_data->alpha = alpha;