Lines Matching refs:stats
340 struct net_device_stats *stats;
349 if (!dev->get_stats || (stats = (*dev->get_stats)(dev)) == NULL)
357 p->md.stat.ps_recv = stats->rx_packets;
358 p->md.stat.ps_drop += stats->rx_missed_errors;
359 p->md.stat.ps_ifdrop = stats->rx_dropped + /* queue full */
360 stats->rx_errors; /* HW errors */
1081 struct net_device_stats *stats = (struct net_device_stats*) dev->priv;
1088 stats->tx_errors++;
1096 struct net_device_stats *stats = (struct net_device_stats*) dev->priv;
1098 if (!stats || !PktSessStatistics(pktInfo.handle))
1101 stats->rx_packets = pktStat.inPackets;
1102 stats->rx_errors = pktStat.lost;
1103 stats->rx_missed_errors = PktRxDropped();
1104 return (stats);
1153 static struct net_device_stats stats;
1157 return (&stats);