Lines Matching refs:ca
103 struct hstcp *ca = inet_csk_ca(sk); in hstcp_init() local
105 ca->ai = 0; in hstcp_init()
115 struct hstcp *ca = inet_csk_ca(sk); in hstcp_cong_avoid() local
130 if (tcp_snd_cwnd(tp) > hstcp_aimd_vals[ca->ai].cwnd) { in hstcp_cong_avoid()
131 while (tcp_snd_cwnd(tp) > hstcp_aimd_vals[ca->ai].cwnd && in hstcp_cong_avoid()
132 ca->ai < HSTCP_AIMD_MAX - 1) in hstcp_cong_avoid()
133 ca->ai++; in hstcp_cong_avoid()
134 } else if (ca->ai && tcp_snd_cwnd(tp) <= hstcp_aimd_vals[ca->ai-1].cwnd) { in hstcp_cong_avoid()
135 while (ca->ai && tcp_snd_cwnd(tp) <= hstcp_aimd_vals[ca->ai-1].cwnd) in hstcp_cong_avoid()
136 ca->ai--; in hstcp_cong_avoid()
142 tp->snd_cwnd_cnt += ca->ai + 1; in hstcp_cong_avoid()
154 struct hstcp *ca = inet_csk_ca(sk); in hstcp_ssthresh() local
157 return max(tcp_snd_cwnd(tp) - ((tcp_snd_cwnd(tp) * hstcp_aimd_vals[ca->ai].md) >> 8), 2U); in hstcp_ssthresh()