Lines Matching refs:hist_stats
263 void dp_hist_update_stats(struct cdp_hist_stats *hist_stats, int value) in dp_hist_update_stats() argument
265 if (qdf_unlikely(!hist_stats)) in dp_hist_update_stats()
271 dp_hist_fill_buckets(&hist_stats->hist, value); in dp_hist_update_stats()
277 if (value < hist_stats->min) in dp_hist_update_stats()
278 hist_stats->min = value; in dp_hist_update_stats()
280 if (value > hist_stats->max) in dp_hist_update_stats()
281 hist_stats->max = value; in dp_hist_update_stats()
283 if (qdf_unlikely(!hist_stats->avg)) in dp_hist_update_stats()
284 hist_stats->avg = value; in dp_hist_update_stats()
286 hist_stats->avg = (hist_stats->avg + value) / 2; in dp_hist_update_stats()
327 void dp_hist_init(struct cdp_hist_stats *hist_stats, in dp_hist_init() argument
330 qdf_mem_zero(hist_stats, sizeof(*hist_stats)); in dp_hist_init()
331 hist_stats->min = INT_MAX; in dp_hist_init()
332 hist_stats->hist.hist_type = hist_type; in dp_hist_init()