Lines Matching refs:tp
163 const struct tcp_sock *tp = tcp_sk(sk); in westwood_fast_bw() local
168 w->bk += tp->snd_una - w->snd_una; in westwood_fast_bw()
169 w->snd_una = tp->snd_una; in westwood_fast_bw()
180 const struct tcp_sock *tp = tcp_sk(sk); in westwood_acked_count() local
183 w->cumul_ack = tp->snd_una - w->snd_una; in westwood_acked_count()
189 w->accounted += tp->mss_cache; in westwood_acked_count()
190 w->cumul_ack = tp->mss_cache; in westwood_acked_count()
193 if (w->cumul_ack > tp->mss_cache) { in westwood_acked_count()
197 w->cumul_ack = tp->mss_cache; in westwood_acked_count()
204 w->snd_una = tp->snd_una; in westwood_acked_count()
217 const struct tcp_sock *tp = tcp_sk(sk); in tcp_westwood_bw_rttmin() local
220 return max_t(u32, (w->bw_est * w->rtt_min) / tp->mss_cache, 2); in tcp_westwood_bw_rttmin()
240 struct tcp_sock *tp = tcp_sk(sk); in tcp_westwood_event() local
245 tp->snd_cwnd = tp->snd_ssthresh = tcp_westwood_bw_rttmin(sk); in tcp_westwood_event()
248 tp->snd_ssthresh = tcp_westwood_bw_rttmin(sk); in tcp_westwood_event()