Lines Matching refs:BBR_UNIT

223 static int32_t bbr_high_gain = BBR_UNIT * 2885 / 1000 + 1;
224 static int32_t bbr_startup_lower = BBR_UNIT * 1500 / 1000 + 1;
254 static int32_t bbr_drain_gain = BBR_UNIT * 1000 / 2885;
268 static int32_t bbr_cwnd_gain = BBR_UNIT * 2;
275 (BBR_UNIT *5 / 4),
276 (BBR_UNIT * 3 / 4),
277 BBR_UNIT,
278 BBR_UNIT,
279 BBR_UNIT,
280 BBR_UNIT,
281 BBR_UNIT,
282 BBR_UNIT
3040 bbr->r_ctl.rc_bbr_hptsi_gain = BBR_UNIT; in bbr_lt_bw_samp_done()
3427 cwnd = (uint32_t)(((bdp * ((uint64_t)gain)) + (uint64_t)(BBR_UNIT - 1)) / ((uint64_t)BBR_UNIT)); in bbr_get_raw_target_cwnd()
3515 divor = (uint64_t)USECS_IN_SECOND * (uint64_t)BBR_UNIT; in bbr_get_pacing_length()
3561 (uint64_t)BBR_UNIT); in bbr_get_pacing_delay()
5374 if (bbr->r_ctl.rc_bbr_hptsi_gain > BBR_UNIT) { in bbr_update_rsm()
5377 } else if (bbr->r_ctl.rc_bbr_hptsi_gain < BBR_UNIT) { in bbr_update_rsm()
5462 bw /= (uint64_t)BBR_UNIT; in bbr_get_hardware_rate()
5586 cur_delay = bbr_get_pacing_delay(bbr, BBR_UNIT, in bbr_adjust_for_hw_pacing()
5782 if (bbr->r_ctl.rc_bbr_hptsi_gain != BBR_UNIT) { in tcp_bbr_tso_size_check()
5784 bw /= BBR_UNIT; in tcp_bbr_tso_size_check()
5806 tso_len = bbr_get_pacing_length(bbr, BBR_UNIT, bbr->r_ctl.bbr_hptsi_segments_delay_tar, bw); in tcp_bbr_tso_size_check()
5986 if (bbr->r_ctl.rc_bbr_hptsi_gain > BBR_UNIT) { in bbr_log_output()
5989 } else if (bbr->r_ctl.rc_bbr_hptsi_gain < BBR_UNIT) { in bbr_log_output()
7924 bbr->r_ctl.rc_bbr_hptsi_gain = BBR_UNIT; in bbr_restart_after_idle()
7925 bbr->r_ctl.rc_bbr_cwnd_gain = BBR_UNIT; in bbr_restart_after_idle()
10327 (((bw * (uint64_t)bbr_hptsi_gain[BBR_SUB_GAIN]) / (uint64_t)BBR_UNIT) > rate)) { in bbr_substate_change()
10328 gain_calc = (rate * BBR_UNIT) / bw; in bbr_substate_change()
10329 if (gain_calc < BBR_UNIT) in bbr_substate_change()
10330 gain_calc = BBR_UNIT; in bbr_substate_change()
10415 bbr->r_ctl.rc_bbr_hptsi_gain = BBR_UNIT; in bbr_substate_change()
10626 (bbr->r_ctl.rc_bbr_hptsi_gain > BBR_UNIT)) { in bbr_set_state_target()
10635 tar = bbr_get_a_state_target(bbr, BBR_UNIT); in bbr_set_state_target()
10696 bbr->r_ctl.rc_bbr_hptsi_gain = BBR_UNIT; in bbr_enter_probe_rtt()
10697 bbr->r_ctl.rc_bbr_cwnd_gain = BBR_UNIT; in bbr_enter_probe_rtt()
10707 bbr->r_ctl.rc_bbr_cwnd_gain = BBR_UNIT; in bbr_enter_probe_rtt()
11112 bbr->r_ctl.rc_bbr_hptsi_gain = BBR_UNIT; in bbr_state_change()
11113 bbr->r_ctl.rc_bbr_cwnd_gain = BBR_UNIT; in bbr_state_change()
11202 bbr->r_ctl.rc_bbr_hptsi_gain = BBR_UNIT; in bbr_state_change()
11759 target = bbr_get_target_cwnd(bbr, bbr_get_bw(bbr), BBR_UNIT); in bbr_cwnd_limiting()
14326 if (optval <= BBR_UNIT) in bbr_set_sockopt()