Lines Matching refs:bw
1090 ifnet_set_output_bandwidths(struct ifnet *ifp, struct if_bandwidths *bw,
1097 VERIFY(ifp != NULL && bw != NULL);
1105 if (bw->eff_bw != 0)
1106 ifp->if_output_bw.eff_bw = bw->eff_bw;
1107 if (bw->max_bw != 0)
1108 ifp->if_output_bw.max_bw = bw->max_bw;
1131 ifnet_set_input_bandwidths(struct ifnet *ifp, struct if_bandwidths *bw)
1135 VERIFY(ifp != NULL && bw != NULL);
1138 if (bw->eff_bw != 0)
1139 ifp->if_input_bw.eff_bw = bw->eff_bw;
1140 if (bw->max_bw != 0)
1141 ifp->if_input_bw.max_bw = bw->max_bw;
2083 uint64_t bw = 0;
2086 bw = (bytes * NSEC_PER_MSEC) / t;
2087 if (bw > 0) {
2088 if (ifp->if_bw.bw > 0) {
2092 /* Compute EWMA of bw */
2093 ifp->if_bw.bw = (bw +
2094 ((ifp->if_bw.bw << shft) -
2095 ifp->if_bw.bw)) >> shft;
2097 ifp->if_bw.bw = bw;