Searched refs:curr_stats (Results 1 – 11 of 11) sorted by relevance
/Linux-v5.10/lib/dim/ |
D | dim.c | 58 struct dim_stats *curr_stats) in dim_calc_stats() argument 71 curr_stats->ppms = DIV_ROUND_UP(npkts * USEC_PER_MSEC, delta_us); in dim_calc_stats() 72 curr_stats->bpms = DIV_ROUND_UP(nbytes * USEC_PER_MSEC, delta_us); in dim_calc_stats() 73 curr_stats->epms = DIV_ROUND_UP(DIM_NEVENTS * USEC_PER_MSEC, in dim_calc_stats() 75 curr_stats->cpms = DIV_ROUND_UP(ncomps * USEC_PER_MSEC, delta_us); in dim_calc_stats() 76 if (curr_stats->epms != 0) in dim_calc_stats() 77 curr_stats->cpe_ratio = DIV_ROUND_DOWN_ULL( in dim_calc_stats() 78 curr_stats->cpms * 100, curr_stats->epms); in dim_calc_stats() 80 curr_stats->cpe_ratio = 0; in dim_calc_stats()
|
D | rdma_dim.c | 44 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 dim_calc_stats(&dim->start_sample, curr_sample, &curr_stats); in rdma_dim() 92 if (rdma_dim_decision(&curr_stats, dim)) { in rdma_dim()
|
D | net_dim.c | 165 static bool net_dim_decision(struct dim_stats *curr_stats, struct dim *dim) in net_dim_decision() argument 174 stats_res = net_dim_stats_compare(curr_stats, in net_dim_decision() 188 stats_res = net_dim_stats_compare(curr_stats, in net_dim_decision() 213 dim->prev_stats = *curr_stats; in net_dim_decision() 220 struct dim_stats curr_stats; in net_dim() local 230 dim_calc_stats(&dim->start_sample, &end_sample, &curr_stats); in net_dim() 231 if (net_dim_decision(&curr_stats, dim)) { in net_dim()
|
/Linux-v5.10/drivers/net/ethernet/netronome/nfp/flower/ |
D | qos_conf.c | 186 struct nfp_stat_pair *curr_stats; in nfp_flower_stats_rlim_reply() local 201 curr_stats = &repr_priv->qos_table.curr_stats; in nfp_flower_stats_rlim_reply() 205 curr_stats->pkts = be64_to_cpu(msg->pass_pkts) + in nfp_flower_stats_rlim_reply() 207 curr_stats->bytes = be64_to_cpu(msg->pass_bytes) + in nfp_flower_stats_rlim_reply() 211 prev_stats->pkts = curr_stats->pkts; in nfp_flower_stats_rlim_reply() 212 prev_stats->bytes = curr_stats->bytes; in nfp_flower_stats_rlim_reply() 296 struct nfp_stat_pair *curr_stats; in nfp_flower_stats_rate_limiter() local 314 curr_stats = &repr_priv->qos_table.curr_stats; in nfp_flower_stats_rate_limiter() 316 diff_pkts = curr_stats->pkts - prev_stats->pkts; in nfp_flower_stats_rate_limiter() 317 diff_bytes = curr_stats->bytes - prev_stats->bytes; in nfp_flower_stats_rate_limiter() [all …]
|
D | main.h | 237 struct nfp_stat_pair curr_stats; member
|
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
D | hw_atl2_utils_fw.c | 345 #define AQ_SDELTA(_N_, _F_) (self->curr_stats._N_ += \ in aq_a2_fw_update_stats() 367 self->curr_stats.dma_pkt_rc = in aq_a2_fw_update_stats() 369 self->curr_stats.dma_pkt_tc = in aq_a2_fw_update_stats() 371 self->curr_stats.dma_oct_rc = in aq_a2_fw_update_stats() 373 self->curr_stats.dma_oct_tc = in aq_a2_fw_update_stats() 375 self->curr_stats.dpc = hw_atl_rpb_rx_dma_drop_pkt_cnt_get(self); in aq_a2_fw_update_stats()
|
D | hw_atl2.c | 753 return &self->curr_stats; in hw_atl2_utils_get_hw_stats()
|
/Linux-v5.10/include/linux/ |
D | dim.h | 241 struct dim_stats *curr_stats);
|
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
D | hw_atl_utils.c | 859 struct aq_stats_s *cs = &self->curr_stats; in hw_atl_utils_update_stats() 864 #define AQ_SDELTA(_N_) (self->curr_stats._N_ += \ in hw_atl_utils_update_stats() 900 return &self->curr_stats; in hw_atl_utils_get_hw_stats()
|
/Linux-v5.10/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_tc.c | 1618 struct bnxt_tc_flow_stats stats, *curr_stats, *prev_stats; in bnxt_tc_get_flow_stats() local 1631 curr_stats = &flow->stats; in bnxt_tc_get_flow_stats() 1635 stats.packets = curr_stats->packets - prev_stats->packets; in bnxt_tc_get_flow_stats() 1636 stats.bytes = curr_stats->bytes - prev_stats->bytes; in bnxt_tc_get_flow_stats() 1637 *prev_stats = *curr_stats; in bnxt_tc_get_flow_stats()
|
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_hw.h | 184 struct aq_stats_s curr_stats; member
|