Searched refs:rateinfo (Results 1 – 1 of 1) sorted by relevance
77 } rateinfo; member456 dh->rateinfo.credit += (now - dh->rateinfo.prev) * CREDITS_PER_JIFFY; in rateinfo_recalc()457 if (dh->rateinfo.credit > dh->rateinfo.credit_cap) in rateinfo_recalc()458 dh->rateinfo.credit = dh->rateinfo.credit_cap; in rateinfo_recalc()459 dh->rateinfo.prev = now; in rateinfo_recalc()588 dh->rateinfo.prev = jiffies; in hashlimit_mt_v0()589 dh->rateinfo.credit = user2credits(hinfo->cfg.avg * in hashlimit_mt_v0()591 dh->rateinfo.credit_cap = user2credits(hinfo->cfg.avg * in hashlimit_mt_v0()593 dh->rateinfo.cost = user2credits(hinfo->cfg.avg); in hashlimit_mt_v0()600 if (dh->rateinfo.credit >= dh->rateinfo.cost) { in hashlimit_mt_v0()[all …]