Home
last modified time | relevance | path

Searched refs:curr_stats (Results 1 – 7 of 7) sorted by relevance

/linux/lib/dim/
H A Drdma_dim.c44 static bool rdma_dim_decision(struct dim_stats *curr_stats, struct dim *dim) in rdma_dim_decision() argument
52 stats_res = rdma_dim_stats_compare(curr_stats, in rdma_dim_decision()
57 if (curr_stats->cpe_ratio <= 50 * prev_ix) in rdma_dim_decision()
71 dim->prev_stats = *curr_stats; in rdma_dim_decision()
79 struct dim_stats curr_stats; in rdma_dim() local
91 if (!dim_calc_stats(&dim->start_sample, curr_sample, &curr_stats)) in rdma_dim()
93 if (rdma_dim_decision(&curr_stats, dim)) { in rdma_dim()
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_heartbeat.c162 struct hb_cnt_pair *live_stats, *last_stats, *curr_stats; in adf_hb_get_status() local
167 const size_t stats_size = size_mul(dev_ctrs, sizeof(*curr_stats)); in adf_hb_get_status()
185 curr_stats = kmemdup(live_stats, stats_size, GFP_KERNEL); in adf_hb_get_status()
186 if (!curr_stats) in adf_hb_get_status()
192 ae_curr_p = curr_stats + ae_offset; in adf_hb_get_status()
202 memcpy(last_stats, curr_stats, stats_size); in adf_hb_get_status()
203 kfree(curr_stats); in adf_hb_get_status()
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dqos_conf.c350 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()
[all …]
H A Dmain.h355 struct nfp_stat_pair curr_stats; member
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
H A Dhw_atl2_utils_fw.c340 struct aq_stats_s *cs = &self->curr_stats; in aq_a2_fill_a0_stats()
341 struct aq_stats_s curr_stats = *cs; in aq_a2_fill_a0_stats() local
348 curr_stats._N += stats->a0.msm._F - priv->last_stats.a0.msm._F;\ in aq_a2_fill_a0_stats()
372 *cs = curr_stats; in aq_a2_fill_a0_stats()
382 struct aq_stats_s *cs = &self->curr_stats; in aq_a2_fill_b0_stats()
383 struct aq_stats_s curr_stats = *cs; in aq_a2_fill_b0_stats() local
390 curr_stats._N += stats->b0._F - priv->last_stats.b0._F; \ in aq_a2_fill_b0_stats()
409 *cs = curr_stats; in aq_a2_fill_b0_stats()
416 struct aq_stats_s *cs = &self->curr_stats; in aq_a2_fw_update_stats()
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_utils.c869 struct aq_stats_s *cs = &self->curr_stats; in hw_atl_utils_update_stats()
870 struct aq_stats_s curr_stats = *cs; in hw_atl_utils_update_stats() local
880 curr_stats._N_ += mbox.stats._N_ - self->last_stats._N_; \ in hw_atl_utils_update_stats()
905 *cs = curr_stats; in hw_atl_utils_update_stats()
921 return &self->curr_stats; in hw_atl_utils_get_hw_stats()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_tc.c1630 struct bnxt_tc_flow_stats stats, *curr_stats, *prev_stats; in bnxt_tc_get_flow_stats() local
1643 curr_stats = &flow->stats; in bnxt_tc_get_flow_stats()
1647 stats.packets = curr_stats->packets - prev_stats->packets; in bnxt_tc_get_flow_stats()
1648 stats.bytes = curr_stats->bytes - prev_stats->bytes; in bnxt_tc_get_flow_stats()
1649 *prev_stats = *curr_stats; in bnxt_tc_get_flow_stats()