Lines Matching refs:tp
69 const struct tcp_sock *tp = tcp_sk(sk); in htcp_cwnd_undo() local
79 return max(tp->snd_cwnd, (tp->snd_ssthresh << 7) / ca->beta); in htcp_cwnd_undo()
105 const struct tcp_sock *tp = tcp_sk(sk); in measure_achieved_throughput() local
127 if (ca->packetcount >= tp->snd_cwnd - (ca->alpha >> 7 ? : 1) && in measure_achieved_throughput()
224 const struct tcp_sock *tp = tcp_sk(sk); in htcp_recalc_ssthresh() local
228 return max((tp->snd_cwnd * ca->beta) >> 7, 2U); in htcp_recalc_ssthresh()
233 struct tcp_sock *tp = tcp_sk(sk); in htcp_cong_avoid() local
239 if (tcp_in_slow_start(tp)) in htcp_cong_avoid()
240 tcp_slow_start(tp, acked); in htcp_cong_avoid()
245 if ((tp->snd_cwnd_cnt * ca->alpha)>>7 >= tp->snd_cwnd) { in htcp_cong_avoid()
246 if (tp->snd_cwnd < tp->snd_cwnd_clamp) in htcp_cong_avoid()
247 tp->snd_cwnd++; in htcp_cong_avoid()
248 tp->snd_cwnd_cnt = 0; in htcp_cong_avoid()
251 tp->snd_cwnd_cnt += ca->pkts_acked; in htcp_cong_avoid()