Lines Matching refs:tp
101 struct tcp_sock *tp = tcp_sk(sk); in hstcp_init() local
108 tp->snd_cwnd_clamp = min_t(u32, tp->snd_cwnd_clamp, 0xffffffff/128); in hstcp_init()
113 struct tcp_sock *tp = tcp_sk(sk); in hstcp_cong_avoid() local
119 if (tcp_in_slow_start(tp)) in hstcp_cong_avoid()
120 tcp_slow_start(tp, acked); in hstcp_cong_avoid()
129 if (tp->snd_cwnd > hstcp_aimd_vals[ca->ai].cwnd) { in hstcp_cong_avoid()
130 while (tp->snd_cwnd > hstcp_aimd_vals[ca->ai].cwnd && in hstcp_cong_avoid()
133 } else if (ca->ai && tp->snd_cwnd <= hstcp_aimd_vals[ca->ai-1].cwnd) { in hstcp_cong_avoid()
134 while (ca->ai && tp->snd_cwnd <= hstcp_aimd_vals[ca->ai-1].cwnd) in hstcp_cong_avoid()
139 if (tp->snd_cwnd < tp->snd_cwnd_clamp) { in hstcp_cong_avoid()
141 tp->snd_cwnd_cnt += ca->ai + 1; in hstcp_cong_avoid()
142 if (tp->snd_cwnd_cnt >= tp->snd_cwnd) { in hstcp_cong_avoid()
143 tp->snd_cwnd_cnt -= tp->snd_cwnd; in hstcp_cong_avoid()
144 tp->snd_cwnd++; in hstcp_cong_avoid()
152 const struct tcp_sock *tp = tcp_sk(sk); in hstcp_ssthresh() local
156 return max(tp->snd_cwnd - ((tp->snd_cwnd * hstcp_aimd_vals[ca->ai].md) >> 8), 2U); in hstcp_ssthresh()