Lines Matching refs:tp
44 struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_init() local
56 tp->snd_cwnd_clamp = min_t(u32, tp->snd_cwnd_clamp, 0xffffffff/128); in tcp_yeah_init()
72 struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_cong_avoid() local
78 if (tcp_in_slow_start(tp)) in tcp_yeah_cong_avoid()
79 tcp_slow_start(tp, acked); in tcp_yeah_cong_avoid()
84 tp->snd_cwnd_cnt += yeah->pkts_acked; in tcp_yeah_cong_avoid()
85 if (tp->snd_cwnd_cnt > min(tp->snd_cwnd, TCP_SCALABLE_AI_CNT)) { in tcp_yeah_cong_avoid()
86 if (tp->snd_cwnd < tp->snd_cwnd_clamp) in tcp_yeah_cong_avoid()
87 tp->snd_cwnd++; in tcp_yeah_cong_avoid()
88 tp->snd_cwnd_cnt = 0; in tcp_yeah_cong_avoid()
95 tcp_cong_avoid_ai(tp, tp->snd_cwnd, 1); in tcp_yeah_cong_avoid()
150 bw = tp->snd_cwnd; in tcp_yeah_cong_avoid()
158 tp->snd_cwnd > yeah->reno_count) { in tcp_yeah_cong_avoid()
160 tp->snd_cwnd >> TCP_YEAH_EPSILON); in tcp_yeah_cong_avoid()
162 tp->snd_cwnd -= reduction; in tcp_yeah_cong_avoid()
164 tp->snd_cwnd = max(tp->snd_cwnd, in tcp_yeah_cong_avoid()
167 tp->snd_ssthresh = tp->snd_cwnd; in tcp_yeah_cong_avoid()
171 yeah->reno_count = max(tp->snd_cwnd>>1, 2U); in tcp_yeah_cong_avoid()
195 yeah->vegas.beg_snd_nxt = tp->snd_nxt; in tcp_yeah_cong_avoid()
196 yeah->vegas.beg_snd_cwnd = tp->snd_cwnd; in tcp_yeah_cong_avoid()
206 const struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_ssthresh() local
213 reduction = min(reduction, max(tp->snd_cwnd>>1, 2U)); in tcp_yeah_ssthresh()
215 reduction = max(reduction, tp->snd_cwnd >> TCP_YEAH_DELTA); in tcp_yeah_ssthresh()
217 reduction = max(tp->snd_cwnd>>1, 2U); in tcp_yeah_ssthresh()
222 return max_t(int, tp->snd_cwnd - reduction, 2); in tcp_yeah_ssthresh()