Lines Matching refs:bucket
389 /* Figure out max delta_t that is enough to fill any bucket.
390 * Keep max_delta_t size to the bucket units:
393 * Start with a full bucket.
395 band->bucket = (band->burst_size + band->rate) * 1000ULL;
396 band_max_delta_t = div_u64(band->bucket, band->rate);
625 /* Make sure delta_ms will not be too large, so that bucket will not
638 * second. We maintain the bucket in the units of either bits or
641 * bucket units:
645 * 'cost' is the number of bucket units in this packet.
656 band->bucket += delta_ms * band->rate;
657 if (band->bucket > max_bucket_size)
658 band->bucket = max_bucket_size;
660 if (band->bucket >= cost) {
661 band->bucket -= cost;