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 …]
341 struct net_device_stats *nstats; in chan_get_stats() local356 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 …]
1032 struct net_device_stats *nstats = &bp->dev->stats; in bnx2x_net_stats_update() local1036 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 …]
1202 unsigned int nstats = min(6U, rem); in t4vf_get_port_stats() local1217 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()
265 struct net_device_stats nstats; member
1890 struct net_device_stats *nst = &dev->nstats; in emac_stats()