Lines Matching refs:cwnd
147 if (tp_vars->cwnd <= tp_vars->ss_threshold) { in batadv_tp_update_cwnd()
149 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss); in batadv_tp_update_cwnd()
156 ((mss * mss) << 6) / (tp_vars->cwnd << 3)); in batadv_tp_update_cwnd()
162 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss); in batadv_tp_update_cwnd()
413 tp_vars->cwnd, tp_vars->ss_threshold); in batadv_tp_sender_end()
504 tp_vars->ss_threshold = tp_vars->cwnd >> 1; in batadv_tp_sender_timeout()
510 tp_vars->other_end, tp_vars->cwnd, tp_vars->ss_threshold, in batadv_tp_sender_timeout()
513 tp_vars->cwnd = BATADV_TP_PLEN * 3; in batadv_tp_sender_timeout()
631 u32 rtt, recv_ack, cwnd; in batadv_tp_recv_ack() local
695 tp_vars->ss_threshold = tp_vars->cwnd >> 1; in batadv_tp_recv_ack()
698 tp_vars->cwnd, tp_vars->ss_threshold, in batadv_tp_recv_ack()
700 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->ss_threshold, 3 * mss, in batadv_tp_recv_ack()
726 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, in batadv_tp_recv_ack()
734 cwnd = batadv_tp_cwnd(tp_vars->ss_threshold, 0, in batadv_tp_recv_ack()
736 tp_vars->cwnd = cwnd; in batadv_tp_recv_ack()
770 win_limit = atomic_read(&tp_vars->last_acked) + tp_vars->cwnd; in batadv_tp_avail()
999 tp_vars->cwnd = BATADV_TP_PLEN * 3; in batadv_tp_start()