Lines Matching refs:curr_stats
302 static inline bool net_dim_decision(struct net_dim_stats *curr_stats, in net_dim_decision() argument
312 stats_res = net_dim_stats_compare(curr_stats, &dim->prev_stats); in net_dim_decision()
325 stats_res = net_dim_stats_compare(curr_stats, &dim->prev_stats); in net_dim_decision()
349 dim->prev_stats = *curr_stats; in net_dim_decision()
370 struct net_dim_stats *curr_stats) in net_dim_calc_stats() argument
381 curr_stats->ppms = DIV_ROUND_UP(npkts * USEC_PER_MSEC, delta_us); in net_dim_calc_stats()
382 curr_stats->bpms = DIV_ROUND_UP(nbytes * USEC_PER_MSEC, delta_us); in net_dim_calc_stats()
383 curr_stats->epms = DIV_ROUND_UP(NET_DIM_NEVENTS * USEC_PER_MSEC, in net_dim_calc_stats()
390 struct net_dim_stats curr_stats; in net_dim() local
401 &curr_stats); in net_dim()
402 if (net_dim_decision(&curr_stats, dim)) { in net_dim()