Lines Matching defs:rate_est
84 struct gnet_stats_rate_est *rate_est;
122 e->rate_est->bps = (e->avbps+0xF)>>5;
127 e->rate_est->pps = (e->avpps+0x1FF)>>10;
138 * @rate_est: rate estimator statistics
142 * Creates a new rate estimator with &bstats as source and &rate_est
146 * &rate_est with the statistics lock grabed during this period.
151 struct gnet_stats_rate_est *rate_est, spinlock_t *stats_lock, struct rtattr *opt)
168 est->rate_est = rate_est;
172 est->avbps = rate_est->bps<<5;
174 est->avpps = rate_est->pps<<10;
193 * @rate_est: rate estimator statistics
195 * Removes the rate estimator specified by &bstats and &rate_est
199 struct gnet_stats_rate_est *rate_est)
208 if (est->rate_est != rate_est || est->bstats != bstats) {
228 * @rate_est: rate estimator statistics
239 struct gnet_stats_rate_est *rate_est, spinlock_t *stats_lock,
242 gen_kill_estimator(bstats, rate_est);
243 return gen_new_estimator(bstats, rate_est, stats_lock, opt);