Home
last modified time | relevance | path

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

/openbmc/linux/net/bridge/netfilter/
H A Debt_limit.c33 #define CREDITS_PER_JIFFY POW2_BELOW32(MAX_CPJ) macro
42 info->credit += (now - xchg(&info->prev, now)) * CREDITS_PER_JIFFY; in ebt_limit_mt()
62 if (user > 0xFFFFFFFF / (HZ*CREDITS_PER_JIFFY)) in user2credits()
64 return (user / EBT_LIMIT_SCALE) * HZ * CREDITS_PER_JIFFY; in user2credits()
66 return (user * HZ * CREDITS_PER_JIFFY) / EBT_LIMIT_SCALE; in user2credits()
/openbmc/linux/net/netfilter/
H A Dxt_limit.c60 #define CREDITS_PER_JIFFY POW2_BELOW32(MAX_CPJ) macro
77 credit_increase += (now - xchg(&priv->prev, now)) * CREDITS_PER_JIFFY; in limit_mt()
98 if (user > 0xFFFFFFFF / (HZ*CREDITS_PER_JIFFY)) in user2credits()
100 return (user / XT_LIMIT_SCALE) * HZ * CREDITS_PER_JIFFY; in user2credits()
102 return (user * HZ * CREDITS_PER_JIFFY) / XT_LIMIT_SCALE; in user2credits()
H A Dxt_hashlimit.c473 #define CREDITS_PER_JIFFY POW2_BELOW64(MAX_CPJ) macro
494 CREDITS_PER_JIFFY_v1 : CREDITS_PER_JIFFY; in user2credits()
565 CREDITS_PER_JIFFY_v1 : CREDITS_PER_JIFFY; in rateinfo_recalc()