Lines Matching refs:curr_stats
350 struct nfp_stat_pair *curr_stats; in nfp_flower_stats_rlim_reply() local
368 curr_stats = &repr_priv->qos_table.curr_stats; in nfp_flower_stats_rlim_reply()
372 curr_stats->pkts = be64_to_cpu(msg->pass_pkts) + in nfp_flower_stats_rlim_reply()
374 curr_stats->bytes = be64_to_cpu(msg->pass_bytes) + in nfp_flower_stats_rlim_reply()
378 prev_stats->pkts = curr_stats->pkts; in nfp_flower_stats_rlim_reply()
379 prev_stats->bytes = curr_stats->bytes; in nfp_flower_stats_rlim_reply()
471 struct nfp_stat_pair *curr_stats; in nfp_flower_stats_rate_limiter() local
489 curr_stats = &repr_priv->qos_table.curr_stats; in nfp_flower_stats_rate_limiter()
491 diff_pkts = curr_stats->pkts - prev_stats->pkts; in nfp_flower_stats_rate_limiter()
492 diff_bytes = curr_stats->bytes - prev_stats->bytes; in nfp_flower_stats_rate_limiter()
493 prev_stats->pkts = curr_stats->pkts; in nfp_flower_stats_rate_limiter()
494 prev_stats->bytes = curr_stats->bytes; in nfp_flower_stats_rate_limiter()