Home
last modified time | relevance | path

Searched refs:nstats (Results 1 – 6 of 6) sorted by relevance

/drivers/staging/sbe-2t3e3/
Dnetdev.c62 struct net_device_stats *nstats = &dev->stats; in t3e3_get_stats() local
66 memset(nstats, 0, sizeof(struct net_device_stats)); in t3e3_get_stats()
67 nstats->rx_packets = stats->in_packets; in t3e3_get_stats()
68 nstats->tx_packets = stats->out_packets; in t3e3_get_stats()
69 nstats->rx_bytes = stats->in_bytes; in t3e3_get_stats()
70 nstats->tx_bytes = stats->out_bytes; in t3e3_get_stats()
72 nstats->rx_errors = stats->in_errors; in t3e3_get_stats()
73 nstats->tx_errors = stats->out_errors; in t3e3_get_stats()
74 nstats->rx_crc_errors = stats->in_error_crc; in t3e3_get_stats()
77 nstats->rx_dropped = stats->in_dropped; in t3e3_get_stats()
[all …]
/drivers/staging/cxt1e1/
Dlinux.c341 struct net_device_stats *nstats; in chan_get_stats() local
356 nstats = &ndev->stats; in chan_get_stats()
359 memset (nstats, 0, sizeof (struct net_device_stats)); in chan_get_stats()
360 nstats->rx_packets = stats->rx_packets; in chan_get_stats()
361 nstats->tx_packets = stats->tx_packets; in chan_get_stats()
362 nstats->rx_bytes = stats->rx_bytes; in chan_get_stats()
363 nstats->tx_bytes = stats->tx_bytes; in chan_get_stats()
364 nstats->rx_errors = stats->rx_length_errors + in chan_get_stats()
370 nstats->tx_errors = stats->tx_dropped + in chan_get_stats()
373 nstats->rx_dropped = stats->rx_dropped; in chan_get_stats()
[all …]
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_stats.c1032 struct net_device_stats *nstats = &bp->dev->stats; in bnx2x_net_stats_update() local
1036 nstats->rx_packets = in bnx2x_net_stats_update()
1041 nstats->tx_packets = in bnx2x_net_stats_update()
1046 nstats->rx_bytes = bnx2x_hilo(&estats->total_bytes_received_hi); in bnx2x_net_stats_update()
1048 nstats->tx_bytes = bnx2x_hilo(&estats->total_bytes_transmitted_hi); in bnx2x_net_stats_update()
1053 nstats->rx_dropped = tmp + bp->net_stats_old.rx_dropped; in bnx2x_net_stats_update()
1055 nstats->tx_dropped = 0; in bnx2x_net_stats_update()
1057 nstats->multicast = in bnx2x_net_stats_update()
1060 nstats->collisions = in bnx2x_net_stats_update()
1063 nstats->rx_length_errors = in bnx2x_net_stats_update()
[all …]
/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c1202 unsigned int nstats = min(6U, rem); in t4vf_get_port_stats() local
1217 FW_VI_STATS_CMD_NSTATS(nstats)); in t4vf_get_port_stats()
1222 memcpy(fwsp, &rpl.u.ctl.stat0, sizeof(__be64) * nstats); in t4vf_get_port_stats()
1224 rem -= nstats; in t4vf_get_port_stats()
1225 fwsp += nstats; in t4vf_get_port_stats()
/drivers/net/ethernet/ibm/emac/
Dcore.h265 struct net_device_stats nstats; member
Dcore.c1890 struct net_device_stats *nst = &dev->nstats; in emac_stats()