Lines Matching refs:bw_remaining
92 Throttle::operateVnet(int vnet, int &bw_remaining, bool &schedule_wakeup,
102 while (bw_remaining > 0 && (in->isReady(current_time) ||
130 int diff = m_units_remaining[vnet] - bw_remaining;
132 bw_remaining = max(0, -diff);
135 if (bw_remaining > 0 && (in->isReady(current_time) ||
151 int bw_remaining = getLinkBandwidth();
168 operateVnet(vnet, bw_remaining, schedule_wakeup,
173 operateVnet(vnet, bw_remaining, schedule_wakeup,
180 // assert(bw_remaining != getLinkBandwidth());
183 double ratio = 1.0 - (double(bw_remaining) / double(getLinkBandwidth()));
188 if (bw_remaining > 0 && !schedule_wakeup) {