Lines Matching refs:stat
337 scc->stat.nospace++; in scc_notify()
349 scc->stat.rxerrs++; /* then count it as an error */ in flush_rx_FIFO()
370 scc->stat.txints++; in scc_txint()
397 scc->stat.tx_state = TXS_ACTIVE; in scc_txint()
418 scc->stat.tx_state = TXS_NEWFRAME; /* next frame... */ in scc_txint()
434 scc->stat.exints++; in scc_exint()
494 if (scc->stat.tx_state == TXS_ACTIVE && (status & TxEOM)) in scc_exint()
496 scc->stat.tx_under++; /* oops, an underrun! count 'em */ in scc_exint()
519 scc->stat.rxints++; in scc_rxint()
532 skb = dev_alloc_skb(scc->stat.bufsize); in scc_rxint()
536 scc->stat.nospace++; in scc_rxint()
546 if (skb->len >= scc->stat.bufsize) in scc_rxint()
568 scc->stat.spints++; in scc_spint()
577 scc->stat.rx_over++; /* count them */ in scc_spint()
595 scc->stat.rxframes++; in scc_spint()
599 scc->stat.rxerrs++; in scc_spint()
1069 scc->stat.tx_state = TXS_IDLE2; in scc_tx_done()
1078 scc->stat.tx_state = TXS_BUSY; in scc_tx_done()
1128 if (scc->stat.tx_state == TXS_WAIT) /* maxkeyup or idle timeout */ in t_dwait()
1131 scc->stat.tx_state = TXS_IDLE; in t_dwait()
1136 scc->stat.tx_state = TXS_BUSY; in t_dwait()
1197 if (scc->stat.tx_state == TXS_TIMEOUT) /* we had a timeout? */ in t_tail()
1199 scc->stat.tx_state = TXS_WAIT; in t_tail()
1204 scc->stat.tx_state = TXS_IDLE; in t_tail()
1222 scc->stat.txerrs++; in t_busy()
1223 scc->stat.tx_state = TXS_IDLE; in t_busy()
1255 scc->stat.txerrs++; in t_maxkeyup()
1256 scc->stat.tx_state = TXS_TIMEOUT; in t_maxkeyup()
1276 scc->stat.tx_state = TXS_WAIT; in t_idle()
1284 scc->stat.tx_state = TXS_IDLE; in scc_init_timer()
1337 if (scc->stat.tx_state == 0) /* only switch baudrate on rx... ;-) */ in scc_set_param()
1351 scc->stat.tx_state = TXS_BUSY; in scc_set_param()
1645 if (skb->len > scc->stat.bufsize || skb->len < 2) { in scc_net_tx()
1653 scc->stat.txframes++; in scc_net_tx()
1681 if(scc->stat.tx_state == TXS_IDLE || scc->stat.tx_state == TXS_IDLE2) { in scc_net_tx()
1682 scc->stat.tx_state = TXS_BUSY; in scc_net_tx()
1854 scc->stat.bufsize = SCC_BUFSIZE; in scc_net_ioctl()
1907 scc->stat.bufsize = memcfg.bufsize; in scc_net_ioctl()
1911 if (!arg || copy_to_user(arg, &scc->stat, sizeof(scc->stat))) in scc_net_ioctl()
1960 scc->dev_stat.rx_errors = scc->stat.rxerrs + scc->stat.rx_over; in scc_net_get_stats()
1961 scc->dev_stat.tx_errors = scc->stat.txerrs + scc->stat.tx_under; in scc_net_get_stats()
1962 scc->dev_stat.rx_fifo_errors = scc->stat.rx_over; in scc_net_get_stats()
1963 scc->dev_stat.tx_fifo_errors = scc->stat.tx_under; in scc_net_get_stats()
2021 const struct scc_stat *stat = &scc->stat; in scc_net_seq_show() local
2042 stat->bufsize); in scc_net_seq_show()
2044 stat->rxints, stat->txints, stat->exints, stat->spints); in scc_net_seq_show()
2046 stat->rxframes, stat->rxerrs, stat->rx_over, in scc_net_seq_show()
2047 stat->txframes, stat->txerrs, stat->tx_under, in scc_net_seq_show()
2048 stat->nospace, stat->tx_state); in scc_net_seq_show()