dstats 66 drivers/net/dummy.c const struct pcpu_dstats *dstats; dstats 70 drivers/net/dummy.c dstats = per_cpu_ptr(dev->dstats, i); dstats 72 drivers/net/dummy.c start = u64_stats_fetch_begin_irq(&dstats->syncp); dstats 73 drivers/net/dummy.c tbytes = dstats->tx_bytes; dstats 74 drivers/net/dummy.c tpackets = dstats->tx_packets; dstats 75 drivers/net/dummy.c } while (u64_stats_fetch_retry_irq(&dstats->syncp, start)); dstats 83 drivers/net/dummy.c struct pcpu_dstats *dstats = this_cpu_ptr(dev->dstats); dstats 85 drivers/net/dummy.c u64_stats_update_begin(&dstats->syncp); dstats 86 drivers/net/dummy.c dstats->tx_packets++; dstats 87 drivers/net/dummy.c dstats->tx_bytes += skb->len; dstats 88 drivers/net/dummy.c u64_stats_update_end(&dstats->syncp); dstats 97 drivers/net/dummy.c dev->dstats = netdev_alloc_pcpu_stats(struct pcpu_dstats); dstats 98 drivers/net/dummy.c if (!dev->dstats) dstats 106 drivers/net/dummy.c free_percpu(dev->dstats); dstats 65 drivers/net/vrf.c struct pcpu_dstats *dstats = this_cpu_ptr(dev->dstats); dstats 67 drivers/net/vrf.c u64_stats_update_begin(&dstats->syncp); dstats 68 drivers/net/vrf.c dstats->rx_pkts++; dstats 69 drivers/net/vrf.c dstats->rx_bytes += len; dstats 70 drivers/net/vrf.c u64_stats_update_end(&dstats->syncp); dstats 85 drivers/net/vrf.c const struct pcpu_dstats *dstats; dstats 89 drivers/net/vrf.c dstats = per_cpu_ptr(dev->dstats, i); dstats 91 drivers/net/vrf.c start = u64_stats_fetch_begin_irq(&dstats->syncp); dstats 92 drivers/net/vrf.c tbytes = dstats->tx_bytes; dstats 93 drivers/net/vrf.c tpkts = dstats->tx_pkts; dstats 94 drivers/net/vrf.c tdrops = dstats->tx_drps; dstats 95 drivers/net/vrf.c rbytes = dstats->rx_bytes; dstats 96 drivers/net/vrf.c rpkts = dstats->rx_pkts; dstats 97 drivers/net/vrf.c } while (u64_stats_fetch_retry_irq(&dstats->syncp, start)); dstats 145 drivers/net/vrf.c this_cpu_inc(dev->dstats->rx_drps); dstats 322 drivers/net/vrf.c struct pcpu_dstats *dstats = this_cpu_ptr(dev->dstats); dstats 324 drivers/net/vrf.c u64_stats_update_begin(&dstats->syncp); dstats 325 drivers/net/vrf.c dstats->tx_pkts++; dstats 326 drivers/net/vrf.c dstats->tx_bytes += len; dstats 327 drivers/net/vrf.c u64_stats_update_end(&dstats->syncp); dstats 329 drivers/net/vrf.c this_cpu_inc(dev->dstats->tx_drps); dstats 844 drivers/net/vrf.c free_percpu(dev->dstats); dstats 845 drivers/net/vrf.c dev->dstats = NULL; dstats 852 drivers/net/vrf.c dev->dstats = netdev_alloc_pcpu_stats(struct pcpu_dstats); dstats 853 drivers/net/vrf.c if (!dev->dstats) dstats 875 drivers/net/vrf.c free_percpu(dev->dstats); dstats 876 drivers/net/vrf.c dev->dstats = NULL; dstats 2026 include/linux/netdevice.h struct pcpu_dstats __percpu *dstats;