Searched refs:CREDITS_PER_JIFFY (Results 1 – 2 of 2) sorted by relevance
42 #define CREDITS_PER_JIFFY 128 macro58 r->credit += (now - xchg(&r->prev, now)) * CREDITS_PER_JIFFY; in ip6t_limit_match()78 if (user > 0xFFFFFFFF / (HZ*CREDITS_PER_JIFFY)) in user2credits()80 return (user / IP6T_LIMIT_SCALE) * HZ * CREDITS_PER_JIFFY; in user2credits()82 return (user * HZ * CREDITS_PER_JIFFY) / IP6T_LIMIT_SCALE; in user2credits()
53 #define CREDITS_PER_JIFFY POW2_BELOW32(MAX_CPJ) macro69 r->credit += (now - xchg(&r->prev, now)) * CREDITS_PER_JIFFY; in ipt_limit_match()89 if (user > 0xFFFFFFFF / (HZ*CREDITS_PER_JIFFY)) in user2credits()91 return (user / IPT_LIMIT_SCALE) * HZ * CREDITS_PER_JIFFY; in user2credits()93 return (user * HZ * CREDITS_PER_JIFFY) / IPT_LIMIT_SCALE; in user2credits()