Searched refs:rateinfo (Results 1 – 1 of 1) sorted by relevance
105 } rateinfo; member543 unsigned long delta = now - dh->rateinfo.prev; in rateinfo_recalc()550 u64 interval = dh->rateinfo.interval * HZ; in rateinfo_recalc()555 dh->rateinfo.prev = now; in rateinfo_recalc()556 dh->rateinfo.prev_window = in rateinfo_recalc()557 ((dh->rateinfo.current_rate * interval) > in rateinfo_recalc()558 (delta * dh->rateinfo.rate)); in rateinfo_recalc()559 dh->rateinfo.current_rate = 0; in rateinfo_recalc()564 dh->rateinfo.prev = now; in rateinfo_recalc()567 u64 tmp = dh->rateinfo.credit; in rateinfo_recalc()[all …]