Searched refs:bw (Results 1 – 4 of 4) sorted by relevance
| /xnu-11215/bsd/net/pktsched/ |
| H A D | pktsched_netem.c | 1062 struct bandwidth *bw = &ne->netem_bandwidth_model; in rate_limiter() local 1066 if (bw->rate == UINT64_MAX) { in rate_limiter() 1070 if (bw->rate == 0) { in rate_limiter() 1074 ipg_ns = (pkt->pktsched_plen * 8 * NSEC_PER_SEC) / bw->rate; in rate_limiter() 1076 start_abs_time = MAX(start_abs_time, bw->prev_time_to_send); in rate_limiter() 1517 struct bandwidth *bw = &ne->netem_bandwidth_model; in netem_set_params() local 1518 bw->rate = p->ifnetem_bandwidth_bps; in netem_set_params() 1562 NETEM_LOG(LOG_INFO, "| bandwidth %llu bps %s", bw->rate, in netem_set_params() 1563 bw->rate == UINT64_MAX ? "no limit" : ""); in netem_set_params() 1592 struct bandwidth *bw = &ne->netem_bandwidth_model; in netem_get_params() local [all …]
|
| /xnu-11215/bsd/net/ |
| H A D | kpi_interface.c | 1515 VERIFY(ifp != NULL && bw != NULL); in ifnet_set_output_bandwidths() 1524 if (bw->eff_bw != 0) { in ifnet_set_output_bandwidths() 1525 ifp->if_output_bw.eff_bw = bw->eff_bw; in ifnet_set_output_bandwidths() 1527 if (bw->max_bw != 0) { in ifnet_set_output_bandwidths() 1528 ifp->if_output_bw.max_bw = bw->max_bw; in ifnet_set_output_bandwidths() 1589 ifnet_set_input_bandwidths(struct ifnet *ifp, struct if_bandwidths *bw) in ifnet_set_input_bandwidths() argument 1593 VERIFY(ifp != NULL && bw != NULL); in ifnet_set_input_bandwidths() 1596 if (bw->eff_bw != 0) { in ifnet_set_input_bandwidths() 1597 ifp->if_input_bw.eff_bw = bw->eff_bw; in ifnet_set_input_bandwidths() 1599 if (bw->max_bw != 0) { in ifnet_set_input_bandwidths() [all …]
|
| /xnu-11215/bsd/netinet/ |
| H A D | tcp_input.c | 521 uint32_t bw, bytes, elapsed_time; in tcp_bwmeas_check() local 533 bw = bytes / elapsed_time; in tcp_bwmeas_check() 534 if (bw > 0) { in tcp_bwmeas_check() 539 + bw) >> 3; in tcp_bwmeas_check() 541 tp->t_bwmeas->bw_sndbw = bw; in tcp_bwmeas_check()
|
| /xnu-11215/tests/ |
| H A D | proc_info.c | 640 ssize_t bw = write(tmp_fd, buf, (size_t)map_tmp_sz); in proc_info_caller() local 642 T_ASSERT_GT_INT((int)bw, 0, "write(%d, buf, %d) failed", tmp_fd, (int)map_tmp_sz); in proc_info_caller()
|