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()
416 tp_vars->cwnd, tp_vars->ss_threshold); in batadv_tp_sender_end()
507 tp_vars->ss_threshold = tp_vars->cwnd >> 1; in batadv_tp_sender_timeout()
513 tp_vars->other_end, tp_vars->cwnd, tp_vars->ss_threshold, in batadv_tp_sender_timeout()
516 tp_vars->cwnd = BATADV_TP_PLEN * 3; in batadv_tp_sender_timeout()
634 u32 rtt, recv_ack, cwnd; in batadv_tp_recv_ack() local
698 tp_vars->ss_threshold = tp_vars->cwnd >> 1; in batadv_tp_recv_ack()
701 tp_vars->cwnd, tp_vars->ss_threshold, in batadv_tp_recv_ack()
703 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->ss_threshold, 3 * mss, in batadv_tp_recv_ack()
729 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, in batadv_tp_recv_ack()
737 cwnd = batadv_tp_cwnd(tp_vars->ss_threshold, 0, in batadv_tp_recv_ack()
739 tp_vars->cwnd = cwnd; in batadv_tp_recv_ack()
773 win_limit = atomic_read(&tp_vars->last_acked) + tp_vars->cwnd; in batadv_tp_avail()
1002 tp_vars->cwnd = BATADV_TP_PLEN * 3; in batadv_tp_start()