Lines Matching refs:BBR_UNIT

76 #define BBR_UNIT (1 << BBR_SCALE)  macro
136 static const int bbr_high_gain = BBR_UNIT * 2885 / 1000 + 1;
140 static const int bbr_drain_gain = BBR_UNIT * 1000 / 2885;
142 static const int bbr_cwnd_gain = BBR_UNIT * 2;
145 BBR_UNIT * 5 / 4, /* probe for more available bw */
146 BBR_UNIT * 3 / 4, /* drain queue and/or yield bw to other flows */
147 BBR_UNIT, BBR_UNIT, BBR_UNIT, /* cruise at 1.0*bw to utilize pipe, */
148 BBR_UNIT, BBR_UNIT, BBR_UNIT /* without creating excess queue... */
161 static const u32 bbr_full_bw_thresh = BBR_UNIT * 5 / 4;
171 static const u32 bbr_lt_bw_ratio = BBR_UNIT / 8;
312 bbr_set_pacing_rate(sk, bbr_bw(sk), BBR_UNIT); in bbr_cwnd_event()
365 if (bbr->mode == BBR_PROBE_BW && gain > BBR_UNIT) in bbr_target_cwnd()
459 if (bbr->pacing_gain == BBR_UNIT) in bbr_is_next_cycle_phase()
470 if (bbr->pacing_gain > BBR_UNIT) in bbr_is_next_cycle_phase()
480 inflight <= bbr_target_cwnd(sk, bw, BBR_UNIT); in bbr_is_next_cycle_phase()
490 bbr->pacing_gain = bbr->lt_use_bw ? BBR_UNIT : in bbr_advance_cycle_phase()
518 bbr->pacing_gain = BBR_UNIT; in bbr_reset_probe_bw_mode()
564 if ((diff * BBR_UNIT <= bbr_lt_bw_ratio * bbr->lt_bw) || in bbr_lt_bw_interval_done()
565 (bbr_rate_bytes_per_sec(sk, diff, BBR_UNIT) <= in bbr_lt_bw_interval_done()
570 bbr->pacing_gain = BBR_UNIT; /* try to avoid drops */ in bbr_lt_bw_interval_done()
740 bbr_target_cwnd(sk, bbr_max_bw(sk), BBR_UNIT); in bbr_check_drain()
744 bbr_target_cwnd(sk, bbr_max_bw(sk), BBR_UNIT)) in bbr_check_drain()
800 bbr->pacing_gain = BBR_UNIT; in bbr_update_min_rtt()
801 bbr->cwnd_gain = BBR_UNIT; in bbr_update_min_rtt()