Lines Matching refs:stat

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