Lines Matching refs:cwnd
157 if (tp_vars->cwnd <= tp_vars->ss_threshold) { in batadv_tp_update_cwnd()
159 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss); in batadv_tp_update_cwnd()
166 ((mss * mss) << 6) / (tp_vars->cwnd << 3)); in batadv_tp_update_cwnd()
172 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss); in batadv_tp_update_cwnd()
422 tp_vars->cwnd, tp_vars->ss_threshold); in batadv_tp_sender_end()
513 tp_vars->ss_threshold = tp_vars->cwnd >> 1; in batadv_tp_sender_timeout()
519 tp_vars->other_end, tp_vars->cwnd, tp_vars->ss_threshold, in batadv_tp_sender_timeout()
522 tp_vars->cwnd = BATADV_TP_PLEN * 3; in batadv_tp_sender_timeout()
640 u32 rtt, recv_ack, cwnd; in batadv_tp_recv_ack() local
704 tp_vars->ss_threshold = tp_vars->cwnd >> 1; in batadv_tp_recv_ack()
707 tp_vars->cwnd, tp_vars->ss_threshold, in batadv_tp_recv_ack()
709 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->ss_threshold, 3 * mss, in batadv_tp_recv_ack()
735 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, in batadv_tp_recv_ack()
743 cwnd = batadv_tp_cwnd(tp_vars->ss_threshold, 0, in batadv_tp_recv_ack()
745 tp_vars->cwnd = cwnd; in batadv_tp_recv_ack()
779 win_limit = atomic_read(&tp_vars->last_acked) + tp_vars->cwnd; in batadv_tp_avail()
1007 tp_vars->cwnd = BATADV_TP_PLEN * 3; in batadv_tp_start()