Lines Matching refs:char_count
446 u8 ivr, save_xir, channel, save_car, data, char_count; in cyy_chip_rx() local
540 char_count = cyy_readb(info, CyRDCR); in cyy_chip_rx()
544 info->mon.char_count += char_count; in cyy_chip_rx()
545 if (char_count > info->mon.char_max) in cyy_chip_rx()
546 info->mon.char_max = char_count; in cyy_chip_rx()
547 info->mon.char_last = char_count; in cyy_chip_rx()
549 len = tty_buffer_request_room(port, char_count); in cyy_chip_rx()
573 int char_count, index = cinfo->bus_index; in cyy_chip_tx() local
597 char_count = info->xmit_fifo_size; in cyy_chip_tx()
602 char_count--; in cyy_chip_tx()
612 char_count -= 2; in cyy_chip_tx()
618 char_count -= 2; in cyy_chip_tx()
622 while (char_count-- > 0) { in cyy_chip_tx()
660 if (char_count > 1) { in cyy_chip_tx()
667 char_count--; in cyy_chip_tx()
925 unsigned int char_count; in cyz_handle_rx() local
939 char_count = rx_put - rx_get; in cyz_handle_rx()
941 char_count = rx_put - rx_get + rx_bufsize; in cyz_handle_rx()
943 if (!char_count) in cyz_handle_rx()
948 info->mon.char_count += char_count; in cyz_handle_rx()
949 if (char_count > info->mon.char_max) in cyz_handle_rx()
950 info->mon.char_max = char_count; in cyz_handle_rx()
951 info->mon.char_last = char_count; in cyz_handle_rx()
960 char_count); in cyz_handle_rx()
964 len = min_t(unsigned int, min(len, char_count), in cyz_handle_rx()
972 char_count -= len; in cyz_handle_rx()
977 len = tty_buffer_request_room(port, char_count); in cyz_handle_rx()
993 char_count = rx_put - rx_get; in cyz_handle_rx()
995 char_count = rx_put - rx_get + rx_bufsize; in cyz_handle_rx()
996 if (char_count >= readl(&buf_ctrl->rx_threshold) && in cyz_handle_rx()
1015 unsigned int char_count; in cyz_handle_tx() local
1029 char_count = tx_get - tx_put - 1 + tx_bufsize; in cyz_handle_tx()
1031 char_count = tx_get - tx_put - 1; in cyz_handle_tx()
1033 if (!char_count) in cyz_handle_tx()
1046 char_count--; in cyz_handle_tx()
1054 char_count))))) { in cyz_handle_tx()
1061 char_count -= small_count; in cyz_handle_tx()
1068 while (info->xmit_cnt && char_count) { in cyz_handle_tx()
1076 char_count--; in cyz_handle_tx()
1911 int char_count; in cy_chars_in_buffer() local
1918 char_count = tx_put - tx_get; in cy_chars_in_buffer()
1920 char_count = tx_put - tx_get + tx_bufsize; in cy_chars_in_buffer()
1923 info->line, info->xmit_cnt + char_count); in cy_chars_in_buffer()
1925 return info->xmit_cnt + char_count; in cy_chars_in_buffer()