Lines Matching refs:CCV
396 if (IN_FASTRECOVERY(CCV(ccv, t_flags))) { in newreno_cc_post_recovery()
409 pipe = CCV(ccv, snd_max) - ccv->curack; in newreno_cc_post_recovery()
410 if (pipe < CCV(ccv, snd_ssthresh)) in newreno_cc_post_recovery()
415 CCV(ccv, snd_cwnd) = max(pipe, CCV(ccv, t_maxseg)) + in newreno_cc_post_recovery()
416 CCV(ccv, t_maxseg); in newreno_cc_post_recovery()
418 CCV(ccv, snd_cwnd) = CCV(ccv, snd_ssthresh); in newreno_cc_post_recovery()
445 CCV(ccv, snd_ssthresh) = max(CCV(ccv, snd_ssthresh), in newreno_cc_after_idle()
446 CCV(ccv, snd_cwnd)-(CCV(ccv, snd_cwnd)>>2)); in newreno_cc_after_idle()
448 CCV(ccv, snd_cwnd) = min(rw, CCV(ccv, snd_cwnd)); in newreno_cc_after_idle()
460 cwin = CCV(ccv, snd_cwnd); in newreno_cc_cong_signal()
478 if (!IN_FASTRECOVERY(CCV(ccv, t_flags))) { in newreno_cc_cong_signal()
479 if (!IN_CONGRECOVERY(CCV(ccv, t_flags))) in newreno_cc_cong_signal()
480 CCV(ccv, snd_ssthresh) = cwin; in newreno_cc_cong_signal()
481 ENTER_RECOVERY(CCV(ccv, t_flags)); in newreno_cc_cong_signal()
485 if (!IN_CONGRECOVERY(CCV(ccv, t_flags))) { in newreno_cc_cong_signal()
486 CCV(ccv, snd_ssthresh) = cwin; in newreno_cc_cong_signal()
487 CCV(ccv, snd_cwnd) = cwin; in newreno_cc_cong_signal()
488 ENTER_CONGRECOVERY(CCV(ccv, t_flags)); in newreno_cc_cong_signal()
492 CCV(ccv, snd_ssthresh) = max(min(CCV(ccv, snd_wnd), in newreno_cc_cong_signal()
493 CCV(ccv, snd_cwnd)) / 2 / mss, in newreno_cc_cong_signal()
495 CCV(ccv, snd_cwnd) = mss; in newreno_cc_cong_signal()
503 if (type == CC_ACK && !IN_RECOVERY(CCV(ccv, t_flags)) && in newreno_cc_ack_received()
505 u_int cw = CCV(ccv, snd_cwnd); in newreno_cc_ack_received()
506 u_int incr = CCV(ccv, t_maxseg); in newreno_cc_ack_received()
535 if (cw > CCV(ccv, snd_ssthresh)) { in newreno_cc_ack_received()
560 if (CCV(ccv, snd_nxt) == CCV(ccv, snd_max)) in newreno_cc_ack_received()
563 CCV(ccv, t_maxseg)); in newreno_cc_ack_received()
565 incr = min(ccv->bytes_this_ack, CCV(ccv, t_maxseg)); in newreno_cc_ack_received()
570 CCV(ccv, snd_cwnd) = min(cw + incr, in newreno_cc_ack_received()
571 TCP_MAXWIN << CCV(ccv, snd_scale)); in newreno_cc_ack_received()