Home
last modified time | relevance | path

Searched refs:old_stats (Results 1 – 2 of 2) sorted by relevance

/drivers/infiniband/hw/ocrdma/
Docrdma_hw.c1284 struct ocrdma_rdma_stats_resp *old_stats; in ocrdma_mbx_rdma_stats() local
1287 old_stats = kmalloc(sizeof(*old_stats), GFP_KERNEL); in ocrdma_mbx_rdma_stats()
1288 if (old_stats == NULL) in ocrdma_mbx_rdma_stats()
1301 memcpy(old_stats, req, sizeof(struct ocrdma_rdma_stats_resp)); in ocrdma_mbx_rdma_stats()
1314 memcpy(req, old_stats, sizeof(struct ocrdma_rdma_stats_resp)); in ocrdma_mbx_rdma_stats()
1318 kfree(old_stats); in ocrdma_mbx_rdma_stats()
/drivers/net/ethernet/broadcom/
Dtg3.c11886 struct rtnl_link_stats64 *old_stats = &tp->net_stats_prev; in tg3_get_nstats() local
11889 stats->rx_packets = old_stats->rx_packets + in tg3_get_nstats()
11894 stats->tx_packets = old_stats->tx_packets + in tg3_get_nstats()
11899 stats->rx_bytes = old_stats->rx_bytes + in tg3_get_nstats()
11901 stats->tx_bytes = old_stats->tx_bytes + in tg3_get_nstats()
11904 stats->rx_errors = old_stats->rx_errors + in tg3_get_nstats()
11906 stats->tx_errors = old_stats->tx_errors + in tg3_get_nstats()
11912 stats->multicast = old_stats->multicast + in tg3_get_nstats()
11914 stats->collisions = old_stats->collisions + in tg3_get_nstats()
11917 stats->rx_length_errors = old_stats->rx_length_errors + in tg3_get_nstats()
[all …]