Lines Matching defs:bw
1015 ifnet_set_output_bandwidths(struct ifnet *ifp, struct if_bandwidths *bw,
1028 if (bw != NULL) {
1029 if (bw->eff_bw != 0)
1030 ifp->if_output_bw.eff_bw = bw->eff_bw;
1031 if (bw->max_bw != 0)
1032 ifp->if_output_bw.max_bw = bw->max_bw;
1056 ifnet_set_input_bandwidths(struct ifnet *ifp, struct if_bandwidths *bw)
1061 if (bw->eff_bw != 0)
1062 ifp->if_input_bw.eff_bw = bw->eff_bw;
1063 if (bw->max_bw != 0)
1064 ifp->if_input_bw.max_bw = bw->max_bw;
1797 uint64_t bw = 0;
1800 bw = (bytes * NSEC_PER_MSEC) / t;
1801 if (bw > 0) {
1802 if (ifp->if_bw.bw > 0) {
1806 /* Compute EWMA of bw */
1807 ifp->if_bw.bw = (bw +
1808 ((ifp->if_bw.bw << shft) -
1809 ifp->if_bw.bw)) >> shft;
1811 ifp->if_bw.bw = bw;