Lines Matching refs:ca
35 struct hybla *ca = inet_csk_ca(sk); in hybla_recalc_param() local
37 ca->rho_3ls = max_t(u32, in hybla_recalc_param()
40 ca->rho = ca->rho_3ls >> 3; in hybla_recalc_param()
41 ca->rho2_7ls = (ca->rho_3ls * ca->rho_3ls) << 1; in hybla_recalc_param()
42 ca->rho2 = ca->rho2_7ls >> 7; in hybla_recalc_param()
48 struct hybla *ca = inet_csk_ca(sk); in hybla_init() local
50 ca->rho = 0; in hybla_init()
51 ca->rho2 = 0; in hybla_init()
52 ca->rho_3ls = 0; in hybla_init()
53 ca->rho2_7ls = 0; in hybla_init()
54 ca->snd_cwnd_cents = 0; in hybla_init()
55 ca->hybla_en = true; in hybla_init()
63 ca->minrtt_us = tp->srtt_us; in hybla_init()
64 tp->snd_cwnd = ca->rho; in hybla_init()
69 struct hybla *ca = inet_csk_ca(sk); in hybla_state() local
71 ca->hybla_en = (ca_state == TCP_CA_Open); in hybla_state()
92 struct hybla *ca = inet_csk_ca(sk); in hybla_cong_avoid() local
97 if (tp->srtt_us < ca->minrtt_us) { in hybla_cong_avoid()
99 ca->minrtt_us = tp->srtt_us; in hybla_cong_avoid()
105 if (!ca->hybla_en) { in hybla_cong_avoid()
110 if (ca->rho == 0) in hybla_cong_avoid()
113 rho_fractions = ca->rho_3ls - (ca->rho << 3); in hybla_cong_avoid()
130 increment = ((1 << min(ca->rho, 16U)) * in hybla_cong_avoid()
139 increment = ca->rho2_7ls / tp->snd_cwnd; in hybla_cong_avoid()
146 ca->snd_cwnd_cents += odd; in hybla_cong_avoid()
149 while (ca->snd_cwnd_cents >= 128) { in hybla_cong_avoid()
151 ca->snd_cwnd_cents -= 128; in hybla_cong_avoid()