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