Lines Matching refs:tp
48 struct tcp_sock *tp = tcp_sk(sk); in hybla_init() local
57 tcp_snd_cwnd_set(tp, 2); in hybla_init()
58 tp->snd_cwnd_clamp = 65535; in hybla_init()
64 ca->minrtt_us = tp->srtt_us; in hybla_init()
65 tcp_snd_cwnd_set(tp, ca->rho); in hybla_init()
92 struct tcp_sock *tp = tcp_sk(sk); in hybla_cong_avoid() local
98 if (tp->srtt_us < ca->minrtt_us) { in hybla_cong_avoid()
100 ca->minrtt_us = tp->srtt_us; in hybla_cong_avoid()
116 if (tcp_in_slow_start(tp)) { in hybla_cong_avoid()
140 increment = ca->rho2_7ls / tcp_snd_cwnd(tp); in hybla_cong_avoid()
142 tp->snd_cwnd_cnt++; in hybla_cong_avoid()
146 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + (increment >> 7)); in hybla_cong_avoid()
151 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1); in hybla_cong_avoid()
153 tp->snd_cwnd_cnt = 0; in hybla_cong_avoid()
156 if (increment == 0 && odd == 0 && tp->snd_cwnd_cnt >= tcp_snd_cwnd(tp)) { in hybla_cong_avoid()
157 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1); in hybla_cong_avoid()
158 tp->snd_cwnd_cnt = 0; in hybla_cong_avoid()
162 tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp), tp->snd_ssthresh)); in hybla_cong_avoid()
164 tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp), tp->snd_cwnd_clamp)); in hybla_cong_avoid()