Lines Matching refs:cwnd
333 u32 cwnd; in bbr_target_cwnd() local
348 cwnd = (((w * gain) >> BBR_SCALE) + BW_UNIT - 1) / BW_UNIT; in bbr_target_cwnd()
351 cwnd += 3 * bbr->tso_segs_goal; in bbr_target_cwnd()
354 cwnd = (cwnd + 1) & ~1U; in bbr_target_cwnd()
358 cwnd += 2; in bbr_target_cwnd()
360 return cwnd; in bbr_target_cwnd()
377 u32 cwnd = tp->snd_cwnd; in bbr_set_cwnd_to_recover_or_restore() local
384 cwnd = max_t(s32, cwnd - rs->losses, 1); in bbr_set_cwnd_to_recover_or_restore()
391 cwnd = tcp_packets_in_flight(tp) + acked; in bbr_set_cwnd_to_recover_or_restore()
401 cwnd = max(cwnd, bbr->prior_cwnd); in bbr_set_cwnd_to_recover_or_restore()
406 *new_cwnd = max(cwnd, tcp_packets_in_flight(tp) + acked); in bbr_set_cwnd_to_recover_or_restore()
409 *new_cwnd = cwnd; in bbr_set_cwnd_to_recover_or_restore()
421 u32 cwnd = 0, target_cwnd = 0; in bbr_set_cwnd() local
426 if (bbr_set_cwnd_to_recover_or_restore(sk, rs, acked, &cwnd)) in bbr_set_cwnd()
432 cwnd = min(cwnd + acked, target_cwnd); in bbr_set_cwnd()
433 else if (cwnd < target_cwnd || tp->delivered < TCP_INIT_CWND) in bbr_set_cwnd()
434 cwnd = cwnd + acked; in bbr_set_cwnd()
435 cwnd = max(cwnd, bbr_cwnd_min_target); in bbr_set_cwnd()
438 tp->snd_cwnd = min(cwnd, tp->snd_cwnd_clamp); /* apply global cap */ in bbr_set_cwnd()