Searched refs:old_stats (Results 1 – 2 of 2) sorted by relevance
1290 struct ocrdma_rdma_stats_resp *old_stats; in ocrdma_mbx_rdma_stats() local1293 old_stats = kmalloc(sizeof(*old_stats), GFP_KERNEL); in ocrdma_mbx_rdma_stats()1294 if (old_stats == NULL) in ocrdma_mbx_rdma_stats()1307 memcpy(old_stats, req, sizeof(struct ocrdma_rdma_stats_resp)); in ocrdma_mbx_rdma_stats()1320 memcpy(req, old_stats, sizeof(struct ocrdma_rdma_stats_resp)); in ocrdma_mbx_rdma_stats()1324 kfree(old_stats); in ocrdma_mbx_rdma_stats()
11910 struct rtnl_link_stats64 *old_stats = &tp->net_stats_prev; in tg3_get_nstats() local11913 stats->rx_packets = old_stats->rx_packets + in tg3_get_nstats()11918 stats->tx_packets = old_stats->tx_packets + in tg3_get_nstats()11923 stats->rx_bytes = old_stats->rx_bytes + in tg3_get_nstats()11925 stats->tx_bytes = old_stats->tx_bytes + in tg3_get_nstats()11928 stats->rx_errors = old_stats->rx_errors + in tg3_get_nstats()11930 stats->tx_errors = old_stats->tx_errors + in tg3_get_nstats()11936 stats->multicast = old_stats->multicast + in tg3_get_nstats()11938 stats->collisions = old_stats->collisions + in tg3_get_nstats()11941 stats->rx_length_errors = old_stats->rx_length_errors + in tg3_get_nstats()[all …]