Lines Matching refs:tp
165 const struct tcp_sock *tp = tcp_sk(sk); in westwood_fast_bw() local
170 w->bk += tp->snd_una - w->snd_una; in westwood_fast_bw()
171 w->snd_una = tp->snd_una; in westwood_fast_bw()
182 const struct tcp_sock *tp = tcp_sk(sk); in westwood_acked_count() local
185 w->cumul_ack = tp->snd_una - w->snd_una; in westwood_acked_count()
191 w->accounted += tp->mss_cache; in westwood_acked_count()
192 w->cumul_ack = tp->mss_cache; in westwood_acked_count()
195 if (w->cumul_ack > tp->mss_cache) { in westwood_acked_count()
199 w->cumul_ack = tp->mss_cache; in westwood_acked_count()
206 w->snd_una = tp->snd_una; in westwood_acked_count()
219 const struct tcp_sock *tp = tcp_sk(sk); in tcp_westwood_bw_rttmin() local
222 return max_t(u32, (w->bw_est * w->rtt_min) / tp->mss_cache, 2); in tcp_westwood_bw_rttmin()
242 struct tcp_sock *tp = tcp_sk(sk); in tcp_westwood_event() local
247 tp->snd_ssthresh = tcp_westwood_bw_rttmin(sk); in tcp_westwood_event()
248 tcp_snd_cwnd_set(tp, tp->snd_ssthresh); in tcp_westwood_event()
251 tp->snd_ssthresh = tcp_westwood_bw_rttmin(sk); in tcp_westwood_event()