Lines Matching refs:tx_count
153 int tx_count; member
972 info->tx_count = info->tx_put = info->tx_get = 0; in tx_done()
1014 if (!info->tx_count) in tx_ready()
1018 if (!info->tx_count) in tx_ready()
1021 while (info->tx_count && fifo_count) { in tx_ready()
1022 c = min(2, min_t(int, fifo_count, min(info->tx_count, TXBUFSIZE - info->tx_get))); in tx_ready()
1030 info->tx_count -= c; in tx_ready()
1036 if (info->tx_count < WAKEUP_CHARS) in tx_ready()
1040 if (info->tx_count) in tx_ready()
1375 info->tx_count = info->tx_put = info->tx_get = 0; in mgslpc_program_hw()
1511 if (info->tx_count < TXBUFSIZE - 1) { in mgslpc_put_char()
1514 info->tx_count++; in mgslpc_put_char()
1532 __FILE__, __LINE__, info->device_name, info->tx_count); in mgslpc_flush_chars()
1537 if (info->tx_count <= 0 || tty->stopped || in mgslpc_flush_chars()
1583 else if (info->tx_count) in mgslpc_write()
1589 min(TXBUFSIZE - info->tx_count - 1, in mgslpc_write()
1598 info->tx_count += c; in mgslpc_write()
1606 if (info->tx_count && !tty->stopped && !tty->hw_stopped) { in mgslpc_write()
1636 ret = TXBUFSIZE - info->tx_count - 1; in mgslpc_write_room()
1664 rc = info->tx_count; in mgslpc_chars_in_buffer()
1688 info->tx_count = info->tx_put = info->tx_get = 0; in mgslpc_flush_buffer()
1921 if (info->tx_active && info->tx_count && in tx_abort()
1926 info->tx_count = info->tx_put = info->tx_get = 0; in tx_abort()
2416 while ((info->tx_count || info->tx_active) && in mgslpc_wait_until_sent()
3325 if (info->tx_count) { in tx_start()
3884 info->tx_count = info->tx_put = info->tx_get = 0; in tx_timeout()
3976 info->tx_put = info->tx_count = skb->len; in hdlcdev_xmit()