Searched refs:vstats (Results 1 – 10 of 10) sorted by relevance
/Linux-v5.4/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_vema_iface.c | 87 struct opa_vnic_stats vstats; in opa_vnic_get_summary_counters() local 91 memset(&vstats, 0, sizeof(vstats)); in opa_vnic_get_summary_counters() 93 adapter->rn_ops->ndo_get_stats64(adapter->netdev, &vstats.netstats); in opa_vnic_get_summary_counters() 100 cntrs->tx_errors = cpu_to_be64(vstats.netstats.tx_errors); in opa_vnic_get_summary_counters() 101 cntrs->rx_errors = cpu_to_be64(vstats.netstats.rx_errors); in opa_vnic_get_summary_counters() 102 cntrs->tx_packets = cpu_to_be64(vstats.netstats.tx_packets); in opa_vnic_get_summary_counters() 103 cntrs->rx_packets = cpu_to_be64(vstats.netstats.rx_packets); in opa_vnic_get_summary_counters() 104 cntrs->tx_bytes = cpu_to_be64(vstats.netstats.tx_bytes); in opa_vnic_get_summary_counters() 105 cntrs->rx_bytes = cpu_to_be64(vstats.netstats.rx_bytes); in opa_vnic_get_summary_counters() 111 for (dst = &cntrs->tx_unicast, src = &vstats.tx_grp.unicast; in opa_vnic_get_summary_counters() [all …]
|
D | opa_vnic_ethtool.c | 145 struct opa_vnic_stats vstats; in vnic_get_ethtool_stats() local 148 memset(&vstats, 0, sizeof(vstats)); in vnic_get_ethtool_stats() 150 adapter->rn_ops->ndo_get_stats64(netdev, &vstats.netstats); in vnic_get_ethtool_stats() 153 char *p = (char *)&vstats + vnic_gstrings_stats[i].stat_offset; in vnic_get_ethtool_stats()
|
D | opa_vnic_netdev.c | 69 struct opa_vnic_stats vstats; in opa_vnic_get_stats64() local 71 memset(&vstats, 0, sizeof(vstats)); in opa_vnic_get_stats64() 73 adapter->rn_ops->ndo_get_stats64(netdev, &vstats.netstats); in opa_vnic_get_stats64() 75 memcpy(stats, &vstats.netstats, sizeof(*stats)); in opa_vnic_get_stats64()
|
/Linux-v5.4/drivers/net/ |
D | vsockmon.c | 70 const struct pcpu_lstats *vstats; in vsockmon_get_stats64() local 74 vstats = per_cpu_ptr(dev->lstats, i); in vsockmon_get_stats64() 77 start = u64_stats_fetch_begin_irq(&vstats->syncp); in vsockmon_get_stats64() 78 tbytes = vstats->bytes; in vsockmon_get_stats64() 79 tpackets = vstats->packets; in vsockmon_get_stats64() 80 } while (u64_stats_fetch_retry_irq(&vstats->syncp, start)); in vsockmon_get_stats64()
|
/Linux-v5.4/drivers/net/ethernet/cisco/enic/ |
D | enic_dev.c | 39 int enic_dev_stats_dump(struct enic *enic, struct vnic_stats **vstats) in enic_dev_stats_dump() argument 44 err = vnic_dev_stats_dump(enic->vdev, vstats); in enic_dev_stats_dump()
|
D | enic_dev.h | 43 int enic_dev_stats_dump(struct enic *enic, struct vnic_stats **vstats);
|
D | enic_ethtool.c | 269 struct vnic_stats *vstats; in enic_get_ethtool_stats() local 273 err = enic_dev_stats_dump(enic, &vstats); in enic_get_ethtool_stats() 282 *(data++) = ((u64 *)&vstats->tx)[enic_tx_stats[i].index]; in enic_get_ethtool_stats() 284 *(data++) = ((u64 *)&vstats->rx)[enic_rx_stats[i].index]; in enic_get_ethtool_stats()
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_stats.h | 176 #define VPORT_COUNTER_GET(vstats, c) MLX5_GET64(query_vport_counter_out, \ argument 177 vstats->query_vport_out, c)
|
D | en_main.c | 3554 struct mlx5e_vport_stats *vstats = &priv->stats.vport; in mlx5e_get_stats() local 3589 VPORT_COUNTER_GET(vstats, received_eth_multicast.packets); in mlx5e_get_stats()
|
/Linux-v5.4/drivers/infiniband/hw/hfi1/ |
D | vnic_main.c | 330 struct opa_vnic_stats *vstats = (struct opa_vnic_stats *)stats; in hfi1_vnic_get_stats64() local 333 hfi1_vnic_update_stats(vinfo, vstats); in hfi1_vnic_get_stats64()
|