Lines Matching refs:maxBytes
414 int BandwidthController::setInterfaceSharedQuota(const std::string& iface, int64_t maxBytes) { in setInterfaceSharedQuota() argument
420 if (!maxBytes) { in setInterfaceSharedQuota()
428 if (maxBytes == -1) { in setInterfaceSharedQuota()
445 chain, maxBytes, cost)); in setInterfaceSharedQuota()
455 mSharedQuotaBytes = maxBytes; in setInterfaceSharedQuota()
459 if (maxBytes != mSharedQuotaBytes) { in setInterfaceSharedQuota()
460 res |= updateQuota(cost, maxBytes); in setInterfaceSharedQuota()
466 mSharedQuotaBytes = maxBytes; in setInterfaceSharedQuota()
520 int BandwidthController::setInterfaceQuota(const std::string& iface, int64_t maxBytes) { in setInterfaceQuota() argument
525 if (!maxBytes) { in setInterfaceQuota()
529 if (maxBytes == -1) { in setInterfaceQuota()
537 if (int res = updateQuota(cost, maxBytes)) { in setInterfaceQuota()
542 it->second.quota = maxBytes; in setInterfaceQuota()
558 maxBytes, cost.c_str()), in setInterfaceQuota()
567 mQuotaIfaces[iface] = QuotaInfo{maxBytes, 0}; in setInterfaceQuota()