Searched refs:nstats (Results 1 – 6 of 6) sorted by relevance
62 struct net_device_stats *nstats = &dev->stats; in t3e3_get_stats() local66 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 …]
340 struct net_device_stats *nstats; in chan_get_stats() local355 nstats = &ndev->stats; in chan_get_stats()358 memset (nstats, 0, sizeof (struct net_device_stats)); in chan_get_stats()359 nstats->rx_packets = stats->rx_packets; in chan_get_stats()360 nstats->tx_packets = stats->tx_packets; in chan_get_stats()361 nstats->rx_bytes = stats->rx_bytes; in chan_get_stats()362 nstats->tx_bytes = stats->tx_bytes; in chan_get_stats()363 nstats->rx_errors = stats->rx_length_errors + in chan_get_stats()369 nstats->tx_errors = stats->tx_dropped + in chan_get_stats()372 nstats->rx_dropped = stats->rx_dropped; in chan_get_stats()[all …]
985 struct net_device_stats *nstats = &bp->dev->stats; in bnx2x_net_stats_update() local989 nstats->rx_packets = in bnx2x_net_stats_update()994 nstats->tx_packets = in bnx2x_net_stats_update()999 nstats->rx_bytes = bnx2x_hilo(&estats->total_bytes_received_hi); in bnx2x_net_stats_update()1001 nstats->tx_bytes = bnx2x_hilo(&estats->total_bytes_transmitted_hi); in bnx2x_net_stats_update()1006 nstats->rx_dropped = tmp; in bnx2x_net_stats_update()1008 nstats->tx_dropped = 0; in bnx2x_net_stats_update()1010 nstats->multicast = in bnx2x_net_stats_update()1013 nstats->collisions = in bnx2x_net_stats_update()1016 nstats->rx_length_errors = in bnx2x_net_stats_update()[all …]
1203 unsigned int nstats = min(6U, rem); in t4vf_get_port_stats() local1218 FW_VI_STATS_CMD_NSTATS(nstats)); in t4vf_get_port_stats()1223 memcpy(fwsp, &rpl.u.ctl.stat0, sizeof(__be64) * nstats); in t4vf_get_port_stats()1225 rem -= nstats; in t4vf_get_port_stats()1226 fwsp += nstats; in t4vf_get_port_stats()
265 struct net_device_stats nstats; member
1875 struct net_device_stats *nst = &dev->nstats; in emac_stats()