/drivers/infiniband/ulp/rtrs/ |
D | rtrs-clt-stats.c | 22 s = this_cpu_ptr(stats->pcpu_stats); in rtrs_clt_update_wc_stats() 27 s = per_cpu_ptr(stats->pcpu_stats, con->cpu); in rtrs_clt_update_wc_stats() 36 s = this_cpu_ptr(stats->pcpu_stats); in rtrs_clt_inc_failover_cnt() 54 s = per_cpu_ptr(stats->pcpu_stats, cpu); in rtrs_clt_stats_migration_cnt_to_str() 61 s = per_cpu_ptr(stats->pcpu_stats, cpu); in rtrs_clt_stats_migration_cnt_to_str() 88 r = &per_cpu_ptr(stats->pcpu_stats, cpu)->rdma; in rtrs_clt_stats_rdma_to_str() 118 s = per_cpu_ptr(stats->pcpu_stats, cpu); in rtrs_clt_reset_rdma_stats() 134 s = per_cpu_ptr(stats->pcpu_stats, cpu); in rtrs_clt_reset_cpu_migr_stats() 169 s = this_cpu_ptr(stats->pcpu_stats); in rtrs_clt_update_rdma_stats() 189 stats->pcpu_stats = alloc_percpu(typeof(*stats->pcpu_stats)); in rtrs_clt_init_stats() [all …]
|
D | rtrs-clt.h | 66 struct rtrs_clt_stats_pcpu __percpu *pcpu_stats; member
|
D | rtrs-clt-sysfs.c | 39 free_percpu(stats->pcpu_stats); in rtrs_clt_path_stats_release()
|
D | rtrs-clt.c | 2828 free_percpu(clt_path->stats->pcpu_stats); in rtrs_clt_open() 2838 free_percpu(clt_path->stats->pcpu_stats); in rtrs_clt_open() 3130 free_percpu(clt_path->stats->pcpu_stats); in rtrs_clt_create_path_from_sysfs()
|
/drivers/net/team/ |
D | team_mode_loadbalance.c | 73 struct lb_pcpu_stats __percpu *pcpu_stats; member 83 struct lb_stats __percpu *pcpu_stats; member 209 struct lb_pcpu_stats *pcpu_stats; in lb_update_tx_stats() local 213 pcpu_stats = this_cpu_ptr(lb_priv->pcpu_stats); in lb_update_tx_stats() 214 port_stats = this_cpu_ptr(lb_port_priv->pcpu_stats); in lb_update_tx_stats() 215 hash_stats = &pcpu_stats->hash_stats[hash]; in lb_update_tx_stats() 216 u64_stats_update_begin(&pcpu_stats->syncp); in lb_update_tx_stats() 219 u64_stats_update_end(&pcpu_stats->syncp); in lb_update_tx_stats() 480 struct lb_pcpu_stats *pcpu_stats; in lb_stats_refresh() local 503 pcpu_stats = per_cpu_ptr(lb_priv->pcpu_stats, i); in lb_stats_refresh() [all …]
|
D | team.c | 745 struct team_pcpu_stats *pcpu_stats; in team_handle_frame() local 747 pcpu_stats = this_cpu_ptr(team->pcpu_stats); in team_handle_frame() 748 u64_stats_update_begin(&pcpu_stats->syncp); in team_handle_frame() 749 pcpu_stats->rx_packets++; in team_handle_frame() 750 pcpu_stats->rx_bytes += skb->len; in team_handle_frame() 752 pcpu_stats->rx_multicast++; in team_handle_frame() 753 u64_stats_update_end(&pcpu_stats->syncp); in team_handle_frame() 757 this_cpu_inc(team->pcpu_stats->rx_nohandler); in team_handle_frame() 759 this_cpu_inc(team->pcpu_stats->rx_dropped); in team_handle_frame() 1631 team->pcpu_stats = netdev_alloc_pcpu_stats(struct team_pcpu_stats); in team_init() [all …]
|
/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_vnd.c | 24 pcpu_ptr = this_cpu_ptr(priv->pcpu_stats); in rmnet_vnd_rx_fixup() 37 pcpu_ptr = this_cpu_ptr(priv->pcpu_stats); in rmnet_vnd_tx_fixup() 56 this_cpu_inc(priv->pcpu_stats->stats.tx_drops); in rmnet_vnd_start_xmit() 104 priv->pcpu_stats = alloc_percpu(struct rmnet_pcpu_stats); in rmnet_vnd_init() 105 if (!priv->pcpu_stats) in rmnet_vnd_init() 110 free_percpu(priv->pcpu_stats); in rmnet_vnd_init() 122 free_percpu(priv->pcpu_stats); in rmnet_vnd_uninit() 135 pcpu_ptr = per_cpu_ptr(priv->pcpu_stats, cpu); in rmnet_get_stats64()
|
D | rmnet_config.h | 67 struct rmnet_pcpu_stats __percpu *pcpu_stats; member
|
D | rmnet_handlers.c | 259 this_cpu_inc(priv->pcpu_stats->stats.tx_drops); in rmnet_egress_handler()
|
/drivers/net/ |
D | macvlan.c | 574 struct vlan_pcpu_stats *pcpu_stats; in macvlan_start_xmit() local 576 pcpu_stats = this_cpu_ptr(vlan->pcpu_stats); in macvlan_start_xmit() 577 u64_stats_update_begin(&pcpu_stats->syncp); in macvlan_start_xmit() 578 pcpu_stats->tx_packets++; in macvlan_start_xmit() 579 pcpu_stats->tx_bytes += len; in macvlan_start_xmit() 580 u64_stats_update_end(&pcpu_stats->syncp); in macvlan_start_xmit() 582 this_cpu_inc(vlan->pcpu_stats->tx_dropped); in macvlan_start_xmit() 911 vlan->pcpu_stats = netdev_alloc_pcpu_stats(struct vlan_pcpu_stats); in macvlan_init() 912 if (!vlan->pcpu_stats) in macvlan_init() 925 free_percpu(vlan->pcpu_stats); in macvlan_uninit() [all …]
|
D | macvtap.c | 60 this_cpu_inc(vlan->pcpu_stats->tx_dropped); in macvtap_count_tx_dropped()
|
/drivers/net/ipvlan/ |
D | ipvlan_main.c | 149 ipvlan->pcpu_stats = netdev_alloc_pcpu_stats(struct ipvl_pcpu_stats); in ipvlan_init() 150 if (!ipvlan->pcpu_stats) in ipvlan_init() 156 free_percpu(ipvlan->pcpu_stats); in ipvlan_init() 171 free_percpu(ipvlan->pcpu_stats); in ipvlan_uninit() 226 pcptr = this_cpu_ptr(ipvlan->pcpu_stats); in ipvlan_start_xmit() 233 this_cpu_inc(ipvlan->pcpu_stats->tx_drps); in ipvlan_start_xmit() 294 if (ipvlan->pcpu_stats) { in ipvlan_get_stats64() 302 pcptr = per_cpu_ptr(ipvlan->pcpu_stats, idx); in ipvlan_get_stats64()
|
D | ipvlan.h | 68 struct ipvl_pcpu_stats __percpu *pcpu_stats; member
|
D | ipvtap.c | 56 this_cpu_inc(vlan->pcpu_stats->tx_drps); in ipvtap_count_tx_dropped()
|
D | ipvlan_core.c | 20 pcptr = this_cpu_ptr(ipvlan->pcpu_stats); in ipvlan_count_rx() 28 this_cpu_inc(ipvlan->pcpu_stats->rx_errs); in ipvlan_count_rx()
|
/drivers/net/hyperv/ |
D | netvsc_drv.c | 507 struct netvsc_vf_pcpu_stats *pcpu_stats in netvsc_vf_xmit() local 510 u64_stats_update_begin(&pcpu_stats->syncp); in netvsc_vf_xmit() 511 pcpu_stats->tx_packets++; in netvsc_vf_xmit() 512 pcpu_stats->tx_bytes += len; in netvsc_vf_xmit() 513 u64_stats_update_end(&pcpu_stats->syncp); in netvsc_vf_xmit() 1486 }, pcpu_stats[] = { variable 1515 #define NETVSC_PCPU_STATS_LEN (num_present_cpus() * ARRAY_SIZE(pcpu_stats)) 1596 for (j = 0; j < ARRAY_SIZE(pcpu_stats); j++) in netvsc_get_ethtool_stats() 1598 + pcpu_stats[j].offset); in netvsc_get_ethtool_stats() 1630 for (i = 0; i < ARRAY_SIZE(pcpu_stats); i++) in netvsc_get_strings() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum.c | 588 struct mlxsw_sp_port_pcpu_stats *pcpu_stats; in mlxsw_sp_port_xmit() local 597 this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); in mlxsw_sp_port_xmit() 608 this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); in mlxsw_sp_port_xmit() 624 pcpu_stats = this_cpu_ptr(mlxsw_sp_port->pcpu_stats); in mlxsw_sp_port_xmit() 625 u64_stats_update_begin(&pcpu_stats->syncp); in mlxsw_sp_port_xmit() 626 pcpu_stats->tx_packets++; in mlxsw_sp_port_xmit() 627 pcpu_stats->tx_bytes += len; in mlxsw_sp_port_xmit() 628 u64_stats_update_end(&pcpu_stats->syncp); in mlxsw_sp_port_xmit() 630 this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); in mlxsw_sp_port_xmit() 698 p = per_cpu_ptr(mlxsw_sp_port->pcpu_stats, i); in mlxsw_sp_port_get_sw_stats64() [all …]
|
D | spectrum_trap.c | 66 struct mlxsw_sp_port_pcpu_stats *pcpu_stats; in mlxsw_sp_rx_listener() local 77 pcpu_stats = this_cpu_ptr(mlxsw_sp_port->pcpu_stats); in mlxsw_sp_rx_listener() 78 u64_stats_update_begin(&pcpu_stats->syncp); in mlxsw_sp_rx_listener() 79 pcpu_stats->rx_packets++; in mlxsw_sp_rx_listener() 80 pcpu_stats->rx_bytes += skb->len; in mlxsw_sp_rx_listener() 81 u64_stats_update_end(&pcpu_stats->syncp); in mlxsw_sp_rx_listener()
|
D | spectrum.h | 306 struct mlxsw_sp_port_pcpu_stats __percpu *pcpu_stats; member
|