Lines Matching defs:stats
35 struct idt77105_stats stats; /* link diagnostics */
80 * kernel's stats are much higher precision. Also, having
81 * a separate copy of the stats allows implementation of
82 * an ioctl which gathers the stats *without* zero'ing them.
88 struct idt77105_stats *stats;
94 stats = &walk->stats;
95 stats->symbol_errors += get_counter(dev, IDT77105_CTRSEL_SEC);
96 stats->tx_cells += get_counter(dev, IDT77105_CTRSEL_TCC);
97 stats->rx_cells += get_counter(dev, IDT77105_CTRSEL_RCC);
98 stats->rx_hec_errors += get_counter(dev, IDT77105_CTRSEL_RHEC);
145 struct idt77105_stats stats;
148 memcpy(&stats, &PRIV(dev)->stats, sizeof(struct idt77105_stats));
150 memset(&PRIV(dev)->stats, 0, sizeof(struct idt77105_stats));
154 return copy_to_user(arg, &stats,
253 /* normally don't care - just report in stats */
272 memset(&PRIV(dev)->stats,0,sizeof(struct idt77105_stats));