Lines Matching refs:tp
47 struct tcp_sock *tp = tcp_sk(sk); in hybla_init() local
56 tp->snd_cwnd = 2; in hybla_init()
57 tp->snd_cwnd_clamp = 65535; in hybla_init()
63 ca->minrtt_us = tp->srtt_us; in hybla_init()
64 tp->snd_cwnd = ca->rho; in hybla_init()
91 struct tcp_sock *tp = tcp_sk(sk); in hybla_cong_avoid() local
97 if (tp->srtt_us < ca->minrtt_us) { in hybla_cong_avoid()
99 ca->minrtt_us = tp->srtt_us; in hybla_cong_avoid()
115 if (tcp_in_slow_start(tp)) { in hybla_cong_avoid()
139 increment = ca->rho2_7ls / tp->snd_cwnd; in hybla_cong_avoid()
141 tp->snd_cwnd_cnt++; in hybla_cong_avoid()
145 tp->snd_cwnd += increment >> 7; in hybla_cong_avoid()
150 tp->snd_cwnd++; in hybla_cong_avoid()
152 tp->snd_cwnd_cnt = 0; in hybla_cong_avoid()
155 if (increment == 0 && odd == 0 && tp->snd_cwnd_cnt >= tp->snd_cwnd) { in hybla_cong_avoid()
156 tp->snd_cwnd++; in hybla_cong_avoid()
157 tp->snd_cwnd_cnt = 0; in hybla_cong_avoid()
161 tp->snd_cwnd = min(tp->snd_cwnd, tp->snd_ssthresh); in hybla_cong_avoid()
163 tp->snd_cwnd = min_t(u32, tp->snd_cwnd, tp->snd_cwnd_clamp); in hybla_cong_avoid()