Lines Matching refs:stat

340 		scc->stat.nospace++;  in scc_notify()
352 scc->stat.rxerrs++; /* then count it as an error */ in flush_rx_FIFO()
373 scc->stat.txints++; in scc_txint()
400 scc->stat.tx_state = TXS_ACTIVE; in scc_txint()
421 scc->stat.tx_state = TXS_NEWFRAME; /* next frame... */ in scc_txint()
437 scc->stat.exints++; in scc_exint()
497 if (scc->stat.tx_state == TXS_ACTIVE && (status & TxEOM)) in scc_exint()
499 scc->stat.tx_under++; /* oops, an underrun! count 'em */ in scc_exint()
522 scc->stat.rxints++; in scc_rxint()
535 skb = dev_alloc_skb(scc->stat.bufsize); in scc_rxint()
539 scc->stat.nospace++; in scc_rxint()
549 if (skb->len >= scc->stat.bufsize) in scc_rxint()
571 scc->stat.spints++; in scc_spint()
580 scc->stat.rx_over++; /* count them */ in scc_spint()
598 scc->stat.rxframes++; in scc_spint()
602 scc->stat.rxerrs++; in scc_spint()
1073 scc->stat.tx_state = TXS_IDLE2; in scc_tx_done()
1082 scc->stat.tx_state = TXS_BUSY; in scc_tx_done()
1132 if (scc->stat.tx_state == TXS_WAIT) /* maxkeyup or idle timeout */ in t_dwait()
1135 scc->stat.tx_state = TXS_IDLE; in t_dwait()
1140 scc->stat.tx_state = TXS_BUSY; in t_dwait()
1201 if (scc->stat.tx_state == TXS_TIMEOUT) /* we had a timeout? */ in t_tail()
1203 scc->stat.tx_state = TXS_WAIT; in t_tail()
1208 scc->stat.tx_state = TXS_IDLE; in t_tail()
1226 scc->stat.txerrs++; in t_busy()
1227 scc->stat.tx_state = TXS_IDLE; in t_busy()
1259 scc->stat.txerrs++; in t_maxkeyup()
1260 scc->stat.tx_state = TXS_TIMEOUT; in t_maxkeyup()
1280 scc->stat.tx_state = TXS_WAIT; in t_idle()
1288 scc->stat.tx_state = TXS_IDLE; in scc_init_timer()
1341 if (scc->stat.tx_state == 0) /* only switch baudrate on rx... ;-) */ in scc_set_param()
1355 scc->stat.tx_state = TXS_BUSY; in scc_set_param()
1647 if (skb->len > scc->stat.bufsize || skb->len < 2) { in scc_net_tx()
1655 scc->stat.txframes++; in scc_net_tx()
1683 if(scc->stat.tx_state == TXS_IDLE || scc->stat.tx_state == TXS_IDLE2) { in scc_net_tx()
1684 scc->stat.tx_state = TXS_BUSY; in scc_net_tx()
1858 scc->stat.bufsize = SCC_BUFSIZE; in scc_net_siocdevprivate()
1911 scc->stat.bufsize = memcfg.bufsize; in scc_net_siocdevprivate()
1915 if (!arg || copy_to_user(arg, &scc->stat, sizeof(scc->stat))) in scc_net_siocdevprivate()
1964 scc->dev_stat.rx_errors = scc->stat.rxerrs + scc->stat.rx_over; in scc_net_get_stats()
1965 scc->dev_stat.tx_errors = scc->stat.txerrs + scc->stat.tx_under; in scc_net_get_stats()
1966 scc->dev_stat.rx_fifo_errors = scc->stat.rx_over; in scc_net_get_stats()
1967 scc->dev_stat.tx_fifo_errors = scc->stat.tx_under; in scc_net_get_stats()
2025 const struct scc_stat *stat = &scc->stat; in scc_net_seq_show() local
2046 stat->bufsize); in scc_net_seq_show()
2048 stat->rxints, stat->txints, stat->exints, stat->spints); in scc_net_seq_show()
2050 stat->rxframes, stat->rxerrs, stat->rx_over, in scc_net_seq_show()
2051 stat->txframes, stat->txerrs, stat->tx_under, in scc_net_seq_show()
2052 stat->nospace, stat->tx_state); in scc_net_seq_show()