Lines Matching refs:tx_cwnd

76 	u32 max_ratio = DIV_ROUND_UP(ccid2_hc_tx_sk(sk)->tx_cwnd, 2);  in ccid2_change_l_ack_ratio()
106 if (dccp_feat_nn_get(sk, DCCPF_ACK_RATIO) > hc->tx_cwnd) in ccid2_check_l_ack_ratio()
107 ccid2_change_l_ack_ratio(sk, hc->tx_cwnd/2 ? : 1U); in ccid2_check_l_ack_ratio()
150 hc->tx_ssthresh = hc->tx_cwnd / 2; in ccid2_hc_tx_rto_expire()
153 hc->tx_cwnd = 1; in ccid2_hc_tx_rto_expire()
202 if (win_used < hc->tx_cwnd) { in ccid2_cwnd_application_limited()
204 (hc->tx_cwnd >> 1) + (hc->tx_cwnd >> 2)); in ccid2_cwnd_application_limited()
205 hc->tx_cwnd = (hc->tx_cwnd + win_used) >> 1; in ccid2_cwnd_application_limited()
217 u32 cwnd = hc->tx_cwnd, restart_cwnd, in ccid2_cwnd_restart()
228 hc->tx_cwnd = max(cwnd, restart_cwnd); in ccid2_cwnd_restart()
252 ccid2_update_used_window(hc, hc->tx_cwnd); in ccid2_hc_tx_packet_sent()
282 ccid2_pr_debug("cwnd=%d pipe=%d\n", hc->tx_cwnd, hc->tx_pipe); in ccid2_hc_tx_packet_sent()
308 if (hc->tx_arsent >= hc->tx_cwnd) { in ccid2_hc_tx_packet_sent()
320 denom = hc->tx_cwnd * hc->tx_cwnd / denom; in ccid2_hc_tx_packet_sent()
434 int r_seq_used = hc->tx_cwnd / dp->dccps_l_ack_ratio; in ccid2_new_ack()
436 if (hc->tx_cwnd < dp->dccps_l_seq_win && in ccid2_new_ack()
438 if (hc->tx_cwnd < hc->tx_ssthresh) { in ccid2_new_ack()
440 hc->tx_cwnd += 1; in ccid2_new_ack()
444 } else if (++hc->tx_packets_acked >= hc->tx_cwnd) { in ccid2_new_ack()
445 hc->tx_cwnd += 1; in ccid2_new_ack()
459 if (hc->tx_cwnd * CCID2_WIN_CHANGE_FACTOR >= dp->dccps_l_seq_win) in ccid2_new_ack()
461 else if (hc->tx_cwnd * CCID2_WIN_CHANGE_FACTOR < dp->dccps_l_seq_win/2) in ccid2_new_ack()
486 hc->tx_cwnd = hc->tx_cwnd / 2 ? : 1U; in ccid2_congestion_event()
487 hc->tx_ssthresh = max(hc->tx_cwnd, 2U); in ccid2_congestion_event()
580 if (hc->tx_cwnd < hc->tx_ssthresh) in ccid2_hc_tx_packet_recv()
723 hc->tx_cwnd = rfc3390_bytes_to_packets(dp->dccps_mss_cache); in ccid2_hc_tx_init()
724 hc->tx_expected_wnd = hc->tx_cwnd; in ccid2_hc_tx_init()
727 max_ratio = DIV_ROUND_UP(hc->tx_cwnd, 2); in ccid2_hc_tx_init()