Lines Matching refs:tp
131 struct tcp_sock *tp = tcp_sk(sk); in bictcp_hystart_reset() local
135 ca->end_seq = tp->snd_nxt; in bictcp_hystart_reset()
338 struct tcp_sock *tp = tcp_sk(sk); in bictcp_cong_avoid() local
344 if (tcp_in_slow_start(tp)) { in bictcp_cong_avoid()
347 acked = tcp_slow_start(tp, acked); in bictcp_cong_avoid()
351 bictcp_update(ca, tp->snd_cwnd, acked); in bictcp_cong_avoid()
352 tcp_cong_avoid_ai(tp, ca->cnt, acked); in bictcp_cong_avoid()
357 const struct tcp_sock *tp = tcp_sk(sk); in bictcp_recalc_ssthresh() local
363 if (tp->snd_cwnd < ca->last_max_cwnd && fast_convergence) in bictcp_recalc_ssthresh()
364 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh()
367 ca->last_max_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh()
369 ca->loss_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh()
371 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh()
391 struct tcp_sock *tp = tcp_sk(sk); in hystart_update() local
409 tp->snd_cwnd); in hystart_update()
410 tp->snd_ssthresh = tp->snd_cwnd; in hystart_update()
430 tp->snd_cwnd); in hystart_update()
431 tp->snd_ssthresh = tp->snd_cwnd; in hystart_update()
442 const struct tcp_sock *tp = tcp_sk(sk); in bictcp_acked() local
463 if (hystart && tcp_in_slow_start(tp) && in bictcp_acked()
464 tp->snd_cwnd >= hystart_low_window) in bictcp_acked()