Lines Matching full:ca
36 struct hybla *ca = inet_csk_ca(sk); in hybla_recalc_param() local
38 ca->rho_3ls = max_t(u32, in hybla_recalc_param()
41 ca->rho = ca->rho_3ls >> 3; in hybla_recalc_param()
42 ca->rho2_7ls = (ca->rho_3ls * ca->rho_3ls) << 1; in hybla_recalc_param()
43 ca->rho2 = ca->rho2_7ls >> 7; in hybla_recalc_param()
49 struct hybla *ca = inet_csk_ca(sk); in hybla_init() local
51 ca->rho = 0; in hybla_init()
52 ca->rho2 = 0; in hybla_init()
53 ca->rho_3ls = 0; in hybla_init()
54 ca->rho2_7ls = 0; in hybla_init()
55 ca->snd_cwnd_cents = 0; in hybla_init()
56 ca->hybla_en = true; in hybla_init()
64 ca->minrtt_us = tp->srtt_us; in hybla_init()
65 tcp_snd_cwnd_set(tp, ca->rho); in hybla_init()
70 struct hybla *ca = inet_csk_ca(sk); in hybla_state() local
72 ca->hybla_en = (ca_state == TCP_CA_Open); in hybla_state()
93 struct hybla *ca = inet_csk_ca(sk); in hybla_cong_avoid() local
98 if (tp->srtt_us < ca->minrtt_us) { in hybla_cong_avoid()
100 ca->minrtt_us = tp->srtt_us; in hybla_cong_avoid()
106 if (!ca->hybla_en) { in hybla_cong_avoid()
111 if (ca->rho == 0) in hybla_cong_avoid()
114 rho_fractions = ca->rho_3ls - (ca->rho << 3); in hybla_cong_avoid()
131 increment = ((1 << min(ca->rho, 16U)) * in hybla_cong_avoid()
140 increment = ca->rho2_7ls / tcp_snd_cwnd(tp); in hybla_cong_avoid()
147 ca->snd_cwnd_cents += odd; in hybla_cong_avoid()
150 while (ca->snd_cwnd_cents >= 128) { in hybla_cong_avoid()
152 ca->snd_cwnd_cents -= 128; in hybla_cong_avoid()