Home
last modified time | relevance | path

Searched refs:CREDITS_PER_JIFFY (Results 1 – 3 of 3) sorted by relevance

/net/bridge/netfilter/
Debt_limit.c32 #define CREDITS_PER_JIFFY POW2_BELOW32(MAX_CPJ) macro
41 info->credit += (now - xchg(&info->prev, now)) * CREDITS_PER_JIFFY; in ebt_limit_mt()
61 if (user > 0xFFFFFFFF / (HZ*CREDITS_PER_JIFFY)) in user2credits()
63 return (user / EBT_LIMIT_SCALE) * HZ * CREDITS_PER_JIFFY; in user2credits()
65 return (user * HZ * CREDITS_PER_JIFFY) / EBT_LIMIT_SCALE; in user2credits()
/net/netfilter/
Dxt_limit.c66 #define CREDITS_PER_JIFFY POW2_BELOW32(MAX_CPJ) macro
76 priv->credit += (now - xchg(&priv->prev, now)) * CREDITS_PER_JIFFY; in limit_mt()
95 if (user > 0xFFFFFFFF / (HZ*CREDITS_PER_JIFFY)) in user2credits()
97 return (user / XT_LIMIT_SCALE) * HZ * CREDITS_PER_JIFFY; in user2credits()
99 return (user * HZ * CREDITS_PER_JIFFY) / XT_LIMIT_SCALE; in user2credits()
Dxt_hashlimit.c409 #define CREDITS_PER_JIFFY POW2_BELOW32(MAX_CPJ) macro
427 if (user > 0xFFFFFFFF / (HZ*CREDITS_PER_JIFFY)) in user2credits()
429 return (user / XT_HASHLIMIT_SCALE) * HZ * CREDITS_PER_JIFFY; in user2credits()
431 return (user * HZ * CREDITS_PER_JIFFY) / XT_HASHLIMIT_SCALE; in user2credits()
460 dh->rateinfo.credit += delta * CREDITS_PER_JIFFY; in rateinfo_recalc()