Lines Matching refs:tp
45 struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_init() local
57 tp->snd_cwnd_clamp = min_t(u32, tp->snd_cwnd_clamp, 0xffffffff/128); in tcp_yeah_init()
74 struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_cong_avoid() local
80 if (tcp_in_slow_start(tp)) in tcp_yeah_cong_avoid()
81 tcp_slow_start(tp, acked); in tcp_yeah_cong_avoid()
86 tp->snd_cwnd_cnt += yeah->pkts_acked; in tcp_yeah_cong_avoid()
87 if (tp->snd_cwnd_cnt > min(tp->snd_cwnd, TCP_SCALABLE_AI_CNT)) { in tcp_yeah_cong_avoid()
88 if (tp->snd_cwnd < tp->snd_cwnd_clamp) in tcp_yeah_cong_avoid()
89 tp->snd_cwnd++; in tcp_yeah_cong_avoid()
90 tp->snd_cwnd_cnt = 0; in tcp_yeah_cong_avoid()
97 tcp_cong_avoid_ai(tp, tp->snd_cwnd, 1); in tcp_yeah_cong_avoid()
152 bw = tp->snd_cwnd; in tcp_yeah_cong_avoid()
160 tp->snd_cwnd > yeah->reno_count) { in tcp_yeah_cong_avoid()
162 tp->snd_cwnd >> TCP_YEAH_EPSILON); in tcp_yeah_cong_avoid()
164 tp->snd_cwnd -= reduction; in tcp_yeah_cong_avoid()
166 tp->snd_cwnd = max(tp->snd_cwnd, in tcp_yeah_cong_avoid()
169 tp->snd_ssthresh = tp->snd_cwnd; in tcp_yeah_cong_avoid()
173 yeah->reno_count = max(tp->snd_cwnd>>1, 2U); in tcp_yeah_cong_avoid()
197 yeah->vegas.beg_snd_nxt = tp->snd_nxt; in tcp_yeah_cong_avoid()
198 yeah->vegas.beg_snd_cwnd = tp->snd_cwnd; in tcp_yeah_cong_avoid()
208 const struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_ssthresh() local
215 reduction = min(reduction, max(tp->snd_cwnd>>1, 2U)); in tcp_yeah_ssthresh()
217 reduction = max(reduction, tp->snd_cwnd >> TCP_YEAH_DELTA); in tcp_yeah_ssthresh()
219 reduction = max(tp->snd_cwnd>>1, 2U); in tcp_yeah_ssthresh()
224 return max_t(int, tp->snd_cwnd - reduction, 2); in tcp_yeah_ssthresh()