Lines Matching refs:tp
102 struct tcp_sock *tp = tcp_sk(sk);
109 tp->snd_cwnd_clamp = min_t(u32, tp->snd_cwnd_clamp, 0xffffffff/128);
114 struct tcp_sock *tp = tcp_sk(sk);
120 if (tcp_in_slow_start(tp))
121 tcp_slow_start(tp, acked);
130 if (tcp_snd_cwnd(tp) > hstcp_aimd_vals[ca->ai].cwnd) {
131 while (tcp_snd_cwnd(tp) > hstcp_aimd_vals[ca->ai].cwnd &&
134 } else if (ca->ai && tcp_snd_cwnd(tp) <= hstcp_aimd_vals[ca->ai-1].cwnd) {
135 while (ca->ai && tcp_snd_cwnd(tp) <= hstcp_aimd_vals[ca->ai-1].cwnd)
140 if (tcp_snd_cwnd(tp) < tp->snd_cwnd_clamp) {
142 tp->snd_cwnd_cnt += ca->ai + 1;
143 if (tp->snd_cwnd_cnt >= tcp_snd_cwnd(tp)) {
144 tp->snd_cwnd_cnt -= tcp_snd_cwnd(tp);
145 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1);
153 const struct tcp_sock *tp = tcp_sk(sk);
157 return max(tcp_snd_cwnd(tp) - ((tcp_snd_cwnd(tp) * hstcp_aimd_vals[ca->ai].md) >> 8), 2U);