Home
last modified time | relevance | path

Searched refs:prev_stats (Results 1 – 14 of 14) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/netronome/nfp/abm/
Dqdisc.c139 unsigned int queue, struct nfp_alink_stats *prev_stats, in __nfp_abm_stats_init() argument
148 backlog_pkts = prev_stats->backlog_pkts; in __nfp_abm_stats_init()
149 backlog_bytes = prev_stats->backlog_bytes; in __nfp_abm_stats_init()
151 err = nfp_abm_ctrl_read_q_stats(alink, band, queue, prev_stats); in __nfp_abm_stats_init()
167 prev_stats->backlog_pkts = backlog_pkts; in __nfp_abm_stats_init()
168 prev_stats->backlog_bytes = backlog_bytes; in __nfp_abm_stats_init()
181 &qdisc->red.band[i].prev_stats, in nfp_abm_stats_init()
502 &qdisc->red.band[i].prev_stats, in nfp_abm_gred_stats()
504 qdisc->red.band[i].prev_stats = qdisc->red.band[i].stats; in nfp_abm_gred_stats()
653 &qdisc->red.band[0].prev_stats, in nfp_abm_red_stats()
[all …]
Dmain.h169 struct nfp_alink_stats prev_stats; member
179 struct nfp_alink_stats prev_stats; member
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/flower/
Dqos_conf.c351 struct nfp_stat_pair *prev_stats; in nfp_flower_stats_rlim_reply() local
369 prev_stats = &repr_priv->qos_table.prev_stats; 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()
472 struct nfp_stat_pair *prev_stats; in nfp_flower_stats_rate_limiter() local
490 prev_stats = &repr_priv->qos_table.prev_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()
Dmain.h356 struct nfp_stat_pair prev_stats; member
/linux-6.6.21/lib/dim/
Drdma_dim.c53 &dim->prev_stats); in rdma_dim_decision()
71 dim->prev_stats = *curr_stats; in rdma_dim_decision()
Dnet_dim.c175 &dim->prev_stats); in net_dim_decision()
189 &dim->prev_stats); in net_dim_decision()
213 dim->prev_stats = *curr_stats; in net_dim_decision()
/linux-6.6.21/drivers/scsi/bnx2fc/
Dbnx2fc.h157 if (hba->prev_stats.stat.cnt <= val) \
158 val -= hba->prev_stats.stat.cnt; \
160 val += (0xfffffff - hba->prev_stats.stat.cnt); \
232 struct fcoe_statistics_params prev_stats; member
Dbnx2fc_fcoe.c720 memcpy(&hba->prev_stats, hba->stats_buffer, in bnx2fc_get_host_stats()
/linux-6.6.21/include/linux/
Ddim.h104 struct dim_stats prev_stats; member
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.h138 struct bnxt_tc_flow_stats prev_stats; member
Dbnxt_tc.c1626 struct bnxt_tc_flow_stats stats, *curr_stats, *prev_stats; in bnxt_tc_get_flow_stats() local
1640 prev_stats = &flow->prev_stats; in bnxt_tc_get_flow_stats()
1643 stats.packets = curr_stats->packets - prev_stats->packets; in bnxt_tc_get_flow_stats()
1644 stats.bytes = curr_stats->bytes - prev_stats->bytes; in bnxt_tc_get_flow_stats()
1645 *prev_stats = *curr_stats; in bnxt_tc_get_flow_stats()
1774 if (flow->stats.packets != flow->prev_stats.packets) in bnxt_tc_flow_stats_batch_update()
Dbnxt.c10910 struct rtnl_link_stats64 *prev_stats = &bp->net_stats_prev; in bnxt_add_prev_stats() local
10912 stats->rx_packets += prev_stats->rx_packets; in bnxt_add_prev_stats()
10913 stats->tx_packets += prev_stats->tx_packets; in bnxt_add_prev_stats()
10914 stats->rx_bytes += prev_stats->rx_bytes; in bnxt_add_prev_stats()
10915 stats->tx_bytes += prev_stats->tx_bytes; in bnxt_add_prev_stats()
10916 stats->rx_missed_errors += prev_stats->rx_missed_errors; in bnxt_add_prev_stats()
10917 stats->multicast += prev_stats->multicast; in bnxt_add_prev_stats()
10918 stats->rx_dropped += prev_stats->rx_dropped; in bnxt_add_prev_stats()
10919 stats->tx_dropped += prev_stats->tx_dropped; in bnxt_add_prev_stats()
/linux-6.6.21/drivers/net/wireless/intel/iwlegacy/
D3945.c373 __le32 *prev_stats; in il3945_accumulative_stats() local
377 prev_stats = (__le32 *) &il->_3945.stats; in il3945_accumulative_stats()
384 sizeof(__le32), stats++, prev_stats++, delta++, max_delta++, in il3945_accumulative_stats()
386 if (le32_to_cpu(*stats) > le32_to_cpu(*prev_stats)) { in il3945_accumulative_stats()
388 (le32_to_cpu(*stats) - le32_to_cpu(*prev_stats)); in il3945_accumulative_stats()
D4965-mac.c1323 __le32 *prev_stats; in il4965_accumulative_stats() local
1328 prev_stats = (__le32 *) &il->_4965.stats; in il4965_accumulative_stats()
1338 sizeof(__le32), stats++, prev_stats++, delta++, max_delta++, in il4965_accumulative_stats()
1340 if (le32_to_cpu(*stats) > le32_to_cpu(*prev_stats)) { in il4965_accumulative_stats()
1342 (le32_to_cpu(*stats) - le32_to_cpu(*prev_stats)); in il4965_accumulative_stats()