| /Linux-v5.15/net/netfilter/ |
| D | nft_counter.c | 61 struct nft_counter __percpu *cpu_stats; in nft_counter_do_init() local 64 cpu_stats = alloc_percpu(struct nft_counter); in nft_counter_do_init() 65 if (cpu_stats == NULL) in nft_counter_do_init() 69 this_cpu = this_cpu_ptr(cpu_stats); in nft_counter_do_init() 79 priv->counter = cpu_stats; in nft_counter_do_init() 232 struct nft_counter __percpu *cpu_stats; in nft_counter_clone() local 238 cpu_stats = alloc_percpu_gfp(struct nft_counter, GFP_ATOMIC); in nft_counter_clone() 239 if (cpu_stats == NULL) in nft_counter_clone() 243 this_cpu = this_cpu_ptr(cpu_stats); in nft_counter_clone() 248 priv_clone->counter = cpu_stats; in nft_counter_clone()
|
| D | nf_tables_api.c | 1429 struct nft_stats *cpu_stats, total; in nft_dump_stats() local 1440 cpu_stats = per_cpu_ptr(stats, cpu); in nft_dump_stats() 1442 seq = u64_stats_fetch_begin_irq(&cpu_stats->syncp); in nft_dump_stats() 1443 pkts = cpu_stats->pkts; in nft_dump_stats() 1444 bytes = cpu_stats->bytes; in nft_dump_stats() 1445 } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, seq)); in nft_dump_stats()
|
| /Linux-v5.15/net/core/ |
| D | drop_monitor.c | 1423 struct net_dm_stats *cpu_stats = &data->stats; in net_dm_stats_read() local 1428 start = u64_stats_fetch_begin_irq(&cpu_stats->syncp); in net_dm_stats_read() 1429 dropped = cpu_stats->dropped; in net_dm_stats_read() 1430 } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, start)); in net_dm_stats_read() 1467 struct net_dm_stats *cpu_stats = &hw_data->stats; in net_dm_hw_stats_read() local 1472 start = u64_stats_fetch_begin_irq(&cpu_stats->syncp); in net_dm_hw_stats_read() 1473 dropped = cpu_stats->dropped; in net_dm_hw_stats_read() 1474 } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, start)); in net_dm_hw_stats_read()
|
| D | devlink.c | 7607 struct devlink_stats *cpu_stats; in devlink_trap_stats_read() local 7611 cpu_stats = per_cpu_ptr(trap_stats, i); in devlink_trap_stats_read() 7613 start = u64_stats_fetch_begin_irq(&cpu_stats->syncp); in devlink_trap_stats_read() 7614 rx_packets = cpu_stats->rx_packets; in devlink_trap_stats_read() 7615 rx_bytes = cpu_stats->rx_bytes; in devlink_trap_stats_read() 7616 } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, start)); in devlink_trap_stats_read()
|
| /Linux-v5.15/net/bridge/ |
| D | br_vlan.c | 1314 struct pcpu_sw_netstats *cpu_stats; in br_vlan_get_stats() local 1317 cpu_stats = per_cpu_ptr(v->stats, i); in br_vlan_get_stats() 1319 start = u64_stats_fetch_begin_irq(&cpu_stats->syncp); in br_vlan_get_stats() 1320 rxpackets = cpu_stats->rx_packets; in br_vlan_get_stats() 1321 rxbytes = cpu_stats->rx_bytes; in br_vlan_get_stats() 1322 txbytes = cpu_stats->tx_bytes; in br_vlan_get_stats() 1323 txpackets = cpu_stats->tx_packets; in br_vlan_get_stats() 1324 } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, start)); in br_vlan_get_stats()
|
| D | br_multicast.c | 4861 struct bridge_mcast_stats *cpu_stats = per_cpu_ptr(stats, i); in br_multicast_get_stats() local 4866 start = u64_stats_fetch_begin_irq(&cpu_stats->syncp); in br_multicast_get_stats() 4867 memcpy(&temp, &cpu_stats->mstats, sizeof(temp)); in br_multicast_get_stats() 4868 } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, start)); in br_multicast_get_stats()
|
| /Linux-v5.15/drivers/net/ethernet/ti/ |
| D | am65-cpsw-nuss.c | 1448 struct am65_cpsw_ndev_stats *cpu_stats; in am65_cpsw_nuss_ndo_get_stats() local 1454 cpu_stats = per_cpu_ptr(ndev_priv->stats, cpu); in am65_cpsw_nuss_ndo_get_stats() 1456 start = u64_stats_fetch_begin_irq(&cpu_stats->syncp); in am65_cpsw_nuss_ndo_get_stats() 1457 rx_packets = cpu_stats->rx_packets; in am65_cpsw_nuss_ndo_get_stats() 1458 rx_bytes = cpu_stats->rx_bytes; in am65_cpsw_nuss_ndo_get_stats() 1459 tx_packets = cpu_stats->tx_packets; in am65_cpsw_nuss_ndo_get_stats() 1460 tx_bytes = cpu_stats->tx_bytes; in am65_cpsw_nuss_ndo_get_stats() 1461 } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, start)); in am65_cpsw_nuss_ndo_get_stats()
|
| /Linux-v5.15/drivers/net/ethernet/marvell/mvpp2/ |
| D | mvpp2_main.c | 1998 struct mvpp2_pcpu_stats *cpu_stats; in mvpp2_get_xdp_stats() local 2007 cpu_stats = per_cpu_ptr(port->stats, cpu); in mvpp2_get_xdp_stats() 2009 start = u64_stats_fetch_begin_irq(&cpu_stats->syncp); in mvpp2_get_xdp_stats() 2010 xdp_redirect = cpu_stats->xdp_redirect; in mvpp2_get_xdp_stats() 2011 xdp_pass = cpu_stats->xdp_pass; in mvpp2_get_xdp_stats() 2012 xdp_drop = cpu_stats->xdp_drop; in mvpp2_get_xdp_stats() 2013 xdp_xmit = cpu_stats->xdp_xmit; in mvpp2_get_xdp_stats() 2014 xdp_xmit_err = cpu_stats->xdp_xmit_err; in mvpp2_get_xdp_stats() 2015 xdp_tx = cpu_stats->xdp_tx; in mvpp2_get_xdp_stats() 2016 xdp_tx_err = cpu_stats->xdp_tx_err; in mvpp2_get_xdp_stats() [all …]
|
| /Linux-v5.15/drivers/net/team/ |
| D | team_mode_loadbalance.c | 462 struct lb_stats *cpu_stats, in __lb_one_cpu_stats_add() argument 470 tmp.tx_bytes = cpu_stats->tx_bytes; in __lb_one_cpu_stats_add()
|
| /Linux-v5.15/drivers/net/ethernet/marvell/ |
| D | mvneta.c | 775 struct mvneta_pcpu_stats *cpu_stats; in mvneta_get_stats64() local 783 cpu_stats = per_cpu_ptr(pp->stats, cpu); in mvneta_get_stats64() 785 start = u64_stats_fetch_begin_irq(&cpu_stats->syncp); in mvneta_get_stats64() 786 rx_packets = cpu_stats->es.ps.rx_packets; in mvneta_get_stats64() 787 rx_bytes = cpu_stats->es.ps.rx_bytes; in mvneta_get_stats64() 788 rx_dropped = cpu_stats->rx_dropped; in mvneta_get_stats64() 789 rx_errors = cpu_stats->rx_errors; in mvneta_get_stats64() 790 tx_packets = cpu_stats->es.ps.tx_packets; in mvneta_get_stats64() 791 tx_bytes = cpu_stats->es.ps.tx_bytes; in mvneta_get_stats64() 792 } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, start)); in mvneta_get_stats64()
|
| /Linux-v5.15/kernel/locking/ |
| D | lockdep.c | 299 struct lock_class_stats *cpu_stats = in clear_lock_stats() local 302 memset(cpu_stats, 0, sizeof(struct lock_class_stats)); in clear_lock_stats()
|