Lines Matching refs:stat

338 		scc->stat.nospace++;
350 scc->stat.rxerrs++; /* then count it as an error */
371 scc->stat.txints++;
398 scc->stat.tx_state = TXS_ACTIVE;
419 scc->stat.tx_state = TXS_NEWFRAME; /* next frame... */
435 scc->stat.exints++;
495 if (scc->stat.tx_state == TXS_ACTIVE && (status & TxEOM))
497 scc->stat.tx_under++; /* oops, an underrun! count 'em */
520 scc->stat.rxints++;
533 skb = dev_alloc_skb(scc->stat.bufsize);
537 scc->stat.nospace++;
547 if (skb->len >= scc->stat.bufsize)
569 scc->stat.spints++;
578 scc->stat.rx_over++; /* count them */
596 scc->stat.rxframes++;
600 scc->stat.rxerrs++;
1071 scc->stat.tx_state = TXS_IDLE2;
1080 scc->stat.tx_state = TXS_BUSY;
1130 if (scc->stat.tx_state == TXS_WAIT) /* maxkeyup or idle timeout */
1133 scc->stat.tx_state = TXS_IDLE;
1138 scc->stat.tx_state = TXS_BUSY;
1199 if (scc->stat.tx_state == TXS_TIMEOUT) /* we had a timeout? */
1201 scc->stat.tx_state = TXS_WAIT;
1206 scc->stat.tx_state = TXS_IDLE;
1224 scc->stat.txerrs++;
1225 scc->stat.tx_state = TXS_IDLE;
1257 scc->stat.txerrs++;
1258 scc->stat.tx_state = TXS_TIMEOUT;
1278 scc->stat.tx_state = TXS_WAIT;
1286 scc->stat.tx_state = TXS_IDLE;
1339 if (scc->stat.tx_state == 0) /* only switch baudrate on rx... ;-) */
1353 scc->stat.tx_state = TXS_BUSY;
1646 if (skb->len > scc->stat.bufsize || skb->len < 2) {
1654 scc->stat.txframes++;
1682 if(scc->stat.tx_state == TXS_IDLE || scc->stat.tx_state == TXS_IDLE2) {
1683 scc->stat.tx_state = TXS_BUSY;
1855 scc->stat.bufsize = SCC_BUFSIZE;
1908 scc->stat.bufsize = memcfg.bufsize;
1912 if (!arg || copy_to_user(arg, &scc->stat, sizeof(scc->stat)))
1961 scc->dev_stat.rx_errors = scc->stat.rxerrs + scc->stat.rx_over;
1962 scc->dev_stat.tx_errors = scc->stat.txerrs + scc->stat.tx_under;
1963 scc->dev_stat.rx_fifo_errors = scc->stat.rx_over;
1964 scc->dev_stat.tx_fifo_errors = scc->stat.tx_under;
2022 const struct scc_stat *stat = &scc->stat;
2043 stat->bufsize);
2045 stat->rxints, stat->txints, stat->exints, stat->spints);
2047 stat->rxframes, stat->rxerrs, stat->rx_over,
2048 stat->txframes, stat->txerrs, stat->tx_under,
2049 stat->nospace, stat->tx_state);