Searched refs:user2credits (Results 1 – 3 of 3) sorted by relevance
59 user2credits(u_int32_t user) in user2credits() function75 user2credits(info->avg * info->burst) < user2credits(info->avg)) { in ebt_limit_mt_check()83 info->credit = user2credits(info->avg * info->burst); in ebt_limit_mt_check()84 info->credit_cap = user2credits(info->avg * info->burst); in ebt_limit_mt_check()85 info->cost = user2credits(info->avg); in ebt_limit_mt_check()
95 static u32 user2credits(u32 user) in user2credits() function112 || user2credits(r->avg * r->burst) < user2credits(r->avg)) { in limit_mt_check()127 priv->credit = user2credits(r->avg * r->burst); /* Credits full. */ in limit_mt_check()130 r->cost = user2credits(r->avg); in limit_mt_check()
489 static u64 user2credits(u64 user, int revision) in user2credits() function599 dh->rateinfo.credit = user2credits(hinfo->cfg.avg * in rateinfo_init()601 dh->rateinfo.cost = user2credits(hinfo->cfg.avg, revision); in rateinfo_init()888 user2credits(cfg->avg * cfg->burst, revision) < in hashlimit_mt_check_common()889 user2credits(cfg->avg, revision)) { in hashlimit_mt_check_common()