Searched refs:prev_stats (Results 1 – 11 of 11) sorted by relevance
/drivers/net/ethernet/netronome/nfp/flower/ |
D | qos_conf.c | 187 struct nfp_stat_pair *prev_stats; in nfp_flower_stats_rlim_reply() local 202 prev_stats = &repr_priv->qos_table.prev_stats; 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() 297 struct nfp_stat_pair *prev_stats; in nfp_flower_stats_rate_limiter() local 315 prev_stats = &repr_priv->qos_table.prev_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() 318 prev_stats->pkts = curr_stats->pkts; in nfp_flower_stats_rate_limiter() 319 prev_stats->bytes = curr_stats->bytes; in nfp_flower_stats_rate_limiter()
|
D | main.h | 211 struct nfp_stat_pair prev_stats; member
|
/drivers/net/ethernet/netronome/nfp/abm/ |
D | qdisc.c | 139 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 …]
|
D | main.h | 169 struct nfp_alink_stats prev_stats; member 179 struct nfp_alink_stats prev_stats; member
|
/drivers/scsi/bnx2fc/ |
D | bnx2fc.h | 160 if (hba->prev_stats.stat.cnt <= val) \ 161 val -= hba->prev_stats.stat.cnt; \ 163 val += (0xfffffff - hba->prev_stats.stat.cnt); \ 235 struct fcoe_statistics_params prev_stats; member
|
D | bnx2fc_fcoe.c | 721 memcpy(&hba->prev_stats, hba->stats_buffer, in bnx2fc_get_host_stats()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_tc.c | 1351 struct bnxt_tc_flow_stats stats, *curr_stats, *prev_stats; in bnxt_tc_get_flow_stats() local 1365 prev_stats = &flow->prev_stats; in bnxt_tc_get_flow_stats() 1368 stats.packets = curr_stats->packets - prev_stats->packets; in bnxt_tc_get_flow_stats() 1369 stats.bytes = curr_stats->bytes - prev_stats->bytes; in bnxt_tc_get_flow_stats() 1370 *prev_stats = *curr_stats; in bnxt_tc_get_flow_stats() 1493 if (flow->stats.packets != flow->prev_stats.packets) in bnxt_tc_flow_stats_batch_update()
|
D | bnxt_tc.h | 118 struct bnxt_tc_flow_stats prev_stats; member
|
D | bnxt.c | 9461 struct rtnl_link_stats64 *prev_stats = &bp->net_stats_prev; in bnxt_add_prev_stats() local 9463 stats->rx_packets += prev_stats->rx_packets; in bnxt_add_prev_stats() 9464 stats->tx_packets += prev_stats->tx_packets; in bnxt_add_prev_stats() 9465 stats->rx_bytes += prev_stats->rx_bytes; in bnxt_add_prev_stats() 9466 stats->tx_bytes += prev_stats->tx_bytes; in bnxt_add_prev_stats() 9467 stats->rx_missed_errors += prev_stats->rx_missed_errors; in bnxt_add_prev_stats() 9468 stats->multicast += prev_stats->multicast; in bnxt_add_prev_stats() 9469 stats->tx_dropped += prev_stats->tx_dropped; in bnxt_add_prev_stats()
|
/drivers/net/wireless/intel/iwlegacy/ |
D | 3945.c | 373 __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()
|
D | 4965-mac.c | 1321 __le32 *prev_stats; in il4965_accumulative_stats() local 1326 prev_stats = (__le32 *) &il->_4965.stats; in il4965_accumulative_stats() 1336 sizeof(__le32), stats++, prev_stats++, delta++, max_delta++, in il4965_accumulative_stats() 1338 if (le32_to_cpu(*stats) > le32_to_cpu(*prev_stats)) { in il4965_accumulative_stats() 1340 (le32_to_cpu(*stats) - le32_to_cpu(*prev_stats)); in il4965_accumulative_stats()
|