Lines Matching refs:sk

67 static u32 htcp_cwnd_undo(struct sock *sk)  in htcp_cwnd_undo()  argument
69 const struct tcp_sock *tp = tcp_sk(sk); in htcp_cwnd_undo()
70 struct htcp *ca = inet_csk_ca(sk); in htcp_cwnd_undo()
82 static inline void measure_rtt(struct sock *sk, u32 srtt) in measure_rtt() argument
84 const struct inet_connection_sock *icsk = inet_csk(sk); in measure_rtt()
85 struct htcp *ca = inet_csk_ca(sk); in measure_rtt()
101 static void measure_achieved_throughput(struct sock *sk, in measure_achieved_throughput() argument
104 const struct inet_connection_sock *icsk = inet_csk(sk); in measure_achieved_throughput()
105 const struct tcp_sock *tp = tcp_sk(sk); in measure_achieved_throughput()
106 struct htcp *ca = inet_csk_ca(sk); in measure_achieved_throughput()
113 measure_rtt(sk, usecs_to_jiffies(rtt)); in measure_achieved_throughput()
208 static void htcp_param_update(struct sock *sk) in htcp_param_update() argument
210 struct htcp *ca = inet_csk_ca(sk); in htcp_param_update()
222 static u32 htcp_recalc_ssthresh(struct sock *sk) in htcp_recalc_ssthresh() argument
224 const struct tcp_sock *tp = tcp_sk(sk); in htcp_recalc_ssthresh()
225 const struct htcp *ca = inet_csk_ca(sk); in htcp_recalc_ssthresh()
227 htcp_param_update(sk); in htcp_recalc_ssthresh()
231 static void htcp_cong_avoid(struct sock *sk, u32 ack, u32 acked) in htcp_cong_avoid() argument
233 struct tcp_sock *tp = tcp_sk(sk); in htcp_cong_avoid()
234 struct htcp *ca = inet_csk_ca(sk); in htcp_cong_avoid()
236 if (!tcp_is_cwnd_limited(sk)) in htcp_cong_avoid()
257 static void htcp_init(struct sock *sk) in htcp_init() argument
259 struct htcp *ca = inet_csk_ca(sk); in htcp_init()
268 static void htcp_state(struct sock *sk, u8 new_state) in htcp_state() argument
273 struct htcp *ca = inet_csk_ca(sk); in htcp_state()
284 htcp_reset(inet_csk_ca(sk)); in htcp_state()