Lines Matching refs:stats
35 struct idt77105_stats stats; /* link diagnostics */ member
92 struct idt77105_stats *stats; in idt77105_stats_timer_func() local
98 stats = &walk->stats; in idt77105_stats_timer_func()
99 stats->symbol_errors += get_counter(dev, IDT77105_CTRSEL_SEC); in idt77105_stats_timer_func()
100 stats->tx_cells += get_counter(dev, IDT77105_CTRSEL_TCC); in idt77105_stats_timer_func()
101 stats->rx_cells += get_counter(dev, IDT77105_CTRSEL_RCC); in idt77105_stats_timer_func()
102 stats->rx_hec_errors += get_counter(dev, IDT77105_CTRSEL_RHEC); in idt77105_stats_timer_func()
149 struct idt77105_stats stats; in fetch_stats() local
152 memcpy(&stats, &PRIV(dev)->stats, sizeof(struct idt77105_stats)); in fetch_stats()
154 memset(&PRIV(dev)->stats, 0, sizeof(struct idt77105_stats)); in fetch_stats()
158 return copy_to_user(arg, &PRIV(dev)->stats, in fetch_stats()
277 memset(&PRIV(dev)->stats,0,sizeof(struct idt77105_stats)); in idt77105_start()