Lines Matching refs:rs
9 static inline void ratelimit_state_init(struct ratelimit_state *rs, in ratelimit_state_init() argument
12 memset(rs, 0, sizeof(*rs)); in ratelimit_state_init()
14 raw_spin_lock_init(&rs->lock); in ratelimit_state_init()
15 rs->interval = interval; in ratelimit_state_init()
16 rs->burst = burst; in ratelimit_state_init()
19 static inline void ratelimit_default_init(struct ratelimit_state *rs) in ratelimit_default_init() argument
21 return ratelimit_state_init(rs, DEFAULT_RATELIMIT_INTERVAL, in ratelimit_default_init()
25 static inline void ratelimit_state_exit(struct ratelimit_state *rs) in ratelimit_state_exit() argument
27 if (!(rs->flags & RATELIMIT_MSG_ON_RELEASE)) in ratelimit_state_exit()
30 if (rs->missed) { in ratelimit_state_exit()
32 current->comm, rs->missed); in ratelimit_state_exit()
33 rs->missed = 0; in ratelimit_state_exit()
38 ratelimit_set_flags(struct ratelimit_state *rs, unsigned long flags) in ratelimit_set_flags() argument
40 rs->flags = flags; in ratelimit_set_flags()