Lines Matching defs:tp
105 const struct tcp_sock *tp = tcp_sk(sk);
127 if (ca->packetcount >= tcp_snd_cwnd(tp) - (ca->alpha >> 7 ? : 1) &&
224 const struct tcp_sock *tp = tcp_sk(sk);
228 return max((tcp_snd_cwnd(tp) * ca->beta) >> 7, 2U);
233 struct tcp_sock *tp = tcp_sk(sk);
239 if (tcp_in_slow_start(tp))
240 tcp_slow_start(tp, acked);
243 * In theory this is tp->snd_cwnd += alpha / tp->snd_cwnd
245 if ((tp->snd_cwnd_cnt * ca->alpha)>>7 >= tcp_snd_cwnd(tp)) {
246 if (tcp_snd_cwnd(tp) < tp->snd_cwnd_clamp)
247 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1);
248 tp->snd_cwnd_cnt = 0;
251 tp->snd_cwnd_cnt += ca->pkts_acked;