Lines Matching refs:tp
143 struct tcp_sock *tp = tcp_sk(sk); in bictcp_cong_avoid() local
149 if (tcp_in_slow_start(tp)) in bictcp_cong_avoid()
150 tcp_slow_start(tp, acked); in bictcp_cong_avoid()
152 bictcp_update(ca, tp->snd_cwnd); in bictcp_cong_avoid()
153 tcp_cong_avoid_ai(tp, ca->cnt, 1); in bictcp_cong_avoid()
163 const struct tcp_sock *tp = tcp_sk(sk); in bictcp_recalc_ssthresh() local
169 if (tp->snd_cwnd < ca->last_max_cwnd && fast_convergence) in bictcp_recalc_ssthresh()
170 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh()
173 ca->last_max_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh()
175 ca->loss_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh()
177 if (tp->snd_cwnd <= low_window) in bictcp_recalc_ssthresh()
178 return max(tp->snd_cwnd >> 1U, 2U); in bictcp_recalc_ssthresh()
180 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh()
185 const struct tcp_sock *tp = tcp_sk(sk); in bictcp_undo_cwnd() local
188 return max(tp->snd_cwnd, ca->loss_cwnd); in bictcp_undo_cwnd()