Home
last modified time | relevance | path

Searched refs:cpu_stats (Results 1 – 7 of 7) sorted by relevance

/linux-4.4.14/net/netfilter/
Dnft_counter.c53 const struct nft_counter_percpu *cpu_stats; in nft_counter_fetch() local
60 cpu_stats = per_cpu_ptr(counter, cpu); in nft_counter_fetch()
62 seq = u64_stats_fetch_begin_irq(&cpu_stats->syncp); in nft_counter_fetch()
63 bytes = cpu_stats->counter.bytes; in nft_counter_fetch()
64 packets = cpu_stats->counter.packets; in nft_counter_fetch()
65 } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, seq)); in nft_counter_fetch()
98 struct nft_counter_percpu __percpu *cpu_stats; in nft_counter_init() local
101 cpu_stats = netdev_alloc_pcpu_stats(struct nft_counter_percpu); in nft_counter_init()
102 if (cpu_stats == NULL) in nft_counter_init()
106 this_cpu = this_cpu_ptr(cpu_stats); in nft_counter_init()
[all …]
Dnf_tables_api.c928 struct nft_stats *cpu_stats, total; in nft_dump_stats() local
936 cpu_stats = per_cpu_ptr(stats, cpu); in nft_dump_stats()
938 seq = u64_stats_fetch_begin_irq(&cpu_stats->syncp); in nft_dump_stats()
939 pkts = cpu_stats->pkts; in nft_dump_stats()
940 bytes = cpu_stats->bytes; in nft_dump_stats()
941 } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, seq)); in nft_dump_stats()
/linux-4.4.14/drivers/net/ethernet/tile/
Dtilepro.c2061 struct tile_net_stats_t *cpu_stats; in tile_net_get_stats64() local
2068 cpu_stats = &priv->cpu[i]->stats; in tile_net_get_stats64()
2071 start = u64_stats_fetch_begin_irq(&cpu_stats->syncp); in tile_net_get_stats64()
2072 trx_packets = cpu_stats->rx_packets; in tile_net_get_stats64()
2073 ttx_packets = cpu_stats->tx_packets; in tile_net_get_stats64()
2074 trx_bytes = cpu_stats->rx_bytes; in tile_net_get_stats64()
2075 ttx_bytes = cpu_stats->tx_bytes; in tile_net_get_stats64()
2076 trx_errors = cpu_stats->rx_errors; in tile_net_get_stats64()
2077 trx_dropped = cpu_stats->rx_dropped; in tile_net_get_stats64()
2078 } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, start)); in tile_net_get_stats64()
/linux-4.4.14/drivers/net/team/
Dteam_mode_loadbalance.c432 struct lb_stats *cpu_stats, in __lb_one_cpu_stats_add() argument
440 tmp.tx_bytes = cpu_stats->tx_bytes; in __lb_one_cpu_stats_add()
/linux-4.4.14/drivers/net/ethernet/marvell/
Dmvneta.c596 struct mvneta_pcpu_stats *cpu_stats; in mvneta_get_stats64() local
602 cpu_stats = per_cpu_ptr(pp->stats, cpu); in mvneta_get_stats64()
604 start = u64_stats_fetch_begin_irq(&cpu_stats->syncp); in mvneta_get_stats64()
605 rx_packets = cpu_stats->rx_packets; in mvneta_get_stats64()
606 rx_bytes = cpu_stats->rx_bytes; in mvneta_get_stats64()
607 tx_packets = cpu_stats->tx_packets; in mvneta_get_stats64()
608 tx_bytes = cpu_stats->tx_bytes; in mvneta_get_stats64()
609 } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, start)); in mvneta_get_stats64()
Dmvpp2.c5781 struct mvpp2_pcpu_stats *cpu_stats; in mvpp2_get_stats64() local
5787 cpu_stats = per_cpu_ptr(port->stats, cpu); in mvpp2_get_stats64()
5789 start = u64_stats_fetch_begin_irq(&cpu_stats->syncp); in mvpp2_get_stats64()
5790 rx_packets = cpu_stats->rx_packets; in mvpp2_get_stats64()
5791 rx_bytes = cpu_stats->rx_bytes; in mvpp2_get_stats64()
5792 tx_packets = cpu_stats->tx_packets; in mvpp2_get_stats64()
5793 tx_bytes = cpu_stats->tx_bytes; in mvpp2_get_stats64()
5794 } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, start)); in mvpp2_get_stats64()
/linux-4.4.14/kernel/locking/
Dlockdep.c238 struct lock_class_stats *cpu_stats = in clear_lock_stats() local
241 memset(cpu_stats, 0, sizeof(struct lock_class_stats)); in clear_lock_stats()